/* =========================================================
   Casavacanzefatucchi — Foiano della Chiana (AR)
   Palette toscana: crema, terracotta, verde oliva, oro
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #23201b;
  --ink-soft: #574f45;
  --cream: #f6f1e7;
  --cream-2: #efe6d5;
  --paper: #fbf9f2;
  --terracotta: #ac452c;
  --terracotta-dark: #8d3721;
  --green: #3c4838;
  --green-2: #56603f;
  --gold: #b0812f;
  --gold-soft: #c9a35a;
  --line: rgba(35, 32, 27, .14);
  --line-soft: rgba(35, 32, 27, .08);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1200px;
  --wrap-narrow: 860px;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(35, 32, 27, .35);
  --shadow-lg: 0 40px 90px -40px rgba(35, 32, 27, .5);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: .01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
p { color: var(--ink-soft); }

.overline {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-block;
}
.overline.on-dark { color: var(--gold-soft); }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 3rem, var(--wrap-narrow)); margin-inline: auto; }
section { position: relative; }
.section-pad { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.center { text-align: center; }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-panel { background: var(--cream-2); }
.bg-green { background: var(--green); color: var(--paper); }
.bg-green h1, .bg-green h2, .bg-green h3 { color: var(--paper); }
.bg-green p { color: rgba(246, 241, 231, .8); }

.eyebrow-row { margin-bottom: 1.1rem; }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 1.05rem 1.9rem; border: 1px solid transparent; border-radius: var(--radius);
  transition: all .35s var(--ease); cursor: pointer;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-ghost.on-dark { color: var(--paper); border-color: rgba(246,241,231,.4); }
.btn-ghost.on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #96691f; transform: translateY(-2px); box-shadow: var(--shadow); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terracotta); border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .3s var(--ease), border-color .3s var(--ease); white-space: nowrap;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover { gap: .85rem; border-color: currentColor; }

/* ---------- Header / Nav (bianco fisso) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: .95rem 0;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.brand img { height: 38px; width: auto; max-width: none; flex-shrink: 0; transition: height .4s var(--ease); }
.brand-fallback { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .04em; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); position: relative; padding: .3rem 0; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--terracotta); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--terracotta); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* scrolled: solo un'ombra più marcata + header un filo più compatto */
.site-header.scrolled {
  box-shadow: 0 10px 30px -22px rgba(35,32,27,.45);
  padding: .7rem 0;
}
.site-header.scrolled .brand img { height: 34px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.hamburger[aria-expanded="true"] span { background: var(--ink); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--green);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; color: var(--paper); }
.mobile-menu a:hover { color: var(--gold-soft); }
.mobile-menu .btn {
  margin-top: 1rem; width: auto; font-family: var(--sans); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.mobile-menu .btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding-bottom: clamp(5rem, 12vh, 9rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,15,11,.62) 0%, rgba(18,15,11,.34) 45%, rgba(18,15,11,.08) 80%, transparent 100%),
    linear-gradient(180deg, rgba(18,15,11,.4) 0%, rgba(18,15,11,.22) 42%, rgba(18,15,11,.62) 100%);
}
.hero-inner { padding-top: 6rem; max-width: 780px; }
.hero h1 { color: #fff; margin: 1.2rem 0 1.4rem; text-shadow: 0 2px 34px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.35); }
.hero p { color: #fff; font-size: 1.2rem; max-width: 560px; text-shadow: 0 1px 16px rgba(0,0,0,.6); }
.hero .btn-row { margin-top: 2.4rem; }
.hero .overline { color: var(--gold-soft); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; text-shadow: none; }
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.scroll-cue .line { width: 1px; height: 44px; background: rgba(255,255,255,.5); animation: pulse 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes pulse { 0%,100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,15,11,.6) 0%, rgba(18,15,11,.3) 48%, rgba(18,15,11,.05) 82%, transparent 100%),
    linear-gradient(180deg, rgba(18,15,11,.35) 0%, rgba(18,15,11,.15) 42%, rgba(18,15,11,.72) 100%);
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero h1 { color: #fff; margin-top: 1rem; text-shadow: 0 2px 34px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.35); }
.page-hero .overline { color: var(--gold-soft); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.page-hero p { color: #fff; max-width: 560px; margin-top: 1rem; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.breadcrumb { font-size: .78rem; letter-spacing: .06em; color: rgba(255,255,255,.85); margin-bottom: 1.4rem; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Intro band ---------- */
.intro-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro-band .txt p { margin-top: 1.2rem; }
.intro-band .txt .btn-row { margin-top: 2rem; }
.figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure:hover img { transform: scale(1.05); }
.figure.tall { aspect-ratio: 4/5; }
.figure.wide { aspect-ratio: 16/11; }
.figure-accent { position: relative; }
.figure-accent::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold);
  border-radius: var(--radius); z-index: -1; opacity: .6;
}

/* ---------- Advantages / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2.4rem 2rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon { width: 46px; height: 46px; color: var(--terracotta); margin-bottom: 1.3rem; }
.card .icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.card h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.card p { font-size: .98rem; }
.card .link-arrow { margin-top: 1.3rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.6rem); color: var(--paper); line-height: 1; }
.stat .lbl { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-top: .6rem; }
.bg-green .stat .num { color: var(--paper); }

/* ---------- Feature split (alternating) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split.reverse .figure { order: 2; }
.split .txt .overline { margin-bottom: 1rem; }
.split .txt h2 { margin-bottom: 1.1rem; }
.split .txt p + p { margin-top: 1rem; }
.split .txt .btn-row, .split .txt .link-arrow { margin-top: 1.8rem; }
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); }

/* room feature list inline */
.mini-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.mini-list li {
  font-size: .78rem; letter-spacing: .04em; padding: .45rem .9rem; border: 1px solid var(--line);
  border-radius: 100px; color: var(--ink-soft);
}

/* ---------- Services list ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.svc {
  background: var(--paper); padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .7rem;
  transition: background .3s;
}
.svc:hover { background: var(--cream-2); }
.svc .icon { width: 34px; height: 34px; color: var(--green-2); }
.svc .icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.svc h4 { font-size: 1.35rem; font-weight: 500; }
.svc p { font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; grid-auto-rows: 220px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g-cap {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 1.4rem 1.2rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(20,17,13,.72));
  color: #fff; font-family: var(--serif); font-size: 1.15rem; opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery figure:hover .g-cap { opacity: 1; transform: translateY(0); }
.g-w6 { grid-column: span 6; } .g-w4 { grid-column: span 4; } .g-w8 { grid-column: span 8; }
.g-w3 { grid-column: span 3; } .g-w5 { grid-column: span 5; } .g-w7 { grid-column: span 7; }
.g-h2 { grid-row: span 2; }

/* ---------- Territory cities ---------- */
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.city {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1.1s var(--ease); }
.city::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,17,13,.05) 30%, rgba(20,17,13,.8)); }
.city:hover img { transform: scale(1.07); }
.city .city-body { padding: 1.8rem; position: relative; z-index: 2; }
.city h3 { color: #fff; font-size: 1.7rem; }
.city .dist { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .4rem; }
.city p { color: rgba(255,255,255,.85); font-size: .92rem; margin-top: .4rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; color: #fff; }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28,34,26,.7); }
.cta-band h2 { color: #fff; max-width: 700px; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 540px; margin: 1.2rem auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 2.2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-info .info-row { display: flex; gap: 1.1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-info .info-row:first-of-type { padding-top: 0; }
.contact-info .icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--terracotta); }
.contact-info .icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.contact-info h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: .3rem; }
.contact-info .info-row a, .contact-info .info-row p { font-size: 1.05rem; color: var(--ink); }
.contact-info .info-row a:hover { color: var(--terracotta); }
.hours-table { margin-top: .3rem; font-size: .95rem; color: var(--ink-soft); }

.form-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(172,69,44,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.form-consent input { width: auto; margin-top: .25rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.15) contrast(.95); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.7rem; margin: 2.4rem 0 .8rem; }
.prose h1 { margin-bottom: 1.4rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--terracotta); border-bottom: 1px solid currentColor; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: .7rem .85rem; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--cream-2); font-weight: 600; font-family: var(--sans); letter-spacing: .02em; }
.prose td { color: var(--ink-soft); }
.legal-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,241,231,.75); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(246,241,231,.12); }
.footer-brand .fb-name { font-family: var(--serif); font-size: 1.9rem; color: var(--paper); letter-spacing: .04em; }
.footer-brand .fb-sub { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-top: .3rem; }
.footer-brand p { margin-top: 1.2rem; font-size: .92rem; max-width: 320px; color: rgba(246,241,231,.6); }
.footer-col h5 { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); margin-bottom: 1.2rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.footer-col a, .footer-col p { font-size: .94rem; color: rgba(246,241,231,.7); transition: color .3s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: .8rem; color: rgba(246,241,231,.5); }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-bottom .credits { letter-spacing: .04em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue .line { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .nav-cta { gap: .6rem; }
  .intro-band, .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .figure { order: 0; }
  .grid-3, .svc-grid, .city-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .gallery { grid-auto-rows: 200px; }
  .gallery > figure { grid-column: span 6 !important; grid-row: span 1 !important; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--wrap)); }
  .grid-3, .svc-grid, .city-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero .btn-row .btn, .cta-band .btn { width: auto; }
  .gallery > figure { grid-column: span 12 !important; }
}

/* =========================================================
   Cookie consent (Garante-compliant) + map gating
   ========================================================= */
.cc-backdrop { position: fixed; inset: 0; background: rgba(20,17,13,.5); backdrop-filter: blur(2px); z-index: 9998; opacity: 0; transition: opacity .3s var(--ease); }
.cc-backdrop.cc-show { opacity: 1; }
.cc-banner {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  width: min(680px, calc(100% - 32px)); background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: 10px;
  box-shadow: var(--shadow-lg); z-index: 9999; opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease); font-family: var(--sans);
}
.cc-banner.cc-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cc-pad { padding: 26px 28px; }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cc-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); margin: 0 0 8px; line-height: 1.15; }
.cc-text { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.cc-text a { color: var(--terracotta); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cc-x { flex: none; width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: var(--cream); color: var(--ink-soft); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.cc-x:hover { background: var(--cream-2); color: var(--ink); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cc-btn { flex: 1 1 auto; min-width: 150px; border-radius: 4px; padding: 13px 18px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: 1.5px solid transparent; transition: transform .15s var(--ease), background .2s; font-family: inherit; text-align: center; }
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn-accept { background: var(--terracotta); color: #fff; }
.cc-btn-accept:hover { background: var(--terracotta-dark); }
.cc-btn-reject { background: var(--green); color: #fff; }
.cc-btn-reject:hover { background: #2e3830; }
.cc-btn-prefs { background: var(--paper); color: var(--ink); border-color: var(--line); }
.cc-btn-prefs:hover { background: var(--cream-2); }
.cc-cats { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; max-height: min(46vh,360px); overflow: auto; padding-right: 4px; }
.cc-cat { border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px 16px; background: var(--cream); }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-name { font-size: .92rem; font-weight: 600; color: var(--ink); }
.cc-cat-desc { font-size: .82rem; line-height: 1.5; color: var(--ink-soft); margin: 7px 0 0; }
.cc-switch { position: relative; width: 44px; height: 25px; flex: none; }
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-slider { position: absolute; inset: 0; border-radius: 25px; background: #c9c2b4; transition: background .2s; cursor: pointer; }
.cc-slider::before { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cc-switch input:checked + .cc-slider { background: var(--green-2); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(19px); }
.cc-switch input:disabled + .cc-slider { background: var(--green-2); opacity: .5; cursor: not-allowed; }
.cc-fab { position: fixed; left: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink-soft); cursor: pointer; z-index: 9990; display: flex; align-items: center; justify-content: center; transition: transform .2s, color .2s; }
.cc-fab:hover { transform: scale(1.06); color: var(--terracotta); }
@media (max-width: 560px) {
  .cc-banner { bottom: 0; border-radius: 10px 10px 0 0; width: 100%; }
  .cc-btn { flex: 1 1 100%; }
  .cc-fab { left: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* Map consent placeholder */
.map-embed[data-map] { position: relative; }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  min-height: 380px; padding: 2rem; text-align: center; background: var(--cream-2);
}
.map-placeholder p { max-width: 460px; font-size: .95rem; color: var(--ink-soft); }
.map-placeholder .mp-icon { width: 40px; height: 40px; color: var(--green-2); }

/* =========================================================
   Dotazioni e servizi (offerti + limitrofi)
   ========================================================= */
.dotazioni { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.svc-col .overline { margin-bottom: .8rem; }
.svc-col h3 { font-size: 1.9rem; margin-bottom: .4rem; }
.svc-col > p { font-size: .96rem; margin-bottom: .4rem; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li {
  display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0;
  border-bottom: 1px solid var(--line-soft); font-size: 1rem; color: var(--ink);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li .ck { width: 19px; height: 19px; color: var(--green-2); flex: none; margin-top: .15rem; }
.check-list li .ck svg { width: 100%; height: 100%; }
.dist-list li { justify-content: space-between; gap: 1.2rem; align-items: baseline; }
.dist-list li .nm { color: var(--ink); }
.dist-list li .d {
  color: var(--terracotta); font-weight: 600; font-size: .8rem; letter-spacing: .04em;
  white-space: nowrap; flex: none;
}
@media (max-width: 860px) { .dotazioni { grid-template-columns: 1fr; gap: 2.5rem; } }
