/* FESTE · orari speciali con i volantini (blocco dl_feste, che collega da solo questo file).
   Il verde e l'oro sono quelli dei volantini; caratteri, pillole e ritmo restano quelli del sito.
   Cache di un anno: per pubblicare una modifica si alza il numero nel nome del file. */
:root .feste{--f-verde:#0f2d23;--f-oro:#e3c27e;--f-avorio:#f6efe2;
  padding:clamp(48px,8vh,92px) 0;color:var(--f-avorio);
  background:radial-gradient(90% 120% at 50% 0,#1b4938 0,var(--f-verde) 70%)}
.feste__testa{text-align:center}
.feste .kicker-v{color:var(--f-oro)}
.feste__testa h2{font-weight:400;font-size:clamp(34px,4vw,56px);margin-top:8px}
.feste__testa p:last-child:not(.kicker-v){margin:14px auto 0;max-width:34em;font-size:17px;opacity:.86}
.feste__lista{list-style:none;margin:clamp(30px,5vh,56px) 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(36px,5vw,72px)}
.feste__voce{flex:1 1 420px;max-width:540px;min-width:0;display:flex;align-items:center;gap:clamp(20px,2.4vw,32px)}
.feste__vol{flex:none;position:relative;display:block;border-radius:10px;overflow:hidden;cursor:zoom-in;
  box-shadow:0 22px 44px -18px rgba(0,0,0,.7),0 0 0 1px rgba(227,194,126,.35);transition:transform .35s var(--ease)}
.feste__vol img{display:block;height:clamp(230px,23vw,290px);width:auto;max-width:none}
.feste__vol:hover{transform:translateY(-4px)}
.feste__vol:focus-visible{outline-color:var(--f-oro)}
.feste__zoom{position:absolute;right:8px;bottom:8px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.94);color:var(--f-verde)}
.feste__zoom svg{width:18px;height:18px}
.feste__dati{flex:1;min-width:0}
.feste__dati h3{font-weight:500;font-size:clamp(25px,2.2vw,31px);color:var(--f-oro)}
.feste__dati table{width:100%;border-collapse:collapse;margin-top:12px;font-size:15px;font-weight:400}
.feste__dati td{padding:9px 0;border-bottom:1px solid rgba(246,239,226,.17);vertical-align:baseline}
.feste__dati td:last-child{text-align:right;white-space:nowrap;padding-left:12px;font-weight:600;font-variant-numeric:tabular-nums}
.feste__dati td.chiuso{font-weight:400;opacity:.72}
.feste__nota{margin-top:12px;font-size:14.5px;line-height:1.5;opacity:.82}
.feste__cta{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 22px;margin-top:clamp(32px,5vh,52px)}
.feste .btn-linea{border-color:var(--f-oro);color:var(--f-avorio)}
.feste .btn-linea:hover{background:var(--f-oro);color:var(--f-verde)}
.feste .link-rosso{color:var(--f-oro)}
@media (max-width:560px){
  .feste__voce{flex:1 1 100%;align-items:flex-start;gap:16px}
  .feste__vol img{height:auto;width:98px}
  .feste__dati table{font-size:14px;margin-top:8px}
  .feste__dati td:last-child{padding-left:8px}
  .feste__zoom{width:30px;height:30px;right:6px;bottom:6px}
}

/* la lightbox: un <dialog> vero, quindi Esc, focus e sfondo li gestisce il browser */
.volantino{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;overflow:hidden}
.volantino[open]{display:grid;place-items:center}
.volantino::backdrop{background:rgba(8,20,15,.9)}
.volantino figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.volantino img{width:auto;height:auto;max-width:min(92vw,620px);max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);border-radius:10px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.volantino figcaption{font-size:14px;opacity:.85}
.volantino button{position:absolute;width:48px;height:48px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#0f2d23;cursor:pointer}
.volantino button:hover{background:#fff}
.volantino button:focus-visible{outline-color:#e3c27e}
.volantino button svg{width:20px;height:20px}
.volantino__x{top:14px;right:14px}
.volantino__sx{left:14px;top:calc(50% - 24px)}
.volantino__dx{right:14px;top:calc(50% - 24px)}
@media (max-width:700px){.volantino__sx,.volantino__dx{top:auto;bottom:10px}}
@media (prefers-reduced-motion:no-preference){.volantino[open] img{animation:volantino-in .28s var(--ease)}@keyframes volantino-in{from{opacity:0;transform:scale(.96)}}}
@media (prefers-reduced-motion:reduce){.feste__vol{transition:none}}

/* HERO DELLE FESTE: l'immagine ha la scritta in alto, quindi parte sotto il menu e non dietro.
   Da largo si vede intera; stringendo lo schermo si ritaglia ai lati e restano scritta e regali. */
:root .cms-main .hero-festa{padding-top:var(--hdr);background:#1d110b}
.hero-festa img{display:block;width:100%;object-fit:cover;object-position:50% 0;
  height:min(max(37.02vw,min(112vw,440px)),max(440px,calc(100svh - var(--hdr))))}
html:has(.hero-festa) .header:not(.solid){background:#1d110b}
@media (max-width:900px){:root .cms-main .hero-festa{padding-top:78px}}
/* il pettine non resta fisso in basso, dove coprirebbe gli orari: sta a cavallo del bordo dell'immagine */
.cms-main:has(.hero-festa) .tab,.cms-main:has(.hero-festa) .tab.nascosto{position:relative;display:block;left:auto;bottom:auto;z-index:5;
  width:196px;height:70px;aspect-ratio:auto;margin:-35px auto;opacity:1;pointer-events:auto;transform:none}
.cms-main:has(.hero-festa) .tab:hover{transform:translateY(-3px)}
