/* Presepe Vivente di Agerola: landing per le sponsorizzate (09/11/2026).
   Stile del post d'invito e del video: Cinzel crema, Cormorant corsivo oro, fondo bruno notte, bottoni oro. */

@font-face { font-family: "Cinzel"; src: url("font/cinzel-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("font/cinzel-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("font/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("font/cormorant-600-corsivo.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --notte: #1E130C;
  --notte-2: #26170D;
  --notte-3: #33200F;
  --crema: #F6E8D3;
  --crema-2: #E9D4B4;
  --oro: #DCA75C;
  --oro-chiaro: #F0C987;
  --oro-scuro: #A9773A;
  --bruno: #8A5A2B;
  --testo: rgba(246, 232, 211, .9);
  --titolo: "Cinzel", "Times New Roman", serif;
  --corpo: "Cormorant", "Garamond", "Times New Roman", serif;
  --larghezza: 560px;
  --gutter: 20px;
  --altezza-barra: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--notte);
  background-image:
    radial-gradient(1200px 700px at 50% 20%, rgba(128, 78, 34, .28), transparent 70%),
    radial-gradient(900px 600px at 50% 80%, rgba(128, 78, 34, .18), transparent 70%);
  color: var(--testo);
  font-family: var(--corpo);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.45;
  padding-bottom: calc(var(--altezza-barra) + env(safe-area-inset-bottom));
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--crema); }
p { margin: 0; }
strong { color: var(--crema); font-weight: 600; }

.contenitore { width: 100%; max-width: var(--larghezza); margin-inline: auto; padding-inline: var(--gutter); }

.etichetta {
  font-family: var(--titolo); font-weight: 600; font-size: 14px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--oro); text-align: center;
}
.corsivo { font-family: var(--corpo); font-style: italic; font-weight: 600; color: var(--oro); text-transform: none; letter-spacing: 0; }

/* ---------- apertura ---------- */
.eroe {
  position: relative; overflow: hidden;
  min-height: min(100svh, 880px);
  max-width: var(--larghezza); margin-inline: auto;
  display: flex;
}
.eroe__video { /* più alto della sezione e tagliato in fondo: il borgo scende e lascia spazio alle scritte */
  position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 55px);
  object-fit: cover; object-position: center bottom;
}
.eroe__velo {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17, 10, 5, .55) 0%, rgba(17, 10, 5, .15) 45%, rgba(17, 10, 5, 0) 70%, rgba(30, 19, 12, .9) 100%);
}
.eroe__testo { position: relative; text-align: center; padding-top: max(40px, 5svh); padding-bottom: 32svh; }
.titolo {
  margin-top: 14px;
  font-family: var(--titolo); font-weight: 700;
  font-size: clamp(42px, 12.4vw, 62px); line-height: 1.02; letter-spacing: .01em;
  text-transform: uppercase; text-shadow: 0 0 28px rgba(220, 167, 92, .35);
}
.titolo .corsivo { display: block; margin-top: 4px; font-size: .78em; line-height: 1.1; text-shadow: none; }
.luogo { margin-top: 10px; font-style: italic; font-size: 20px; color: var(--crema); }
.eroe__date {
  margin-top: 18px;
  font-family: var(--titolo); font-weight: 700; font-size: clamp(22px, 6.6vw, 30px); line-height: 1.2;
  color: var(--crema); text-transform: uppercase;
}
.eroe__ora { margin-top: 6px; font-family: var(--titolo); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-chiaro); }
.eroe .bottone-wa { margin-top: 22px; }
.nota-cta { margin-top: 12px; font-style: italic; font-size: 18px; color: var(--crema); opacity: .85; }

/* ---------- bottoni ---------- */
.bottone-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #EEC27A 0%, #CF9448 100%);
  color: var(--notte); text-decoration: none;
  font-family: var(--titolo); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 236, 200, .35) inset, 0 10px 30px rgba(220, 167, 92, .35);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden;
}
.bottone-wa::after { /* riflesso che passa */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 250, 235, .55), transparent);
  animation: riflesso 3.2s ease-in-out 1.2s infinite;
}
@keyframes riflesso { 0% { left: -60%; } 45%, 100% { left: 130%; } }
.bottone-wa:active { transform: scale(.97); }
.bottone-wa:focus-visible, .bottone-secondario:focus-visible, button:focus-visible, .link:focus-visible { outline: 3px solid var(--crema); outline-offset: 3px; }
.bottone-wa--largo { display: flex; width: 100%; }
.icona-wa { width: 24px; height: 24px; flex: none; }
.bottone-secondario {
  display: flex; justify-content: center; align-items: center; min-height: 52px; margin-top: 22px;
  border: 2px solid var(--oro); border-radius: 999px; color: var(--oro-chiaro); text-decoration: none;
  font-family: var(--titolo); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- sezioni ---------- */
.sezione { padding-top: 64px; padding-bottom: 8px; text-align: center; }
.sezione h2 { margin-top: 8px; font-family: var(--titolo); font-size: clamp(28px, 8vw, 36px); line-height: 1.12; text-transform: uppercase; }
.ornamento { width: 200px; height: 14px; margin: 14px auto 0; color: var(--oro); }
.introduzione { margin-top: 18px; text-align: center; }
.riga-oro { margin-top: 16px; font-style: italic; color: var(--oro); font-size: 22px; }
.centrato { text-align: center; }
.link { color: var(--oro-chiaro); text-underline-offset: 4px; }
.nota-piccola { margin-top: 16px; font-size: 17px; line-height: 1.4; opacity: .8; }

/* le serate: pagine di calendario */
.calendario { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pagina {
  width: 92px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #F8EDDC, var(--crema-2));
  color: var(--notte); box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; align-items: center; padding-bottom: 8px;
}
.pagina__giorno { align-self: stretch; background: var(--oro); font-family: var(--titolo); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 0 4px; }
.pagina__num { font-family: var(--titolo); font-weight: 700; font-size: 42px; line-height: 1.1; margin-top: 4px; }
.pagina__mese { font-style: italic; font-size: 16px; color: var(--bruno); }
.orari { margin-top: 18px; }
.orari p + p { margin-top: 4px; font-size: 18px; opacity: .85; }

/* cosa vedrai */
.tappe { margin-top: 28px; display: grid; gap: 20px; text-align: left; }
.tappa { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 16px; }
.tappa img { width: 132px; height: 132px; }
.tappa h3 { font-family: var(--titolo); font-size: 21px; text-transform: uppercase; letter-spacing: .03em; }
.tappa p { margin-top: 4px; font-size: 19px; line-height: 1.35; }
.tappa:nth-child(even) { grid-template-columns: 1fr 132px; text-align: right; }
.tappa:nth-child(even) img { order: 2; }
.sottotitolo-galleria { margin-top: 40px; font-style: italic; color: var(--oro); font-size: 22px; }
.galleria {
  margin: 14px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.galleria::-webkit-scrollbar { display: none; }
.galleria figure { margin: 0; flex: 0 0 68%; scroll-snap-align: center; }
.galleria img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1px solid rgba(220, 167, 92, .45); }
.galleria figcaption { margin-top: 8px; font-style: italic; color: var(--crema); font-size: 18px; }

/* degustazione */
.piatti { list-style: none; counter-reset: piatto; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.piatti li { counter-increment: piatto; display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(220, 167, 92, .22); }
.piatti li:last-child { border-bottom: 0; }
.piatti img { width: 76px; height: 76px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--oro); }
.piatti span { font-size: 23px; color: var(--crema); }
.piatti span::before { content: counter(piatto) " · "; font-family: var(--titolo); font-size: 15px; color: var(--oro); }
.prezzo-chip { margin-top: 20px; display: inline-block; padding: 10px 20px; border: 1.5px solid var(--oro); border-radius: 999px; font-size: 19px; }
.prezzo-chip strong { font-family: var(--titolo); font-weight: 700; color: var(--oro-chiaro); }

/* biglietti con le tacche */
.biglietti { margin-top: 26px; display: grid; gap: 14px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.biglietto {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 96px; padding: 16px 24px 16px 26px; text-align: left;
  background: linear-gradient(180deg, #F8EDDC, var(--crema-2)); color: var(--notte); border-radius: 14px;
  -webkit-mask: radial-gradient(circle 13px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.biglietto::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid var(--oro); border-radius: 9px; pointer-events: none; }
.biglietto__nome { font-family: var(--titolo); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.biglietto__nota { font-style: italic; color: var(--bruno); font-size: 17px; line-height: 1.25; margin-top: 3px; }
.biglietto__prezzo { flex: none; padding-left: 18px; border-left: 2px dashed rgba(30, 19, 12, .3); font-family: var(--titolo); font-weight: 700; font-size: 36px; line-height: 1; }
.biglietto__prezzo--parola { font-size: 24px; text-transform: uppercase; }
.biglietto--in-evidenza { background: linear-gradient(180deg, #F3D9A6, #E2B76E); }
.fiocco {
  position: absolute; top: 0; right: 22px; padding: 3px 10px 4px;
  background: var(--notte); color: var(--oro-chiaro); border-radius: 0 0 8px 8px;
  font-family: var(--titolo); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}

/* prepara la prenotazione */
.prenota {
  margin-top: 34px; padding: 24px 18px 22px; text-align: left;
  border: 1.5px solid rgba(220, 167, 92, .6); border-radius: 18px; background: rgba(51, 32, 15, .55);
}
.prenota h3 { font-family: var(--titolo); font-size: 21px; text-transform: uppercase; text-align: center; }
.prenota__aiuto { margin-top: 6px; text-align: center; font-style: italic; font-size: 18px; opacity: .85; }
.prenota fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.prenota legend { padding: 0; margin-bottom: 10px; font-family: var(--titolo); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); }
.scelte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scelte--due { grid-template-columns: 1fr 1fr; }
.scelte label { position: relative; cursor: pointer; }
.scelte input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scelte span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px;
  border: 1.5px solid rgba(220, 167, 92, .55); border-radius: 12px; font-size: 18px; line-height: 1.15; color: var(--crema);
  transition: background .15s, color .15s, border-color .15s;
}
.scelte input:checked + span { background: var(--oro); border-color: var(--oro); color: var(--notte); }
.scelte input:focus-visible + span { outline: 3px solid var(--crema); outline-offset: 2px; }
.contatori { margin-top: 18px; display: grid; gap: 10px; }
.contatore { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contatore__nome { font-size: 20px; color: var(--crema); }
.contatore__comandi { display: flex; align-items: center; gap: 10px; }
.contatore button {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--oro); background: transparent;
  color: var(--oro-chiaro); font-size: 26px; line-height: 1; cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 400;
  display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
}
.contatore button:active { background: rgba(220, 167, 92, .2); }
.contatore output { min-width: 30px; text-align: center; font-family: var(--titolo); font-weight: 700; font-size: 24px; color: var(--crema); }
.totale { margin: 20px 0 16px; text-align: center; font-size: 19px; }
.totale strong { font-family: var(--titolo); font-weight: 700; font-size: 24px; color: var(--oro-chiaro); }

/* gruppi e pullman */
.riquadro { padding: 30px 20px 24px; border-radius: 20px; background: linear-gradient(180deg, rgba(51, 32, 15, .9), rgba(38, 23, 13, .9)); border: 1.5px solid rgba(220, 167, 92, .6); }
.pullman { width: 96px; height: 46px; margin: 0 auto 14px; color: var(--crema); }
.spunte { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; text-align: left; }
.spunte li { position: relative; padding-left: 34px; }
.spunte li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--oro);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11'/%3E%3C/svg%3E");
}
.spunte li::after { content: ""; position: absolute; left: 9px; top: calc(.3em + 5px); width: 6px; height: 10px; border: solid var(--notte); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* come arrivare */
.consigli { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; text-align: left; }
.consigli li { padding: 14px 16px; border-left: 3px solid var(--oro); background: rgba(51, 32, 15, .45); border-radius: 0 12px 12px 0; font-size: 19px; line-height: 1.4; }

/* domande */
.domande { margin-top: 22px; text-align: left; }
.domande details { border-bottom: 1px solid rgba(220, 167, 92, .3); }
.domande summary {
  list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative;
  font-size: 21px; color: var(--crema);
}
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--titolo); color: var(--oro); font-size: 24px; }
.domande details[open] summary::after { content: "–"; }
.domande details p { padding: 0 0 16px; font-size: 19px; opacity: .9; }
.domande + .centrato { margin-top: 22px; }

/* chiusura */
.sezione--chiusura { padding-top: 72px; padding-bottom: 40px; }
.sezione--chiusura .bottone-wa { margin-top: 24px; }
.numero { margin-top: 14px; font-family: var(--titolo); font-weight: 700; font-size: 26px; letter-spacing: .04em; color: var(--crema); }

/* piede */
.piede { padding: 28px 0 34px; background: var(--crema); color: var(--notte); text-align: center; }
.loghi { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 14px; }
.loghi img { width: 100%; height: 64px; object-fit: contain; }
.piede__righe { margin-top: 22px; font-size: 16px; line-height: 1.6; }
.piede a { color: var(--bruno); }
.firma { opacity: .6; font-size: 14px; }

/* barra in fondo */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(30, 19, 12, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(220, 167, 92, .35);
  transform: translateY(110%); transition: transform .3s ease;
}
.barra .bottone-wa { max-width: calc(var(--larghezza) - 2 * var(--gutter)); margin-inline: auto; }
.barra.visibile { transform: none; }

/* consenso cookie */
.consenso {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--altezza-barra) + 12px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 520px; margin-inline: auto; padding: 16px;
  background: var(--crema); color: var(--notte); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  font-size: 17px; line-height: 1.35;
}
.consenso a { color: var(--bruno); }
.consenso__bottoni { display: flex; gap: 10px; margin-top: 12px; }
.consenso button { flex: 1; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--notte); background: transparent; font-family: var(--titolo); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--notte); cursor: pointer; }
.consenso #consenso-si { background: var(--notte); color: var(--crema); }

/* stato in apertura (giorni che mancano, stasera, prossima serata) */
.stato {
  display: inline-block; margin-top: 14px; padding: 5px 14px 6px;
  border: 1px solid rgba(220, 167, 92, .7); border-radius: 999px; background: rgba(30, 19, 12, .55);
  font-family: var(--titolo); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--oro-chiaro);
  white-space: nowrap; max-width: 100%;
}
.stato[hidden] { display: none; }
.stato--stasera { background: var(--oro); color: var(--notte); border-color: var(--oro); animation: pulsa 2.4s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 167, 92, .55); } 50% { box-shadow: 0 0 0 8px rgba(220, 167, 92, 0); } }
.eroe .stato + .eroe__date { margin-top: 12px; }

/* perché venire */
.motivi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.motivo {
  padding: 18px 12px 16px; text-align: center; border-radius: 16px;
  background: rgba(51, 32, 15, .55); border: 1px solid rgba(220, 167, 92, .35);
}
.motivo svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--oro); }
.motivo h3 { font-family: var(--titolo); font-size: 14.5px; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.motivo p { margin-top: 6px; font-size: 17px; line-height: 1.3; opacity: .85; }

/* date toccabili */
.calendario li { display: block; }
a.pagina { text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
a.pagina[href]:active { transform: scale(.95); }
a.pagina[href]:focus-visible { outline: 3px solid var(--crema); outline-offset: 3px; }
.pagina--passata { opacity: .35; filter: grayscale(.6); cursor: default; }
.pagina--passata .pagina__num { text-decoration: line-through; text-decoration-thickness: 2px; }
.pagina--stasera { box-shadow: 0 0 0 3px var(--oro), 0 8px 26px rgba(220, 167, 92, .55); }
.pagina--stasera .pagina__giorno { background: var(--notte); color: var(--oro-chiaro); }
.tocca { margin-top: 14px; font-size: 17px; opacity: .75; }
.tocca[hidden] { display: none; }
.scelte label.passata { opacity: .35; }
.scelte label.passata span { text-decoration: line-through; }

/* ne hanno parlato */
.stampa { margin-top: 10px; display: grid; gap: 12px; }
.stampa .sottotitolo-galleria { margin-top: 30px; }
.stampa blockquote { margin: 0; padding: 16px 18px; border-radius: 14px; background: rgba(51, 32, 15, .5); border-left: 3px solid var(--oro); text-align: left; }
.stampa blockquote p { font-style: italic; font-size: 21px; line-height: 1.3; color: var(--crema); }
.stampa cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--titolo); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }

/* il video vero della degustazione */
.video-vero { margin: 22px 0 0; }
.video-vero video { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; border: 1.5px solid rgba(220, 167, 92, .55); background: var(--notte-2); }
.video-vero figcaption { margin-top: 8px; font-style: italic; font-size: 17px; color: var(--oro); }

/* come si prenota */
.passi { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; text-align: left; }
.passi li { display: flex; align-items: center; gap: 14px; }
.passi span {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--oro); color: var(--notte); font-family: var(--titolo); font-weight: 700; font-size: 18px;
}
.passi p { font-size: 19px; line-height: 1.3; }

/* comparsa al passaggio */
.appare { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.appare.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bottone-wa::after, .stato--stasera { animation: none; }
  .appare { opacity: 1; transform: none; transition: none; }
  .barra { transition: none; }
}

/* sul computer la pagina resta una colonna, come sul telefono */
@media (min-width: 700px) {
  body { font-size: 22px; }
  .eroe { border-radius: 0 0 28px 28px; min-height: 940px; }
}
