/* ==========================================================================
   Festa sotto el Campanil · San Floriano (VR) — 14ª Edizione
   Design: palette tufo/cotto/verde della Pieve romanica
   ========================================================================== */

/* ---------- Font (self-hosted) ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/hanken-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/hanken-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variabili & base ---------- */
:root {
  --carta: #F6EFDC; --carta2: #EFE4C8; --panna: #F3E9CF; --tufo: #E6D7B2;
  --ink: #1B241D; --ink2: #233026; --testo: #2F3B30; --muto: #5C6751;
  --cotto: #B4593B; --oro: #C99A3F; --muschio: #74846B; --rosso: #A03A2A;
  --accent: #B4593B; --sp: 0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; /* niente inflazione automatica del testo su iOS in landscape */
}
/* .countdown e .btn-ghost dichiarano un display che batterebbe la regola UA [hidden]:
   senza questa, il countdown resterebbe visibile (stantio) a festa finita */
[hidden] { display: none !important; }
body {
  background: var(--carta); color: var(--testo);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; position: relative;
}
::selection { background: var(--oro); color: var(--ink); }
img { max-width: 100%; }

@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }
@keyframes bellSwing { 0% { transform: rotate(0); } 12% { transform: rotate(16deg); } 28% { transform: rotate(-12deg); } 44% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 76% { transform: rotate(2.5deg); } 100% { transform: rotate(0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes towerSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes bellRing {
  0% { transform: rotate(0); }
  8% { transform: rotate(28deg); }
  18% { transform: rotate(-24deg); }
  27% { transform: rotate(19deg); }
  36% { transform: rotate(-21deg); }
  46% { transform: rotate(16deg); }
  55% { transform: rotate(-12deg); }
  65% { transform: rotate(13deg); }
  74% { transform: rotate(-9deg); }
  84% { transform: rotate(5deg); }
  93% { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}
@keyframes clapperRing {
  0% { transform: rotate(0); }
  10% { transform: rotate(-14deg); }
  20% { transform: rotate(12deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(-8deg); }
  60% { transform: rotate(6deg); }
  72% { transform: rotate(-5deg); }
  84% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}
@keyframes waveExpand {
  0% { opacity: 0; transform: scale(.25); }
  12% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.6); }
}

.ringing { animation: bellSwing 1.71s ease-in-out 4; } /* 4 × 1.71s = 6.84s, la durata di «Fra Martino» in js/main.js */

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(246, 239, 220, .88);
  border-bottom: 1px solid rgba(27, 36, 29, .12);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav-brand img { display: block; height: 42px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-title { font-family: 'Marcellus', serif; font-size: clamp(15px, 2vw, 18px); letter-spacing: .02em; white-space: nowrap; }
.nav-brand-sub { font-size: 9.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muto); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 600; padding: 8px 10px; border-radius: 9px; }
.nav-links a.active { color: var(--accent); font-weight: 700; }
.nav-links a.nav-cta { color: #FFF; background: var(--accent); font-weight: 700; padding: 9px 18px; border-radius: 999px; margin-left: 10px; }
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid rgba(27, 36, 29, .18);
  background: var(--panna); border-radius: 11px; cursor: pointer; color: var(--ink);
}
.nav-mobile {
  display: none; border-top: 1px solid rgba(27, 36, 29, .1);
  background: rgba(246, 239, 220, .98);
  padding: 8px clamp(16px, 4vw, 44px) 18px;
  flex-direction: column; gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 600; padding: 12px 6px; border-bottom: 1px solid rgba(27, 36, 29, .07); }
.nav-mobile a.nav-cta { color: #FFF; background: var(--accent); font-weight: 700; padding: 13px; border-radius: 12px; text-align: center; margin-top: 8px; border-bottom: none; }
.nav-progress { height: 2px; background: rgba(27, 36, 29, .08); }
.nav-progress-bar { height: 100%; width: calc(var(--sp, 0) * 100%); background: linear-gradient(90deg, var(--oro), var(--accent)); }
.avviso {
  background: var(--oro); color: var(--ink); font-weight: 600; font-size: 14px;
  text-align: center; padding: 9px 16px; line-height: 1.45;
}
.avviso--maltempo { background: var(--rosso); color: #F6EFDC; }

@media (max-width: 1280px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- Campanile 3D rail (desktop largo) ---------- */
.rail {
  position: fixed; right: clamp(6px, 3vw, 70px); top: 50%; transform: translateY(-50%);
  z-index: 55; width: 150px; height: 620px; pointer-events: none;
  perspective: 1100px; opacity: 0; transition: opacity .5s ease;
  display: none;
}
.rail.on { opacity: 1; }
.rail.on.scena { opacity: 0; } /* niente doppio contatore metri durante la scena della salita */
@media (min-width: 1280px) { .rail { display: block; } }
/* --- Torre 3D: componente condiviso (unità em, scala via font-size) --- */
.rail .tower { position: absolute; left: 50%; top: 8px; margin-left: -42px; font-size: 1px; }
.rail .tower-rotor { animation: towerSpin 26s linear infinite; }
.rail .tw-face { clip-path: inset(calc((1 - var(--sp, 0) * 1.058) * 100%) 0 0 0); }
.rail .tw-roof, .rail .tw-tip { opacity: calc((var(--sp, 0) - 0.88) * 12); }

.tower { position: relative; width: 84em; height: 540em; transform-style: preserve-3d; }
/* Pendenza reale del campanile (~1.8°): wrapper statico fuori dal rotor,
   origine in basso così la base resta allineata a ombra e contatore */
.tower-lean {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transform: rotate(1.8deg); transform-origin: 50% 100%; transform-style: preserve-3d;
}
.tower-rotor { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-style: preserve-3d; }

/* --- Cuspide in pietra (V4): falde trapezie con apice chiuso dal retro visibile + tappo --- */
.tw-roof, .tw-roof-ghost {
  position: absolute; left: -8em; top: 41.1em; width: 100em; height: 54.9em;
  transform-origin: 50% 100%;
}
.tw-roof {
  /* niente backface-visibility: l'interno della falda chiude il foro all'apice */
  clip-path: polygon(50% 0, 64% 27%, 78% 54%, 90% 78%, 100% 100%, 0 100%, 10.8% 77%, 22.8% 53%, 36% 26%);
  background-color: #B4A88F;
  background-image:
    radial-gradient(5em 3em at 4% 97%, #E2D8BC 0 60%, rgba(226, 216, 188, 0) 66%),
    radial-gradient(5em 3em at 96% 97%, #E2D8BC 0 60%, rgba(226, 216, 188, 0) 66%),
    linear-gradient(to top, #D6CBAE 0 3em, rgba(214, 203, 174, 0) 3.3em),
    radial-gradient(2.2em 1.6em at 50% 3%, rgba(212, 202, 177, .85) 0 60%, transparent 66%),
    radial-gradient(1.9em 1.4em at 43% 16%, rgba(206, 196, 170, .7) 0 60%, transparent 66%),
    radial-gradient(1.9em 1.4em at 57% 17%, rgba(206, 196, 170, .7) 0 60%, transparent 66%),
    radial-gradient(2em 1.5em at 34% 34%, rgba(206, 196, 170, .65) 0 60%, transparent 66%),
    radial-gradient(2em 1.5em at 66% 35%, rgba(206, 196, 170, .65) 0 60%, transparent 66%),
    radial-gradient(2em 1.5em at 25% 52%, rgba(200, 189, 164, .6) 0 60%, transparent 66%),
    radial-gradient(2em 1.5em at 76% 53%, rgba(200, 189, 164, .6) 0 60%, transparent 66%),
    radial-gradient(2em 1.5em at 15% 71%, rgba(200, 189, 164, .55) 0 60%, transparent 66%),
    radial-gradient(2em 1.5em at 86% 72%, rgba(200, 189, 164, .55) 0 60%, transparent 66%),
    radial-gradient(4.5em 3em at 30% 42%, rgba(216, 207, 184, .55) 0 55%, transparent 62%),
    radial-gradient(5em 3.5em at 68% 62%, rgba(158, 146, 122, .6) 0 55%, transparent 62%),
    radial-gradient(3.5em 2.5em at 47% 74%, rgba(195, 184, 158, .65) 0 55%, transparent 62%),
    radial-gradient(4em 2.5em at 56% 30%, rgba(158, 146, 122, .5) 0 55%, transparent 62%),
    radial-gradient(3em 2em at 38% 86%, rgba(222, 213, 190, .5) 0 55%, transparent 62%),
    radial-gradient(3.5em 2.2em at 70% 88%, rgba(158, 146, 122, .45) 0 55%, transparent 62%),
    repeating-linear-gradient(83deg, rgba(0, 0, 0, .045) 0 1.8em, transparent 1.8em 4.6em),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 .5em, transparent .5em 4.2em);
}
.tw-roof.r0 { transform: rotateY(0deg) translateZ(50em) rotateX(65.6deg); }
.tw-roof.r90 { transform: rotateY(90deg) translateZ(50em) rotateX(65.6deg); filter: brightness(.93) sepia(.14); }
.tw-roof.r180 { transform: rotateY(180deg) translateZ(50em) rotateX(65.6deg); filter: brightness(.76); }
.tw-roof.r270 { transform: rotateY(270deg) translateZ(50em) rotateX(65.6deg); filter: brightness(.82) saturate(.85); }
.tw-tip {
  position: absolute; left: 28em; top: 59.5em; width: 28em; height: 28em;
  transform: rotateX(90deg);
  background: radial-gradient(#B7AB92, #93876F);
}
.tw-roof-ghost { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: rgba(37, 54, 43, .10); }
.tw-roof-ghost.r0 { transform: rotateY(0deg) translateZ(49.5em) rotateX(65.6deg); }
.tw-roof-ghost.r90 { transform: rotateY(90deg) translateZ(49.5em) rotateX(65.6deg); }
.tw-roof-ghost.r180 { transform: rotateY(180deg) translateZ(49.5em) rotateX(65.6deg); }
.tw-roof-ghost.r270 { transform: rotateY(270deg) translateZ(49.5em) rotateX(65.6deg); }

.tw-dim {
  position: absolute; left: 0; top: 92em; width: 84em; height: 448em;
  background: rgba(37, 54, 43, .09); border: 1px solid rgba(37, 54, 43, .18);
  backface-visibility: hidden;
}
.tw-dim.r0 { transform: rotateY(0deg) translateZ(42em); }
.tw-dim.r90 { transform: rotateY(90deg) translateZ(42em); }
.tw-dim.r180 { transform: rotateY(180deg) translateZ(42em); }
.tw-dim.r270 { transform: rotateY(270deg) translateZ(42em); }

.tw-face {
  position: absolute; left: 0; top: 92em; width: 84em; height: 448em;
  backface-visibility: hidden; overflow: hidden;
  background-color: #D9CCAB;
  background-image:
    repeating-linear-gradient(0deg, rgba(110, 95, 70, .10) 0 .5em, transparent .5em 9em),
    repeating-linear-gradient(90deg, rgba(110, 95, 70, .05) 0 .5em, transparent .5em 12em);
}
/* luce calda da sinistra-alto: r90 più calda, r270 più fredda, r180 in ombra */
.tw-face.r0 { transform: rotateY(0deg) translateZ(42em); }
.tw-face.r90 { transform: rotateY(90deg) translateZ(42em); filter: brightness(.92) sepia(.18) saturate(1.05); }
.tw-face.r180 { transform: rotateY(180deg) translateZ(42em); filter: brightness(.70) saturate(.9); }
.tw-face.r270 { transform: rotateY(270deg) translateZ(42em); filter: brightness(.79) saturate(.78); }

/* --- coronamento e cella campanaria in cotto (V4) --- */
.tw-gsh { position: absolute; left: 0; top: 0; width: 100%; height: 3em; background: #4A3A2E; opacity: .35; }
.tw-crown {
  position: absolute; left: 0; top: 3em; width: 100%; height: 7em; background-color: #D6CBAE;
  background-image: repeating-linear-gradient(90deg, rgba(90, 75, 55, .22) 0 .5em, transparent .5em 9em);
}
.tw-cella {
  position: absolute; left: 0; top: 10em; width: 100%; height: 86em;
  background-color: #9D5F49;
  background-image:
    repeating-linear-gradient(0deg, rgba(50, 25, 15, .28) 0 .5em, transparent .5em 5em),
    conic-gradient(at .5em 5em, rgba(50, 25, 15, 0) 0 270deg, rgba(50, 25, 15, .18) 270deg),
    conic-gradient(at .5em 5em, rgba(50, 25, 15, 0) 0 270deg, rgba(50, 25, 15, .18) 270deg),
    radial-gradient(9em 6em at 15% 20%, rgba(255, 225, 190, .06) 0 60%, transparent 65%),
    radial-gradient(10em 7em at 80% 70%, rgba(40, 15, 5, .08) 0 60%, transparent 65%);
  background-size: auto, 8em 10em, 8em 10em, auto, auto;
  background-position: 0 0, 0 0, 4em 5em, 0 0, 0 0;
}
/* --- bifora: ghiera doppia a conci radiali, luci con campane, colonnina di marmo --- */
.tw-bifora { position: absolute; left: 18em; top: 12em; width: 48em; height: 62em; }
.tw-ga {
  position: absolute; top: 0; width: 28em; height: 58em; border-radius: 14em 14em 0 0;
  background-image:
    linear-gradient(#96604B, #96604B),
    repeating-conic-gradient(at 50% 14em, #9A6A52 0 13deg, #83503C 13deg 26deg);
  background-size: 100% 44em, auto;
  background-position: 0 14em, 0 0;
  background-repeat: no-repeat;
}
.tw-ga.ga1 { left: -2.5em; }
.tw-ga.ga2 { left: 22.5em; }
.tw-gb {
  position: absolute; top: 2em; width: 24em; height: 56em; border-radius: 12em 12em 0 0;
  background-image:
    linear-gradient(#8B5340, #8B5340),
    repeating-conic-gradient(from 7deg at 50% 12em, #8B5340 0 11deg, #6F3F2D 11deg 22deg);
  background-size: 100% 44em, auto;
  background-position: 0 12em, 0 0;
  background-repeat: no-repeat;
}
.tw-gb.gb1 { left: -.5em; }
.tw-gb.gb2 { left: 24.5em; }
.tw-luce {
  position: absolute; top: 4.5em; width: 19em; height: 53.5em; border-radius: 9.5em 9.5em 0 0;
  background-color: #221912;
  background-image:
    linear-gradient(rgba(0, 0, 0, .35), transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 9em, #382a1d 9em 10.2em);
}
.tw-luce.sx { left: 2em; }
.tw-luce.dx { left: 27em; }
.tw-capitello {
  position: absolute; left: 18em; top: 14em; width: 12em; height: 5em; background: #E5DFD2;
  background-image: linear-gradient(180deg, #EFE9DC, #D8D0BF); box-shadow: 0 .6em 0 rgba(40, 25, 15, .25);
}
.tw-colonnina {
  position: absolute; left: 21em; top: 19em; width: 6em; height: 39em; background: #EFEAE0;
  background-image: linear-gradient(90deg, #C9C0AF, #F6F2E9 38% 62%, #C3B9A6);
}
.tw-davanzale {
  position: absolute; left: 0; top: 58em; width: 100%; height: 4em; background: #D6CBAE;
  background-image: linear-gradient(180deg, #E3D9BE, #C8BC9E);
}

.tw-campana { position: absolute; left: 50%; top: 9em; width: 12em; height: 15em; margin-left: -6em; transform-origin: 50% -2em; }
.tw-campana::before {
  content: ""; position: absolute; left: 1em; right: 1em; top: 0; bottom: 3.5em;
  background: linear-gradient(90deg, #8F6A25, #DDB258 45%, #8F6A25);
  border-radius: 5em 5em 2em 2em;
}
.tw-campana::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2em; height: 3em;
  background: linear-gradient(90deg, #7D5B1E, #C99A3F 45%, #7D5B1E);
  border-radius: 1.5em;
}
.tw-battaglio {
  position: absolute; left: 50%; bottom: 0; width: 3em; height: 4.5em; margin-left: -1.5em;
  background: #6B511C; border-radius: 0 0 1.5em 1.5em; transform-origin: 50% -9em;
}

/* --- marcapiano a denti di sega --- */
.tw-marcapiano {
  position: absolute; left: 0; top: 96em; width: 100%; height: 4em; background: #DCD2B6;
  background-image: repeating-linear-gradient(90deg, rgba(90, 75, 55, .18) 0 .5em, transparent .5em 8em);
}
.tw-denti {
  position: absolute; left: 0; top: 100em; width: 100%; height: 5em; background-color: #CFC4A6;
  background-image: repeating-linear-gradient(135deg, #6B5A44 0 3em, transparent 3em 7em);
}
.tw-msh {
  position: absolute; left: 0; top: 105em; width: 100%; height: 3em;
  background: linear-gradient(rgba(74, 58, 46, .35), rgba(74, 58, 46, 0));
}
/* --- campo di tufo con feritoia --- */
.tw-tufo {
  position: absolute; left: 0; top: 108em; width: 100%; height: 58em; background-color: #DFD3B2;
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 105, 80, .11) 0 .5em, transparent .5em 8em),
    radial-gradient(14em 9em at 70% 30%, rgba(255, 245, 220, .14) 0 60%, transparent 66%),
    radial-gradient(12em 8em at 25% 75%, rgba(120, 100, 70, .07) 0 60%, transparent 66%);
}
.tw-feritoia {
  position: absolute; left: 40.5em; top: 126em; width: 3em; height: 16em; background: #221912;
  border-radius: 1.5em 1.5em 0 0; box-shadow: 0 0 0 .5em rgba(120, 100, 70, .18);
}
/* --- fasce di pietra --- */
.tw-stn {
  position: absolute; left: 0; width: 100%;
  background-image: repeating-linear-gradient(0deg, rgba(110, 95, 70, .14) 0 .5em, transparent .5em 7em);
}
.tw-stn.s226 { top: 226em; height: 14em; background-color: #DCCFAE; }
.tw-stn.s286 { top: 286em; height: 22em; background-color: #DFD3B2; }
.tw-stn.s352 { top: 352em; height: 14em; background-color: #DCCFAE; }
/* --- fasce di cotto (tessitura mattoni, giunti sfalsati) --- */
.tw-brk {
  position: absolute; left: 0; width: 100%;
  background-image:
    repeating-linear-gradient(0deg, rgba(48, 24, 14, .26) 0 .45em, transparent .45em 3.5em),
    conic-gradient(at .45em 3.5em, rgba(48, 24, 14, 0) 0 270deg, rgba(48, 24, 14, .16) 270deg),
    conic-gradient(at .45em 3.5em, rgba(48, 24, 14, 0) 0 270deg, rgba(48, 24, 14, .16) 270deg);
  background-size: auto, 7em 7em, 7em 7em;
  background-position: 0 0, 0 0, 3.5em 3.5em;
}
.tw-brk.c166 { top: 166em; height: 8em; background-color: #A2604A; }
.tw-brk.c188 { top: 188em; height: 38em; background-color: #A2604A; }
.tw-ric {
  position: absolute; left: 0; top: 16em; width: 100%; height: 4em; background-color: #D9CCAB;
  background-image: repeating-linear-gradient(90deg, rgba(110, 95, 70, .15) 0 .4em, transparent .4em 8em);
}
.tw-brk.c240 { top: 240em; height: 14em; background-color: #9F5B43; }
.tw-brk.c276 { top: 276em; height: 10em; background-color: #A2604A; }
.tw-brk.c308 { top: 308em; height: 10em; background-color: #A2604A; }
.tw-brk.c330 { top: 330em; height: 22em; background-color: #9F5B43; }
.tw-brk.c366 { top: 366em; height: 8em; background-color: #A2604A; }
/* --- bordi irregolari fascia/fascia (SVG frastagliato) --- */
.tw-jt, .tw-jb {
  position: absolute; left: 0; width: 100%; height: 2.6em;
  background-repeat: repeat-x; background-size: 13em 2.6em;
}
.tw-jt { top: -2.35em; }
.tw-jb { bottom: -2.35em; transform: scaleY(-1); }
.tw-jt.jA, .tw-jb.jA { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cpath d='M0,6V2.2H5V4H10V1H16V3.2H21V0.6H26V3H31V1.4H36V3.6H40V6Z' fill='%23A2604A'/%3E%3C/svg%3E"); }
.tw-jt.jB, .tw-jb.jB { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cpath d='M0,6V2.2H5V4H10V1H16V3.2H21V0.6H26V3H31V1.4H36V3.6H40V6Z' fill='%239F5B43'/%3E%3C/svg%3E"); }
.tw-jt.jS, .tw-jb.jS { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cpath d='M0,6L4,1L8,6L12,1.6L16,6L20,1L24,6L28,2L32,6L36,1.2L40,6Z' fill='%239F5B43'/%3E%3C/svg%3E"); }
/* --- base in conci --- */
.tw-base {
  position: absolute; left: 0; top: 374em; width: 100%; height: 74em;
  background-color: #C8BCA0;
  background-image:
    repeating-linear-gradient(0deg, rgba(60, 50, 35, .18) 0 .6em, transparent .6em 10em),
    conic-gradient(at .6em 10em, rgba(60, 50, 35, 0) 0 270deg, rgba(60, 50, 35, .15) 270deg),
    conic-gradient(at .6em 10em, rgba(60, 50, 35, 0) 0 270deg, rgba(60, 50, 35, .15) 270deg);
  background-size: auto, 12em 20em, 12em 20em;
  background-position: 0 0, 0 0, 6em 10em;
}
.tw-brk.c396 {
  top: 396em; height: 4em; background-color: #A2604A;
  background-image: repeating-linear-gradient(90deg, rgba(48, 24, 14, .2) 0 .4em, transparent .4em 6em);
}
.tw-bdark { position: absolute; left: 0; top: 428em; width: 100%; height: 20em; background: rgba(62, 50, 32, .13); }
/* --- cantonali (conci d'angolo chiari, terzo inferiore) --- */
.tw-qs {
  position: absolute; top: 300em; height: 148em; width: 6.5em;
  background-image:
    repeating-linear-gradient(0deg, rgba(236, 228, 206, .8) 0 9em, rgba(236, 228, 206, .15) 9em 9.6em, rgba(236, 228, 206, 0) 9.6em 18em),
    repeating-linear-gradient(0deg, rgba(90, 75, 55, .14) 0 .5em, transparent .5em 9em);
}
.tw-qs.ql { left: 0; box-shadow: inset -0.6em 0 .8em rgba(80, 65, 45, .18); }
.tw-qs.qr { right: 0; box-shadow: inset 0.6em 0 .8em rgba(80, 65, 45, .18); background-position: 0 9em, 0 0; }
/* --- buche pontaie --- */
.tw-bpr {
  position: absolute; left: 0; width: 100%; height: 3.5em;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='7'%3E%3Cpath d='M0,7V1.5Q0,0,1.5,0H4.5Q6,0,6,1.5V7Z' fill='%232E211A'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='7'%3E%3Cpath d='M0,7V1.5Q0,0,1.5,0H4.5Q6,0,6,1.5V7Z' fill='%232E211A'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='7'%3E%3Cpath d='M0,7V1.5Q0,0,1.5,0H4.5Q6,0,6,1.5V7Z' fill='%232E211A'/%3E%3C/svg%3E");
  background-size: 3em 3.5em, 3em 3.5em, 3em 3.5em;
  background-repeat: no-repeat;
  background-position: 20% 0, 50% 0, 78% 0;
}
.tw-bpr.y150 { top: 150em; }
.tw-bpr.y214 { top: 214em; }
.tw-bpr.y264 { top: 264em; }
.tw-bpr.y324 { top: 324em; }
.tw-bpr.y388 { top: 388em; }
.tw-face.r90 .tw-bpr { background-position: 23% 0, 52% 0, 76% 0; }
.tw-face.r180 .tw-bpr { background-position: 18% 0, 47% 0, 80% 0; }
.tw-face.r270 .tw-bpr { background-position: 25% 0, 54% 0, 81% 0; }
/* --- luce calda + vignettatura --- */
.tw-lux {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none;
  background-image:
    linear-gradient(to top, rgba(45, 32, 20, .22), rgba(45, 32, 20, .06) 11%, rgba(45, 32, 20, 0) 19%),
    linear-gradient(105deg, rgba(255, 238, 200, .09), rgba(255, 238, 200, 0) 45%),
    linear-gradient(to right, rgba(30, 20, 12, .05), rgba(30, 20, 12, 0) 10% 88%, rgba(30, 20, 12, .10));
}

.tower-waves { position: absolute; left: 50%; top: 137em; width: 0; height: 0; pointer-events: none; }
.tower-waves i {
  position: absolute; left: -60em; top: -60em; width: 120em; height: 120em;
  border: 2.5em solid rgba(201, 154, 63, .65); border-radius: 50%;
  opacity: 0; transform: scale(.25);
}
.tower.ring .tw-luce.sx .tw-campana { animation: bellRing 3.42s ease-in-out 2; }
.tower.ring .tw-luce.dx .tw-campana { animation: bellRing 3.42s ease-in-out .12s 2; }
.tower.ring .tw-battaglio { animation: clapperRing 3.42s ease-in-out 2; }
.tower.ring .tower-waves i { animation: waveExpand 1.15s ease-out 2 forwards; }
.tower.ring .tower-waves i:nth-child(2) { animation-delay: 1.71s; }
.tower.ring .tower-waves i:nth-child(3) { animation-delay: 3.42s; }
.rail-shadow { position: absolute; left: 50%; top: 552px; width: 130px; height: 18px; margin-left: -65px; background: radial-gradient(50% 50% at 50% 50%, rgba(37, 54, 43, .26), transparent 70%); }
.rail-meters { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.rail-meters-val { font-family: 'Marcellus', serif; font-size: 20px; color: var(--ink); line-height: 1; }
.rail-meters-cap { font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muto); margin-top: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 96vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, #0E1510 0%, #16211A 55%, #1F2C21 100%);
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 15, 11, .66) 0%, rgba(10, 15, 11, .42) 45%, rgba(10, 15, 11, .88) 100%); pointer-events: none; }
.hero-glow { position: absolute; inset: 0; z-index: 1; background: radial-gradient(110% 70% at 50% 112%, rgba(201, 154, 63, .24), transparent 60%); pointer-events: none; }
.grain { position: absolute; inset: 0; z-index: 1; opacity: .07; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); }
.hero-content {
  position: relative; z-index: 3; width: 100%; max-width: 880px; margin: 0 auto;
  padding: clamp(100px, 14vh, 150px) clamp(22px, 6vw, 64px) clamp(90px, 13vh, 130px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-edizione {
  display: flex; align-items: center; gap: 14px; color: var(--oro);
  font-family: 'Marcellus', serif; font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
}
.hero-edizione span { width: 34px; height: 1px; background: rgba(201, 154, 63, .7); }
.hero h1 { margin: clamp(20px, 3.5vh, 34px) 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-logo { display: block; width: clamp(255px, 40vw, 470px); max-width: 86vw; height: auto; filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .45)); }
.hero-slogan {
  font-family: 'Marcellus', serif; color: #F8F1DD;
  font-size: clamp(25px, 3.9vw, 40px); line-height: 1.3; letter-spacing: .015em;
  margin-top: clamp(22px, 4vh, 36px); max-width: 26ch; text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero-slogan::after {
  content: ""; display: block; width: 54px; height: 1.5px;
  background: var(--oro); margin: clamp(14px, 2.2vh, 20px) auto 0;
}
.hero-payoff {
  color: #E9E0C8; font-size: clamp(17.5px, 2.3vw, 23px); font-weight: 500; line-height: 1.6;
  margin-top: clamp(14px, 2.5vh, 22px); max-width: 52ch; text-wrap: balance;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 26px; }
.hero-date {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(243, 233, 207, .95); color: var(--ink);
  padding: 11px 18px; border-radius: 6px; font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
}
.tag-confirm {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: #EFC97E; background: rgba(201, 154, 63, .16);
  border: 1px dashed rgba(201, 154, 63, .55); padding: 7px 12px; border-radius: 999px;
}
.countdown {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: rgba(243, 233, 207, .95); color: var(--ink);
  padding: 11px 18px; border-radius: 6px; font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
}
.countdown .cd-num { font-family: 'Marcellus', serif; font-size: 21px; line-height: 1; color: var(--cotto); }
.countdown .cd-lbl { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muto); margin-right: 4px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #FFF; font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 16px 34px -14px var(--accent);
  transition: transform .16s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px var(--accent); }
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: #F3E9CF; font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid rgba(243, 233, 207, .45); transition: background .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: rgba(243, 233, 207, .1); }
}
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
}
.hero-scroll-label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 233, 207, .72); font-weight: 700; }
.hero-scroll-track { position: relative; display: block; width: 2px; height: 36px; background: rgba(243, 233, 207, .24); border-radius: 2px; overflow: hidden; }
.hero-scroll-dot { position: absolute; top: 0; left: 0; width: 100%; height: 11px; background: var(--oro); border-radius: 2px; animation: scrollDot 1.9s cubic-bezier(.6, .05, .3, .95) infinite; }

/* ---------- Fregio marquee + archetti ---------- */
.archetti-down { height: 13px; background-color: var(--carta); background-image: radial-gradient(9px 11px at 10px 14px, var(--ink) 8.2px, transparent 9px); background-size: 20px 13px; background-repeat: repeat-x; }
.archetti-up { height: 13px; background-color: var(--carta); background-image: radial-gradient(9px 11px at 10px -1px, var(--ink) 8.2px, transparent 9px); background-size: 20px 13px; background-repeat: repeat-x; }
.archetti-down.ink2 { background-image: radial-gradient(9px 11px at 10px 14px, var(--ink2) 8.2px, transparent 9px); }
.archetti-up.ink2 { background-image: radial-gradient(9px 11px at 10px -1px, var(--ink2) 8.2px, transparent 9px); }
.archetti-down.carta2 { background-color: var(--carta2); }

/* ---------- Reveal: varianti di sezione (--rv) ---------- */
/* La custom property --rv (ereditabile) dichiara la variante d'entrata degli elementi
   [data-reveal]; la legge initReveal via getComputedStyle e diventa keyframes WAAPI.
   Assente = fade-up di base. Il DOM serializzato resta identico (vincolo parità). */
.pillar, .piatto, .impegni-grid { --rv: pietra; }
.festa-foto-grid, .cucina-grid, .dove-grid { --rv: zoom; }
#soundtrack .notti { --rv: lato; }
.storia-tl, .anatomia { --rv: quota; }
.ogni-sera, .premi-sheet, .salita-block, .volontari-quote { --rv: sipario; }
.archetti-down, .archetti-up { --rv: arco; }

/* ---------- Parallax leggero per-sezione (--plx / --secP) ---------- */
/* Le sezioni con --plx:1 ricevono dal rAF di onScroll la var --secP (+1 sotto il
   viewport, 0 centrata, -1 sopra); la consumano SOLO i decori aria-hidden, mai il
   testo. Con reduced-motion il registro JS resta vuoto e tutto sta fermo. */
:root { --plx-m: 1; }
.hero, #soundtrack, #programma, #lotteria, #solidarieta { --plx: 1; }
.hero-content { transform: translateY(calc(var(--secP, 0) * -14px * var(--plx-m))); }
.soundtrack-vinyl { transform: translateY(calc(var(--secP, 0) * -28px * var(--plx-m))) rotate(calc(var(--secP, 0) * -14deg)); }
.lotteria-coccarda { transform: translateY(calc(var(--secP, 0) * -22px * var(--plx-m))) rotate(calc(var(--secP, 0) * 10deg)); }
.solidarieta-ring { transform: translateY(calc(var(--secP, 0) * -10px * var(--plx-m))); }
@media (min-width: 721px) {
  /* le stelle salgono più lente della pagina: profondità senza toccare il twinkle (::after) */
  .programma-cielo { overflow: hidden; }
  .programma-cielo::before { inset: -14px 0; transform: translateY(calc(var(--secP, 0) * -12px)); }
}
@media (max-width: 720px) { :root { --plx-m: .45; } }
.marquee { background: var(--ink); overflow: hidden; padding: 15px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-seq {
  display: flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: 'Marcellus', serif; font-size: 14.5px; letter-spacing: .32em;
  text-transform: uppercase; color: rgba(243, 233, 207, .88); white-space: nowrap;
}
.marquee-seq .dot { color: var(--oro); }

/* ---------- Sezioni generiche ---------- */
.section { padding: clamp(74px, 10vw, 128px) clamp(22px, 6vw, 80px); }
.section-inner { max-width: 1240px; margin: 0 auto; }
.kicker {
  display: flex; align-items: center; gap: 12px; color: var(--cotto);
  font-family: 'Marcellus', serif; font-size: 13.5px; letter-spacing: .28em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 30px; height: 1.5px; background: var(--cotto); }
.kicker.oro { color: var(--oro); }
.kicker.oro::before { background: var(--oro); }
.h2 {
  font-family: 'Marcellus', serif; font-size: clamp(31px, 4.5vw, 54px);
  color: var(--ink); line-height: 1.08; letter-spacing: .01em; text-wrap: balance;
}
.lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.75; color: var(--muto); text-wrap: pretty; }
.lead strong { color: var(--ink); }

/* ---------- La festa ---------- */
.festa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 20px; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-top: clamp(42px, 5vw, 60px); }
.pillar {
  background: var(--panna); border: 1px solid rgba(27, 36, 29, .12);
  border-radius: 120px 120px 16px 16px; padding: 34px 22px 26px; text-align: center;
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
  transition: transform .22s ease, box-shadow .28s ease, border-color .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pillar:hover { transform: translateY(-5px); box-shadow: 0 28px 52px -26px rgba(27, 36, 29, .55); border-color: rgba(27, 36, 29, .24); }
}
.pillar-icon {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon.cotto { border: 1.5px solid var(--cotto); box-shadow: inset 0 0 0 4px var(--panna), inset 0 0 0 5.5px rgba(180, 89, 59, .35); color: var(--cotto); }
.pillar-icon.rosso { border: 1.5px solid var(--rosso); box-shadow: inset 0 0 0 4px var(--panna), inset 0 0 0 5.5px rgba(160, 58, 42, .35); color: var(--rosso); }
.pillar-icon.muschio { border: 1.5px solid var(--muschio); box-shadow: inset 0 0 0 4px var(--panna), inset 0 0 0 5.5px rgba(116, 132, 107, .4); color: var(--muschio); }
.pillar-icon.oro { border: 1.5px solid var(--oro); box-shadow: inset 0 0 0 4px var(--panna), inset 0 0 0 5.5px rgba(201, 154, 63, .4); color: #A57A28; }
.pillar h3 { font-family: 'Marcellus', serif; font-size: 21px; color: var(--ink); margin: 16px 0 6px; }
.pillar p { font-size: 14.5px; line-height: 1.6; color: var(--muto); }
.festa-foto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin-top: 18px; }
.arch-photo {
  aspect-ratio: 3 / 3.8; border-radius: 170px 170px 14px 14px; overflow: hidden;
  border: 1px solid rgba(27, 36, 29, .16); background: var(--carta2);
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
}
.arch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.festa-foto-grid.wide2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.arch-photo.wide { aspect-ratio: 3 / 2; border-radius: 170px 170px 14px 14px; }

/* ---------- La nostra storia ---------- */
.storia-block {
  margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(34px, 4vw, 48px);
  border-top: 1px solid rgba(27, 36, 29, .14);
}
.storia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 20px; }
.storia-title { font-family: 'Marcellus', serif; font-size: clamp(24px, 3vw, 34px); color: var(--ink); line-height: 1.15; letter-spacing: .01em; text-wrap: balance; }
.storia-domanda { font-family: 'Marcellus', serif; font-size: 18px; color: var(--cotto); margin-top: 22px; }
.storia-domanda + .lead { margin-top: 8px; }

/* ---------- Il campanile ---------- */
.campanile-section { background: linear-gradient(180deg, var(--carta) 0%, var(--carta2) 18%, var(--carta2) 82%, var(--carta) 100%); }
.campanile-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; margin-top: 16px; }
.campanile-sub { font-family: 'Marcellus', serif; font-size: clamp(16px, 2vw, 21px); color: var(--cotto); white-space: nowrap; }

.storia-tl { margin-top: 26px; }
.storia-tl-item { position: relative; display: flex; gap: 18px; padding: 0 0 22px 24px; }
.storia-tl-item::before { content: ""; position: absolute; left: 0; top: 8px; bottom: -4px; width: 2px; background: rgba(27, 36, 29, .15); }
.storia-tl-item:last-child::before { bottom: auto; height: 14px; }
.storia-tl-item::after { content: ""; position: absolute; left: -4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 3px rgba(201, 154, 63, .25); }
.storia-tl-anno { flex: 0 0 84px; font-family: 'Marcellus', serif; font-size: 21px; color: var(--cotto); line-height: 1.15; }
.storia-tl-title { font-family: 'Marcellus', serif; font-size: 18px; color: var(--ink); }
.storia-tl-item p { font-size: 14.5px; line-height: 1.6; color: var(--muto); margin-top: 3px; }

.campanile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(30px, 5vw, 70px); margin-top: clamp(30px, 4vw, 46px); align-items: start; }
.tower-stage-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tower-stage {
  position: relative; width: min(100%, 340px); height: 740px;
  display: flex; justify-content: center;
  perspective: 1300px; cursor: grab;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.tower-stage.grabbing { cursor: grabbing; }
.tower-stage .tower { font-size: 1.32px; margin-top: 6px; }
.tower-ground {
  position: absolute; left: 50%; bottom: 10px; width: 220px; height: 26px; margin-left: -110px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37, 54, 43, .22), transparent 70%);
}
.tower-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muto);
}
@media (max-width: 720px) {
  .tower-stage { height: 600px; }
  .tower-stage .tower { font-size: 1.06px; }
}
.anatomia { margin-top: 26px; display: flex; flex-direction: column; }
.anatomia-row { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-top: 1px solid rgba(27, 36, 29, .14); }
.anatomia-row:last-child { border-bottom: 1px solid rgba(27, 36, 29, .14); }
.anatomia-num { flex: 0 0 auto; font-family: 'Marcellus', serif; font-size: 15px; color: var(--cotto); width: 28px; }
.anatomia-title { font-family: 'Marcellus', serif; font-size: 19px; color: var(--ink); }
.anatomia-row p { font-size: 14.5px; line-height: 1.6; color: var(--muto); margin-top: 3px; }
.campane-cta { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.campane-btn {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--panna);
  box-shadow: inset 0 0 0 5px var(--panna), inset 0 0 0 6.5px rgba(27, 36, 29, .3), 0 16px 34px -18px rgba(27, 36, 29, .6);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: transform .16s ease;
}
@media (hover: hover) and (pointer: fine) {
  .campane-btn:hover { transform: scale(1.05); }
}
.campane-btn .bell-wrap, .footer-bells .bell-wrap { display: block; transform-origin: top center; }
.campane-label { font-family: 'Marcellus', serif; font-size: 19px; color: var(--ink); }
.campane-desc { font-size: 14px; color: var(--muto); margin-top: 2px; }

/* ---------- Programma ---------- */
.programma-section { position: relative; background: var(--ink); color: #F3E9CF; }
.programma-grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); }
.programma-inner { position: relative; max-width: 1020px; margin: 0 auto; }
.programma-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-top: 18px; }
.programma-head .h2 { color: #F8F1DD; max-width: 17ch; }
.tag-confirm.lg { font-size: 13px; padding: 8px 14px; gap: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tab {
  border: 1.5px solid rgba(243, 233, 207, .3); background: rgba(243, 233, 207, .05);
  color: #F3E9CF; padding: 14px 24px 12px; border-radius: 60px 60px 12px 12px;
  cursor: pointer; font-family: inherit; text-align: center; min-width: 132px;
  transition: all .16s ease;
}
.tab.active { background: #F3E9CF; color: #1B241D; border-color: #F3E9CF; }
.tab-name { font-family: 'Marcellus', serif; font-size: 20px; }
.tab-tag { font-size: 11.5px; letter-spacing: .06em; opacity: .75; margin-top: 2px; }
@media (max-width: 700px) {
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    /* il bleed rispecchia il padding orizzontale di .section, così arriva sempre al bordo */
    margin-inline: calc(-1 * clamp(22px, 6vw, 80px)); padding-inline: clamp(22px, 6vw, 80px);
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { min-width: 112px; scroll-snap-align: start; flex: 0 0 auto; }
}
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-pill {
  border: 1.5px solid rgba(243, 233, 207, .3); background: rgba(243, 233, 207, .05);
  color: #F3E9CF; font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: .03em; padding: 7px 15px; border-radius: 999px; cursor: pointer;
  transition: all .16s ease;
}
.cat-pill.active { background: #F3E9CF; color: #1B241D; border-color: #F3E9CF; }
.tl-empty {
  padding: 26px 20px; border: 1px dashed rgba(243, 233, 207, .3); border-radius: 15px;
  color: #D6CDB2; font-size: 15px; text-align: center;
}
.tl-live, .tl-next {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.tl-live { color: #F6EFDC; background: var(--rosso); }
.tl-next { color: #EFC97E; background: rgba(201, 154, 63, .2); border: 1px dashed rgba(201, 154, 63, .55); }
.tl-card.now { background: rgba(160, 58, 42, .14); border: 1px solid rgba(160, 58, 42, .55); }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(160, 58, 42, .5); } 50% { box-shadow: 0 0 0 7px rgba(160, 58, 42, 0); } }
.tl-icon.pulse { animation: pulseDot 1.6s ease-in-out infinite; }
.programma-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.programma-note { margin-top: 26px; text-align: center; font-size: 13px; color: rgba(243, 233, 207, .55); }
.btn-ghost.sm { font-size: 14px; padding: 10px 18px; gap: 8px; border-color: rgba(243, 233, 207, .35); cursor: pointer; font-family: inherit; }
.timeline { margin-top: 38px; }
.tl-row { display: flex; gap: clamp(12px, 2vw, 24px); align-items: stretch; }
.tl-time { flex: 0 0 auto; width: clamp(52px, 8vw, 68px); text-align: right; padding-top: 4px; font-family: 'Marcellus', serif; font-size: clamp(17px, 2vw, 21px); color: var(--oro); }
.tl-spine { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; width: 34px; }
.tl-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.tl-line { flex: 1; width: 2px; background: rgba(243, 233, 207, .16); margin-top: 6px; min-height: 8px; }
.tl-body { flex: 1; min-width: 0; padding-bottom: 22px; }
.tl-card { background: rgba(243, 233, 207, .06); border: 1px solid rgba(243, 233, 207, .14); border-radius: 15px; padding: 18px 20px; }
.tl-card.hot { background: rgba(201, 154, 63, .12); border: 1px solid rgba(201, 154, 63, .5); }
.tl-card-head { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 5px; }
.tl-card h3 { font-family: 'Marcellus', serif; font-size: clamp(19px, 2.2vw, 22px); color: #F8F1DD; }
.tl-cat { font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 4px 11px; border-radius: 999px; }
.tl-hot {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #5d420f; background: var(--oro);
  padding: 4px 10px; border-radius: 999px;
}
.tl-card p { font-size: 15px; line-height: 1.6; color: #D6CDB2; }

/* ---------- Cucina ---------- */
.cucina-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(28px, 5vw, 60px); align-items: center; }
.cucina-foto {
  aspect-ratio: 1200 / 801; border-radius: 190px 190px 16px 16px; overflow: hidden;
  border: 1px solid rgba(27, 36, 29, .16); background: var(--carta2);
  box-shadow: 0 22px 48px -34px rgba(27, 36, 29, .55);
}
.cucina-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag-confirm.chiaro { color: #8f6222; border-color: rgba(201, 154, 63, .6); }
.piatti-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; margin-top: clamp(38px, 5vw, 54px); }
.piatto {
  background: var(--panna); border: 1px solid rgba(27, 36, 29, .12); border-radius: 14px;
  overflow: hidden; box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
  transition: transform .22s ease, box-shadow .28s ease;
}
@media (hover: hover) and (pointer: fine) {
  .piatto:hover { transform: translateY(-5px); box-shadow: 0 28px 52px -26px rgba(27, 36, 29, .55); }
}
.piatto-filari { height: 11px; }
.piatto-filari.cotto { background: repeating-linear-gradient(0deg, #E3D4AE 0 2.5px, var(--cotto) 2.5px 5.5px); }
.piatto-filari.oro { background: repeating-linear-gradient(0deg, #E3D4AE 0 2.5px, var(--oro) 2.5px 5.5px); }
.piatto-filari.muschio { background: repeating-linear-gradient(0deg, #E3D4AE 0 2.5px, var(--muschio) 2.5px 5.5px); }
.piatto-filari.rosso { background: repeating-linear-gradient(0deg, #E3D4AE 0 2.5px, var(--rosso) 2.5px 5.5px); }
.piatto-body { padding: 20px 22px; }
.piatto h3 { font-family: 'Marcellus', serif; font-size: 21px; color: var(--ink); }
.piatto p { font-size: 14.5px; line-height: 1.6; color: var(--muto); margin-top: 6px; }

/* ---------- Menù completo (bottone + overlay) ---------- */
.menu-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(30px, 4vw, 42px); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #FFF; font-weight: 700; font-size: 16px; font-family: inherit;
  border: 0; cursor: pointer; padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 16px 34px -14px var(--accent);
  transition: transform .16s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .menu-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px var(--accent); }
}
.menu-cta-note { font-size: 13px; color: var(--muto); }
.menu-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  padding: 4vh 16px; background: rgba(20, 26, 21, .74); backdrop-filter: blur(3px);
  overflow-y: auto;
}
.menu-overlay.open { display: flex; }
.menu-sheet {
  position: relative; width: min(880px, 100%); margin: auto;
  background: var(--carta); border: 1px solid rgba(27, 36, 29, .18); border-radius: 20px;
  box-shadow: 0 44px 90px -30px rgba(0, 0, 0, .65);
  padding: clamp(30px, 5vw, 50px);
}
.menu-sheet::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 11px;
  border-radius: 20px 20px 0 0;
  background: repeating-linear-gradient(0deg, #E3D4AE 0 2.5px, var(--oro) 2.5px 5.5px);
}
.menu-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 1px solid rgba(27, 36, 29, .2);
  background: var(--panna); color: var(--ink); border-radius: 999px; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .menu-close:hover { background: var(--tufo); }
}
.menu-head { text-align: center; }
.menu-kicker { font-family: 'Marcellus', serif; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--cotto); }
.menu-head h3 { font-family: 'Marcellus', serif; font-size: clamp(30px, 4.5vw, 40px); color: var(--ink); margin-top: 8px; }
.menu-sub { font-size: 14px; color: var(--muto); margin-top: 6px; }
.menu-cols { column-count: 2; column-gap: 46px; margin-top: 14px; }
.menu-cat { break-inside: avoid; margin-top: 26px; }
.menu-cat h4 { font-family: 'Marcellus', serif; font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.menu-cat h4::after { content: ""; flex: 1; height: 1px; background: rgba(201, 154, 63, .55); }
.menu-cat ul { list-style: none; margin: 10px 0 0; padding: 0; }
.menu-cat li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.mi-n { font-size: 15px; color: var(--testo); }
.mi-dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(27, 36, 29, .22); transform: translateY(-3px); }
.mi-p { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-note { margin-top: 28px; text-align: center; font-size: 13px; color: var(--muto); }
@media (max-width: 720px) {
  .menu-cols { column-count: 1; }
  .menu-sheet { padding: 34px 20px 28px; }
  .menu-close { top: 12px; right: 12px; }
}

/* ---------- Galleria ---------- */
.galleria-section { background: var(--carta2); }
.galleria-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.galleria-count { font-family: 'Marcellus', serif; font-size: clamp(15px, 1.8vw, 18px); color: var(--muto); white-space: nowrap; }
.galleria-grid { columns: 3 300px; column-gap: 14px; margin-top: clamp(30px, 4vw, 44px); }
.galleria-note { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--muto); }
.galleria-note a { color: inherit; }
.g-item {
  break-inside: avoid; margin-bottom: 14px; display: block; width: 100%;
  border: none; padding: 0; cursor: zoom-in; position: relative;
  border-radius: 14px; overflow: hidden; background: var(--carta);
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
  transition: transform .22s ease, box-shadow .28s ease;
}
@media (hover: hover) and (pointer: fine) {
  .g-item:hover { transform: translateY(-4px); box-shadow: 0 28px 52px -26px rgba(27, 36, 29, .6); }
}
.g-item.arch { border-radius: 170px 170px 14px 14px; }
.g-item img { width: 100%; height: auto; display: block; }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(27, 36, 29, .38) 100%);
  opacity: 0; transition: opacity .22s ease; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .g-item:hover::after { opacity: 1; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(14, 21, 16, .96); padding: clamp(14px, 3vw, 40px);
}
.lightbox.open { display: flex; }
.lb-img-wrap { position: relative; max-width: min(1200px, 92vw); max-height: 84vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img {
  max-width: 100%; max-height: 84vh; width: auto; height: auto; display: block;
  border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.lb-btn {
  position: absolute; z-index: 101; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(243, 233, 207, .3); background: rgba(27, 36, 29, .65);
  color: #F3E9CF; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .16s ease, transform .16s ease;
}
@media (hover: hover) and (pointer: fine) {
  .lb-btn:hover { background: var(--accent); transform: scale(1.06); }
}
.lb-close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lb-prev { left: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) {
  .lb-prev:hover { transform: translateY(-50%) scale(1.06); }
  .lb-next:hover { transform: translateY(-50%) scale(1.06); }
}
.lb-counter {
  position: absolute; bottom: clamp(14px, 3vw, 26px); left: 50%; transform: translateX(-50%);
  font-family: 'Marcellus', serif; font-size: 15px; letter-spacing: .18em;
  color: rgba(243, 233, 207, .85);
}

/* ---------- Protezione foto (deterrente al salvataggio) ---------- */
/* La locandina (#locandinaBtn) resta fuori: scaricarla è voluto. */
.g-item img, .lb-img-wrap img, .lb-img-wrap,
.arch-photo img, .cucina-foto img, .faq-foto, .mappa-img,
.hero video, .hero-logo, .footer-logo {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iOS: niente "Salva immagine" da pressione lunga */
}
.g-item img, .mappa-img, .hero video { pointer-events: none; }
/* Scudo trasparente sul lightbox: right-click e long-press colpiscono lo scudo,
   non l'immagine. Lo swipe vive su #lightbox (bubbling) e non ne è toccato. */
.lb-img-wrap::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Solidarietà ---------- */
.solidarieta-section { position: relative; background: linear-gradient(160deg, #28362B 0%, var(--ink2) 100%); color: #F3E9CF; overflow: hidden; }
.solidarieta-ring {
  position: absolute; top: -70px; right: -50px; width: 340px; height: 340px; border-radius: 50%;
  border: 2px solid rgba(201, 154, 63, .2); box-shadow: inset 0 0 0 22px rgba(201, 154, 63, .06);
  display: flex; align-items: center; justify-content: center; color: rgba(201, 154, 63, .28); pointer-events: none;
}
.solidarieta-inner { position: relative; max-width: 920px; margin: 0 auto; }
.solidarieta-inner .h2 { color: #F8F1DD; margin-top: 16px; max-width: 18ch; font-size: clamp(31px, 4.6vw, 56px); }
.solidarieta-lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.75; color: #E1D8BD; margin-top: 18px; max-width: 60ch; }
.solidarieta-lead strong { color: #F8F1DD; }
.causa-box {
  margin-top: 32px; background: rgba(243, 233, 207, .07);
  border: 1px solid rgba(243, 233, 207, .16); border-radius: 18px;
  padding: clamp(24px, 4vw, 36px);
}
.causa-kicker { font-family: 'Marcellus', serif; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--oro); }
.causa-testo { font-family: 'Marcellus', serif; font-size: clamp(22px, 3vw, 30px); color: #F8F1DD; line-height: 1.25; margin-top: 10px; }
.causa-desc { font-size: 15px; line-height: 1.65; color: #D6CDB2; margin-top: 12px; max-width: 58ch; }
.causa-box .tag-confirm { margin-top: 14px; }
.impegni-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.impegno {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(243, 233, 207, .07); border: 1px solid rgba(243, 233, 207, .16);
  border-radius: 15px; padding: 18px 20px; text-decoration: none;
  font-size: 14px; line-height: 1.55; color: #D6CDB2;
}
.impegno strong { color: #F8F1DD; font-weight: 600; font-family: 'Marcellus', serif; font-size: 16.5px; letter-spacing: .01em; }
a.impegno { transition: border-color .2s ease, background .2s ease; }
@media (hover: hover) and (pointer: fine) {
  a.impegno:hover { border-color: rgba(201, 154, 63, .55); background: rgba(201, 154, 63, .1); }
}
.impegno-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--oro); color: var(--oro);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Info utili (FAQ) ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 40px); align-items: start; }
.faq {
  background: var(--panna); border: 1px solid rgba(27, 36, 29, .12); border-radius: 15px;
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
}
.faq summary {
  display: flex; align-items: center; gap: 13px; padding: 17px 20px;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .info-icon { width: 38px; height: 38px; flex: 0 0 auto; }
.faq summary .info-title { flex: 1; font-size: 17px; }
.faq .chevron { flex: 0 0 auto; color: var(--muto); transition: transform .22s ease; }
.faq[open] .chevron { transform: rotate(180deg); }
.faq .faq-body { padding: 0 20px 18px 71px; font-size: 15px; color: var(--muto); line-height: 1.65; }
.faq .faq-body a { color: var(--cotto); }
.faq .faq-foto {
  display: block; width: 100%; height: auto; margin-top: 13px;
  border-radius: 11px; border: 1px solid rgba(27, 36, 29, .14);
}
@media (max-width: 560px) { .faq .faq-body { padding-left: 20px; } }

/* ---------- Volontari ---------- */
.volontari-section { background: var(--carta2); }
.archetti-up.carta2 { background-color: var(--carta2); }
.piatto p.gancio { font-family: 'Marcellus', serif; font-style: italic; font-size: 15.5px; color: var(--cotto); margin-top: 10px; }
.volontari-quote {
  margin-top: clamp(34px, 5vw, 48px); background: var(--panna);
  border: 1px solid rgba(27, 36, 29, .12); border-left: 4px solid var(--oro);
  border-radius: 18px; padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
}
.volontari-quote blockquote { font-family: 'Marcellus', serif; font-size: clamp(20px, 2.7vw, 28px); line-height: 1.3; color: var(--ink); }
.volontari-quote p { font-size: 15px; line-height: 1.65; color: var(--muto); margin-top: 12px; max-width: 60ch; }
.volontari-cta { margin-top: clamp(34px, 5vw, 48px); }
.volontari-cta h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(21px, 2.4vw, 26px); color: var(--ink); margin-bottom: 18px; }

/* ---------- Dove siamo ---------- */
.dove-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(24px, 4vw, 44px); margin-top: 30px; align-items: start; }
.mappa {
  position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden;
  text-decoration: none; border: 1px solid rgba(27, 36, 29, .14);
  background: linear-gradient(150deg, #E9E4CF 0%, #E0DBC2 100%);
  box-shadow: 0 20px 46px -34px rgba(27, 36, 29, .55);
  transition: transform .25s ease, box-shadow .3s ease, border-color .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .mappa:hover { transform: translateY(-4px); box-shadow: 0 32px 58px -30px rgba(27, 36, 29, .6); border-color: rgba(180, 89, 59, .5); }
}
.mappa-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) saturate(.85); }
.mappa-attrib {
  position: absolute; right: 8px; bottom: 8px; font-size: 10px; color: rgba(27, 36, 29, .75);
  background: rgba(246, 239, 220, .82); padding: 2px 7px; border-radius: 6px;
}
.mappa-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; color: var(--cotto); }
.mappa-label {
  position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: #F3E9CF;
  font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(27, 36, 29, .12); }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.info-icon.cotto { border: 1.5px solid var(--cotto); color: var(--cotto); }
.info-icon.muschio { border: 1.5px solid var(--muschio); color: var(--muschio); }
.info-icon.oro { border: 1.5px solid var(--oro); color: #A57A28; }
.info-title { font-family: 'Marcellus', serif; color: var(--ink); font-size: 18px; }
.info-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.info-row p { font-size: 15px; color: var(--muto); line-height: 1.6; margin-top: 3px; }
.tag-confirm.sm { font-size: 11px; padding: 3px 9px; color: #8f6222; border-color: rgba(201, 154, 63, .6); }

/* ---------- Contatti ---------- */
.contatti-section { background: var(--carta2); }
.contatti-inner { max-width: 1020px; margin: 0 auto; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.social-card {
  display: flex; align-items: center; gap: 14px; background: var(--panna);
  border: 1px solid rgba(27, 36, 29, .12); border-radius: 15px; padding: 20px 22px;
  text-decoration: none; transition: transform .16s ease, box-shadow .2s ease;
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
}
@media (hover: hover) and (pointer: fine) {
  .social-card:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -30px rgba(27, 36, 29, .6); }
}
.social-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFF; }
.social-icon.ig { background: linear-gradient(135deg, var(--cotto), var(--oro)); }
.social-icon.fb { background: var(--ink); color: #F3E9CF; }
.social-icon.wa { background: var(--muschio); }
.social-icon.lc { background: var(--rosso); }
.social-card > div:last-child { min-width: 0; }
.social-kicker { font-size: 12px; color: var(--muto); font-weight: 600; }
.social-name { font-family: 'Marcellus', serif; font-size: 18px; color: var(--ink); overflow-wrap: anywhere; }
.contatti-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.contatto-box { background: var(--panna); border: 1px solid rgba(27, 36, 29, .12); border-radius: 15px; padding: 22px; }
.contatto-box p { font-size: 15px; color: var(--muto); line-height: 1.6; margin-top: 6px; }
/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D6CDB2; padding: clamp(52px, 7vw, 76px) clamp(22px, 6vw, 80px) 34px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; align-items: start; }
.footer-logo { display: block; width: min(210px, 60vw); height: auto; opacity: .95; }
.footer-desc { font-size: 14px; line-height: 1.65; margin-top: 16px; max-width: 34ch; }
.footer-patrocinio { font-size: 12px; color: #A2AB90; margin-top: 8px; }
.footer-kicker { font-family: 'Marcellus', serif; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--oro); margin-bottom: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #D6CDB2; text-decoration: none; font-size: 15px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(243, 233, 207, .08);
  border: 1px solid rgba(243, 233, 207, .18); display: flex; align-items: center;
  justify-content: center; color: #F3E9CF; text-decoration: none;
}
.footer-bells {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 1px solid rgba(243, 233, 207, .28); color: #E9E0C8;
  font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 16px;
  border-radius: 999px; cursor: pointer; transition: background .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-bells:hover { background: rgba(243, 233, 207, .08); }
}
.footer-bottom {
  max-width: 1240px; margin: 34px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(243, 233, 207, .14);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: 13px; color: #A2AB90;
}
.footer-edizione { font-family: 'Marcellus', serif; color: var(--oro); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .tower-rotor, .hero-scroll-dot, .tw-campana, .tw-battaglio, .ringing, .notte-evidenzia { animation: none !important; }
  .tower-waves i { animation: none !important; opacity: 0; }
  .tower-stage .tower, .tower-ground { transition: none !important; }
  .programma-cielo::after { animation: none !important; }
}

/* ---------- Soundtrack (musica live) ---------- */
.soundtrack-section {
  position: relative; overflow: hidden; background: var(--carta2);
  --musica: #E67062; --musica-ink: #9C4130;
}
.soundtrack-vinyl {
  position: absolute; top: -70px; right: -70px; width: 330px; height: 330px; border-radius: 50%;
  border: 2px solid rgba(27, 36, 29, .10);
  background:
    radial-gradient(circle at 50% 50%, rgba(230, 112, 98, .14) 0 21%, transparent 21.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(27, 36, 29, .08) 0 1.6px, transparent 1.6px 8px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(230, 112, 98, .38); pointer-events: none;
}
.soundtrack-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
.soundtrack-live {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: #F6EFDC; background: var(--rosso); padding: 6px 14px; border-radius: 999px;
}
.soundtrack-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F6EFDC; }

.notti {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start; /* ogni card alla sua altezza naturale: quelle senza foto non si allungano */
  gap: clamp(16px, 2vw, 22px); margin-top: clamp(38px, 5vw, 54px);
}
.notte {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panna); border: 1px solid rgba(27, 36, 29, .12); border-radius: 14px;
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
  transition: transform .22s ease, box-shadow .28s ease, border-color .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .notte:hover { transform: translateY(-5px); box-shadow: 0 28px 52px -26px rgba(27, 36, 29, .55); border-color: rgba(230, 112, 98, .5); }
}
.notte::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 112px; height: 112px;
  border-radius: 50%; pointer-events: none; opacity: .10;
  background:
    radial-gradient(circle at 50% 50%, var(--musica) 0 17%, transparent 17.5% 26%, rgba(27, 36, 29, .55) 26.5% 28%, transparent 28.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(27, 36, 29, .5) 0 1.2px, transparent 1.2px 6px);
  transition: transform .5s ease, opacity .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .notte:hover::after { transform: rotate(28deg) scale(1.12); opacity: .16; }
}
.notte-doppia { grid-column: span 2; }
.notte-filari { flex: 0 0 auto; height: 11px; background: repeating-linear-gradient(0deg, #E3D4AE 0 2.5px, var(--musica) 2.5px 5.5px); }
.notte-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.notte-giorno { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--musica-ink); }
.notte-doppia-tag {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  color: var(--musica-ink); background: rgba(230, 112, 98, .14);
  border: 1px solid rgba(230, 112, 98, .38); padding: 3px 9px; border-radius: 999px;
}
.notte-band {
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.22; color: var(--ink);
  margin: 10px 0 14px; overflow-wrap: break-word; text-wrap: balance;
}
.notte-band-nota { font-size: .78em; color: var(--muto); white-space: nowrap; }
.notte-ora {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Marcellus', serif; font-size: 14.5px; letter-spacing: .05em; color: var(--musica-ink);
  background: rgba(230, 112, 98, .13); border: 1px solid rgba(230, 112, 98, .38);
  padding: 6px 13px; border-radius: 999px;
}
.notte-atti { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; flex: 1; margin-top: 2px; }
.atto { display: flex; flex-direction: column; padding: 12px 0 0; }
.atto + .atto { border-left: 1px dashed rgba(27, 36, 29, .18); padding-left: 22px; }
/* pulsante «Condividi» della serata: pill nei toni musica, gemello del chip .notte-ora
   (niente .btn-ghost qui: è color crema, sparirebbe sul fondo panna della card) */
.notte-share {
  margin-top: 12px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  color: var(--musica-ink); background: transparent;
  border: 1.5px solid rgba(230, 112, 98, .45);
  padding: 7px 14px; border-radius: 999px;
  transition: background .18s ease, border-color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .notte-share:hover { background: rgba(230, 112, 98, .13); border-color: rgba(230, 112, 98, .7); }
}
/* arrivo da un link condiviso (/#serata-…): pulse di benvenuto sulla card;
   il bordo statico resta anche con animazioni spente (reduced motion) */
.notte-evidenzia { border-color: rgba(230, 112, 98, .85); animation: notteEvidenzia 1.6s ease 2; }
@keyframes notteEvidenzia {
  0%, 100% { box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5); }
  40% { box-shadow: 0 0 0 6px rgba(230, 112, 98, .3), 0 18px 40px -30px rgba(27, 36, 29, .5); }
}

/* ---------- Soundtrack: copertina foto della band (card potenziata) ---------- */
.notte-cover {
  position: relative; z-index: 1; margin: 0; flex: 0 0 auto;
  aspect-ratio: 4 / 3; overflow: hidden; background: #E3D4AE;
}
.notte-cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block; transition: transform .5s ease;
}
/* band senza foto di gruppo: il logo colorato mostrato intero su fondo chiaro, non ritagliato */
.notte-cover--logo { background: #fff; padding: 10px; }
.notte-cover--logo img { object-fit: contain; object-position: center; }
@media (hover: hover) and (pointer: fine) {
  .notte:hover .notte-cover img:not(.notte-logo) { transform: scale(1.045); }
}
/* logo opzionale: marchietto su chip chiaro, in basso a sinistra sulla foto
   (selettore img.notte-logo: deve battere la specificità di `.notte-cover img`,
   che altrimenti impone width/height 100% e il logo copre tutta la foto) */
.notte-cover img.notte-logo {
  position: absolute; left: 12px; bottom: 12px;
  height: 56px; width: auto; max-width: 62%;
  padding: 6px 9px; background: rgba(255, 255, 255, .92); border-radius: 10px;
  box-shadow: 0 6px 16px -8px rgba(27, 36, 29, .55); object-fit: contain;
}
/* riga breve genere / provenienza, sotto il nome band */
.notte-genere {
  margin: -6px 0 14px; font-size: 13px; line-height: 1.4; color: var(--muto);
}
/* thumbnail per-atto nella card doppia (quando arriveranno le foto) */
.atto-cover {
  margin: 0 0 10px; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 10px; background: #E3D4AE;
}
.atto-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1200px) {
  .notti { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notte-doppia { grid-column: 1 / -1; }
  .soundtrack-vinyl { width: 240px; height: 240px; top: -60px; right: -80px; }
}
@media (max-width: 640px) {
  .notti { grid-template-columns: 1fr; }
  .notte-atti { grid-template-columns: 1fr; }
  .atto + .atto { border-left: 0; padding-left: 0; border-top: 1px dashed rgba(27, 36, 29, .18); margin-top: 12px; padding-top: 12px; }
  .notte-cover { aspect-ratio: 16 / 10; }
}

/* ---------- Nav: compattamento per l'undicesimo link (Lotteria); burger sotto i 1280px ---------- */
.nav-links a { font-size: 13.5px; padding: 8px 7px; white-space: nowrap; }
.nav-links a.nav-cta { padding: 9px 14px; margin-left: 5px; }

/* ---------- Programma: card anteprima (Festa dell'Anziano) ---------- */
.programma-anteprima {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
  margin: 30px 0 4px; padding: 16px 20px;
  border: 1px dashed rgba(201, 154, 63, .5); border-radius: 14px;
  background: rgba(243, 233, 207, .05);
}
.anteprima-tag {
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oro); white-space: nowrap;
}
.anteprima-body h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 18px; color: #F3E9CF; margin: 0; }
.anteprima-body p { font-size: 14px; color: #C9C2A8; margin: 4px 0 0; }

/* ---------- Eventi in evidenza ---------- */
.evidenza-section {
  background: var(--ink); color: #F3E9CF;
  border-top: 1px solid rgba(243, 233, 207, .14);
  padding: clamp(32px, 4.5vw, 52px) clamp(22px, 6vw, 80px);
}
.evidenza-inner { max-width: 1020px; margin: 0 auto; }
.evidenza-head .h2 { color: #F8F1DD; margin-top: 10px; }
.evidenza-stage { display: grid; margin-top: 18px; }
.evidenza-card {
  grid-area: 1 / 1;
  display: flex; gap: clamp(16px, 2.5vw, 28px); align-items: flex-start;
  background: rgba(243, 233, 207, .06); border: 1px solid rgba(243, 233, 207, .14);
  border-radius: 15px; padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.6vw, 28px);
  text-decoration: none; color: inherit;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: border-color .22s ease;
}
.evidenza-card.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .evidenza-card:hover { border-color: rgba(201, 154, 63, .5); }
}
.ev-when {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; min-width: 88px;
  padding-right: clamp(16px, 2.5vw, 28px);
  border-right: 1px dashed rgba(243, 233, 207, .2);
}
.ev-day { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.ev-date { font-size: 13px; color: #C9C2A8; }
.ev-time { font-family: 'Marcellus', serif; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; color: var(--oro); margin-top: 4px; }
.ev-body { flex: 1; min-width: 0; }
.ev-head { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.ev-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ev-cat { font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 4px 11px; border-radius: 999px; }
.ev-body h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(19px, 2.3vw, 24px); color: #F8F1DD; margin: 8px 0 4px; text-wrap: balance; }
.ev-body p { font-size: 14.5px; line-height: 1.55; color: #D6CDB2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: var(--oro);
}
@media (hover: hover) and (pointer: fine) {
  .evidenza-card:hover .ev-link { text-decoration: underline; }
}
.evidenza-dots { display: flex; gap: 8px; margin-top: 14px; }
.evidenza-dot {
  position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(243, 233, 207, .25); cursor: pointer; overflow: hidden;
  transition: background .18s ease, width .28s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .evidenza-dot:hover { background: rgba(243, 233, 207, .5); }
}
.evidenza-dot.active { width: 34px; background: rgba(243, 233, 207, .22); }
.evidenza-dot .dot-fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--oro); transform: scaleX(0); transform-origin: left center;
}
.evidenza-dot.active .dot-fill { transform: scaleX(1); }
@media (max-width: 640px) {
  .evidenza-card { flex-direction: column; gap: 14px; }
  .ev-when {
    flex-direction: row; align-items: baseline; gap: 10px; width: 100%; min-width: 0;
    padding-right: 0; padding-bottom: 12px;
    border-right: 0; border-bottom: 1px dashed rgba(243, 233, 207, .2);
  }
  .ev-time { margin-top: 0; margin-left: auto; font-size: 28px; }
}

/* ---------- Lotteria ---------- */
.lotteria-section { position: relative; overflow: hidden; }
.lotteria-coccarda {
  position: absolute; top: -64px; right: -64px; width: 300px; height: 300px; border-radius: 50%;
  border: 2px dashed rgba(201, 154, 63, .4);
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 154, 63, .13) 0 24%, transparent 24.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(201, 154, 63, .18) 0 1.6px, transparent 1.6px 9px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(201, 154, 63, .42); pointer-events: none;
}
.lotteria-section .section-inner { position: relative; }
.lotteria-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.lotteria-count { font-family: 'Marcellus', serif; font-size: clamp(15px, 1.8vw, 18px); color: var(--muto); white-space: nowrap; }
.lotteria-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lotteria-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Marcellus', serif; font-size: 14.5px; letter-spacing: .04em; color: #8f6222;
  background: rgba(201, 154, 63, .13); border: 1px solid rgba(201, 154, 63, .45);
  padding: 8px 15px; border-radius: 999px;
}
.podio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; margin-top: clamp(34px, 5vw, 48px); }
.premio .piatto-body { display: flex; flex-direction: column; align-items: flex-start; }
.premio-rank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 10px; border-radius: 999px;
  font-family: 'Marcellus', serif; font-size: 20px; line-height: 1;
}
.premio-rank.oro { color: #8f6222; background: rgba(201, 154, 63, .14); border: 1px solid rgba(201, 154, 63, .5); }
.premio-rank.cotto { color: var(--cotto); background: rgba(180, 89, 59, .12); border: 1px solid rgba(180, 89, 59, .42); }
.premio-rank.muschio { color: var(--muschio); background: rgba(116, 132, 107, .14); border: 1px solid rgba(116, 132, 107, .48); }
.premio h3 { margin-top: 13px; text-wrap: balance; }
.premi-sheet {
  position: relative; margin-top: 18px; overflow: hidden;
  background: var(--panna); border: 1px solid rgba(27, 36, 29, .12); border-radius: 16px;
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
  padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 44px) clamp(24px, 4vw, 36px);
}
.premi-sheet::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 11px;
  background: repeating-linear-gradient(0deg, #E3D4AE 0 2.5px, var(--oro) 2.5px 5.5px);
}
.premi-sheet-head { display: flex; align-items: baseline; gap: 14px; }
.premi-sheet-head h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 21px; color: var(--ink); }
.premi-sheet-head::after { content: ""; flex: 1; height: 1px; background: rgba(201, 154, 63, .55); order: 1; }
.premi-sheet-anno { order: 2; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8f6222; white-space: nowrap; }
.premi-list { list-style: none; margin: 12px 0 0; padding: 0; column-count: 2; column-gap: 46px; }
.premi-list li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(27, 36, 29, .16); break-inside: avoid; }
.premi-list li > span:last-child { font-size: 15px; color: var(--testo); }
.premio-num { flex: 0 0 36px; font-family: 'Marcellus', serif; font-size: 16px; color: var(--cotto); }
.lotteria-note { margin-top: 24px; text-align: center; font-size: 13px; color: var(--muto); max-width: 62ch; margin-left: auto; margin-right: auto; }
@media (max-width: 1200px) {
  .lotteria-coccarda { width: 230px; height: 230px; top: -60px; right: -80px; }
}
@media (max-width: 720px) {
  .premi-list { column-count: 1; }
}

/* ---------- Accessibilità: focus visibile & skip-link ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cotto); outline-offset: 3px;
}
/* su fondo cotto o scuro l'anello cotto sparirebbe: variante chiara */
.btn-primary:focus-visible, .nav-cta:focus-visible, .lb-btn:focus-visible,
.campane-btn:focus-visible, .footer-bells:focus-visible, .hero-scroll:focus-visible,
.btn-ghost:focus-visible, .tab:focus-visible, .cat-pill:focus-visible,
.evidenza-card:focus-visible, .evidenza-dot:focus-visible {
  outline-color: var(--panna);
}
.skip-link {
  position: fixed; top: 14px; left: 14px; z-index: 200;
  transform: translateY(-260%); transition: transform .18s ease;
  background: var(--ink); color: var(--panna); font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Salita al campanile (esperienza + effetti) ---------- */
/* La "telecamera" sale alla cella: scale(3) con origine in alto. Nella torre V4
   le campane sono al 25% dell'altezza (135em/540): translateY(-26%) le porta a
   ~47% dello stage a ogni breakpoint (il rapporto stage/torre è ~costante),
   sopra la card e sotto la cuspide */
.tower-stage .tower { transform-origin: 50% 0; transition: transform 2.8s cubic-bezier(.65, .05, .35, 1); }
.tower-stage.salita { overflow: hidden; }
.tower-stage.salita .tower { transform: translateY(-26%) scale(3); }
.tower-ground { transition: opacity .6s ease; }
.tower-stage.salita .tower-ground { opacity: 0; }

/* ---------- Salita scroll-driven: il binario e la scena sticky ---------- */
/* Senza .is-scroll (no-JS, reduced-motion, browser senza sticky: la classe la mette
   il JS dopo i suoi check) la scena resta un normale blocco in flusso e vale il
   percorso a bottone qui sopra. Con .is-scroll il binario è alto ~2.6 viewport,
   lo stage resta appiccicato e --salitaP (scritta dal rAF di onScroll) guida la
   telecamera: mai scroll-jacking, la scena è una funzione reversibile dello scroll. */
.salita-scene { position: relative; }
.salita-scroll-hint { display: none; }
.salita-scene.is-scroll { height: 260vh; } /* vh ≡ lvh: stabile al collasso della barra URL mobile */
.salita-scene.is-scroll .salita-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; /* svh: tutto in viewport anche con barra URL visibile */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  overflow: hidden;
  transform: translateZ(0); /* layer dedicato: isola il contesto 3D (quirk iOS sticky+preserve-3d) */
}
/* La scena respira a tutta larghezza: il campanile è pendente (rotate 1.8deg,
   origine in basso) e a scale(3) la cima si sposta di ~67px oltre la colonna da
   340px — la finestra si allarga (fino a 640px, full-bleed oltre il padding di
   sezione) così in vetta tetto e cella non vengono mai tagliati dal bordo. */
.salita-scene.is-scroll {
  margin-left: calc(clamp(22px, 6vw, 80px) * -1);
  margin-right: calc(clamp(22px, 6vw, 80px) * -1);
}
.salita-scene.is-scroll .tower-stage-wrap { width: 100%; }
.salita-scene.is-scroll .tower-stage { width: min(100%, 640px); }
/* La telecamera: stesso arrivo della salita a click (regole sopra), ma il transform
   lo scrive il JS inline a ogni frame (salitaScroll) — niente calc()+var() nelle
   funzioni transform, che sui WebKit meno recenti viene scartato in blocco (torre
   ferma con pin attivo). La transition 2.8s va neutralizzata: il tempo lo detta lo scroll. */
.salita-scene.is-scroll .tower-stage { overflow: hidden; }
.salita-scene.is-scroll .tower-stage .tower {
  transition: none;
  will-change: transform;
}
.salita-scene.is-scroll .tower-ground { transition: none; opacity: calc(1 - var(--salitaP, 0) * 2.2); }
/* In scena quota e card vengono spostate dal JS dentro .salita-sticky: fuori dal
   contesto 3D dello stage (le cui facce, a translateZ positivi, sui viewport bassi
   le coprirebbero) e fuori dal suo overflow. Ancorate al viewport per tutta la
   traversata, sopra la torre per normale z-order. */
.salita-scene.is-scroll .salita-quota { position: absolute; top: 82px; left: 50%; transform: translateX(-50%); z-index: 3; }
.salita-scene.is-scroll .salita-card {
  position: absolute; left: 50%; right: auto; bottom: 20px;
  transform: translateX(-50%); width: min(330px, calc(100% - 28px)); z-index: 3;
}
.salita-scene.is-scroll .salita-btn { display: none; } /* il bottone resta il fallback no-JS/reduced-motion */
.salita-scene.is-scroll .salita-scroll-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muto);
}
@media (max-width: 720px) { .salita-scene.is-scroll { height: 220vh; } }
/* Schermi bassi: a riposo la torre deve stare intera dentro i 100svh dello sticky.
   Solo oltre 480px di larghezza: sui telefoni portrait valgono già i tier di
   larghezza (470/.82 e 420/.74), più ariosi e coerenti tra i vari modelli. */
@media (max-height: 760px) and (min-width: 481px) {
  .salita-scene.is-scroll .tower-stage { height: 580px; }
  .salita-scene.is-scroll .tower-stage .tower { font-size: 1.02px; }
}
@media (max-height: 620px) and (min-width: 481px) {
  .salita-scene.is-scroll .tower-stage { height: 460px; }
  .salita-scene.is-scroll .tower-stage .tower { font-size: 0.8px; }
}
/* Telefono in landscape (viewport più basso della torre): inquadratura dedicata —
   la torre intera sotto la nav, niente hint (non ci starebbero mai). */
@media (max-height: 520px) {
  .salita-scene.is-scroll .salita-sticky { padding-top: 68px; }
  .salita-scene.is-scroll .tower-stage { height: 290px; }
  .salita-scene.is-scroll .tower-stage .tower { font-size: 0.5px; }
  .salita-scene.is-scroll .tower-hint, .salita-scene.is-scroll .salita-scroll-hint { display: none; }
}
/* Gli hint accompagnano solo la partenza: sfumano salendo, così in vetta non
   entrano in conflitto con la card (né col messaggio «si sale» già compiuto). */
.salita-scene.is-scroll .tower-hint,
.salita-scene.is-scroll .salita-scroll-hint { opacity: calc(1 - var(--salitaP, 0) * 2.5); }
.salita-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #FFF; font-weight: 700; font-size: 14.5px; font-family: inherit;
  border: 0; cursor: pointer; padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 14px 30px -14px var(--accent);
  transition: transform .16s ease, box-shadow .2s ease;
}
.salita-btn svg { transition: transform .3s ease; }
.salita-btn.giu svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .salita-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px var(--accent); }
}
.salita-quota {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(243, 233, 207, .94); border: 1px solid rgba(27, 36, 29, .16);
  border-radius: 10px; padding: 7px 13px;
  font-family: 'Marcellus', serif; font-size: 19px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.salita-card {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2;
  background: rgba(243, 233, 207, .97); border: 1px solid rgba(27, 36, 29, .18);
  border-radius: 13px; padding: 14px 16px; text-align: left; cursor: auto;
  box-shadow: 0 22px 44px -24px rgba(27, 36, 29, .6);
}
.salita-card strong { display: block; font-family: 'Marcellus', serif; font-weight: 400; font-size: 18px; color: var(--cotto); }
.salita-card p { font-size: 13.5px; line-height: 1.5; color: var(--testo); margin-top: 5px; }
.salita-card a { color: var(--cotto); font-weight: 700; }
.salita-block {
  position: relative; overflow: hidden; margin-top: clamp(36px, 5vw, 56px);
  background: var(--panna); border: 1px solid rgba(27, 36, 29, .12); border-radius: 16px;
  box-shadow: 0 18px 40px -30px rgba(27, 36, 29, .5);
  padding: clamp(26px, 4vw, 40px) clamp(20px, 4vw, 42px) clamp(24px, 4vw, 36px);
}
.salita-block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 11px;
  background: repeating-linear-gradient(0deg, #E3D4AE 0 2.5px, var(--cotto) 2.5px 5.5px);
}
.salita-head { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.salita-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--cotto); color: var(--cotto);
  display: flex; align-items: center; justify-content: center;
}
.salita-title { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(24px, 3vw, 32px); color: var(--ink); line-height: 1.12; margin-top: 4px; }
.salita-block .lead { margin-top: 16px; max-width: 62ch; }
.salita-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.salita-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Marcellus', serif; font-size: 14.5px; letter-spacing: .04em; color: var(--cotto);
  background: rgba(180, 89, 59, .1); border: 1px solid rgba(180, 89, 59, .4);
  padding: 8px 15px; border-radius: 999px;
}
.salita-storia { font-size: 14px; color: var(--muto); margin-top: 16px; }
.salita-storia a { color: var(--cotto); }
.campane-invito { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muto); max-width: 46ch; }
.campane-invito a { color: var(--cotto); font-weight: 600; }
.footer .campane-invito { color: #A2AB90; }
.footer .campane-invito a { color: var(--oro); }
.rail.cima .rail-meters { pointer-events: auto; }
.rail.cima .rail-meters-val { color: var(--cotto); }
.rail-meters-cap a { color: var(--cotto); text-decoration: none; }

/* ---------- Programma: fascia "Tutte le sere", linea ADESSO, cielo della serata ---------- */
.ogni-sera {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px;
  margin-top: 14px; padding: 16px 20px;
  background: rgba(243, 233, 207, .06); border: 1px solid rgba(243, 233, 207, .16);
  border-radius: 14px;
}
.ogni-sera-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); white-space: nowrap; }
.ogni-sera-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; flex: 1; min-width: min(100%, 300px); }
.ogni-sera-list li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.4; color: #C9C2A8; }
.ogni-sera-list strong { color: #F3E9CF; font-weight: 600; }
.ogni-sera-list a { color: inherit; text-decoration: underline; text-decoration-color: rgba(201, 154, 63, .6); text-underline-offset: 3px; }
.os-icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 640px) {
  .ogni-sera { padding: 14px 16px; }
  .ogni-sera-list li { width: 100%; }
}
.tl-now-line { display: flex; align-items: center; gap: 10px; margin: 2px 0 24px; }
.tl-now-time { font-family: 'Marcellus', serif; font-size: 15px; color: var(--oro); font-variant-numeric: tabular-nums; }
.tl-now-dash { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--oro), rgba(201, 154, 63, .12)); box-shadow: 0 0 12px rgba(201, 154, 63, .5); }
.tl-now-label { font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--oro); }
/* La sezione si fa notte scendendo: in alto un tepore dorato, in basso il cielo con le stelle */
.programma-cielo {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(201, 154, 63, .05) 0%, transparent 28%, rgba(5, 9, 15, .42) 100%);
}
.programma-cielo::before, .programma-cielo::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 23px 41px, rgba(243, 233, 207, .9) 50%, transparent 51%),
    radial-gradient(1px 1px at 97px 152px, rgba(243, 233, 207, .75) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 181px 74px, rgba(239, 201, 126, .85) 50%, transparent 51%),
    radial-gradient(1px 1px at 258px 189px, rgba(243, 233, 207, .7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 312px 118px, rgba(243, 233, 207, .8) 50%, transparent 51%),
    radial-gradient(1px 1px at 65px 246px, rgba(239, 201, 126, .7) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 220px 288px, rgba(243, 233, 207, .8) 50%, transparent 51%);
  background-size: 360px 320px;
  -webkit-mask-image: linear-gradient(180deg, transparent 38%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 38%, #000 72%);
  opacity: .35;
}
.programma-cielo::after {
  background-position: 140px 90px;
  animation: stelle 4.6s ease-in-out infinite alternate;
}
@keyframes stelle { from { opacity: .08; } to { opacity: .45; } }

/* ==========================================================================
   Rifinitura mobile — solo media query: la resa desktop (≥1281px) è invariata
   ========================================================================== */

@media (max-width: 1280px) {
  /* Menù burger: 11 voci ≈ 580px, su schermi bassi/landscape le ultime erano irraggiungibili */
  .nav-mobile.open {
    max-height: calc(100vh - 66px);
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Su mobile 96vh (large viewport) taglia la CTA sotto la barra indirizzi: svh usa il viewport minimo */
  .hero { min-height: 96svh; }
  .hero-content {
    padding-top: clamp(90px, 13svh, 150px);
    padding-bottom: clamp(80px, 12svh, 130px);
  }
}

@media (max-width: 640px) {
  /* Lightbox: controlli in barra inferiore, fuori dall'immagine; counter sopra i bottoni */
  .lb-btn { width: 42px; height: 42px; }
  .lb-prev, .lb-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
  .lb-prev:hover, .lb-next:hover { transform: none; } /* neutralizza l'hover desktop-narrow */
  .lb-counter { bottom: 74px; left: 12px; right: 12px; transform: none; text-align: center; font-size: 13px; }
  .lb-img-wrap, .lb-img-wrap img { max-height: 72vh; max-height: 72svh; }

  /* Cerchi decorativi: a 320-400px coprivano i titoli delle sezioni */
  .soundtrack-vinyl { width: 170px; height: 170px; top: -48px; right: -64px; }
  .lotteria-coccarda { width: 160px; height: 160px; top: -44px; right: -64px; }
  .solidarieta-ring { width: 210px; height: 210px; top: -56px; right: -70px; }
  .solidarieta-ring svg { width: 96px; height: 96px; }

  /* FAQ: il tag "Da confermare" va a capo sotto il titolo invece di sbordare */
  .faq summary { flex-wrap: wrap; row-gap: 4px; }
  .faq summary .tag-confirm.sm { order: 4; margin-left: 51px; }

  /* Menù overlay: la X resta raggiungibile anche scorrendo il foglio lungo */
  .menu-close { position: sticky; top: 10px; margin: 0 0 -40px auto; z-index: 5; }
  .menu-overlay { overscroll-behavior: contain; }

  /* Galleria a 2 colonne: a colonna singola occupava da sola 12 schermate */
  .galleria-grid { columns: 2; column-gap: 10px; }
  .g-item { margin-bottom: 10px; border-radius: 10px; }
  .g-item.arch { border-radius: 90px 90px 10px 10px; }

  /* Pilastri "La festa" in 2×2 compatti (erano 4 card impilate ≈ 900px) */
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pillar { padding: 22px 14px 18px; border-radius: 80px 80px 12px 12px; }
  .pillar-icon { width: 46px; height: 46px; }
  .pillar-icon svg { width: 19px; height: 19px; }
  .pillar h3 { font-size: 17px; margin: 12px 0 5px; }
  .pillar p { font-size: 13px; line-height: 1.5; }

  /* Podio lotteria: medaglia e premio sulla stessa riga */
  .premio .piatto-body { flex-direction: row; align-items: center; gap: 14px; }
  .premio-rank { min-width: 40px; height: 40px; font-size: 17px; }
  .premio h3 { margin-top: 0; font-size: 19px; }

  /* Card dei piatti leggermente più raccolte */
  .piatto-body { padding: 15px 17px; }
  .piatto h3 { font-size: 19px; }

  /* Footer: 10 link di navigazione su 2 colonne, logo più discreto */
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 4px; }
  .footer-logo { width: 170px; }
}

@media (max-width: 560px) {
  /* Timeline programma: colonna orari/spina più compatta, più spazio alla card */
  .tl-row { gap: 10px; }
  .tl-time { width: 44px; font-size: 16px; }
  .tl-spine { width: 26px; }
  .tl-icon { width: 26px; height: 26px; }
  .tl-card { padding: 14px; }
  .tl-card h3 { overflow-wrap: break-word; }
  .tl-body { padding-bottom: 18px; }
}

@media (max-width: 480px) {
  /* CTA hero a tutta larghezza, più comode al pollice */
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { justify-content: center; }
  /* Torre 3D proporzionata ai telefoni (scala via font-size: 540em ≈ 443px) */
  .tower-stage { height: 470px; }
  .tower-stage .tower { font-size: .82px; }
  .tower-ground { width: 170px; margin-left: -85px; }
  .anteprima-tag { white-space: normal; }
  /* Blocco salita: testata compatta, il titolo respira su due righe */
  .salita-head { gap: 12px; }
  .salita-icon { width: 42px; height: 42px; }
  .salita-icon svg { width: 19px; height: 19px; }
  .salita-title { font-size: 21px; }
  /* Hero più raccolto: stessi contenuti, meno aria verticale */
  .hero-content { padding-top: 84px; padding-bottom: 64px; }
  .hero h1 { margin-top: 16px; }
  .hero-slogan { margin-top: 16px; }
  .hero-payoff { margin-top: 12px; }
  .hero-meta { margin-top: 18px; gap: 8px; }
  .hero-ctas { margin-top: 22px; gap: 10px; }
}

@media (max-width: 360px) {
  /* Il titolo brand nowrap spingeva il burger oltre il bordo a 320px */
  .nav-brand-title { white-space: normal; font-size: 14px; line-height: 1.15; }
  .nav-brand-sub { font-size: 8.5px; letter-spacing: .15em; }
}

/* Target touch: area tap ~40px sui dot del carosello (aspetto invariato) e pill/link più generosi */
@media (pointer: coarse) and (max-width: 1280px) {
  .evidenza-dots { gap: 16px; min-height: 44px; align-items: center; }
  .evidenza-dot { overflow: visible; }
  .evidenza-dot::after { content: ""; position: absolute; inset: -15px; }
  .evidenza-dot .dot-fill { border-radius: 999px; }
  .cat-pill { padding: 10px 16px; }
  .footer-nav a { padding: 5px 0; }
}

/* Telefono in orizzontale: hero più basso, torre contenuta nel viewport */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .hero-content { padding-top: 72px; padding-bottom: 64px; }
  .hero-scroll { display: none; }
  .tower-stage { height: 420px; }
  .tower-stage .tower { font-size: .74px; }
}
