/* ============================================================
   ECOGRAFIE QUALIANO — DESIGN SYSTEM
   Aesthetic: Editorial medico raffinato
   Fonts: Fraunces (display) + Manrope (body)
   ============================================================ */

:root {
  /* Palette principale — Medical Italiano, ispirata al logo verde+blu */
  --navy:       #1B5A8E;   /* blu medical brillante (primario) */
  --navy-deep:  #114269;   /* blu profondo per scuri */
  --teal:       #4CAF50;   /* verde medical (accento, dal logo) */
  --teal-soft:  #A8D5AA;   /* verde tenue */
  --cream:      #FFFFFF;   /* bianco puro */
  --cream-deep: #F0F6FA;   /* azzurro pulitissimo per sezioni alternate */
  --white:      #FFFFFF;
  --beige:      #DCE6EE;   /* bordi azzurrini */
  --ink:        #1F2937;   /* testo principale */
  --muted:      #5B6776;
  --whatsapp:   #25D366;
  --whatsapp-dark: #128C7E;

  /* Typography */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem;
  --s-4: 1rem;    --s-5: 1.5rem; --s-6: 2rem;
  --s-7: 3rem;    --s-8: 4rem;   --s-9: 6rem;  --s-10: 8rem;

  --radius-sm: 6px; --radius: 12px; --radius-lg: 20px; --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(14, 42, 71, 0.08);
  --shadow:    0 8px 30px rgba(14, 42, 71, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 42, 71, 0.18);

  --container: 1180px;
  --container-narrow: 820px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ============ TYPOGRAPHY ============ */
.serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--ink); }
em { color: var(--teal); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--teal); display: inline-block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn svg { width: 18px; height: 18px; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--s-4) 0;
  transition: all .3s ease;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--beige); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.logo { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.logo small { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.nav-menu { display: flex; align-items: center; gap: var(--s-6); list-style: none; }
.nav-menu a { font-size: 0.95rem; font-weight: 500; color: var(--ink); position: relative; }
.nav-menu a::after { content: ""; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--teal); transition: width .25s ease; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-cta { display: flex; gap: var(--s-3); align-items: center; }
.nav-cta .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: all .25s; }

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: var(--s-5); gap: var(--s-4);
    border-top: 1px solid var(--beige); box-shadow: var(--shadow);
  }
}

/* ============ PAGE HEADER (per pagine interne) ============ */
.page-hero {
  padding: 9rem 0 var(--s-8);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 168, 160, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { max-width: 780px; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-top: var(--s-5); }

.breadcrumb { display: flex; gap: var(--s-2); font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s-5); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--navy); }

/* ============ HERO HOMEPAGE ============ */
.hero {
  padding: 9rem 0 var(--s-9);
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.hero::before {
  content: ""; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 168, 160, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-8); align-items: center; }
.hero h1 { margin-bottom: var(--s-5); }
.hero-lead { font-size: 1.15rem; color: var(--muted); margin-bottom: var(--s-6); max-width: 540px; }
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-7); }
.hero-meta {
  display: flex; gap: var(--s-6); flex-wrap: wrap;
  padding-top: var(--s-5); border-top: 1px solid var(--beige);
  font-size: 0.88rem; color: var(--muted);
}
.hero-meta strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin-bottom: 2px; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  object-position: center 20%; /* favorisce il volto, non i piedi */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.float-card {
  position: absolute; background: var(--white);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: var(--s-3);
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
}
.float-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
.float-card.tl { top: 20%; left: -30px; }
.float-card.br { bottom: 8%; right: -20px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 168, 160, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(31, 168, 160, 0); }
}

@media (max-width: 800px) {
  .hero { padding: 7rem 0 var(--s-8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-visual { order: -1; }
  .hero-visual img { aspect-ratio: 4/3; }
  .float-card.tl { left: 10px; }
  .float-card.br { right: 10px; }
  .page-hero { padding: 7rem 0 var(--s-7); }
}

/* ============ TRUST STRIP ============ */
.trust { background: var(--navy); color: var(--cream); padding: var(--s-7) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.trust-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.trust-item svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--teal-soft); }
.trust-item h4 { color: var(--cream); margin-bottom: var(--s-1); font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.trust-item p { font-size: 0.86rem; color: rgba(250, 246, 240, 0.7); line-height: 1.5; }

@media (max-width: 800px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ============ SECTIONS BASE ============ */
section { padding: var(--s-10) 0; }
.section-head { max-width: 720px; margin: 0 auto var(--s-8); text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); margin-top: var(--s-4); }
.section-head.left { text-align: left; margin: 0 0 var(--s-8); }

@media (max-width: 800px) { section { padding: var(--s-9) 0; } }

/* ============ SERVIZI GRID ============ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }

/* Variante "centered" per la homepage (7 card → 4+3 con seconda riga centrata) */
.services-grid--centered {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: var(--s-4);
}
.services-grid--centered .service-card {
  flex: 1 1 calc(25% - var(--s-3));
  max-width: calc(25% - var(--s-3));
}

.service-card {
  background: var(--white); padding: var(--s-6) var(--s-5);
  border-radius: var(--radius); border: 1px solid var(--beige);
  transition: all .3s ease;
  display: flex; flex-direction: column; gap: var(--s-3);
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-soft); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cream-deep), var(--cream));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); margin-bottom: var(--s-2);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.service-card .arrow {
  margin-top: auto; padding-top: var(--s-3); font-size: 0.85rem; font-weight: 600;
  color: var(--teal); display: flex; align-items: center; gap: var(--s-2);
  transition: gap .25s;
}
.service-card:hover .arrow { gap: var(--s-3); }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid--centered .service-card {
    flex-basis: calc(50% - var(--s-3));
    max-width: calc(50% - var(--s-3));
  }
}
@media (max-width: 500px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid--centered .service-card {
    flex-basis: 100%; max-width: 100%;
  }
}

/* ============ WHY ============ */
.why { background: var(--cream-deep); }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: center; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-5); }
.why-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.why-num {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--teal);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1.5px solid var(--teal-soft);
}
.why-list h4 { color: var(--navy); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: var(--s-1); }
.why-list p { color: var(--muted); font-size: 0.96rem; }
.why-image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s-8); align-items: start; }
.about-photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.about-content > p { margin-bottom: var(--s-4); }
.credentials {
  margin-top: var(--s-6); padding-top: var(--s-6);
  border-top: 1px solid var(--beige);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5);
}
.cred h4 { color: var(--teal); font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--s-2); }
.cred p { font-family: var(--font-display); font-size: 1.02rem; color: var(--navy); line-height: 1.4; }
.cred .small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; aspect-ratio: 4/5; }
}

/* ============ TIMELINE (Chi sono) ============ */
.timeline { position: relative; padding-left: var(--s-7); }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--beige); }
.timeline-item { position: relative; padding-bottom: var(--s-7); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--teal);
}
.timeline-year {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); margin-bottom: var(--s-2);
}
.timeline-item h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: var(--s-1); }
.timeline-item p { color: var(--muted); font-size: 0.95rem; }

/* ============ AREA ============ */
.area { background: var(--navy); color: var(--cream); }
.area h2 { color: var(--cream); }
.area .eyebrow { color: var(--teal-soft); }
.area .eyebrow::before { background: var(--teal-soft); }
.area-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-8); align-items: center; }
.area-content p { color: rgba(250, 246, 240, 0.8); font-size: 1.05rem; margin-bottom: var(--s-5); }
.cities { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.city-tag { padding: 0.4rem 1rem; border: 1px solid rgba(250, 246, 240, 0.25); border-radius: 100px; font-size: 0.86rem; color: var(--cream); }
.area-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); height: 380px; }
.area-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }

@media (max-width: 800px) { .area-grid { grid-template-columns: 1fr; } }

/* ============ LE NOSTRE SEDI ============ */
.locations-intro { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.area .locations-intro p,
.area .section-head p { color: var(--cream); opacity: 0.92; }
.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-bottom: var(--s-7); }
.location-card {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.location-card__badge {
  position: absolute; top: -12px; left: var(--s-5);
  padding: 0.3rem 0.85rem;
  background: var(--cream); color: var(--navy-deep);
  border: 1px solid var(--cream);
  border-radius: 100px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.location-card--secondary .location-card__badge { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.location-card__title { font-family: var(--font-display); font-size: 1.55rem; color: var(--navy-deep); margin: 0 0 var(--s-3); line-height: 1.2; }
.location-card__subtitle { color: var(--muted); font-size: 0.93rem; margin: 0 0 var(--s-5); font-style: italic; }
.location-card__details { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.location-card__details li { display: flex; align-items: flex-start; gap: var(--s-3); color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.location-card__details svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--navy); margin-top: 2px; }
.location-card__details a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--muted); transition: color .15s; }
.location-card__details a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.location-card__cta { display: flex; gap: var(--s-3); margin-top: auto; flex-wrap: wrap; }
.location-card__cta .btn { flex: 1; min-width: 140px; }
.location-card__note { font-size: 0.82rem; color: var(--muted); margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--beige); line-height: 1.45; }

@media (max-width: 880px) {
  .locations-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ============ RESEARCH ============ */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.research-card { padding: var(--s-6); border-radius: var(--radius); background: var(--white); border: 1px solid var(--beige); transition: all .3s ease; }
.research-card:hover { border-color: var(--teal-soft); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.research-card .badge { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: var(--s-3); }
.research-card h4 { font-family: var(--font-display); font-size: 1.08rem; color: var(--navy); margin-bottom: var(--s-2); line-height: 1.3; font-weight: 600; }
.research-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 800px) { .research-grid { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--beige); padding: var(--s-5) 0; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  cursor: pointer; list-style: none;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500; color: var(--navy);
  padding: var(--s-2) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--teal);
  font-family: var(--font-body); font-weight: 300;
  transition: transform .25s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-top: var(--s-4); color: var(--muted); font-size: 0.98rem; line-height: 1.65; }
.faq-item ul { padding-top: var(--s-4); padding-left: var(--s-5); color: var(--muted); }
.faq-item li { margin-bottom: var(--s-2); }

/* ============ CONTATTI ============ */
.contact { background: var(--cream-deep); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); }
.contact-info h3 { font-family: var(--font-display); margin-bottom: var(--s-5); }
.contact-info > p { color: var(--muted); margin-bottom: var(--s-6); font-size: 1.02rem; }
.contact-detail {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--beige);
}
.contact-detail:last-of-type { border-bottom: none; }
.contact-detail svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }
.contact-detail h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-family: var(--font-display); font-size: 1.08rem; color: var(--navy); }
.contact-detail a:hover { color: var(--teal); }

/* Form */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: var(--s-7); box-shadow: var(--shadow); border: 1px solid var(--beige); }
.form-card h3 { font-family: var(--font-display); margin-bottom: var(--s-5); font-size: 1.5rem; }
.field { margin-bottom: var(--s-4); }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--navy); margin-bottom: var(--s-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--beige); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.95rem;
  background: var(--cream); color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.consent {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4); background: var(--cream); border-radius: var(--radius-sm);
  font-size: 0.83rem; color: var(--muted); line-height: 1.5;
  margin-bottom: var(--s-5);
}
.consent input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--teal); }
.consent a { color: var(--navy); text-decoration: underline; font-weight: 500; }

.form-submit { width: 100%; justify-content: center; }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: var(--s-3); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

/* ============ SERVIZIO PAGE ============ */
.service-hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-8); align-items: center;
}
.service-hero .badge {
  display: inline-block; padding: 0.4rem 1rem;
  background: rgba(31, 168, 160, 0.12); color: var(--teal);
  border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: var(--s-4);
}
.service-hero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

@media (max-width: 800px) { .service-hero { grid-template-columns: 1fr; } }

.service-content {
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-8);
  align-items: start;
}
.service-body h2 { font-size: 2rem; margin-bottom: var(--s-5); margin-top: var(--s-7); }
.service-body h2:first-child { margin-top: 0; }
.service-body p { margin-bottom: var(--s-4); color: var(--ink); font-size: 1.02rem; }
.service-body ul { padding-left: var(--s-5); margin-bottom: var(--s-5); }
.service-body li { margin-bottom: var(--s-2); color: var(--ink); }
.service-body strong { color: var(--navy); font-weight: 600; }

.service-aside {
  position: sticky; top: 100px;
  padding: var(--s-6);
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  border: 1px solid var(--beige);
}
.service-aside h3 { font-size: 1.3rem; margin-bottom: var(--s-4); }
.aside-block { padding: var(--s-3) 0; border-bottom: 1px solid var(--beige); }
.aside-block:last-child { border-bottom: none; }
.aside-block h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
.aside-block p { font-family: var(--font-display); color: var(--navy); font-size: 1rem; margin: 0; }
.service-aside .btn { width: 100%; justify-content: center; margin-top: var(--s-4); }

@media (max-width: 900px) {
  .service-content { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

/* Box informativi */
.info-box {
  padding: var(--s-5);
  background: var(--cream-deep);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  margin: var(--s-5) 0;
}
.info-box h4 { font-family: var(--font-display); color: var(--navy); margin-bottom: var(--s-2); font-size: 1.1rem; }
.info-box p { margin: 0; font-size: 0.96rem; color: var(--muted); }
.info-box.warn { background: #FDF6E8; border-left-color: #D4A93D; }

/* CTA section */
.cta-band {
  background: var(--navy);
  padding: var(--s-9) 0;
  color: var(--cream);
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: var(--s-4); }
.cta-band em { color: var(--teal-soft); }
.cta-band p { color: rgba(250, 246, 240, 0.8); max-width: 580px; margin: 0 auto var(--s-6); font-size: 1.08rem; }
.cta-band .btn-whatsapp { background: var(--whatsapp); color: var(--white); }

/* ============ PROSE (privacy/cookie pages) ============ */
.prose { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.prose h2 { font-size: 1.7rem; margin-top: var(--s-7); margin-bottom: var(--s-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: var(--s-5); margin-bottom: var(--s-3); }
.prose p { margin-bottom: var(--s-4); color: var(--ink); }
.prose ul, .prose ol { padding-left: var(--s-6); margin-bottom: var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose strong { color: var(--navy); }
.prose .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--s-7); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: 0.92rem; }
.prose th, .prose td { padding: var(--s-3); text-align: left; border-bottom: 1px solid var(--beige); }
.prose th { background: var(--cream-deep); font-weight: 600; color: var(--navy); }

/* ============ FOOTER ============ */
.footer { background: var(--navy-deep); color: var(--cream); padding: var(--s-9) 0 var(--s-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-7); margin-bottom: var(--s-7); }
.footer-brand p { color: rgba(250, 246, 240, 0.65); font-size: 0.92rem; line-height: 1.7; margin-top: var(--s-4); max-width: 360px; }
.footer h5 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-soft); margin-bottom: var(--s-4); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer a, .footer p { color: rgba(250, 246, 240, 0.78); font-size: 0.92rem; }
.footer a:hover { color: var(--teal-soft); }
.footer-bottom {
  padding-top: var(--s-5); border-top: 1px solid rgba(250, 246, 240, 0.12);
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  font-size: 0.78rem; color: rgba(250, 246, 240, 0.55);
}
.compliance-note {
  margin-top: var(--s-4); padding: var(--s-4); background: rgba(250, 246, 240, 0.04);
  border-left: 2px solid var(--teal); border-radius: 4px;
  font-size: 0.78rem; color: rgba(250, 246, 240, 0.6); line-height: 1.6;
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  background: var(--whatsapp); color: var(--white);
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: all .25s ease; text-decoration: none;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp); opacity: .4;
  animation: wa-pulse 2.5s ease-out infinite; z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }
.wa-float svg { width: 32px; height: 32px; }
.wa-label {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--white); color: var(--navy);
  padding: 0.5rem 1rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.wa-float:hover .wa-label { opacity: 1; }
@media (max-width: 600px) { .wa-label { display: none; } }

/* ============ ANIMAZIONI ============ */
.fade-in { opacity: 0; transform: translateY(20px); transition: all .8s cubic-bezier(.4,0,.2,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: .1s; }
.fade-in.delay-2 { transition-delay: .2s; }
.fade-in.delay-3 { transition-delay: .3s; }

/* ============ UTILS ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-6 { margin-top: var(--s-6); }