/* ============================================================
   Elisa Bertello · Osteopata
   Replica dei parametri tecnici del riferimento:
   container 1200px · corpo 17px/29px #3F3430
   H1 hero 54/500 bianco · H1 pagina 46 #332522
   H2 marrone 41 #7B6B62 · H2/H3 teal 36 · H3 teal 20
   sezioni padding 70/30 · surface #F5F5F5
   footer marrone #7B6B62 · bottoni h53 radius 3
   ============================================================ */

:root {
  --teal: oklch(0.71 0.12 188);          /* famiglia #00C3B9, tono proprio */
  --teal-deep: oklch(0.6 0.11 190);
  --brown: oklch(0.55 0.028 55);         /* #7B6B62 titoli H2 e footer */
  --brown-dark: oklch(0.3 0.028 45);     /* #332522 H1 pagine interne */
  --ink: oklch(0.35 0.024 45);           /* #3F3430 corpo */
  --dark: oklch(0.24 0.015 45);          /* topbar */
  --surface: oklch(0.965 0 0);           /* #F5F5F5 */
  --bg: oklch(1 0 0);
  --line: oklch(0.9 0.004 60);

  --font: "Zilla Slab", Georgia, serif;

  --fs-body: 17px;
  --lh-body: 29px;
  --fs-h1-hero: clamp(34px, 24px + 2.4vw, 54px);
  --fs-h1-page: clamp(31px, 24px + 1.8vw, 46px);
  --fs-h2-brown: clamp(28px, 22px + 1.5vw, 41px);
  --fs-h2-teal: clamp(26px, 21px + 1.2vw, 36px);
  --fs-h2-brown-sm: 29px;
  --fs-h3-dark: 23px;
  --fs-h3-teal: 20px;
  --fs-counter: clamp(56px, 40px + 4vw, 90px);

  --container: 1200px;
  --pad-x: clamp(17px, 4vw, 33px);
  --radius: 3px;

  --z-header: 20;
  --z-callbar: 30;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 18px; text-wrap: balance; }
p { margin: 0 0 18px; max-width: 72ch; text-wrap: pretty; }
ul { margin: 0 0 18px; padding-left: 1.2em; }
li { margin-bottom: 6px; }

/* Gerarchia titoli del riferimento */
.h1-hero { font-size: var(--fs-h1-hero); font-weight: 500; color: #fff; }
.h1-page { font-size: var(--fs-h1-page); font-weight: 400; color: var(--brown-dark); }
.h2-brown { font-size: var(--fs-h2-brown); font-weight: 400; color: var(--brown); }
.h2-teal { font-size: var(--fs-h2-teal); font-weight: 400; color: var(--teal); }
.h2-brown-sm { font-size: var(--fs-h2-brown-sm); font-weight: 400; color: var(--brown); }
.h3-dark { font-size: var(--fs-h3-dark); font-weight: 500; color: var(--brown-dark); }
.h3-teal { font-size: var(--fs-h3-teal); font-weight: 400; color: var(--teal); }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

.center { text-align: center; }
.center p { margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal-deep); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Topbar (barra scura sottile) ---------- */
.topbar { background: var(--dark); color: oklch(0.93 0.004 60); font-size: 15px; }
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 4px 26px;
  align-items: center; justify-content: space-between;
  padding-block: 9px;
}
.topbar a { color: var(--teal); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header bianco ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.brand { text-decoration: none; color: var(--brown-dark); line-height: 1.15; }
.brand strong { display: block; font-weight: 600; font-size: 21px; letter-spacing: .02em; }
.brand span { display: block; font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--teal-deep); font-weight: 500; }

.site-nav { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 400; padding-block: 4px; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--teal); }

/* ---------- Bottoni (h 53, radius 3) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 53px;
  padding: 0 28px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font);
  font-size: 17.6px; font-weight: 400;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn--ghost { background: transparent; border: 2px solid #fff; color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .16); border-color: #fff; }

/* ---------- Hero (h ~715, padT 200, padB 60) ---------- */
.hero {
  position: relative;
  min-height: min(715px, 92vh);
  background: var(--brown);
  color: #fff;
  overflow: hidden;
  display: block;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 32%;
  filter: none;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(30 24 20 / .62) 0%, rgb(30 24 20 / .34) 46%, rgb(30 24 20 / .06) 78%);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  min-height: inherit;
  display: grid; align-content: center; justify-items: start;
  text-align: left;
  padding: clamp(90px, 14vh, 170px) var(--pad-x) 90px;
}
.hero h1 {
  margin: 0 0 10px;
  text-align: left;
  text-shadow: 0 2px 24px rgb(0 0 0 / .35);
}
.hero h1 small { display: block; font-size: .55em; font-weight: 400; letter-spacing: .14em; margin-top: 10px; }

.hero-kicker {
  display: flex; align-items: center; gap: 14px;
  color: #fff; font-size: 15px; letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 22px;
}
.hero-kicker::before { content: ""; width: 46px; height: 2px; background: var(--teal); }

.hero-payoff-line {
  font-style: italic; font-size: 21px; color: oklch(0.95 0.01 190);
  margin: 18px 0 8px;
}
.hero-services-line { color: rgb(255 255 255 / .85); font-size: 17px; margin: 0 0 30px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { min-height: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-kicker, .hero h1, .hero-payoff-line, .hero-services-line, .hero-cta-row {
    animation: rise .7s cubic-bezier(.16,1,.3,1) both;
  }
  .hero h1 { animation-delay: .08s; }
  .hero-payoff-line { animation-delay: .16s; }
  .hero-services-line { animation-delay: .22s; }
  .hero-cta-row { animation-delay: .3s; }
  @keyframes rise {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
}

/* ---------- Sezioni (padding riferimento 70/30) ---------- */
.section { padding-block: 70px 30px; }
.section--tail { padding-bottom: 65px; }
.section--surface { background: var(--surface); }

/* Colonne trattamenti (3 liste) */
.areas { display: grid; gap: clamp(22px, 3vw, 40px); margin-block: 8px 26px; }
@media (min-width: 760px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area h3 { margin-bottom: 8px; }
.area ul { padding-left: 1.1em; }
.area li::marker { color: var(--teal); }

/* CTA interna alla sezione grigia */
.cta-inline { text-align: center; padding-block: 26px 40px; }
.cta-inline h3 { font-size: var(--fs-h2-teal); font-weight: 400; color: var(--teal); margin-bottom: 22px; }

/* ---------- Banda pazienti/recensioni (foto + overlay scuro, testo bianco) ---------- */
.proof-band {
  position: relative;
  color: #fff;
  padding-block: 64px;
  background: var(--brown);
  overflow: hidden;
}
.proof-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--proof-photo);
  background-size: cover; background-position: center;
  filter: saturate(.85);
}
.proof-band::after {
  content: "";
  position: absolute; inset: 0;
  background: rgb(43 33 28 / .78);
}
.proof-band > .container { position: relative; z-index: 1; text-align: center; }
.proof-title { font-size: clamp(24px, 20px + 1vw, 30px); font-weight: 300; color: #fff; margin-bottom: 10px; }
.proof-counter { font-size: var(--fs-counter); font-weight: 400; line-height: 1; color: var(--teal); }
.proof-label { font-size: 18px; color: #fff; margin: 6px auto 34px; }
.proof-label a { color: var(--teal); }

/* Slider recensioni (testo bianco 16px) */
.reviews { position: relative; max-width: 780px; margin-inline: auto; min-height: 150px; }
.review {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease-out;
  font-size: 16px; line-height: 1.7;
  display: grid; align-content: start; gap: 10px;
}
.review.is-active { opacity: 1; position: relative; }
.review blockquote { margin: 0; }
.review footer { font-weight: 600; color: var(--teal); }
.reviews-dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.reviews-dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid #fff; background: transparent; cursor: pointer; padding: 0;
}
.reviews-dots button[aria-current="true"] { background: var(--teal); border-color: var(--teal); }
@media (prefers-reduced-motion: reduce) { .review { transition: none; } }

/* ---------- Blocco professionista ---------- */
.pro-contacts { display: grid; gap: 6px; margin-block: 10px 24px; font-size: 21px; font-weight: 500; }
.pro-contacts a { text-decoration: none; }

/* ---------- Dove siamo (centrato) ---------- */
.where address { font-style: normal; margin-bottom: 14px; }
.where strong { color: var(--brown-dark); }

/* ---------- Form contatti ---------- */
.contact-grid { display: grid; gap: clamp(26px, 4vw, 56px); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
form.contact { display: grid; gap: 14px; }
form.contact label { font-weight: 500; color: var(--brown-dark); display: grid; gap: 6px; font-size: 16px; }
form.contact input, form.contact textarea {
  font-family: var(--font); font-size: 16px; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid oklch(0.82 0.008 60);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
form.contact .privacy { font-size: 14.5px; font-weight: 400; display: flex; gap: 10px; align-items: start; color: var(--ink); }
form.contact .privacy input { width: auto; margin-top: 5px; }

.map-embed { border: 0; width: 100%; height: 420px; display: block; filter: saturate(.7); }

/* ---------- Footer marrone (#7B6B62, testo bianco 16px) ---------- */
.site-footer {
  background: var(--brown);
  color: #fff;
  font-size: 16px;
  margin-top: 70px;
}
.site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / .55); }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; gap: 34px; padding-block: 56px 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid h3 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid p { font-size: 16px; }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / .25);
  padding-block: 16px;
  font-size: 14px;
  color: rgb(255 255 255 / .85);
  display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: space-between;
}

/* ---------- Barra chiama (solo mobile) ---------- */
.callbar { position: fixed; inset: auto 0 0 0; z-index: var(--z-callbar); display: none; grid-template-columns: 1fr 1fr; }
.callbar a { text-align: center; padding: 15px 8px; font-weight: 600; font-size: 16px; color: #fff; text-decoration: none; }
.callbar a:first-child { background: var(--teal-deep); }
.callbar a:last-child { background: var(--dark); }
@media (max-width: 700px) {
  .callbar { display: grid; }
  body { padding-bottom: 54px; }
  .site-footer { margin-bottom: 0; }
}

/* Pagine interne: blocco testo+immagine */
.split { display: grid; gap: clamp(26px, 4vw, 56px); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr .95fr; } }
.split figure { margin: 0; }
.split img { border-radius: var(--radius); filter: none; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split--flip > figure { order: -1; }
@media (max-width: 859px) { .split--flip > figure { order: 0; } }

/* ---------- Cornici fotografiche (template editoriale) ---------- */
.photo-frame { position: relative; margin: 0; }
.photo-frame img {
  border-radius: var(--radius); filter: none;
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  position: relative; z-index: 1;
}
.photo-frame::after {
  content: ""; position: absolute;
  inset: 22px -22px -22px 22px;
  background: var(--teal); opacity: .16;
  border-radius: var(--radius);
}
.photo-frame--flip::after { inset: 22px 22px -22px -22px; }

.areas--photos .area { border-top: 0; padding-top: 0; }
.areas--photos .area img {
  border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover;
  filter: none; margin-bottom: 16px; width: 100%;
}

.where-grid { display: grid; gap: clamp(26px, 4vw, 50px); align-items: center; }
@media (min-width: 880px) { .where-grid { grid-template-columns: .9fr 1.1fr; } }
.where-grid .map-embed { height: 360px; border-radius: var(--radius); }

:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
