@font-face { font-family: 'Anton'; src: url('fonts/anton-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* Il nero è quello vero della foto della porta, così l'immagine non ha bordi */
:root {
  --buio: #000000;
  --muro: #17140f;
  --luce: #FFF6E6;
  --blu: #0A7DFF;
  --blu-chiaro: #6fb2ff;
  --vita: #FF5F4A;
  --muto: #b1a999;
  --filo: rgba(255, 246, 230, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  background: var(--buio); color: var(--luce);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.55;
}
a { color: var(--blu-chiaro); }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main, .piede { max-width: 600px; margin: 0 auto; }
:focus-visible { outline: 3px solid var(--luce); outline-offset: 3px; }

/* Hero: la porta di luce al centro, il titolo sul pavimento */
.hero { position: relative; padding-bottom: 8px; }
.porta { height: min(50vh, 520px); min-height: 320px; overflow: hidden; position: relative; }
.porta img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.porta::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, rgba(0,0,0,0), var(--buio)); }
.hero-testo { position: relative; margin-top: -96px; padding: 0 20px; text-align: center; }
.titolo { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; font-size: clamp(54px, 15.5vw, 92px); line-height: 1; letter-spacing: .005em; }
.titolo .vero { color: var(--blu); position: relative; display: inline-block; }
.titolo .vero::after { content: ''; position: absolute; left: -2%; right: -4%; bottom: -.05em; height: .16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M1 9 C 30 2, 70 2, 99 7' fill='none' stroke='%230A7DFF' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.lead { font-size: 18px; color: var(--muto); margin: 18px auto 0; max-width: 26em; }

/* Tre schede: una sola aperta per volta, il pannello sotto */
.schede { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 28px 16px 0; position: sticky; top: 0; z-index: 5;
  background: linear-gradient(to bottom, var(--buio) 82%, rgba(0,0,0,0)); padding-bottom: 12px; }
.scheda { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 6px;
  border-radius: 16px; text-decoration: none; text-align: center; color: var(--luce); background: var(--muro);
  box-shadow: inset 0 0 0 1px var(--filo); transition: background-color .15s ease, color .15s ease; }
.s-icona { width: 24px; height: 24px; }
.s-titolo { font-weight: 800; font-size: 15px; line-height: 1.15; }
.scheda-parliamo { color: var(--vita); }
.scheda-offerta { color: var(--luce); }
.scheda-serate { color: var(--blu-chiaro); }
.scheda[aria-selected="true"] { box-shadow: none; }
.scheda-parliamo[aria-selected="true"] { background: var(--vita); color: #200904; }
.scheda-offerta[aria-selected="true"] { background: var(--luce); color: var(--buio); }
.scheda-serate[aria-selected="true"] { background: var(--blu); color: #fff; }

/* Blocchi */
.blocco { padding: 56px 20px 0; }
.js .pannello { padding-top: 20px; min-height: 40vh; }
h2 { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; font-size: 36px; line-height: 1.08; letter-spacing: .01em; margin-bottom: 16px; }
.testo { max-width: 32em; }
.riga-azione { margin-top: 20px; }
.piccolo { font-size: 14px; color: var(--muto); margin-top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn-parliamo { background: var(--vita); color: #200904; }
.btn-chiaro { background: var(--luce); color: var(--buio); }
.btn-blu { background: var(--blu); color: #fff; }
.btn-filo { background: transparent; color: var(--luce); box-shadow: inset 0 0 0 1.5px var(--filo); }

/* Offerta: un foglio chiaro, come un bollettino da compilare */
.intro { margin-bottom: 18px; max-width: 32em; }
.foglio { background: var(--luce); color: var(--buio); border-radius: 22px; padding: 6px 20px 20px; }
.riga-dato { padding: 14px 0; border-bottom: 1px dashed rgba(0,0,0,.22); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.riga-dato dt { font-size: 13px; font-weight: 600; color: #6b6458; }
.riga-dato dd { font-size: 18px; font-weight: 700; line-height: 1.3; word-break: break-word; margin-top: 2px; }
.riga-dato .iban { font-variant-numeric: tabular-nums; letter-spacing: .03em; font-size: 17px; }
.btn-copia { min-height: 44px; padding: 8px 16px; background: var(--buio); color: var(--luce); border-radius: 12px; font-size: 15px; flex: 0 0 auto; }
.nota-nome { margin-top: 14px; font-size: 14px; color: #6b6458; }
details.qr { margin-top: 14px; }
details.qr summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.qr-riquadro { background: #fff; padding: 12px; border-radius: 14px; width: min(260px, 100%); margin: 10px auto 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.qr-riquadro svg { width: 100%; height: auto; display: block; }
details.qr .spiega { margin-top: 12px; font-size: 14px; color: #6b6458; text-align: center; }
.card { background: var(--muro); border-radius: 22px; padding: 20px; }

/* Serate: un calendario, la data a sinistra */
.calendario { list-style: none; }
.evento { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--filo); }
.evento:first-child { border-top: 0; padding-top: 4px; }
.data { text-align: center; padding-top: 4px; }
.data .giorno { display: block; font-family: 'Anton', 'Impact', sans-serif; font-size: 46px; line-height: 1; }
.data .mese { display: block; font-size: 15px; font-weight: 700; color: var(--blu-chiaro); margin-top: 4px; }
.data .anno { display: block; font-size: 13px; color: var(--muto); }
.evento-foto { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.evento .nome { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; font-size: 30px; line-height: 1.05; }
.evento .domanda { font-size: 18px; font-weight: 700; line-height: 1.35; margin-top: 6px; }
.evento .domanda b { color: var(--blu-chiaro); font-weight: 700; }
.evento .dove { margin-top: 10px; color: var(--muto); font-size: 15px; }
.evento .nota { margin-top: 6px; color: var(--muto); font-size: 14px; }
.evento .bottoni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.evento .bottoni .btn { flex: 1 1 120px; min-height: 46px; padding: 10px 16px; }
.evento.passato { opacity: .55; }
.evento.passato .iscriviti, .evento.passato .nota { display: none; }

/* Piede */
.piede { padding: 64px 20px 56px; color: var(--muto); font-size: 15px; }
.piede p + p { margin-top: 8px; }

/* Demo */
.banner-demo { background: var(--vita); color: #200904; font-weight: 700; text-align: center; padding: 10px 16px; font-size: 14px; }

@media (min-width: 720px) {
  main, .piede { max-width: 720px; }
  .schede { padding: 32px 20px 12px; gap: 12px; }
  .scheda { flex-direction: row; gap: 10px; min-height: 64px; }
  .s-titolo { font-size: 17px; }
  .evento { grid-template-columns: 96px 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scheda { transition: none; } }
