/* MOCKUP pagina d'attesa «San Giovanni 2027» — HTML + CSS nativo, zero JavaScript, nessuna libreria. Effetti: scroll-driven animations, @property, View Transitions.
   Dove il browser non li supporta la pagina resta leggibile e completa (miglioramento progressivo). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@property --h { syntax: "<number>"; inherits: true; initial-value: 28; }
@view-transition { navigation: auto; }

:root {
  --bg: #06120f; --ink: #f6f1e7; --mut: rgba(246, 241, 231, .68); --line: rgba(255, 255, 255, .14);
  --h: 28;
  --c1: #3ef0b0; --c2: #ff6b8b; --c3: #ffd24a; /* palette «Menta e corallo» */
  --r: 20px; --w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }

/* sfondo fisso: bagliori, grana, vignettatura */
.aur { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aur i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: fl 22s ease-in-out infinite alternate; }
.aur i:nth-child(1) { width: 75vmin; height: 75vmin; left: -12%; top: -16%; background: radial-gradient(circle, var(--c1), transparent 65%); }
.aur i:nth-child(2) { width: 66vmin; height: 66vmin; right: -10%; bottom: -18%; background: radial-gradient(circle, var(--c2), transparent 65%); animation-delay: -6s; }
.aur i:nth-child(3) { width: 50vmin; height: 50vmin; left: 40%; top: 30%; background: radial-gradient(circle, var(--c3), transparent 68%); opacity: .35; animation-delay: -11s; }
@keyframes fl { to { transform: translate(9%, 7%) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.vig { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, .65)); }
header, main, footer { position: relative; z-index: 1; }

/* testata a pillola */
header.top { position: sticky; top: 0; z-index: 10; padding: 12px 0; }
header.top .wrap { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(11, 12, 15, .55); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand .mark { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #14110c; font-size: .9rem; box-shadow: 0 0 22px rgba(255, 255, 255, .3); }
nav.menu { margin-left: auto; }
nav.menu a { text-decoration: none; font-weight: 700; font-size: .9rem; padding: 9px 18px; border-radius: 99px; background: #fff; color: #14110c; box-shadow: 0 0 22px var(--c1); transition: .25s; display: inline-block; }
nav.menu a:hover { transform: translateY(-1px); box-shadow: 0 0 32px var(--c1); }

/* elementi comuni */
.kicker { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .12); border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px; font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; backdrop-filter: blur(8px); }
.kicker i { width: 9px; height: 9px; border-radius: 50%; background: #ffd35a; box-shadow: 0 0 10px #ffd35a; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--mut); }
.eyebrow::before { content: ""; width: 38px; height: 4px; border-radius: 9px; background: var(--c1); box-shadow: 0 0 14px var(--c1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: inherit; font-weight: 700; padding: 14px 26px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--ink); backdrop-filter: blur(8px); transition: .25s; min-height: 50px; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--c1); }
.btn.go { background: #fff; color: #14110c; border-color: #fff; box-shadow: 0 0 28px rgba(255, 255, 255, .25); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
h2.big { margin: 12px 0 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; font-weight: 800; text-wrap: balance; }
h2.big em { font-style: normal; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(10px); padding: 22px 24px; }
section.blk { padding: clamp(56px, 10vw, 120px) 0; }

/* ===== 1. HERO a tutto schermo ===== */
.hero { min-height: calc(100svh - 72px); display: grid; align-items: center; position: relative; margin-top: -72px; padding: 96px 0 48px; }
.sun { position: absolute; right: -12vmin; top: 50%; width: 82vmin; height: 82vmin; translate: 0 -50%; z-index: -1; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: linear-gradient(135deg, #3ef0b0, #ff6b8b 60%, #ffd24a); filter: blur(30px); opacity: .5; animation: morph 14s ease-in-out infinite alternate, spin 50s linear infinite; }
@keyframes morph { 50% { border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%; } to { border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; } }
@keyframes spin { to { rotate: 360deg; } }
.hero h1 { margin: 22px 0 0; font-weight: 800; line-height: .84; letter-spacing: -.035em; font-size: clamp(2.4rem, 9.6vw, 8.2rem); text-transform: uppercase; }
.hero h1 span { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 span b { display: block; font-weight: inherit; background: linear-gradient(100deg, #f6f1e7 0%, #3ef0b0 25%, #ff6b8b 50%, #ffd24a 75%, #f6f1e7 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both, liquid 9s linear infinite; }
@keyframes liquid { to { background-position: 300% 0; } }
.hero h1 span:nth-child(2) b { animation-delay: .12s; }
.hero h1 span:nth-child(3) b { animation-delay: .24s; }
.hero h1 .yr { background-image: linear-gradient(100deg, #f6f1e7 0%, #3ef0b0 25%, #ff6b8b 50%, #ffd24a 75%, #f6f1e7 100%); }
@keyframes rise { from { transform: translateY(105%); } }
.hero .claim { margin: 28px 0 0; max-width: 38ch; display: flex; gap: .5em; align-items: flex-start; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; font-size: clamp(1.4rem, 3.6vw, 2.6rem); animation: fade 1.2s .5s both; }
.hero .claim .t { text-wrap: balance; background: linear-gradient(100deg, var(--ink) 20%, var(--c1) 55%, var(--ink) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s 1.7s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.hero .cta { animation: fade 1.2s 1.1s both; }

/* motto 2026 (ricordo) e motto 2027 (mistero) */
.mottos { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; animation: fade 1.2s .8s both; }
.past, .mystery { min-width: 230px; }
.past { padding: 12px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); display: grid; align-content: center; }
.mottos small { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--mut); }
.past b { font-size: 1.15rem; }
.mystery { position: relative; }
.mystery::before { content: ""; position: absolute; inset: -2px; border-radius: 18px; background: conic-gradient(from 0deg, var(--c1), transparent 30%, var(--c2), transparent 62%, var(--c1)); filter: blur(3px); animation: spin 7s linear infinite; }
.mystery .in { position: relative; padding: 12px 20px; border-radius: 16px; background: #0a1a16; overflow: hidden; }
.mystery b { display: block; font-size: 1.15rem; filter: blur(7px); user-select: none; letter-spacing: .04em; animation: blurpulse 4s ease-in-out infinite alternate; }
@keyframes blurpulse { from { filter: blur(9px); opacity: .55; } to { filter: blur(5px); opacity: 1; } }
.mystery .veil { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%); transform: translateX(-130%); animation: shine 4.5s 1s infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }

/* ===== 2. il mese: parole giganti che scorrono con la pagina ===== */
.mega { padding: clamp(70px, 12vw, 150px) 0 clamp(40px, 8vw, 90px); overflow: hidden; }
.mega .m1, .mega .m2 { font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.04em; white-space: nowrap; }
.mega .m1 { font-size: clamp(4rem, 21vw, 17rem); background: linear-gradient(90deg, var(--c1), var(--c2) 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 3vw; }
.mega .m2 { font-size: clamp(2.4rem, 11vw, 9rem); color: transparent; -webkit-text-stroke: 2px var(--ink); margin-left: 12vw; }
.mega p { margin-top: 40px; color: var(--mut); font-size: clamp(1.1rem, 2.4vw, 1.5rem); max-width: 34ch; }

/* ===== 3. foto: striscia orizzontale ===== */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 8px max(16px, calc((100vw - var(--w)) / 2)) 26px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--c1) transparent; }
.shot { --h: 28; margin: 0; flex: 0 0 min(72vw, 340px); aspect-ratio: 3 / 4; border-radius: var(--r); scroll-snap-align: center; position: relative; overflow: hidden; border: 1px solid var(--line); transition: transform .35s;
  background: radial-gradient(90% 70% at 30% 20%, hsl(var(--h) 90% 60% / .75), transparent 60%), radial-gradient(80% 80% at 80% 90%, hsl(calc(var(--h) + 40) 80% 45% / .8), transparent 65%), #14161b; }
.shot:nth-child(even) { margin-top: 28px; }
.shot:hover { transform: scale(1.03) rotate(-.6deg); }
.shot figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.shot figcaption small { font-weight: 600; opacity: .8; }
.shot::after { content: "foto"; position: absolute; top: 14px; left: 14px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .35); }

/* ===== 4. avvisami ===== */
.notify { max-width: 760px; margin-inline: auto; padding: clamp(24px, 5vw, 48px); text-align: center; }
.notify .eyebrow { justify-content: center; }
.notify p { color: var(--mut); margin: 14px 0 24px; }
form.f { display: grid; gap: 14px; text-align: left; }
.inl { display: flex; gap: 10px; flex-wrap: wrap; }
.inl input { flex: 1 1 240px; }
input[type=email], input[type=text] { font: inherit; color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 99px; padding: 13px 20px; min-height: 52px; width: 100%; }
input:focus { outline: 2px solid var(--c1); outline-offset: 1px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--mut); }
.chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: #3ef0b0; flex: none; }
.hp { position: absolute; left: -9999px; }

footer.bottom { padding: 40px 0 60px; color: var(--mut); font-size: .92rem; }
footer.bottom .wrap { border-top: 1px solid var(--line); padding-top: 22px; display: flex; gap: 8px 28px; flex-wrap: wrap; justify-content: center; text-align: center; }
.mock { position: fixed; left: 12px; bottom: 12px; z-index: 20; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; background: #ffd35a; color: #14110c; box-shadow: 0 4px 20px rgba(0, 0, 0, .4); }

@media (max-width: 760px) {
  .brand .t { font-size: .92rem; }
  .shot:nth-child(even) { margin-top: 0; }
  .sun { right: -40vmin; opacity: .4; }
}

/* ===== effetti guidati dallo scroll (solo dove supportati) ===== */
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes rv { from { opacity: 0; transform: translateY(60px) scale(.97); } }
  .hero .wrap { animation: heroout linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
  @keyframes heroout { to { opacity: 0; transform: translateY(-60px) scale(.96); } }
  .sun { animation: spin 40s linear infinite, sunmove linear both; animation-timeline: auto, scroll(root); }
  @keyframes sunmove { to { translate: -14vmin calc(-50% + 20vmin); } }
  .mega .m1 { animation: slideL linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
  .mega .m2 { animation: slideR linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
  @keyframes slideL { from { translate: 38vw; opacity: .2; } 45% { opacity: 1; } to { translate: -22vw; } }
  @keyframes slideR { from { translate: -45vw; opacity: .2; } 45% { opacity: 1; } to { translate: 18vw; } }
}
@media (prefers-reduced-motion: reduce) {
  :root, .aur i, .sun, .kicker i, .hero h1 span b, .emo, .hero .claim .t, .mystery::before, .mystery b, .mystery .veil, .hero .claim { animation: none !important; }
  .rv, .hero .wrap, .mega .m1, .mega .m2, .hero h1 span b, .hero .claim, .mottos, .hero .cta { animation: none !important; opacity: 1 !important; transform: none !important; translate: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== pagina di testo (privacy) ===== */
.doc { max-width: 760px; padding: clamp(28px, 6vw, 72px) 0 40px; }
.doc h1 { margin: 18px 0 4px; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.02; font-weight: 800; text-wrap: balance; }
.doc .upd { color: var(--mut); margin: 0 0 18px; }
.doc h2 { margin: 36px 0 8px; font-size: 1.3rem; font-weight: 800; }
.doc h2::before { content: ""; display: inline-block; width: 22px; height: 4px; border-radius: 9px; background: var(--c1); box-shadow: 0 0 12px var(--c1); margin-right: 10px; vertical-align: middle; }
.doc p, .doc li { color: rgba(246, 241, 231, .86); }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc a { text-decoration-color: var(--c1); text-underline-offset: 3px; }
.doc .todo { background: rgba(255, 211, 90, .15); border: 1px dashed #ffd35a; border-radius: 8px; padding: 1px 8px; color: #ffe39a; }
.doc .back { margin-top: 40px; }

/* emoji del claim e fila di edizioni */
.emo { flex: none; font-size: 1.9em; line-height: 1; display: inline-block; animation: pop 1.8s ease-in-out infinite; }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(6deg); } }
@keyframes bob { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-.12em); } }
.past b { display: block; }
@media (max-width: 760px) { .past, .mystery { flex: 1 1 100%; } }

/* verifica anti-robot dei moduli (assets/pow.js) */
.pow { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--mut); padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); width: fit-content; max-width: 100%; }
.pow-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--mut); opacity: .6; }
.pow[data-state="work"] .pow-dot { background: var(--c3); opacity: 1; animation: pulse 1s ease-in-out infinite; }
.pow[data-state="ok"] { color: var(--ink); border-color: color-mix(in srgb, var(--c1) 55%, transparent); }
.pow[data-state="ok"] .pow-dot { background: var(--c1); opacity: 1; box-shadow: 0 0 10px var(--c1); }
.pow[data-state="err"] { color: #ffb0bf; border-color: rgba(255, 107, 139, .6); }
.pow[data-state="err"] .pow-dot { background: #ff6b8b; opacity: 1; }

/* indirizzi email e link lunghi vanno a capo invece di uscire dallo schermo (telefoni piccoli) */
.doc a, .doc p, .doc li, .reach b, .reach a, .glass p { overflow-wrap: anywhere; }

/* menu in alto: «Entra nello staff» come pulsante secondario in vetro, ben visibile accanto al pulsante bianco «Avvisami» */
nav.menu { display: flex; align-items: center; gap: 8px; }
nav.menu a.plain { background: rgba(255, 255, 255, .1); color: var(--ink); border: 1px solid color-mix(in srgb, var(--c1) 65%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c1) 30%, transparent); padding-inline: 16px; min-height: 40px; display: inline-flex; align-items: center; backdrop-filter: blur(8px); }
nav.menu a.plain:hover, nav.menu a.plain[aria-current="page"] { background: rgba(255, 255, 255, .2); box-shadow: 0 0 26px color-mix(in srgb, var(--c1) 55%, transparent); }
@media (max-width: 520px) { nav.menu a { font-size: .84rem; } nav.menu a.plain { padding-inline: 13px; } .brand .t { font-size: .85rem; } }
@media (max-width: 400px) { .brand .t { display: none; } }
nav.menu a { white-space: nowrap; }
nav.menu a.plain .sh { display: none; }
@media (max-width: 640px) { nav.menu a.plain .lg { display: none; } nav.menu a.plain .sh { display: inline; } }

/* Avviso per le statistiche (Google Analytics, solo dopo il consenso): vedi assets/consenso.js */
.ck { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; width: min(720px, calc(100% - 24px));
  background: color-mix(in srgb, #0c1d19 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); color: var(--ink); line-height: 1.5; }
.ck[hidden] { display: none; }
.ck::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3)); }
.ck h2 { margin: 0 0 4px; font-size: 1.05rem; }
.ck p { margin: 0 0 12px; color: var(--mut); font-size: .95rem; }
.ck a { color: var(--c1); }
.ck details { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.ck summary { cursor: pointer; font-weight: 700; min-height: 28px; }
.ck details p { margin: 8px 0 0; font-size: .9rem; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-actions button { flex: 1 1 150px; min-height: 46px; border-radius: 99px; border: 1px solid #fff; background: #fff; color: #14110c; font: inherit; font-weight: 700; cursor: pointer; }
.ck-actions button:hover { background: var(--c1); border-color: var(--c1); }
.ck-actions button:focus-visible, button.lnk:focus-visible { outline: 3px solid var(--c1); outline-offset: 2px; }
button.lnk { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; min-height: 24px; }
@media (prefers-reduced-motion: no-preference) { .ck { animation: ck-in .45s ease-out both; } }
@keyframes ck-in { from { opacity: 0; transform: translate(-50%, 16px); } }
