/* =========================================================
   Sancarlino di Arona – foglio di stile del sito pubblico
   Palette e caratteri ripresi dal sito originale (Avada):
   Fraunces (titoli) + Readex Pro (testi)
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-normal-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/ReadexPro-normal-latin.woff2") format("woff2");
  font-weight: 200 700; font-style: normal; font-display: swap;
}

:root {
  --white: #ffffff;
  --cream: #f0eee5;
  --sand: #dfddd2;
  --olive: #b9b58d;
  --olive-dark: #6b673f;
  --red: #bc3f31;
  --red-dark: #9c3226;
  --green: #1e6b59;
  --green-dark: #165444;
  --dark: #10372d;
  --ink: #091b18;
  --text: #1d2b27;
  --muted: #55615d;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Readex Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 10px 30px -12px rgba(9, 27, 24, .28);
  --shadow-lg: 0 24px 60px -20px rgba(9, 27, 24, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: inherit; font-optical-sizing: auto; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 500; }
button { font: inherit; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid currentColor; opacity: .25; margin: 22px 0; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.anchor-target { position: absolute; bottom: 0; }

main, .site-footer, .gallery { overflow-x: hidden; overflow-x: clip; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.wrap.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.center { text-align: center; }

/* ---------- Testo formattato ---------- */
.rt a:not(.btn), .ulink {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease), color .2s;
  padding-bottom: 1px;
}
.rt a:not(.btn) { font-weight: 400; }
.rt a:not(.btn):hover, .ulink:hover { background-size: 0 1px; background-position: 100% 100%; }
.rt ul { padding-left: 1.2em; }
.lead { font-size: 1.08em; }

/* =========================================================
   Pulsanti (animazioni: riempimento che scorre, sollevamento,
   icona che si muove, pressione)
   ========================================================= */
.btn {
  --bg: var(--red); --fg: #fff; --fill: var(--red-dark); --bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill); border-radius: inherit;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--fg-h, var(--fg)); border-color: var(--bd-h, var(--bd)); }
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover .ico { transform: translateX(3px); }
.btn:hover .ico:first-child { transform: rotate(-10deg) scale(1.08); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .1s; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 13px; }
.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-red   { --bg: var(--red);   --fg: #fff; --fill: var(--red-dark); }
.btn-green { --bg: var(--green); --fg: #fff; --fill: var(--dark); }
.btn-dark  { --bg: var(--dark);  --fg: #fff; --fill: var(--ink); }
.btn-olive { --bg: var(--olive); --fg: var(--ink); --fill: var(--sand); }
.btn-light { --bg: #fff; --fg: var(--dark); --fill: var(--red); --fg-h: #fff; }
.btn-ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.7); --fill: #fff; --fg-h: var(--dark); --bd-h: #fff; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Avviso in alto ---------- */
.notice {
  position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: #fff; padding: 9px var(--gutter); font-size: 15px; text-align: center; font-weight: 400;
}
.notice .ico { width: 18px; height: 18px; flex: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(240, 238, 229, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  color: var(--dark);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), color .4s, height .4s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(9,27,24,.45); }
.header-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { position: relative; display: block; height: calc(var(--header-h) - 14px); flex: none; }
.brand-logo { height: 100%; width: auto; transition: opacity .35s, transform .4s var(--ease-out); }
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.04); }
.brand-light { position: absolute; inset: 0; opacity: 0; }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: block; padding: 10px 14px; text-decoration: none;
  font-size: 15px; font-weight: 400; letter-spacing: .02em;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions > .btn-red { display: none; }
.btn-ghost-dyn { --bg: transparent; --fg: var(--dark); --bd: rgba(16,55,45,.35); --fill: var(--dark); --fg-h: #fff; --bd-h: var(--dark); }
.hide-sm { display: none !important; }

.burger {
  width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--dark); color: #fff;
  display: grid; place-content: center; gap: 4px; cursor: pointer; padding: 0;
  transition: transform .3s var(--ease-out), background-color .3s;
}
.burger i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s; }
.burger:hover { transform: scale(1.06); }
.burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* header trasparente sopra la foto della home */
.has-hero .site-header:not(.is-scrolled):not(.nav-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.has-hero .site-header:not(.is-scrolled):not(.nav-open) .brand-color { opacity: 0; }
.has-hero .site-header:not(.is-scrolled):not(.nav-open) .brand-light { opacity: 1; }
.has-hero .site-header:not(.is-scrolled):not(.nav-open) .btn-ghost-dyn { --fg: #fff; --bd: rgba(255,255,255,.6); --fill: #fff; --fg-h: var(--dark); --bd-h: #fff; }
.has-hero .site-header:not(.is-scrolled):not(.nav-open) .burger { background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.has-hero .site-header { position: fixed; left: 0; right: 0; }

@media (min-width: 900px) {
  .header-actions > .btn-red { display: inline-flex; }
  :root { --header-h: 92px; }
  .site-header.is-scrolled { --header-h: 74px; }
  .hide-sm { display: inline-flex !important; }
}
@media (min-width: 1140px) {
  .main-nav { display: block; }
  .main-nav + .header-actions { margin-left: 8px; }
  .burger { display: none; }
}

/* ---------- Pannello menu PDF (a discesa su desktop, dal basso su telefono) ---------- */
.menu-pop { position: relative; }
.menu-sheet {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom));
}
.menu-sheet[hidden] { display: none; }
.menu-sheet-in {
  background: #fff; color: var(--dark); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg);
  animation: sheet-in .4s var(--ease-out);
}
.menu-sheet-title { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.menu-sheet-title small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; }
.menu-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; text-decoration: none; font-weight: 400;
  transition: background-color .25s, transform .3s var(--ease-out);
}
.menu-row:hover { background: var(--cream); transform: translateX(4px); }
.menu-row-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--red); flex: none; }
.menu-row-ico.green { background: var(--green); }
.menu-row-ico.olive { background: var(--olive); color: var(--ink); }
.menu-row-ico.dark { background: var(--dark); }
.menu-row-ico .ico { width: 20px; height: 20px; }
.menu-row-txt { flex: 1; }
.menu-row-arrow { width: 18px; height: 18px; opacity: .45; transition: transform .3s var(--ease-out), opacity .3s; }
.menu-row:hover .menu-row-arrow { transform: translateX(4px); opacity: 1; }
@media (min-width: 900px) {
  .menu-sheet { position: absolute; left: auto; right: auto; bottom: auto; top: calc(100% + 10px); width: 320px; }
  .menu-sheet { position: fixed; top: calc(var(--header-h) + 4px); right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); left: auto; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Menu a tutto schermo (telefono/tablet) ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 45; background: var(--dark); color: #fff;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(100px + env(safe-area-inset-bottom));
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) 38px);
  transition: clip-path .6s var(--ease-out);
}
.mobile-nav[hidden] { display: block; visibility: hidden; }
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.site-header.nav-open { background: var(--dark); color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.site-header.nav-open .brand-color { opacity: 0; }
.site-header.nav-open .brand-light { opacity: 1; }
.site-header.nav-open .burger { background: rgba(255,255,255,.14); }
.site-header.nav-open .btn-ghost-dyn { --fg: #fff; --bd: rgba(255,255,255,.6); }
.mnav { list-style: none; margin: 0 0 28px; padding: 0; }
.mnav li { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(.12s + var(--i) * .06s); }
.mobile-nav.is-open .mnav li { opacity: 1; transform: none; }
.mnav a {
  display: inline-block; padding: 8px 0; font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); line-height: 1.15; text-decoration: none;
  background-image: linear-gradient(var(--olive), var(--olive)); background-size: 0 2px; background-position: 0 92%; background-repeat: no-repeat;
  transition: background-size .4s var(--ease-out), color .2s;
}
.mnav a:hover { background-size: 100% 2px; color: var(--olive); }
.mnav-menus { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.mnav-info { font-size: 15px; opacity: .9; }
.mnav-info p { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.mnav-info .ico { width: 18px; height: 18px; color: var(--olive); }
.mnav-info a { text-decoration: none; }

/* ---------- Barra azioni rapide (solo telefono) ---------- */
.action-bar {
  position: fixed; z-index: 65; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px;
  padding: 6px; border-radius: 20px; background: rgba(16, 55, 45, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  transform: translateY(0); transition: transform .45s var(--ease-out), opacity .3s;
}
.action-bar.is-hidden { transform: translateY(140%); opacity: 0; }
.action-bar a, .action-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 54px; border: 0; border-radius: 14px; background: transparent; color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 400; letter-spacing: .04em; cursor: pointer;
  transition: background-color .25s, transform .2s;
}
.action-bar .ico { width: 21px; height: 21px; }
.action-bar a:active, .action-bar button:active { transform: scale(.94); }
.action-bar .is-primary { background: var(--red); }
.action-bar button[aria-expanded="true"] { background: rgba(255,255,255,.14); }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* =========================================================
   Sezioni
   ========================================================= */
.sec { position: relative; padding: clamp(64px, 9vw, 120px) 0; background: var(--sec-bg); color: var(--sec-fg); }
.tone-white { --sec-bg: var(--white); --sec-fg: var(--text); }
.tone-cream { --sec-bg: var(--cream); --sec-fg: var(--text); }
.tone-green { --sec-bg: var(--green); --sec-fg: #fff; }
.tone-dark  { --sec-bg: var(--dark);  --sec-fg: #fff; }
.sec.tone-white + .sec.tone-white:not(.torn), .sec.tone-cream + .sec.tone-cream:not(.torn),
.sec.tone-green + .sec.tone-green:not(.torn), .sec.tone-dark + .sec.tone-dark:not(.torn) { padding-top: 0; }

/* bordo strappato: la sezione "morde" quella sopra */
.torn::before {
  content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 31px; pointer-events: none;
  background: var(--sec-bg, var(--dark));
  -webkit-mask: url("../img/torn.svg") center bottom / 100% 100% no-repeat;
  mask: url("../img/torn.svg") center bottom / 100% 100% no-repeat;
}
.sec.torn { padding-top: clamp(72px, 10vw, 130px); }

.sec-icon { width: 58px; margin: 0 auto 18px; }
.sec-icon img { width: 100%; height: auto; }
.tone-green .sec-icon img, .tone-dark .sec-icon img { filter: none; }
.sec-title { font-size: clamp(28px, 4.2vw, 42px); }
.sec-title.sm { font-size: clamp(24px, 3vw, 32px); }
.sec-head { margin: 0 auto clamp(40px, 6vw, 70px); }
.band-title { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.3; margin-bottom: .8em; }
.sec-band .rt { font-size: 1.02em; opacity: .92; }
.tone-green .rt a:not(.btn), .tone-dark .rt a:not(.btn) { color: #fff; }

/* ---------- Apertura home ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh; max-height: 1100px;
  padding: calc(var(--header-h) + 40px) 0 clamp(90px, 12vh, 140px);
  background: var(--ink); color: #fff; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 60% 40%; animation: kenburns 22s var(--ease) both; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9,27,24,.55) 0%, rgba(9,27,24,0) 22%),
    linear-gradient(0deg, rgba(9,27,24,.92) 0%, rgba(9,27,24,.62) 40%, rgba(9,27,24,.12) 72%),
    linear-gradient(90deg, rgba(9,27,24,.62) 0%, rgba(9,27,24,.25) 45%, rgba(9,27,24,0) 70%);
}
.hero-in { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--cream);
  text-shadow: 0 1px 12px rgba(9,27,24,.6);
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--olive); }
.hero-title, .hero-sub { text-shadow: 0 2px 24px rgba(9,27,24,.45); }
.hero-title { font-size: clamp(46px, 10vw, 104px); line-height: 1; font-weight: 400; letter-spacing: -.02em; margin-bottom: 18px; max-width: 12ch; }
.hero-title .hl { color: var(--olive); font-style: italic; }
.hero-sub { font-family: var(--serif); font-size: clamp(21px, 2.6vw, 30px); line-height: 1.3; font-weight: 300; color: var(--cream); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Stato aperto/chiuso: orologio con l'ora reale + due righe (niente pillola, niente pallino) */
.open-status { display: flex; align-items: center; gap: 14px; margin: 0; line-height: 1.25; }
.open-status[hidden] { display: none; }
.os-clock { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--olive); stroke-width: 1.4; stroke-linecap: round; }
.os-clock .os-ticks { stroke-width: 1.2; opacity: .7; }
.os-clock .os-h { stroke-width: 2.2; stroke: currentColor; }
.os-clock .os-m { stroke-width: 1.6; stroke: currentColor; }
.os-clock .os-pin { fill: var(--olive); stroke: none; }
.os-txt { display: flex; flex-direction: column; gap: 3px; }
.os-state { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.os-next { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 18px; }
.is-open .os-clock { stroke: #a9cdb5; }
.is-open .os-clock .os-pin { fill: #a9cdb5; }
.is-open .os-state { color: #a9cdb5; }
.hero-status { margin-top: 34px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 46px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px; display: none;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollcue 1.8s var(--ease) infinite; }
@media (min-width: 900px) { .scroll-cue { display: block; } .hero-in { padding-bottom: 10px; } }
@media (max-width: 899px) { .hero-actions .btn { flex: 1 1 auto; } }

.hero-anim { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(.25s + var(--d, 0) * .12s); }

/* ---------- Apertura pagine interne ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 80px); }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
.page-hero-title { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.1; letter-spacing: -.015em; color: var(--dark); }
.page-hero-title .hl { color: var(--olive-dark); font-style: italic; }
.page-hero-txt .rt { margin-bottom: 28px; color: var(--muted); }
.page-hero-media { position: relative; margin: 0; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-lg); }
.page-hero-media .tile { position: absolute; background: var(--cream); width: 9%; aspect-ratio: 1; }
.page-hero-media .t1 { left: -1px; top: 22%; }
.page-hero-media .t2 { left: 9%; top: 31%; }
.page-hero-media .t3 { right: -1px; bottom: 14%; width: 12%; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 70px; }
}

/* ---------- Schede ---------- */
.cards { display: grid; gap: 22px; }
@media (min-width: 700px) { .cards.cols-2 { grid-template-columns: repeat(2, 1fr); } .cards.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; color: var(--text); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(9,27,24,.05);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tone-white .card { background: var(--cream); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: clamp(26px, 4vw, 44px); text-align: center; flex: 1; }
.card-title { font-size: clamp(23px, 2.4vw, 28px); }
.card .rt { font-size: .95em; color: var(--muted); }

/* ---------- Elenco con icone ---------- */
.features { display: grid; gap: 44px 70px; }
@media (min-width: 800px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; }
.feature-ico { width: 48px; padding-top: 4px; transition: transform .5s var(--ease-out); }
.feature:hover .feature-ico { transform: rotate(-8deg) scale(1.08); }
.feature-title { font-size: clamp(22px, 2.3vw, 27px); margin-bottom: .45em; }
.feature .rt { color: var(--muted); font-size: .97em; }
.tone-green .feature .rt, .tone-dark .feature .rt { color: rgba(255,255,255,.85); }

/* ---------- Foto + riquadro ---------- */
.split { display: grid; align-items: center; }
.split-media { margin: 0; overflow: hidden; border-radius: 4px; }
.split-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.split:hover .split-media img { transform: scale(1.04); }
.split-box { position: relative; padding: clamp(32px, 5vw, 64px); background: var(--sec-bg); color: var(--sec-fg); border-radius: 4px; }
.split-box .sec-title { font-size: clamp(27px, 3.4vw, 38px); }
.split-box .rt { color: inherit; opacity: .9; }
.note { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: .92em; font-weight: 400; }
.note-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--olive); color: #fff; flex: none; }
.note-ico .ico { width: 17px; height: 17px; }
@media (max-width: 899px) {
  .split-box { margin: -48px 14px 0; box-shadow: var(--shadow); }
  .split.no-img .split-box { margin: 0; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, 1fr); }
  .split-left .split-media { grid-column: 1 / 7; grid-row: 1; }
  .split-left .split-box { grid-column: 6 / 12; grid-row: 1; }
  .split-right .split-media { grid-column: 7 / 13; grid-row: 1; }
  .split-right .split-box { grid-column: 2 / 8; grid-row: 1; }
  .split-box { z-index: 1; }
  .split.no-img .split-box { grid-column: 3 / 11; }
}

/* ---------- Testo lungo (privacy, cookie) ---------- */
.prose-wrap { padding-top: 20px; }
.prose-title { font-size: clamp(32px, 5vw, 48px); color: var(--dark); margin-bottom: 28px; }
.prose { font-size: .96em; }
.prose h2, .prose h3 { font-size: clamp(20px, 2.4vw, 24px); margin: 1.8em 0 .5em; color: var(--dark); }
.prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* ---------- Colonne di testo ---------- */
.columns { display: grid; gap: 44px; }
@media (min-width: 800px) { .columns { grid-template-columns: repeat(2, 1fr); gap: 70px; } }
.columns .rt { color: var(--muted); }
.tone-green .columns .rt, .tone-dark .columns .rt { color: rgba(255,255,255,.88); }

/* =========================================================
   Galleria e footer
   ========================================================= */
.gallery { background: var(--dark); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }
.gallery-grid a { position: relative; display: block; overflow: hidden; aspect-ratio: 1; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; }
.gallery-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(9,27,24,.0); transition: background-color .4s; }
.gallery-grid a:hover .gallery-img { transform: scale(1.08); }
.gallery-grid a:hover::after { background: rgba(9,27,24,.18); }

.site-footer { --sec-bg: var(--dark); position: relative; background: var(--dark); color: #fff; padding: 90px 0 40px; font-size: 16px; }
.footer-grid { display: grid; gap: 56px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .f-book { grid-column: 1 / -1; grid-row: 1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1.45fr 1.1fr; gap: 64px; } .f-book { grid-column: auto; grid-row: auto; } }
.f-logo { display: block; width: 150px; transition: transform .5s var(--ease-out); }
.f-logo:hover { transform: rotate(-3deg); }
.f-info address { line-height: 1.9; }
.f-info a { text-decoration: none; }
.f-hours-title { margin-bottom: 10px; opacity: .85; }
.f-hours { margin: 0; display: grid; gap: 8px; }
.f-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,.18); }
.f-hours dt { font-weight: 500; }
.f-hours dd { margin: 0; opacity: .9; }
.f-hours .is-closed dd { color: var(--olive); }
.site-footer .open-status { margin-top: 22px; }
.f-title { font-size: clamp(26px, 3vw, 32px); }
.f-book-intro { font-size: 14px; line-height: 1.6; opacity: .9; margin-bottom: 22px; }
.f-story .rt { opacity: .9; }
.f-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); text-align: center; font-size: 14px; opacity: .85; }
.f-bottom em { font-style: italic; }
.f-legal { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: var(--olive); }
.f-legal span { color: rgba(255,255,255,.6); }

/* ---------- Modulo di prenotazione ---------- */
.book-form { position: relative; }
.fgrid { display: grid; gap: 14px; }
@media (min-width: 520px) { .fgrid { grid-template-columns: 1fr 1fr; } .fld-wide { grid-column: 1 / -1; } }
.fld { position: relative; display: block; }
.fld-l { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; letter-spacing: .03em; margin-bottom: 6px; opacity: .9; }
.fld-l .ico { width: 15px; height: 15px; color: var(--olive); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff;
  font: 400 16px/1.4 var(--sans); transition: border-color .25s, background-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.fld textarea { min-height: 76px; resize: vertical; }
.fld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b9b58d' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.fld select option { color: var(--ink); }
.fld input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: rgba(255,255,255,.6); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--olive); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(185,181,141,.25); }
.fld.has-err input, .fld.has-err select, .fld.has-err textarea { border-color: #f08b7b; }
.fld-err { display: block; margin-top: 5px; font-size: 13px; color: #ffb3a7; font-weight: 400; }
.fld-hint { font-size: 14px; color: var(--olive); margin: 12px 0 0; }
.fld-hint[hidden] { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; font-size: 13px; line-height: 1.5; opacity: .9; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--olive); }
.check.has-err span { color: #ffb3a7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-form .btn-light { min-height: 56px; }
.book-form.is-sending .btn { pointer-events: none; opacity: .7; }
.book-form.is-sending .btn span::after { content: "…"; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 400; animation: rise .5s var(--ease-out); }
.form-msg[hidden] { display: none; }
.form-msg.is-ok { background: rgba(125,211,168,.16); border: 1px solid rgba(125,211,168,.5); }
.form-msg.is-err { background: rgba(240,139,123,.14); border: 1px solid rgba(240,139,123,.5); }
.f-or { margin-top: 14px; font-size: 14px; opacity: .8; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(9,27,24,.92); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s var(--ease); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; width: auto; height: auto; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox button { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background-color .25s, transform .25s; }
.lightbox button:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }
.lightbox .ico { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-prev .ico { transform: rotate(180deg); }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }

/* =========================================================
   Comparsa allo scorrimento (solo se c'è JavaScript)
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * .1s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-anim { opacity: 1; transform: none; }
}

@media print {
  .site-header, .action-bar, .mobile-nav, .menu-sheet, .gallery, .book-form { display: none !important; }
  body { padding: 0; background: #fff; }
}
