/* RadioBlu Youth Media Lab — foglio di stile condiviso (index.php, grazie.php) */

@font-face {
  font-family: "Outfit";
  src: url("outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050f24;
  --bg-2: #08193a;
  --surface: rgba(16, 40, 78, .55);
  --surface-2: rgba(10, 28, 58, .82);
  --line: rgba(140, 200, 255, .13);
  --line-2: rgba(120, 205, 255, .32);
  --text: #f2f8ff;
  --muted: #b7cbe0;
  --faint: #86a2c0;
  --sky: #29b6f6;
  --cyan: #6ad9ff;
  --royal: #1560d6;
  --navy: #0b2a6f;
  --gold: #ffd26f;
  --onair: #ff4d61;
  --ok: #5ee6a8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  --display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(41, 182, 246, .20), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(21, 96, 214, .18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #a9e9ff; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
strong { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #1a1300; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn-primary {
  color: #04203d;
  background: linear-gradient(135deg, #8ae6ff 0%, var(--cyan) 40%, var(--sky) 100%);
  box-shadow: 0 10px 30px -10px rgba(41, 182, 246, .75), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-primary:hover { color: #04203d; box-shadow: 0 16px 36px -10px rgba(41, 182, 246, .9), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn-ghost:hover { color: #fff; background: rgba(106, 217, 255, .10); border-color: var(--cyan); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 15, 36, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); }
.brand-text strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: 13px; color: var(--cyan); font-weight: 500; letter-spacing: .04em; }
.main-nav { display: flex; justify-content: center; gap: 4px; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; background: rgba(106, 217, 255, .10); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 77, 97, .08); border: 1px solid rgba(255, 77, 97, .35);
  color: #ffd9de; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--onair); box-shadow: 0 0 0 0 rgba(255, 77, 97, .6); animation: live 1.8s ease-out infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 97, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 77, 97, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 97, 0); } }
h1 { font-size: clamp(44px, 7.2vw, 90px); line-height: 1; letter-spacing: -.025em; font-weight: 800; margin-bottom: 24px; }
.gradient {
  background: linear-gradient(100deg, #ffffff 0%, #bdefff 30%, var(--cyan) 60%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 620px; }
.hero-meta li { padding: 2px 16px; border-left: 2px solid var(--line-2); color: var(--muted); font-size: 14px; line-height: 1.4; }
.hero-meta li:first-child { border-left-color: var(--cyan); }
.hero-meta strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 2px; }

.hero-stage { position: relative; display: grid; place-items: center; padding: 20px 0 64px; isolation: isolate; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; pointer-events: none; }
.rings span {
  grid-area: 1 / 1; width: 78%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(106, 217, 255, .25);
  animation: ring 6s ease-out infinite;
}
.rings span:nth-child(2) { animation-delay: 2s; }
.rings span:nth-child(3) { animation-delay: 4s; }
.rings::before {
  content: ""; grid-area: 1 / 1; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 182, 246, .38) 0%, rgba(21, 96, 214, .18) 45%, transparent 70%);
  filter: blur(10px);
}
@keyframes ring { 0% { transform: scale(.7); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.hero-logo { width: min(100%, 440px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.onair {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-family: var(--display); font-size: 14px; font-weight: 600; color: #dff4ff;
}
.onair-tag { background: var(--onair); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--royal)); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2n) { animation-duration: .9s; }
.eq i:nth-child(3n) { animation-duration: 1.3s; }
.eq i:nth-child(1) { animation-delay: -.2s; } .eq i:nth-child(2) { animation-delay: -.5s; } .eq i:nth-child(3) { animation-delay: -.1s; }
.eq i:nth-child(4) { animation-delay: -.7s; } .eq i:nth-child(5) { animation-delay: -.3s; } .eq i:nth-child(6) { animation-delay: -.9s; }
.eq i:nth-child(7) { animation-delay: -.4s; } .eq i:nth-child(8) { animation-delay: -.6s; } .eq i:nth-child(9) { animation-delay: -.15s; }
.eq i:nth-child(10) { animation-delay: -.8s; } .eq i:nth-child(11) { animation-delay: -.35s; } .eq i:nth-child(12) { animation-delay: -.55s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(21, 96, 214, .25), rgba(41, 182, 246, .14), rgba(21, 96, 214, .25));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px;
  font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: .02em; text-transform: uppercase; color: #dff4ff;
}
.ticker-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px var(--sky); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(40px, 5vw, 72px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(8, 25, 58, 0) 0%, rgba(10, 32, 70, .45) 18%, rgba(10, 32, 70, .45) 82%, rgba(8, 25, 58, 0) 100%); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--cyan); font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow .num { color: var(--bg); background: var(--cyan); border-radius: 6px; padding: 1px 7px; letter-spacing: .04em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.018em; margin-bottom: 18px; }
.copy { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 720px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 52, 98, .55), rgba(12, 32, 66, .55));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 160px at 0% 0%, rgba(106, 217, 255, .10), transparent 70%);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 16px; }

.back-top {
  display: flex; width: fit-content; margin: 20px 0 0 auto; align-items: center; gap: 6px;
  color: var(--faint); font-family: var(--display); font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
}
.back-top:hover { color: var(--cyan); border-color: var(--line-2); }

.notice {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(106, 217, 255, .06); border: 1px solid var(--line); border-left: 4px solid var(--cyan);
  color: #d6e8f6; font-size: 15.5px;
}
.notice-gold { background: rgba(255, 210, 111, .07); border-left-color: var(--gold); }

/* ---------- Newsroom ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split .section-head { margin-bottom: 0; }
.split h2 { font-size: clamp(30px, 3.6vw, 44px); }
.rundown {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(14, 38, 76, .85), rgba(8, 24, 52, .9)); box-shadow: var(--shadow);
}
.rundown-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: rgba(0, 0, 0, .25); border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #dff4ff;
}
.rundown-clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--faint); }
.rundown-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 20px; border-bottom: 1px solid var(--line); }
.rundown-item:last-child { border-bottom: 0; }
.rundown-item .slot {
  font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  align-self: start; color: var(--cyan); padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(106, 217, 255, .07); margin-top: 1px;
}
.rundown-item h3 { font-size: 20px; margin-bottom: 6px; }
.rundown-item p { color: var(--muted); font-size: 16px; }

/* ---------- Modulo ---------- */
.form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.form-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--muted); font-size: 15.5px; }
.steps li > span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--display); font-weight: 800; color: var(--cyan); border: 1px solid var(--line-2); background: rgba(106, 217, 255, .07);
}
.steps strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; }

.form-card {
  padding: clamp(22px, 3.5vw, 36px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 48, 92, .78), rgba(10, 28, 60, .88));
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.alert {
  margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 77, 97, .10); border: 1px solid rgba(255, 77, 97, .45); color: #ffe3e6; font-size: 15.5px;
}
.alert:focus { outline: none; }
.req-note { color: var(--faint); font-size: 13.5px; margin-bottom: 8px; }
.req-note span, .req { color: var(--gold); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.field { display: flex; flex-direction: column; padding-top: 12px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-size: 15px; font-weight: 600; color: #eef6ff; margin-bottom: 8px; }
.opt { color: var(--faint); font-weight: 400; font-size: 13px; margin-left: 4px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(3, 12, 30, .72); border: 1px solid rgba(140, 190, 235, .30); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input::placeholder, textarea::placeholder { color: #7b93ad; }
input:hover, select:hover, textarea:hover { border-color: rgba(140, 200, 255, .5); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(106, 217, 255, .18); background: rgba(3, 12, 30, .9); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ad9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select option { background: #0b1d3d; color: var(--text); }
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.counter { align-self: flex-end; margin-top: 6px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--onair); }
.field-error { margin-top: 6px; color: #ffb3bc; font-size: 14px; font-weight: 600; }
.check { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; padding-top: 22px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sky); cursor: pointer; }
.check label { font-family: var(--body); font-weight: 400; font-size: 15.5px; color: #dbe9f6; margin: 0; cursor: pointer; }
.check .field-error { grid-column: 2; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--faint); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Privacy ---------- */
.policy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.policy > div { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.policy .policy-wide { grid-column: 1 / -1; }
.policy dt { font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 6px; }
.policy dd { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Chiusura e footer ---------- */
.cta-band {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: center;
  padding: clamp(26px, 5vw, 52px); border-radius: 32px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(21, 96, 214, .45), rgba(11, 42, 111, .55) 50%, rgba(41, 182, 246, .25));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 80px rgba(255, 255, 255, .02); pointer-events: none; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); }
.cta-band .hero-buttons { margin-top: 24px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 96px; color: var(--faint); font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand span { color: #6f8aa8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }

.top-link {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px;
  border-radius: 999px; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px;
  background: rgba(8, 26, 56, .92); border: 1px solid var(--line-2); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.top-link:hover { color: #fff; background: var(--royal); }
.js .top-link { opacity: 0; transform: translateY(16px); pointer-events: none; }
.js .top-link.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Pagina grazie ---------- */
.thanks-page { min-height: 100dvh; display: flex; flex-direction: column; }
.thanks-top { padding: 20px 0; }
.thanks-top a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; }
.thanks-card {
  width: min(760px, calc(100% - 32px)); margin: 8px auto 48px; text-align: center;
  padding: clamp(26px, 5vw, 52px); border-radius: 32px;
  background: linear-gradient(180deg, rgba(20, 48, 92, .78), rgba(10, 28, 60, .9));
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.thanks-card .logo { width: min(100%, 240px); margin: 0 auto 26px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.check-badge {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #04203d;
  background: linear-gradient(145deg, #a8ffd9, var(--ok)); box-shadow: 0 0 0 10px rgba(94, 230, 168, .12), 0 16px 34px -10px rgba(94, 230, 168, .6);
}
.check-badge .i { width: 38px; height: 38px; stroke-width: 2.6; }
.thanks-card h1 { font-size: clamp(34px, 5.5vw, 54px); margin-bottom: 18px; }
.thanks-card p { color: var(--muted); max-width: 580px; margin: 0 auto 12px; font-size: clamp(16px, 1.6vw, 18px); }
.thanks-card .notice { text-align: left; margin: 22px auto; max-width: none; font-size: 15.5px; }
.redirect-box { margin-top: 26px; padding: 18px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.thanks-card .redirect-box p { margin: 0 auto 12px; font-size: 15.5px; }
.progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--sky), var(--cyan)); transition: transform 1s linear; }
.link-btn { margin-top: 12px; background: none; border: 0; padding: 4px 8px; color: var(--cyan); font: inherit; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: #fff; }
.thanks-card .hero-buttons { justify-content: center; }
.thanks-card .thanks-foot { margin-top: 28px; font-size: 13.5px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav a { padding: 8px 10px; font-size: 14.5px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-copy { text-align: left; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .form-layout { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .policy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* (La vecchia riga di menu scorrevole sotto gli 860px è stata sostituita
   dal menu hamburger: vedi "Menu hamburger" in fondo al file.) */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hide-sm { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 16px; }
  .brand-text span { font-size: 12px; }
  .hero { padding-top: 24px; }
  .hero-stage { max-width: 270px; padding-bottom: 58px; }
  .onair { font-size: 13px; gap: 10px; }
  .status-pill { font-size: 11.5px; letter-spacing: .06em; }
  .hero-buttons { display: grid; grid-template-columns: 1fr; }
  .hero-buttons .btn, .form-actions .btn { width: 100%; }
  .grid-3, .form-grid, .policy { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .cta-band { grid-template-columns: 1fr; }
  .rundown-item { gap: 14px; padding: 18px 16px; }
  .top-link { right: 12px; bottom: 12px; padding: 10px 14px 10px 12px; font-size: 14px; }
  .back-top { margin-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
  .eq i { transform: scaleY(.6); }
}

/* ---------- Fotografie ---------- */
.photo { display: block; position: relative; overflow: hidden; background: linear-gradient(135deg, #0f2f63, #0a1d40 60%, #123a74); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-missing { background:
  radial-gradient(120% 90% at 20% 10%, rgba(41, 182, 246, .35), transparent 60%),
  radial-gradient(90% 80% at 90% 90%, rgba(21, 96, 214, .45), transparent 60%),
  linear-gradient(135deg, #0f2f63, #0a1d40); }

.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .photo { width: 100%; height: 100%; background: none; }
.hero-bg .photo img { opacity: .55; filter: saturate(.85); }
.hero-bg .photo-missing { opacity: .4; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 15, 36, .97) 0%, rgba(5, 15, 36, .88) 42%, rgba(5, 15, 36, .55) 75%, rgba(5, 15, 36, .7) 100%),
    linear-gradient(180deg, rgba(5, 15, 36, .2) 0%, rgba(5, 15, 36, 0) 50%, var(--bg) 100%);
}

.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-card .card-photo { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.photo-card .card-photo img, .lab-photo img, .newsroom-photo img { transition: transform .6s ease; }
.photo-card:hover .card-photo img, .lab-tile:hover .lab-photo img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; }
.tag { display: inline-block; margin-bottom: 10px; font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lab-tile {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #0a1d40;
}
.lab-photo { position: absolute; inset: 0; }
.lab-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 15, 36, 0) 30%, rgba(5, 15, 36, .55) 55%, rgba(5, 15, 36, .96) 100%);
}
.lab-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 24px 24px; }
.lab-num { display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--cyan); margin-bottom: 6px; }
.lab-body h3 { font-size: 22px; line-height: 1.15; margin-bottom: 8px; color: #fff; }
.lab-body p { color: #d4e3f2; font-size: 15.5px; line-height: 1.5; }
.lab-open { border-color: rgba(255, 210, 111, .45); }
.lab-open .lab-num { color: var(--gold); }

.newsroom-media { position: relative; }
.newsroom-photo { aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.newsroom-media .rundown { position: relative; margin: -64px 20px 0; }

.intro-photo { aspect-ratio: 16 / 10; border-radius: var(--radius); margin-top: 26px; border: 1px solid var(--line); }

.cta-band { display: block; }
.cta-band::after { display: none; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg .photo { width: 100%; height: 100%; background: none; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 15, 36, .96) 0%, rgba(8, 25, 58, .86) 50%, rgba(8, 25, 58, .35) 100%); }
.cta-content { position: relative; z-index: 1; max-width: 640px; }

.credits { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: #6f8aa8; }
.credits summary { cursor: pointer; width: fit-content; }
.credits summary:hover { color: var(--cyan); }
.credits p { margin-top: 8px; max-width: 900px; }
.credits a { color: var(--faint); }

.setup-card { text-align: left; }
.setup-list { list-style: none; padding: 0; margin: 18px 0 0; max-height: 360px; overflow: auto; font-size: 13.5px; }
.setup-list li { padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.setup-list li.ko { color: #ffb3bc; }
.setup-card .hero-buttons { justify-content: flex-start; }

@media (max-width: 1020px) {
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-bg::after { background: linear-gradient(180deg, rgba(5, 15, 36, .75) 0%, rgba(5, 15, 36, .9) 45%, var(--bg) 100%); }
}
@media (max-width: 640px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab-tile { aspect-ratio: 4 / 4.2; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; }
  .newsroom-media .rundown { margin: -40px 10px 0; }
  .cta-bg::after { background: linear-gradient(180deg, rgba(5, 15, 36, .7) 0%, rgba(8, 25, 58, .92) 45%); }
}
.photo-card::before { display: none; }

/* ==========================================================================
   v. 2026-10-22 — Menu hamburger e rifiniture responsive
   ========================================================================== */

.nav-toggle, .nav-extra { display: none; }
.nav-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Margini sicuri per notch e barra home (iPhone in orizzontale) */
.wrap { width: min(1160px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
.site-header { padding-top: env(safe-area-inset-top); }

@media (max-width: 1079px) {
  :root { --header-h: 64px; }
  html { scroll-padding-top: calc(var(--header-h) + 12px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; padding-top: 0; }
  .hide-sm { display: none; }

  /* Pulsante hamburger */
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; padding: 0;
    border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
    color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, border-color .15s ease;
  }
  .nav-toggle:hover { background: rgba(106, 217, 255, .10); border-color: var(--cyan); }
  .nav-toggle-bars { position: relative; display: block; width: 20px; height: 14px; }
  .nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 6px; }
  .nav-toggle-bars span:nth-child(3) { top: 12px; }
  .nav-toggle[aria-expanded="true"] { background: rgba(106, 217, 255, .12); border-color: var(--cyan); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  /* Pannello del menu: parte subito sotto la testata e occupa il resto dello schermo.
     La testata ha backdrop-filter, quindi fa da riferimento al position:fixed. */
  .main-nav {
    position: fixed; left: 0; right: 0; top: 100%;
    height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
    margin: 0; padding: 8px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--bg);
    background-image: radial-gradient(600px 400px at 100% 0%, rgba(41, 182, 246, .16), transparent 60%);
    border-top: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  .main-nav > a {
    display: flex; align-items: center; min-height: 60px; padding: 0 4px;
    font-size: clamp(22px, 5.5vw, 28px); font-weight: 600; color: var(--text);
    border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--line);
  }
  .main-nav > a:hover, .main-nav > a.is-active { color: var(--cyan); background: none; }
  .main-nav > a.is-active::after { content: ""; width: 8px; height: 8px; margin-left: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
  .nav-extra { display: grid; gap: 12px; margin-top: 28px; }
  .nav-extra .btn { width: 100%; }
  .nav-extra .btn:hover { transform: none; }
  /* I pulsanti nel pannello non devono prendere lo stile delle voci di menu (.main-nav a) */
  .main-nav .nav-extra .btn { padding: 14px 26px; font-size: 17px; border-radius: 999px; }
  .main-nav .nav-extra .btn-primary, .main-nav .nav-extra .btn-primary:hover {
    color: #04203d; background: linear-gradient(135deg, #8ae6ff 0%, var(--cyan) 40%, var(--sky) 100%);
  }
  .main-nav .nav-extra .btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
  .main-nav .nav-extra .btn-ghost:hover { color: #fff; background: rgba(106, 217, 255, .10); border-color: var(--cyan); }

  body.nav-locked { overflow: hidden; }
  .nav-open .top-link { opacity: 0; pointer-events: none; }

  /* Senza JavaScript: niente hamburger, le voci restano in una riga scorrevole */
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { grid-template-columns: 1fr auto; padding-top: 10px; }
  .no-js .main-nav {
    position: static; height: auto; visibility: visible; opacity: 1; transform: none; background: none; border: 0;
    grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 4px; margin: 8px -16px 0; padding: 0 16px 10px;
    overflow-x: auto; scrollbar-width: none;
  }
  .no-js .main-nav > a { min-height: 40px; padding: 8px 12px; font-size: 14.5px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); }
  .no-js .nav-extra { display: none; }
}

/* Telefoni molto stretti: il pulsante "Partecipa" resta nel menu */
@media (max-width: 379px) {
  .header-cta { display: none; }
  .brand-text strong { font-size: 15px; }
}

/* Sfondo fisso: su telefoni e tablet causa scatti nello scorrimento */
@media (max-width: 1020px), (hover: none) {
  body { background-attachment: scroll; }
}

/* Etichetta di stato su più righe senza deformarsi */
@media (max-width: 640px) {
  .status-pill { border-radius: 16px; line-height: 1.35; }
  h1 { font-size: clamp(38px, 11vw, 56px); }
}

/* Tablet (641–1020px): con due colonne la terza scheda occupa la riga intera */
@media (min-width: 641px) and (max-width: 1020px) {
  .grid-3 > .photo-card:nth-child(3):last-child { grid-column: 1 / -1; flex-direction: row; }
  .grid-3 > .photo-card:nth-child(3):last-child .card-photo { flex: 0 0 50%; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--line); }
  .grid-3 > .photo-card:nth-child(3):last-child .card-body { align-self: center; }
}

/* Laboratori sul telefono: carosello orizzontale con aggancio invece di 6 schede in colonna */
@media (max-width: 640px) {
  .lab-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 16px 16px; scroll-padding-inline: 16px;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  .lab-grid::-webkit-scrollbar { height: 6px; }
  .lab-grid::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
  .lab-tile { aspect-ratio: 4 / 5; scroll-snap-align: start; box-shadow: none; }
  .lab-grid:focus-visible { outline-offset: -3px; }
}
.lab-hint { display: none; }
@media (max-width: 640px) {
  .js .lab-hint { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--faint); font-size: 14px; }
  .lab-hint::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
}

/* Pulsante "Torna su" sul telefono: solo icona, sopra la barra home */
@media (max-width: 640px) {
  .top-link { width: 48px; height: 48px; padding: 0; justify-content: center; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .top-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
  .card:hover, .btn:hover { transform: none; }
}

/* Telefoni in orizzontale: logo più piccolo, niente schermata occupata solo dall'immagine */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-stage { max-width: 220px; padding-bottom: 54px; }
  .main-nav > a { min-height: 48px; font-size: 20px; }
  .nav-extra { grid-template-columns: 1fr 1fr; margin-top: 16px; }
}

/* Schermi molto larghi: un po' più di respiro */
@media (min-width: 1600px) {
  .wrap { width: min(1280px, calc(100% - 64px)); }
}
