:root {
  --blue-dark: #0a2f4f;
  --blue: #1670ac;
  --blue-light: #4a9bd4;
  --orange: #f4682a;
  --orange-dark: #d6531c;
  --bg: #f7f9fc;
  --bg-soft: #eef3f8;
  --text: #16212b;
  --text-light: #5b6b78;
  --white: #ffffff;
  --border: #e4e9ef;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px rgba(10, 47, 79, 0.08);
  --shadow-lg: 0 24px 56px rgba(10, 47, 79, 0.16);
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --brand-gradient: linear-gradient(135deg, var(--blue-dark), var(--blue));
  --accent-gradient: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Inline icon system */
.i {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Top bar */
.topbar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.83rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-info span,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-info .i {
  opacity: 0.8;
}

.topbar a {
  transition: color 0.2s;
}

.topbar a:hover {
  color: var(--orange);
}

/* Header / Nav */
header.main-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.25s ease;
}

header.main-header.scrolled .navbar {
  padding: 9px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  transition: padding 0.25s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(10, 47, 79, 0.25);
}

.logo-badge .i {
  width: 24px;
  height: 24px;
}

.logo-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--blue-dark);
  line-height: 1.1;
  font-weight: 700;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.nav-links a:hover,
nav.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--orange);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 30px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(244, 104, 42, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  border-bottom: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(244, 104, 42, 0.38);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  background: var(--brand-gradient);
  color: var(--white);
  padding: 90px 0;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(244, 104, 42, 0.35), transparent 70%);
  top: -180px;
  right: -120px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(74, 155, 212, 0.35), transparent 70%);
  bottom: -200px;
  left: -100px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 480px;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.22;
}

.hero-content p {
  font-size: 1.12rem;
  color: #dce9f2;
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(244, 104, 42, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(244, 104, 42, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}

.hero-badges {
  flex: 1 1 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-badge:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.hero-badge .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge .icon .i {
  width: 22px;
  height: 22px;
}

.hero-badge strong {
  display: block;
  font-size: 0.92rem;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--orange);
  background: rgba(244, 104, 42, 0.1);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-light);
}

/* Card grid */
.grid {
  display: grid;
  gap: 26px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card .icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(10, 47, 79, 0.22);
}

.card .icon-badge .i {
  width: 28px;
  height: 28px;
}

.card h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  font-size: 0.96rem;
}

.card ul {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.card ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 7px;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

/* Trust / brands */
.brands-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.brands-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-pill {
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 11px 24px;
  border-radius: 30px;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.alt-bg {
  background: var(--white);
}

/* Certifications */
.cert-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cert-item {
  text-align: center;
  padding: 26px 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.cert-item .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-item .icon .i {
  width: 26px;
  height: 26px;
}

.cert-item strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.cert-item span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* CTA band */
.cta-band {
  position: relative;
  background: var(--accent-gradient);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-band p {
  margin-bottom: 26px;
  color: #fde8d8;
}

.cta-band .hero-actions {
  justify-content: center;
}

.cta-band .btn-outline {
  border-color: var(--white);
}

/* Page header (for sub pages) */
.page-header {
  position: relative;
  background: var(--brand-gradient);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 104, 42, 0.3), transparent 70%);
  top: -160px;
  right: -80px;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  color: #dce9f2;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #bcd6ea;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--white);
  font-weight: 600;
}

/* Chi siamo */
.about-block {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-block .icon-feature {
  flex: 1 1 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px;
  text-align: center;
}

.about-block .icon-feature .icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(10, 47, 79, 0.25);
}

.about-block .icon-feature .icon .i {
  width: 40px;
  height: 40px;
}

.about-block .about-text {
  flex: 2 1 420px;
}

.about-text h2 {
  color: var(--blue-dark);
  margin-bottom: 16px;
  font-size: 1.7rem;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.timeline-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.timeline-stats .stat {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 10px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.timeline-stats .stat:hover {
  transform: translateY(-4px);
}

.timeline-stats .stat strong {
  display: block;
  font-size: 1.9rem;
  font-family: var(--font-display);
  color: var(--orange);
}

.timeline-stats .stat span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Contatti */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-row .icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-row .icon .i {
  width: 22px;
  height: 22px;
}

.contact-row strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.contact-row span,
.contact-row a {
  color: var(--text-light);
}

.contact-row a:hover {
  color: var(--blue);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.big-contact-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Footer */
footer {
  position: relative;
  background: linear-gradient(180deg, var(--blue-dark), #061f34);
  color: #cfe1ee;
  padding: 56px 0 22px;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-grid p {
  font-size: 0.9rem;
  color: #aec6da;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-grid p .i {
  opacity: 0.8;
}

.footer-grid ul li {
  margin-bottom: 9px;
  font-size: 0.9rem;
}

.footer-grid ul li a {
  transition: color 0.2s;
}

.footer-grid ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: #8fadc4;
}

.staff-link {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #6f8ba3;
  transition: color 0.2s;
}

.staff-link:hover {
  color: var(--white);
}

/* Floating WhatsApp button */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform 0.2s;
}

.float-whatsapp .i {
  width: 27px;
  height: 27px;
}

.float-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: pulse-ring 2.4s ease-out infinite;
  z-index: -1;
}

.float-whatsapp:hover {
  transform: scale(1.08);
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Price calculator */
.calc-widget {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

.calc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.calc-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.calc-option:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.calc-option.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: var(--white);
}

.calc-result {
  display: none;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.calc-result.visible {
  display: block;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.calc-result-row.calc-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 1.15rem;
  color: var(--blue-dark);
  font-weight: 700;
}

.calc-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--orange-dark);
}

.calc-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 20px;
}

/* Request CTA cards */
.request-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.request-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  font-family: inherit;
  display: block;
}

.request-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.request-card .icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(10, 47, 79, 0.25);
}

.request-card .icon-badge .i {
  width: 30px;
  height: 30px;
}

.request-card h3 {
  color: var(--blue-dark);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.request-card p {
  color: var(--text-light);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

/* Request modal */
.request-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.request-modal-overlay.open {
  display: flex;
}

.request-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}

.request-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
}

.request-modal-close .i {
  width: 20px;
  height: 20px;
}

.request-modal h3 {
  color: var(--blue-dark);
  font-size: 1.3rem;
  margin-bottom: 18px;
  padding-right: 24px;
}

.request-field {
  margin-bottom: 14px;
}

.request-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.request-field input,
.request-field select,
.request-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.request-field input:focus,
.request-field select:focus,
.request-field textarea:focus {
  border-color: var(--blue);
}

.request-feedback {
  font-size: 0.88rem;
  margin-bottom: 12px;
  min-height: 1.2em;
}

.request-feedback.success {
  color: var(--blue-dark);
  font-weight: 600;
}

.request-feedback.error {
  color: var(--orange-dark);
  font-weight: 600;
}

/* Chatbot widget */
.chatbot-toggle {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 210;
  transition: transform 0.2s;
}

.chatbot-toggle .i {
  width: 26px;
  height: 26px;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
}

.chatbot-toggle.active {
  background: var(--blue-dark);
}

.chatbot-panel {
  position: fixed;
  bottom: 166px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 490px;
  max-height: 70vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 220;
}

.chatbot-panel.open {
  display: flex;
}

.chatbot-header {
  background: var(--brand-gradient);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-avatar .i {
  width: 19px;
  height: 19px;
}

.chatbot-header-info strong {
  display: block;
  font-size: 0.95rem;
}

.chatbot-header-info span {
  display: block;
  font-size: 0.75rem;
  color: #cfe1ee;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
}

.chatbot-close .i {
  width: 18px;
  height: 18px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.chat-bubble {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent-gradient);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chatbot-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: var(--blue);
}

.chatbot-input:disabled {
  background: var(--bg);
  color: var(--text-light);
}

.chatbot-send {
  background: var(--brand-gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.chatbot-send .i {
  width: 17px;
  height: 17px;
}

.chatbot-send:hover {
  transform: scale(1.06);
}

.chatbot-send:disabled {
  background: var(--border);
  cursor: default;
  transform: none;
}

.chat-typing {
  color: var(--text-light);
  font-style: italic;
}

.chat-appointment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.85rem;
  align-self: stretch;
}

.chat-appointment-card strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.chat-appointment-details div {
  color: var(--text-light);
  margin-bottom: 4px;
}

.chat-appointment-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: #25d366;
  color: var(--white);
  padding: 9px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .chatbot-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 156px;
  }
  .chatbot-toggle {
    right: 16px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  nav.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 26px;
    gap: 18px;
    box-shadow: var(--shadow);
    display: none;
  }
  nav.nav-links.open {
    display: flex;
  }
  .nav-cta {
    align-self: flex-start;
  }
  .topbar-info span:nth-child(3) {
    display: none;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .grid-3,
  .grid-4,
  .grid-2,
  .request-grid {
    grid-template-columns: 1fr;
  }
  .cert-list {
    grid-template-columns: 1fr 1fr;
  }
  .about-block {
    flex-direction: column;
  }
  .timeline-stats {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* Privacy e informative */
.privacy-note{font-size:.76rem;line-height:1.4;color:#667085;margin:10px 0 0}
.privacy-note a,.footer-privacy,.privacy-page a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.chatbot-panel .chatbot-privacy{font-size:11px;line-height:1.35;padding:7px 14px;margin:0;color:#667085;background:#fff;border-top:1px solid #e8edf3}
.request-privacy{margin:12px 0}
.footer-privacy{margin-left:12px}
.privacy-page{background:#f7f9fc}
.privacy-container{max-width:900px;background:#fff;border-radius:18px;padding:46px;margin-top:28px;margin-bottom:28px;box-shadow:0 8px 30px rgba(16,42,67,.08)}
.privacy-container h1{margin:8px 0 6px}
.privacy-container h2{font-size:1.35rem;margin:30px 0 10px;color:var(--blue-dark)}
.privacy-container p,.privacy-container li{line-height:1.75;color:#46566b}
.privacy-container ul{padding-left:22px}
.privacy-updated{font-size:.9rem;color:#758296!important}
.privacy-consent a{color:var(--blue);text-decoration:underline}
@media(max-width:700px){.privacy-container{padding:26px 20px;border-radius:12px}.footer-privacy{display:inline-block;margin:8px 0 0}}