/* Il Villaggio di Babbo Natale – Rivoli · 2026/27 · versione WordPress (tema Twenty Twenty-Five, pagina a blocchi)
   Tutto è racchiuso nel gruppo .vbn, così gli stili del tema non interferiscono. */
@font-face { font-family: "Lobster"; src: url("../fonts/lobster-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --red: #AC303B; --red-dark: #8A262F; --paper: #FBF3E4; --paper-2: #F3E6CE;
  --teal: #1E5A3A; --orange: #CF9B2F; --wine: #3A1416; --ink: #2B1B17; --ink-soft: #5A4A43;
  --display: "Lobster", Georgia, cursive; --text: "Nunito", system-ui, sans-serif;
  --s1: clamp(40px, 7.4vw, 118px); --s2: clamp(36px, 4.6vw, 72px); --s3: clamp(22px, 2.4vw, 34px); --s4: 18px; --s5: 16px;
  --m: clamp(16px, 3vw, 40px); --gap: clamp(96px, 12vw, 180px); --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset dentro WordPress ---------- */
html { scroll-behavior: smooth; }
body:has(.vbn) { margin: 0; background: var(--paper); }
body:has(.vbn) .wp-site-blocks { padding: 0 !important; }
body:has(.vbn) .wp-site-blocks > *, body:has(.vbn) main { margin-block: 0 !important; }
body:has(.vbn) .wp-block-post-content { padding: 0 !important; }
.vbn { max-width: none !important; margin: 0 !important; color: var(--ink); font: 400 var(--s4)/1.55 var(--text); letter-spacing: normal; }
.vbn *, .vbn *::before, .vbn *::after { box-sizing: border-box; }
.vbn > *, .vbn .wp-block-group > *, .vbn .wp-block-details > *, .vbn .wp-block-list > * { margin-block: 0; max-width: none; }
.vbn h1, .vbn h2, .vbn h3, .vbn h4, .vbn p, .vbn ul, .vbn ol, .vbn figure { margin: 0; letter-spacing: normal; text-transform: none; }
.vbn h1, .vbn h2, .vbn h3, .vbn h4 { color: inherit; font-family: var(--text); line-height: 1.2; }
.vbn img { display: block; max-width: 100%; height: auto; }
.vbn a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.vbn a:hover { color: var(--red-dark); }
.vbn :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.vbn ::selection { background: var(--red); color: #fff; }
.vbn .wrap { width: 100%; max-width: 1440px; margin-inline: auto !important; padding-inline: var(--m); }
.vbn .display { font: 400 var(--s2)/1 var(--display); color: var(--red); letter-spacing: -0.01em; }
.vbn .small { font-size: var(--s5); line-height: 1.45; }
.vbn .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* pulsanti: una sola forma, tonda */
.vbn .wp-block-button__link, .vbn .coupon-send { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 800 var(--s4)/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.vbn .wp-block-button__link:hover, .vbn .coupon-send:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.vbn .wp-block-button__link:active, .vbn .coupon-send:active { transform: translateY(1px) scale(.98); }

/* ---------- COPERTINA ---------- */
.vbn .hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 48px var(--m); background: var(--teal); overflow: hidden; }
.vbn .hero-photo { position: absolute; inset: 0; z-index: 0; }
.vbn .hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); animation: vbn-drift 30s ease-in-out infinite alternate; }
@keyframes vbn-drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.vbn .card { position: relative; z-index: 1; width: min(100%, 880px); min-height: min(68svh, 640px); background: var(--paper); padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: clamp(20px, 3vh, 36px);
  -webkit-mask: radial-gradient(circle 9px at 50% 0, #0000 98%, #000) 50% 0 / 28px 100% repeat-x, radial-gradient(circle 9px at 50% 100%, #0000 98%, #000) 50% 100% / 28px 100% repeat-x;
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 9px at 50% 0, #0000 98%, #000) 50% 0 / 28px 100% repeat-x, radial-gradient(circle 9px at 50% 100%, #0000 98%, #000) 50% 100% / 28px 100% repeat-x; mask-composite: intersect; }
.vbn .hero > .plate { position: absolute; z-index: 2; width: clamp(140px, 14vw, 200px);
  left: calc(50% + min(440px, 50% - var(--m)) - clamp(70px, 7vw, 100px));
  top: calc(50% - max(min(34svh, 320px), 260px) - clamp(50px, 5vw, 80px)); }
.vbn .plate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 8px solid #fff; transform: rotate(4deg); }
.vbn .card-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 800; font-size: var(--s4); position: relative; z-index: 1; max-width: calc(100% - clamp(90px, 9vw, 130px)); }
.vbn .card-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.vbn .card-nav a:hover { color: var(--red); }
.vbn .card .title { font: 400 var(--s1)/.92 var(--display); color: var(--red); letter-spacing: -0.015em; max-width: 9.5em; }
.vbn .facts { font-weight: 900; font-size: var(--s3); line-height: 1.12; }
.vbn .facts::first-line { color: var(--teal); }
.vbn .card-note { font-size: var(--s4); font-weight: 600; max-width: 44ch; }
.vbn .card-foot { margin-top: auto !important; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.vbn .card-foot .wp-block-buttons { margin: 0; }
.vbn .card-foot .link { justify-self: end; font-weight: 800; }

/* ---------- IL VILLAGGIO ---------- */
.vbn .intro { padding-top: var(--gap); }
.vbn .intro-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.vbn .intro-top .display { grid-column: 1 / 7; font-size: var(--s1); line-height: .95; }
.vbn .intro-note { grid-column: 9 / 13; font-weight: 700; }
.vbn .intro-facts { display: flex; justify-content: space-between; gap: 32px; margin-top: 96px !important; }
.vbn .fact { flex: 1; max-width: 300px; }
.vbn .fact-n { font: 900 var(--s3)/1.1 var(--text); color: var(--teal); }
.vbn .fact-d { margin-top: 6px !important; font-size: var(--s5); color: var(--ink-soft); }
.vbn .intro-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; margin-top: 96px !important; align-items: start; }
.vbn .intro-text { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.vbn .intro-photo { grid-column: 7 / 13; }
.vbn .intro-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- PERCORSO: fasce di colore ---------- */
.vbn .route { padding-top: var(--gap); }
.vbn .route > .display { margin-bottom: 48px !important; }
.vbn .sheet { position: sticky; top: calc(var(--i, 0) * 72px); min-height: 86svh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: 0 var(--m); border-radius: 28px 28px 0 0; color: #fff; }
.vbn .sheet:nth-child(2) { --i: 0; } .vbn .sheet:nth-child(3) { --i: 1; } .vbn .sheet:nth-child(4) { --i: 2; } .vbn .sheet:nth-child(5) { --i: 3; }
.admin-bar .vbn .sheet { top: calc(var(--i, 0) * 72px + 32px); }
.vbn .sheet-red { background: var(--red); }
.vbn .sheet-teal { background: var(--teal); }
.vbn .sheet-wine { background: var(--red); }
.vbn .sheet-orange { background: var(--teal); }
.vbn .sheet-text { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 28px; padding-block: 18px 56px; }
.vbn .sheet-text > h3 { margin-bottom: clamp(16px, 4vh, 48px) !important; }
.vbn .sheet h3 { font: 400 var(--s3)/1.3 var(--display); min-height: 36px; }
.vbn .sheet p { font-size: var(--s3); line-height: 1.2; max-width: 30ch; font-weight: 800; }
.vbn .sheet-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px !important; max-width: 36em; }
.vbn .sheet-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: inherit; font-weight: 800; font-size: var(--s5); text-decoration: none; transition: background-color .15s, transform .15s var(--ease); }
.vbn .sheet-links a::after { content: "→"; }
.vbn .sheet-links a:hover { background: rgba(255, 255, 255, .3); color: inherit; transform: translateY(-2px); }
.vbn .bars .wp-block-details.flash > summary { background: #EBDABD; }
.vbn .sheet-photo { grid-column: 7 / 13; margin: 72px calc(var(--m) * -1) 0 0 !important; }
.vbn .sheet-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- INAUGURAZIONE: il biglietto ---------- */
.vbn .opening { padding-top: var(--gap); }
.vbn .ticket { display: grid; grid-template-columns: 1fr 300px; background: var(--red); color: #fff;
  -webkit-mask: radial-gradient(circle 16px at calc(100% - 300px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at calc(100% - 300px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 16px at calc(100% - 300px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at calc(100% - 300px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.vbn .ticket-main { padding: clamp(28px, 4vw, 56px); }
.vbn .ticket-main .display { color: #fff; }
.vbn .times { margin-top: 40px !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.vbn .time { display: flex; flex-direction: column; gap: 4px; }
.vbn .t-hour { font: 900 var(--s3)/1.1 var(--text); color: #FFE2C2; }
.vbn .place { font-weight: 800; }
.vbn .ticket-stub { padding: clamp(28px, 4vw, 48px) 32px; border-left: 6px dotted var(--paper); display: flex; flex-direction: column; background: var(--red-dark); }
.vbn .stub-day { font: 900 var(--s3)/1.05 var(--text); }
.vbn .stub-num { font: 400 var(--s1)/1 var(--display); }
.vbn .ticket-stub .small { color: #FFE3E0; margin-top: auto !important; padding-top: 24px; }

/* ---------- PROGRAMMA + OGGI ---------- */
.vbn .program { padding-top: var(--gap); }
.vbn .program-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
.vbn .program-grid > *, .vbn .arrive-grid > *, .vbn .schools-grid > *, .vbn .intro-body > * { min-width: 0; }
.vbn .today { position: sticky; top: 24px; }
.admin-bar .vbn .today { top: 56px; }
.vbn .today-inner { background: var(--teal); color: #fff; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.vbn .today h3 { font: 400 var(--s3)/1.15 var(--display); }
.vbn .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.vbn .wd { text-align: center; font-weight: 800; font-size: var(--s5); color: #E3F0E6; }
.vbn .day { min-width: 0; padding: 6px 0; border: 0; border-radius: 999px; background: #164A2F; color: #fff; font: 700 var(--s5)/1.15 var(--text); cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.vbn .day b { display: block; font-size: var(--s4); font-weight: 900; }
.vbn .day small { display: block; font-size: var(--s5); line-height: 1; min-height: 1em; }
.vbn .day:hover { transform: translateY(-2px); background: #143F28; }
.vbn .day[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.vbn .today-result h4 { font: 900 var(--s4)/1.25 var(--text); margin: 0 0 12px; }
.vbn .today-result ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vbn .today-result li { background: #164A2F; padding: 10px 14px; font-size: var(--s5); line-height: 1.35; }
.vbn .today-result li strong { display: block; }
.vbn .today-result li span { font-size: var(--s5); color: #E3F0E6; }
.vbn .today-result .soon { font-size: var(--s5); margin-bottom: 12px; }

.vbn .program-list { container-type: inline-size; }
.vbn .giant { font: 400 18.5cqw/.85 var(--display); color: var(--red); letter-spacing: -0.02em; margin-left: -0.04em !important; }
.vbn .program-sub { margin: 20px 0 28px !important; font-weight: 700; }
.vbn .bars { display: flex; flex-direction: column; gap: 6px; counter-reset: tappa; }
.vbn .bars .wp-block-details { counter-increment: tappa; background: var(--paper-2); }
.vbn .bars summary { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 18px; font-weight: 800; font-size: var(--s4); cursor: pointer; list-style: none; transition: background-color .15s; }
.vbn .bars summary::-webkit-details-marker { display: none; }
.vbn .bars summary::before { content: counter(tappa); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 900; font-size: var(--s5); }
.vbn .bars summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 600; transition: transform .2s var(--ease); }
.vbn .bars details[open] summary::after { transform: rotate(45deg); }
.vbn .bars summary:hover { background: #EBDABD; }
.vbn .bars .wp-block-details > :not(summary) { margin: 0 18px 0 66px !important; }
.vbn .bars .wp-block-details > :not(summary) + :not(summary) { margin-top: 8px !important; }
.vbn .bars .wp-block-details[open] { padding-bottom: 22px; }
.vbn .hr { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; background: var(--paper); padding: 10px 16px; font-size: var(--s5); }
.vbn .hr strong { white-space: nowrap; font-size: var(--s4); font-variant-numeric: tabular-nums; }
.vbn .note { font-size: var(--s5); color: var(--ink-soft); }
.vbn .gadget { margin-top: 56px !important; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.vbn .gadget-photo img { width: 160px; aspect-ratio: 3 / 4; object-fit: cover; transform: rotate(-3deg); }
.vbn .gadget h3 { font: 400 var(--s3)/1.15 var(--display); color: var(--red); margin-bottom: 10px !important; }

/* ---------- COME ARRIVARE ---------- */
.vbn .arrive { margin-top: var(--gap) !important; background: var(--paper-2); padding-block: clamp(72px, 9vw, 140px); }
.vbn .arrive-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
.vbn .arrive-main { display: flex; flex-direction: column; gap: 36px; }
.vbn .train { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.vbn .train-photo img { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; }
.vbn .train-text { display: flex; flex-direction: column; gap: 8px; }
.vbn .train h3, .vbn .parking h3 { font: 900 var(--s3)/1.15 var(--text); margin-bottom: 4px !important; }
.vbn .parking h3 { margin-bottom: 12px !important; }
.vbn .map { background: var(--red); overflow: hidden; }
.vbn .map a { display: block; }
.vbn .map img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 80% 50%; transition: transform .5s var(--ease); }
.vbn .map:hover img { transform: scale(1.03); }
.vbn .map figcaption { margin: 0; padding: 16px 20px; color: #fff; font-weight: 900; font-size: var(--s4); text-align: left; }
.vbn .parking ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vbn .parking li { background: var(--paper); padding: 14px 18px; font-size: var(--s5); color: var(--ink-soft); }
.vbn .parking li strong { color: var(--ink); font-size: var(--s4); }

/* ---------- SCUOLE ---------- */
.vbn .schools { background: var(--teal); color: #fff; padding-block: var(--gap) clamp(72px, 8vw, 120px); }
.vbn .schools-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: start; }
.vbn .schools-text { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 18px; }
.vbn .schools-text .display { color: #fff; }
.vbn .ledger { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 20px; }
.vbn .ledger-title { font-weight: 800; }
.vbn .ledger-row { display: grid; grid-template-columns: 58% 1fr; align-items: baseline; gap: 20px; }
.vbn .num { font: 400 var(--s1)/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.vbn .lab { font-weight: 800; }

.vbn .coupon { margin-top: 120px; display: grid; grid-template-columns: 46fr 54fr; background: var(--paper); color: var(--ink);
  -webkit-mask: radial-gradient(circle 14px at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 14px at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.vbn .coupon-left { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.vbn .coupon-left h3 { font: 400 var(--s2)/1 var(--display); color: var(--red); }
.vbn .coupon-right { padding: clamp(28px, 4vw, 48px); border-left: 5px dotted var(--teal); display: flex; flex-direction: column; gap: 10px; }
.vbn .coupon input { height: 54px; border: 0; border-radius: 0; background: var(--paper-2); padding: 0 16px; font: 600 var(--s5) var(--text); color: var(--ink); }
.vbn .coupon input::placeholder { color: var(--ink-soft); }
.vbn .coupon-send { margin-top: 6px; width: 100%; min-height: 56px; background: var(--ink); }
.vbn .coupon-send:hover { background: var(--red); }

/* ---------- FOOTER: la cartolina ---------- */
.vbn .footer { background: var(--teal); padding: clamp(56px, 6vw, 96px) var(--m) clamp(40px, 5vw, 72px); }
.vbn .postcard { max-width: 1200px; margin: 0 auto !important; background: var(--paper); padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px) 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 5vw, 72px);
  -webkit-mask: radial-gradient(circle 50px at 50% 0, #0000 98%, #000) 50% 0 / 100px 100% repeat-x; mask: radial-gradient(circle 50px at 50% 0, #0000 98%, #000) 50% 0 / 100px 100% repeat-x; }
.vbn .pc-left { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.vbn .pc-sign { font: 400 var(--s2)/1 var(--display); color: var(--red); }
.vbn .pc-right { position: relative; padding-top: 24px; padding-left: clamp(0px, 3vw, 48px); border-left: 5px dotted var(--paper-2); }
.vbn .stamp { width: 96px; margin: 0 0 24px auto !important; }
.vbn .stamp img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border: 6px solid #fff; transform: rotate(4deg); }
.vbn .address { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: var(--s4); font-weight: 800; }
.vbn .address a { color: var(--ink); }
.vbn .address a:hover { color: var(--red); }
.vbn .imprint { grid-column: 1 / -1; text-align: center; font-size: var(--s5); color: var(--ink-soft); padding-top: 16px; }

/* ---------- MENU RAPIDO ---------- */
.vbn .stub { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; }
.vbn .stub.on { display: block; animation: vbn-stubin .3s var(--ease); }
@keyframes vbn-stubin { from { opacity: 0; transform: translateY(16px); } }
.vbn .stub summary { list-style: none; cursor: pointer; background: var(--red); color: #fff; font-weight: 900; min-height: 48px; padding: 0 22px; border-radius: 999px; display: flex; align-items: center; }
.vbn .stub summary::-webkit-details-marker { display: none; }
.vbn .stub-links { position: absolute; bottom: 58px; right: 0; background: var(--paper); padding: 10px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 12px 32px rgba(43, 27, 23, .25); }
.vbn .stub-links a { padding: 10px 12px; color: var(--ink); font-weight: 800; text-decoration: none; }
.vbn .stub-links a:hover { background: var(--paper-2); color: var(--red); }

/* ---------- ENTRATE ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .vbn .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .vbn .rise.in { opacity: 1; transform: none; }
}

/* ---------- TABLET / TELEFONO ---------- */
@media (max-width: 900px) {
  .vbn .hero > .plate { display: none; }
  .vbn .card-nav { max-width: none; }
  .vbn .intro-top .display, .vbn .intro-note, .vbn .intro-text, .vbn .intro-photo, .vbn .schools-text, .vbn .ledger { grid-column: 1 / -1; }
  .vbn .intro-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-top: 56px !important; }
  .vbn .intro-body { margin-top: 56px !important; }
  .vbn .program-grid, .vbn .arrive-grid { grid-template-columns: 1fr; }
  .vbn .today { position: static; }
  .vbn .sheet { top: calc(var(--i, 0) * 52px); grid-template-columns: 1fr; min-height: 0; align-content: start; }
  .admin-bar .vbn .sheet { top: calc(var(--i, 0) * 52px + 46px); }
  .vbn .sheet-text > h3 { margin-bottom: 0 !important; }
  .vbn .sheet-links a { min-height: 40px; padding: 0 14px; }
  .vbn .sheet-text { grid-column: 1; order: 2; padding-block: 20px 40px; gap: 16px; }
  .vbn .sheet h3 { position: absolute; top: 12px; left: var(--m); right: var(--m); min-height: 0; }
  .vbn .sheet-photo { grid-column: 1; order: 1; margin: 52px 0 0 !important; }
  .vbn .sheet-photo img { height: auto; aspect-ratio: 4 / 3; }
  .vbn .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .vbn .ticket-stub { border-left: 0; border-top: 6px dotted var(--paper); }
  .vbn .times { grid-template-columns: 1fr; }
  .vbn .coupon { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .vbn .coupon-right { border-left: 0; border-top: 5px dotted var(--teal); }
  .vbn .postcard { grid-template-columns: 1fr; -webkit-mask: radial-gradient(circle 30px at 50% 0, #0000 98%, #000) 50% 0 / 60px 100% repeat-x; mask: radial-gradient(circle 30px at 50% 0, #0000 98%, #000) 50% 0 / 60px 100% repeat-x; }
  .vbn .pc-right { padding-left: 0; border-left: 0; border-top: 5px dotted var(--paper-2); }
  .vbn .stamp { position: static; width: 72px; margin: 0 0 16px auto !important; }
  .vbn .stamp img { width: 72px; }
  /* il titolo "Programma" prima del calendario */
  .vbn .program-grid { display: flex; flex-direction: column; gap: 0; }
  .vbn .program-list { display: contents; }
  .vbn .program-list .giant { order: 1; font-size: 18.5vw; }
  .vbn .program-sub { order: 2; }
  .vbn .today { order: 3; margin-bottom: 28px; }
  .vbn .bars { order: 4; }
  .vbn .gadget { order: 5; }
}
@media (max-width: 560px) {
  .vbn .hero { padding: 16px 12px; }
  .vbn .card { min-height: 82svh; }
  .vbn .card-nav { font-size: var(--s5); gap: 2px 16px; }
  .vbn .facts { font-size: var(--s4); }
  .vbn .card-foot { grid-template-columns: 1fr; justify-items: stretch; }
  .vbn .card-foot .wp-block-buttons { order: -1; }
  .vbn .card-foot .wp-block-button, .vbn .card-foot .wp-block-button__link { width: 100%; }
  .vbn .card-foot .link { justify-self: start; }
  .vbn .train { grid-template-columns: 110px 1fr; gap: 18px; }
  .vbn .train-photo img { width: 110px; }
  .vbn .gadget { grid-template-columns: 96px 1fr; }
  .vbn .gadget-photo img { width: 96px; }
  .vbn .bars .wp-block-details > :not(summary) { margin-left: 18px !important; }
  .vbn .hr { flex-direction: column; gap: 2px; }
  .vbn .num { font-size: 15vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vbn .hero-photo img { animation: none; }
  .vbn * { transition-duration: .01ms !important; }
}

/* ---------- MAPPA INTERATTIVA ---------- */
.vbn .arrive-title { margin-bottom: clamp(32px, 4vw, 56px) !important; }
.vbn .arrive-top { display: flex; flex-direction: column; gap: 12px; margin-top: clamp(72px, 8vw, 120px) !important; }
.vbn .map-title { font: 900 var(--s3)/1.15 var(--text); }
.vbn .parking .maps, .vbn .vmap-body .maps { display: inline-block; margin-top: 6px; color: var(--red); font-weight: 800; }
.vbn .parking .maps:hover { color: var(--red-dark); }
.vbn .arrive-sub { font-weight: 700; max-width: 60ch; }
.vbn .vmap { position: relative; margin-top: 16px; }
.vbn .vmap-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.vbn .vmap-canvas { position: relative; width: 100%; aspect-ratio: 2134 / 2180; max-width: 900px; }
.vbn .vmap-canvas > img { mix-blend-mode: multiply; }
.vbn .vmap-canvas > img { width: 100%; height: 100%; }
.vbn .pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; background: var(--red); color: #fff; font: 900 var(--s5)/1 var(--text); display: grid; place-items: center; padding: 0; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; z-index: 2; }
.vbn .pin:hover, .vbn .pin.on { transform: translate(-50%, -50%) scale(1.18); background: var(--red-dark); z-index: 3; }
.vbn .pin-p { width: 28px; height: 28px; border-radius: 6px; background: var(--teal); font-size: 15px; z-index: 1; }
.vbn .pin-p:hover, .vbn .pin-p.on { background: #164A2F; }
.vbn .pin-i { background: var(--orange); color: var(--ink); }
.vbn .pin-i:hover, .vbn .pin-i.on { background: #B0841F; }
.vbn .pin-out { width: auto; height: auto; transform: translate(-100%, 0); border-radius: 999px; padding: 6px 14px 6px 6px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.vbn .pin-out span { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; }
.vbn .pin-out:hover, .vbn .pin-out.on { transform: translate(-100%, 0) scale(1.05); }
.vbn .vmap-card { position: absolute; top: 16px; right: 16px; z-index: 5; width: min(380px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; background: var(--paper); color: var(--ink); padding: 24px 24px 22px; box-shadow: 0 16px 40px rgba(43, 27, 23, .28); animation: vbn-cardin .25s var(--ease); }
@keyframes vbn-cardin { from { opacity: 0; transform: translateY(12px); } }
.vbn .vmap-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font: 700 26px/1 var(--text); cursor: pointer; }
.vbn .vmap-x:hover { background: var(--red); color: #fff; }
.vbn .vmap-body { display: flex; flex-direction: column; gap: 10px; }
.vbn .vmap-body h3 { font: 400 var(--s3)/1.1 var(--display); color: var(--red); padding-right: 40px; }
.vbn .vmap-body .num-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font: 900 15px/1 var(--text); margin-right: 8px; vertical-align: 4px; }
.vbn .vmap-body p { font-size: var(--s5); }
.vbn .vmap-body .hr { background: var(--paper-2); flex-direction: column; gap: 2px; }
.vbn .vmap-body .go { align-self: flex-start; margin-top: 6px; font-weight: 800; }
.vbn .vmap-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.vbn .vmap-legend { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 16px; }
.vbn .vmap-legend button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 0; border: 0; background: none; color: var(--ink); font: 700 var(--s5)/1.25 var(--text); text-align: left; cursor: pointer; }
.vbn .vmap-legend button:hover, .vbn .vmap-legend button.on { color: var(--red); }
.vbn .vmap-legend span, .vbn .pin-mini { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font: 900 14px/1 var(--text); }
.vbn .vmap-legend em { font-style: normal; font-weight: 600; color: var(--ink-soft); }
.vbn .vmap-credit { font-size: var(--s5); color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vbn .pin-mini { width: 24px; height: 24px; border-radius: 5px; background: var(--teal); }
.vbn .pin-mini-i { border-radius: 50%; background: var(--orange); color: var(--ink); }
.vbn-lightbox { padding: 0; border: 0; max-width: min(96vw, 1400px); max-height: 94vh; background: var(--paper, #FBF3E4); overflow: auto; }
.vbn-lightbox::backdrop { background: rgba(43, 27, 23, .82); }
.vbn-lightbox img { display: block; width: 100%; height: auto; min-width: 900px; }
.vbn-lightbox .vmap-x { position: sticky; float: right; top: 10px; margin: 10px 10px -50px 0; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #AC303B; color: #fff; font: 700 28px/1 Nunito, sans-serif; cursor: pointer; }
@media (max-width: 900px) {
  .vbn .vmap-scroll { overflow: visible; margin-inline: calc(-1 * var(--m)); }
  .vbn .vmap-canvas { width: 100%; max-width: none; }
  .vbn .pin { width: 26px; height: 26px; border-width: 2px; font-size: 12px; }
  .vbn .pin-p { width: 22px; height: 22px; font-size: 12px; }
  .vbn .pin.on { transform: translate(-50%, -50%) scale(1.4); outline-width: 2px; outline-offset: 2px; }
  .vbn .vmap-legend { grid-template-columns: 1fr 1fr; }
  .vbn .vmap-card { position: relative; top: auto; right: auto; width: 100%; max-height: none; margin-top: 12px; padding: 22px 18px 24px; z-index: 1; box-shadow: 0 8px 24px rgba(43, 27, 23, .14); scroll-margin: 16px; }
}
@media (max-width: 560px) {
  .vbn .vmap-legend { grid-template-columns: 1fr; }
}
.vbn .vmap-credit .leg { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; }
/* pallino selezionato: più grande, scuro, con l'anello arancio del clic */
.vbn .pin.on { transform: translate(-50%, -50%) scale(1.5); background: var(--red-dark); outline: 3px solid var(--orange); outline-offset: 3px; box-shadow: 0 6px 18px rgba(43, 27, 23, .35); z-index: 4; }
.vbn .pin-p.on { background: #164A2F; }
.vbn .pin-i.on { background: #B0841F; }
@media (prefers-reduced-motion: no-preference) { .vbn .pin.on::after { content: ""; position: absolute; inset: -9px; border-radius: inherit; border: 2px solid var(--orange); animation: vbn-pinpulse 1.8s var(--ease) infinite; } }
@keyframes vbn-pinpulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
/* Come arrivare: parcheggi su due colonne accanto al trenino */
@media (min-width: 901px) {
  .vbn .arrive-grid { grid-template-columns: 5fr 7fr; }
  .vbn .parking ul { display: grid; grid-template-columns: 1fr 1fr; }
  .vbn .parking li:first-child { grid-column: 1 / -1; }
}
/* Rimando al sito ufficiale TurismOvest */
.vbn .card-foot .small a { color: var(--red); font-weight: 900; }
.vbn .official { background: var(--red); color: #fff; padding: clamp(56px, 7vw, 104px) var(--m); }
.vbn .official-in { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px; }
.vbn .official h2 { font: 400 var(--s2)/1.05 var(--display); color: #fff; }
.vbn .official p { font-size: var(--s4); font-weight: 600; max-width: 52ch; margin-top: 12px !important; }
.vbn .official .wp-block-button__link { background: #fff; color: var(--red); min-height: 60px; padding: 0 34px; font-size: var(--s4); }
.vbn .official .wp-block-button__link:hover { background: var(--paper); color: var(--red-dark); }
@media (max-width: 900px) { .vbn .official-in { grid-template-columns: 1fr; } .vbn .official .wp-block-button, .vbn .official .wp-block-button__link { width: 100%; } }
/* Fiocchi di neve decorativi (solo dove c'è spazio libero) */
.vbn .intro, .vbn .route, .vbn .arrive, .vbn .schools, .vbn .official, .vbn .footer { position: relative; isolation: isolate; }
.vbn .intro::before, .vbn .route::before, .vbn .arrive::before, .vbn .schools::before, .vbn .official::before, .vbn .official::after, .vbn .footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  background: var(--flake, var(--red)); -webkit-mask: url(../img/fiocco.svg) center / contain no-repeat; mask: url(../img/fiocco.svg) center / contain no-repeat; }
.vbn .intro::before { width: clamp(110px, 16vw, 240px); top: clamp(24px, 4vw, 64px); right: var(--m); opacity: .13; transform: rotate(12deg); }
.vbn .route::before { width: clamp(70px, 9vw, 130px); top: clamp(40px, 5vw, 80px); right: calc(var(--m) + 4%); opacity: .16; transform: rotate(-8deg); }
.vbn .arrive::before { width: clamp(80px, 11vw, 170px); top: clamp(48px, 6vw, 100px); right: var(--m); opacity: .14; transform: rotate(20deg); }
.vbn .schools::before { --flake: #fff; width: clamp(120px, 16vw, 260px); bottom: clamp(24px, 4vw, 64px); left: var(--m); opacity: .09; }
.vbn .official::before { --flake: #fff; width: clamp(90px, 10vw, 150px); top: 18px; right: 24%; opacity: .22; transform: rotate(15deg); }
.vbn .official::after { --flake: #fff; width: clamp(44px, 5vw, 70px); bottom: 20px; right: 34%; opacity: .3; transform: rotate(-10deg); }
.vbn .footer::before { --flake: #fff; width: clamp(80px, 10vw, 150px); top: 24px; left: var(--m); opacity: .1; }
@media (max-width: 900px) { .vbn .official::before { right: 6%; } .vbn .official::after { display: none; } .vbn .schools::before { display: none; } }

/* ---------- COPERTINA "LOCANDINA" (4/12: elementi della grafica ufficiale) ---------- */
.vbn .hero-poster { --poster-teal: #2A9A98; --card-w: minmax(0, 880px);
  display: grid; grid-template-columns: var(--card-w); justify-content: center; align-content: center;
  padding: clamp(64px, 9vh, 96px) var(--m) clamp(120px, 12vw, 180px);
  background: radial-gradient(circle at 20% 30%, #ffffff1f 0 2px, #0000 3px) 0 0 / 90px 90px,
              radial-gradient(circle at 70% 60%, #ffffff17 0 1.5px, #0000 2.5px) 0 0 / 130px 130px, var(--red); }
.vbn .hero-poster > .card, .vbn .hero-poster > .hero-sign, .vbn .hero-poster > .hero-santa { grid-area: 1 / 1; margin: 0; }
.vbn .hero-poster > .card { width: 100%; min-height: 0; z-index: 2; gap: clamp(12px, 2vh, 22px); }
.vbn .hero-poster .hero-edition { margin: 0 0 calc(-1 * clamp(14px, 2.2vh, 26px) - 6px); width: clamp(120px, 13vw, 170px); transform: rotate(-4deg); }
.vbn .hero-poster .hero-edition img, .vbn .hero-poster .title-art img, .vbn .hero-sign img, .vbn .hero-santa img, .vbn .hero-train img { display: block; width: 100%; height: auto; }
.vbn .hero-poster .title-art { position: relative; max-width: min(100%, 540px); margin: 0; line-height: 0; }
.vbn .title-rivoli { position: absolute; right: 6%; bottom: -2%; padding: .32em .7em .38em; border-radius: 10px; background: var(--poster-teal); color: #fff;
  font: 900 clamp(16px, 1.9vw, 26px)/1 var(--text); letter-spacing: .02em; transform: rotate(-5deg); }
.vbn .hero-place { position: relative; margin: 0; padding-left: 1.15em; font-size: clamp(19px, 2vw, 26px); }
.vbn .hero-place::first-line { color: inherit; }
.vbn .hero-place::before { content: ""; position: absolute; left: 0; top: .08em; width: .78em; height: .95em; background: url("../img/segnaposto-125.webp") center / contain no-repeat; }
.vbn .hero-place + .hero-place { margin-top: calc(-1 * clamp(14px, 2.2vh, 26px) + 6px); }
.vbn .hero-sign { z-index: 3; justify-self: end; align-self: start; width: clamp(190px, 22vw, 300px); transform: translate(30%, -30%) rotate(-5deg); }
.vbn .hero-santa { z-index: 3; justify-self: end; align-self: center; width: clamp(170px, 19vw, 270px); transform: translate(42%, 8%) rotate(6deg); }
.vbn .hero-houses { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: clamp(110px, 13vw, 190px); margin: 0;
  background: url("../img/casette-fila.webp") left bottom / auto 100% repeat-x; }
.vbn .hero-train { position: absolute; z-index: 4; left: clamp(12px, 4vw, 70px); bottom: clamp(6px, 1.2vw, 18px); width: clamp(170px, 19vw, 280px); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .vbn .hero-train img { animation: vbn-chug 1.6s ease-in-out infinite alternate; }
  @keyframes vbn-chug { from { transform: translateY(0) rotate(-.6deg); } to { transform: translateY(-3px) rotate(.6deg); } }
}
@media (max-width: 900px) {
  .vbn .hero-sign { width: clamp(140px, 26vw, 200px); transform: translate(10%, -46%) rotate(-5deg); }
  .vbn .hero-santa { width: clamp(130px, 26vw, 190px); transform: translate(8%, 40%) rotate(6deg); }
  .vbn .hero-poster { padding-top: 70px; }
}
@media (max-width: 560px) {
  .vbn .hero-poster { padding: 64px 12px 150px; }
  .vbn .hero-sign { width: 130px; transform: translate(4%, -50%) rotate(-5deg); }
  .vbn .hero-santa { width: 118px; transform: translate(4%, 52%) rotate(6deg); }
  .vbn .hero-train { width: 150px; }
  .vbn .hero-houses { height: 96px; }
}
@media (max-width: 560px) {
  .vbn .hero-poster > .card { padding-top: 64px; }
  .vbn .hero-sign { transform: translate(-6px, -28%) rotate(-5deg); }
  .vbn .hero-santa { justify-self: end; transform: translate(0, 42%) rotate(6deg); }
  .vbn .title-rivoli { right: 0; bottom: -6%; }
}
@media (max-width: 900px) {
  .vbn .hero-santa { align-self: end; transform: translate(8%, 48%) rotate(6deg); }
  .vbn .hero-poster { padding-bottom: 190px; }
}
@media (max-width: 560px) {
  .vbn .hero-santa { width: 120px; transform: translate(4%, 56%) rotate(6deg); }
  .vbn .hero-poster { padding-bottom: 150px; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .vbn .hero-santa { align-self: center; transform: translate(12%, -18%) rotate(6deg); }
}

/* ---------- LOGO TURISMOVEST (4/12) ---------- */
.vbn .tov-by { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vbn .tov-by a { display: inline-block; line-height: 0; text-decoration: none; }
.vbn .tov-logo { display: block; width: auto; height: clamp(30px, 3.2vw, 40px); }
.vbn .official-logo { margin: 0 0 clamp(18px, 2.4vw, 28px); width: clamp(200px, 24vw, 320px); }
.vbn .official-logo a, .vbn .foot-logo a { display: block; line-height: 0; }
.vbn .official-logo img, .vbn .foot-logo img { display: block; width: 100%; height: auto; }
.vbn .foot-logo { grid-column: 1 / -1; justify-self: center; width: clamp(200px, 26vw, 300px); margin: clamp(8px, 2vw, 20px) auto 0; }
