/* ==========================================================================
   ZITOFISIO — Dott. Alessandro Zito · versione finale
   Palette: Coastal Midnight (#447794 #2D5B75 #123249 #061222)
            + salvia e greige del logo. Font: Cormorant Garamond + Source Sans 3.
   ========================================================================== */

:root {
  --bg: #FAF8F4;            /* bianco caldo */
  --bg-alt: #F1EDE5;        /* greige chiarissimo */
  --card: #FFFFFF;
  --navy-950: #061222;      /* midnight */
  --navy-800: #123249;
  --blue-600: #2D5B75;
  --blue-400: #447794;
  --sage: #74846D;          /* verde salvia del logo */
  --sage-light: #A9B5A1;
  --greige: #D8D3C7;        /* greige del logo */
  --ink: #14202E;           /* testo su chiaro */
  --ink-soft: #45566B;
  --gold: #C9A227;          /* stelle */
  --line: rgba(18, 50, 73, .14);
  --line-light: rgba(250, 248, 244, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --r: 20px;
  --shadow: 0 24px 60px -28px rgba(6, 18, 34, .35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* l'attributo hidden vince SEMPRE, anche su elementi con display dichiarato
   (fix: il banner cookie restava visibile dopo il click) */
[hidden] { display: none !important; }

::selection { background: var(--blue-600); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: var(--greige) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--greige); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* barra di avanzamento lettura */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.wrap--narrow { max-width: 860px; }

/* ---------- accessibilità ---------- */

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- tipografia ---------- */

.eyebrow {
  font-size: clamp(12px, 1.1vw, 13px);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 16px;
}
.eyebrow--sage { color: var(--sage-light); }

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--navy-800);
}
.h2 em, .hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--blue-600);
}
.section--dark .h2 { color: var(--bg); }
.section--dark .h2 em { color: var(--sage-light); }

.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-soft); max-width: 58ch; margin-top: 22px; }
.lead--center { margin-inline: auto; text-align: center; }
.lead--light { color: rgba(250, 248, 244, .75); }

/* ---------- bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 14px 30px -14px rgba(45, 91, 117, .7); }
.btn--primary:hover { background: var(--navy-800); }

.btn--light { background: var(--bg); color: var(--navy-800); box-shadow: 0 14px 30px -14px rgba(6, 18, 34, .5); }
.btn--light:hover { background: #fff; }

.btn--outline { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1.5px rgba(250, 248, 244, .4); }
.btn--outline:hover { background: rgba(250, 248, 244, .1); box-shadow: inset 0 0 0 1.5px rgba(250, 248, 244, .7); }

.btn--outline-dark { background: transparent; color: var(--navy-800); box-shadow: inset 0 0 0 1.5px rgba(18, 50, 73, .35); }
.btn--outline-dark:hover { background: rgba(18, 50, 73, .06); box-shadow: inset 0 0 0 1.5px var(--blue-600); }

.btn--ghost-s { background: transparent; color: var(--ink-soft); text-decoration: underline; box-shadow: none; }

.btn--s { min-height: 44px; padding: 9px 20px; font-size: 15px; }
.btn--xl { min-height: 56px; padding: 15px 40px; font-size: 17px; font-weight: 600; }

/* ---------- header ---------- */

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s ease, box-shadow .3s ease; }
.header.is-scrolled { background: rgba(6, 18, 34, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-light); }

.header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; }
.brand__word { font-size: 22px; letter-spacing: .04em; font-weight: 400; color: var(--greige); }
.brand__word b { font-weight: 600; color: var(--sage-light); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(250, 248, 244, .78);
  position: relative;
  padding: 12px 2px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--sage-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after { transform: scaleX(1); }

.burger { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(68, 119, 148, .35), transparent 70%),
    radial-gradient(700px 480px at -10% 110%, rgba(116, 132, 109, .28), transparent 70%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--bg);
  padding: clamp(120px, 15vh, 170px) 0 clamp(60px, 9vh, 110px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05;
}

.hero__rating {
  position: absolute;
  top: 92px; right: clamp(20px, 4vw, 44px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(250, 248, 244, .85);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(250, 248, 244, .08);
  box-shadow: inset 0 0 0 1px var(--line-light);
  transition: background .25s ease;
}
.hero__rating:hover { background: rgba(250, 248, 244, .15); }
.hero__rating strong { color: #fff; }

.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.stars--lg { font-size: 22px; letter-spacing: 3px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  position: relative;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.hero__title em { color: var(--sage-light); }

.hero__sub { margin-top: 26px; font-size: clamp(16px, 1.5vw, 18px); color: rgba(250, 248, 244, .78); max-width: 52ch; }
.hero__sub strong { color: #fff; font-weight: 600; }

.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__proof {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: rgba(250, 248, 244, .62);
}
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-light); }

/* ---------- foto e placeholder ---------- */

.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background:
    radial-gradient(circle at 30% 20%, rgba(68, 119, 148, .25), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(116, 132, 109, .3), transparent 60%),
    var(--navy-800);
  box-shadow: var(--shadow);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

.ph.ph--empty img { display: none; }
.ph.ph--empty::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='130'%3E%3Cg stroke-linecap='round' opacity='.25'%3E%3Cline x1='24' y1='34' x2='48' y2='26' stroke='%23D8D3C7' stroke-width='9'/%3E%3Cline x1='56' y1='18' x2='82' y2='24' stroke='%23A9B5A1' stroke-width='9'/%3E%3Cline x1='32' y1='56' x2='52' y2='50' stroke='%23D8D3C7' stroke-width='9'/%3E%3Cline x1='58' y1='46' x2='82' y2='52' stroke='%23A9B5A1' stroke-width='9'/%3E%3Cline x1='26' y1='76' x2='48' y2='72' stroke='%23D8D3C7' stroke-width='9'/%3E%3Ccircle cx='60' cy='80' r='8' fill='%23A9B5A1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.ph.ph--empty::after {
  content: attr(data-label);
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--greige);
  background: rgba(6, 18, 34, .6);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph--portrait { aspect-ratio: 4 / 5; border-radius: 190px 190px var(--r) var(--r); }

.hero__visual { position: relative; }
.hero__badge {
  position: absolute;
  left: -22px; bottom: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 22px 14px 16px;
  border-radius: 17px;
  background: rgba(250, 248, 244, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-light), 0 20px 40px -18px rgba(6, 18, 34, .6);
}
.hero__badge img { width: 32px; height: 32px; }
.hero__badge p { font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.35; }
.hero__badge p span { display: block; font-weight: 400; font-size: 12.5px; color: rgba(250, 248, 244, .7); }

.float { animation: float 5.5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.ph--tall { aspect-ratio: 3 / 4; }

/* ---------- sezioni ---------- */

.section { padding: clamp(72px, 11vh, 130px) 0; }
.section--tinted { background: var(--bg-alt); }
.section--dark {
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(68, 119, 148, .3), transparent 70%),
    linear-gradient(165deg, var(--navy-950), var(--navy-800));
  color: var(--bg);
}
.section__head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 6vh, 64px); }
.section__head .eyebrow::after {
  content: "";
  display: block;
  width: 46px; height: 3px;
  border-radius: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--sage), var(--blue-400));
}

/* ---------- chi sono ---------- */

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }

.timeline { list-style: none; margin-top: 34px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--greige), var(--sage));
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 20px 38px; display: flex; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-600);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline__dot--sage { background: var(--sage); }
.timeline strong { font-size: 16.5px; font-weight: 600; color: var(--navy-800); }
.timeline p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- trattamenti ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r);
  padding: 30px 28px 26px;
  box-shadow: 0 1px 0 var(--line), 0 14px 34px -28px rgba(6, 18, 34, .4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 var(--line), 0 28px 48px -26px rgba(6, 18, 34, .45);
}

.card__ico {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--sage);
  background: color-mix(in srgb, var(--sage) 12%, white);
  margin-bottom: 18px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.card:hover .card__ico {
  transform: translateY(-3px);
  background: var(--sage);
  color: #fff;
}
.card__ico svg { width: 27px; height: 27px; }

.card h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--navy-800); margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); flex: 1; }

.card__cta {
  margin-top: 18px;
  align-self: flex-start;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.card__cta:hover { color: var(--navy-800); border-color: var(--navy-800); }
.card__cta span { display: inline-block; transition: transform .2s ease; }
.card__cta:hover span { transform: translateX(4px); }

/* ---------- prezzo ---------- */

.price {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: var(--bg);
  border-radius: calc(var(--r) + 6px);
  padding: clamp(26px, 4vw, 40px) clamp(26px, 4vw, 48px);
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.price::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 85% 15%, rgba(68, 119, 148, .3), transparent 70%),
    radial-gradient(320px 220px at 8% 90%, rgba(116, 132, 109, .22), transparent 70%);
  pointer-events: none;
}
.price > * { position: relative; }
.price__tag { font-family: var(--serif); display: flex; align-items: baseline; line-height: 1; color: var(--sage-light); }
.price__tag span { font-size: clamp(58px, 7vw, 84px); font-weight: 600; }
.price__tag i { font-style: normal; font-size: clamp(26px, 3vw, 36px); margin-left: 6px; }
.price__txt { flex: 1; min-width: 250px; }
.price__txt h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.price__txt p { font-size: 15px; color: rgba(250, 248, 244, .72); }

/* ---------- recensioni ---------- */

.rating-summary {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rating-summary__num { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; color: var(--navy-800); }
.rating-summary__count { font-size: 15px; color: var(--ink-soft); }
.rating-summary__count a { color: var(--blue-600); font-weight: 600; }

.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 6px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--greige) transparent;
}
.review {
  flex: 0 0 min(400px, 86%);
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--r);
  padding: 30px 28px;
  box-shadow: 0 1px 0 var(--line), 0 14px 34px -28px rgba(6, 18, 34, .4);
  position: relative;
}
.review::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 74px;
  line-height: 1;
  color: var(--greige);
  position: absolute;
  top: 14px; right: 24px;
}
.review__stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--sage);
  background: color-mix(in srgb, var(--sage) 12%, white);
  padding: 4px 11px;
  border-radius: 999px;
}
.review__verified svg { width: 12px; height: 12px; }
.review__text { font-size: 16px; color: var(--ink); font-style: italic; }
.review__meta { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.review__meta strong { color: var(--navy-800); }

.carousel__controls { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.carousel__btn {
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--navy-800);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease;
}
.carousel__btn:hover { box-shadow: inset 0 0 0 1.5px var(--blue-600); }
.carousel__btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.carousel__btn svg { width: 20px; height: 20px; }

/* ---------- galleria studio ---------- */

.section--gallery { padding-top: 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 92px;
  gap: 18px;
}
.gallery .ph { border-radius: var(--r); }
.gallery .ph img { transition: transform .6s cubic-bezier(.22, .8, .3, 1); }
.gallery .ph:hover img { transform: scale(1.045); }
.gallery__a { grid-column: 1 / 8; grid-row: span 5; }
.gallery__b { grid-column: 8 / 13; grid-row: span 3; }
.gallery__c { grid-column: 8 / 13; grid-row: span 2; }

@media (max-width: 980px) {
  .gallery { grid-auto-rows: 70px; }
  .gallery__a { grid-column: 1 / 13; grid-row: span 5; }
  .gallery__b { grid-column: 1 / 7; grid-row: span 3; }
  .gallery__c { grid-column: 7 / 13; grid-row: span 3; }
}

/* ---------- dove ricevo ---------- */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }

.contact__list { list-style: none; margin-top: 34px; display: grid; gap: 24px; }
.contact__list li { display: flex; gap: 18px; align-items: flex-start; }
.contact__ico {
  flex: none;
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--blue-600);
}
.contact__ico svg { width: 23px; height: 23px; }
.contact__list strong { font-size: 16.5px; font-weight: 600; color: var(--navy-800); }
.contact__list strong a { text-decoration: none; }
.contact__list strong a:hover { color: var(--blue-600); }
.contact__list p { font-size: 14.5px; color: var(--ink-soft); }

.contact__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.contact__map {
  border-radius: calc(var(--r) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.2;
  background: var(--bg-alt);
}
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

.map-consent {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 34px;
  background:
    radial-gradient(circle at 30% 25%, rgba(68, 119, 148, .12), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(116, 132, 109, .14), transparent 60%),
    var(--card);
}
.map-consent svg { width: 44px; height: 44px; color: var(--greige); }
.map-consent p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- prenotazione ---------- */

.booking {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.booking__direct { text-align: center; }
.booking__alt { margin-top: 20px; font-size: 16px; color: rgba(250, 248, 244, .75); }
.booking__alt a { color: #fff; font-weight: 600; text-decoration-color: var(--sage-light); text-underline-offset: 3px; }

.form {
  background: var(--card);
  color: var(--ink);
  border-radius: calc(var(--r) + 6px);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.form__title { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--navy-800); margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { margin-bottom: 16px; }
.form__field label { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.form__field input:not([type="checkbox"]), .form__field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;              /* niente auto-zoom iOS */
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form__field input:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(45, 91, 117, .15);
}
.form__field input.is-invalid, .form__field textarea.is-invalid { border-color: #B3372E; }
.form__field textarea { resize: vertical; min-height: 110px; }

.form__field--check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; }
.form__field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-600); flex: none; }
.form__field--check label { font-weight: 400; font-size: 14px; color: var(--ink-soft); margin: 0; }
.form__field--check a { color: var(--blue-600); font-weight: 600; }

.form__error {
  background: #FBEDEB;
  color: #7C2820;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  margin-bottom: 16px;
}
.form__note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 1px 0 var(--line);
  overflow: hidden;
}
.faq__item h3 { font-size: inherit; font-weight: inherit; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-800);
  background: none;
  border: 0;
  padding: 20px 24px;
  min-height: 48px;
  cursor: pointer;
}
.faq__chevron {
  flex: none;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--blue-600);
  border-bottom: 2.5px solid var(--blue-600);
  transform: rotate(45deg);
  transition: transform .3s ease;
  margin-top: -4px;
}
.faq__q[aria-expanded="true"] .faq__chevron { transform: rotate(-135deg); margin-top: 6px; }
.faq__a { padding: 0 24px 22px; }
.faq__a p { font-size: 15.5px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- disclaimer ---------- */

.disclaimer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 26px 0; }
.disclaimer p { font-size: 13.5px; color: var(--ink-soft); max-width: 90ch; }
.disclaimer strong { color: var(--navy-800); }

/* ---------- footer ---------- */

.footer { background: var(--navy-950); color: var(--greige); padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 44px;
}
.footer__brand p { font-size: 14.5px; margin-top: 14px; line-height: 1.6; }
.footer__brand a { color: var(--sage-light); }
.footer h4 {
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, .5);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer__nav { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer__nav a, .footer__cookie-btn {
  color: var(--greige);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  min-height: 34px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
}
.footer__nav a:hover, .footer__cookie-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact p { font-size: 14.5px; line-height: 1.6; margin-bottom: 10px; }
.footer__contact a { color: var(--sage-light); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid var(--line-light); padding-top: 22px; padding-bottom: 26px; }
.footer__legal p { font-size: 13px; color: rgba(216, 211, 199, .65); }

/* ---------- cookie banner ---------- */

.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 300;
  display: flex;
  justify-content: center;
}
.cookie__box {
  max-width: 680px;
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r);
  padding: 26px 28px;
  box-shadow: 0 30px 70px -20px rgba(6, 18, 34, .55), 0 0 0 1px var(--line);
}
.cookie__title { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--navy-800); margin-bottom: 8px; }
.cookie__box > p { font-size: 14.5px; color: var(--ink-soft); }
.cookie__box a { color: var(--blue-600); font-weight: 600; }
.cookie__custom { margin-top: 16px; display: grid; gap: 10px; }
.cookie__toggle { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.cookie__toggle input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.cookie__toggle--locked { color: var(--ink-soft); }
.cookie__actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- pagine legali ---------- */

.legal-page { background: var(--bg); }
.legal { max-width: 780px; margin: 0 auto; padding: clamp(130px, 16vh, 170px) clamp(20px, 4vw, 44px) 90px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.5vw, 50px); color: var(--navy-800); line-height: 1.1; margin-bottom: 10px; }
.legal .legal__updated { font-size: 14px; color: var(--ink-soft); margin-bottom: 36px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--navy-800); margin: 36px 0 10px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-soft); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue-600); }
.legal strong { color: var(--navy-800); }
.legal .legal__back { display: inline-block; margin-top: 44px; font-weight: 600; text-decoration: none; }
.legal .legal__back:hover { text-decoration: underline; }

/* ---------- pagina grazie ---------- */

.thanks {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background:
    radial-gradient(800px 500px at 85% 0%, rgba(68, 119, 148, .3), transparent 70%),
    linear-gradient(165deg, var(--navy-950), var(--navy-800));
  color: var(--bg);
}
.thanks h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; }
.thanks h1 em { font-style: italic; color: var(--sage-light); }
.thanks p { margin: 20px auto 34px; max-width: 46ch; color: rgba(250, 248, 244, .78); font-size: 17px; }

/* ---------- animazioni ---------- */

.rise { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.22, .8, .3, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* il reveal parte nascosto solo se il JS è attivo */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22, .8, .3, 1), transform .8s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .rise, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  html { scroll-behavior: auto; }
  .carousel__track { scroll-behavior: auto; }
  .float { animation: none; }
  .gallery .ph img, .card__ico, .card__cta span { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin: 16px auto 0; width: 100%; }
  .hero__badge { left: 10px; bottom: 18px; padding: 11px 17px 11px 13px; }
  .hero__rating { position: static; margin: 0 auto 26px; display: flex; width: fit-content; }
  .hero { padding-top: clamp(100px, 13vh, 140px); }
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 440px; }
  .contact { grid-template-columns: 1fr; }
  .contact__map { aspect-ratio: 16 / 10; }
  .booking { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav, .header__cta { display: none; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 13px;
    background: rgba(250, 248, 244, .1);
    box-shadow: inset 0 0 0 1px var(--line-light);
    cursor: pointer;
  }
  .burger span { width: 20px; height: 2px; background: var(--bg); border-radius: 2px; transition: transform .3s ease; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: 74px; left: 16px; right: 16px;
    flex-direction: column;
    gap: 2px;
    background: var(--navy-950);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: var(--shadow), inset 0 0 0 1px var(--line-light);
  }
  .nav.is-open a { padding: 13px 14px; font-size: 17px; border-radius: 12px; min-height: 48px; display: flex; align-items: center; }
  .nav.is-open a:hover { background: rgba(250, 248, 244, .08); }
  .nav.is-open a::after { content: none; }

  .cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .price { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; }
  .cookie__actions .btn { flex: 1 1 auto; }
}
