/* ============================================================
   SKYLINE TALKS — foglio di stile "studio notturno"
   ============================================================ */
:root {
  --night: #0A1024; --surface: #131B36; --surface-2: #1B2446; --line: #2A3560;
  --ink: #F2F4FB; --ink-2: #D5DBF0; --muted: #A3ADCC;
  --pink: #FF3FB0; --cyan: #3DE1FF; --amber: #F2A65A;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --w: 1120px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width:100%; height:auto; display:block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; margin:0; text-wrap: balance; letter-spacing: .005em; }
h2 { font-size: clamp(32px, 5vw, 48px); }
h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 500; }
p { margin:0; }
.wrap { width: min(var(--w), 100% - 2*var(--gutter)); margin-inline:auto; }
.narrow { width: min(760px, 100% - 2*var(--gutter)); margin-inline:auto; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.muted { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10,16,36,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(42,53,96,.6); }
.top .wrap { display:flex; align-items:center; justify-content:space-between; height: 78px; gap: 16px; }
.top .logo img { height: 54px; width:auto; }
.nav { display:flex; gap: 26px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.top .btn { display:none; }
.nav-toggle { display:none; width:44px; height:44px; border:0; background:none; cursor:pointer; padding:0; }
.nav-toggle span { display:block; width:22px; height:2px; background: var(--ink); margin: 5px auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display:none; position: fixed; inset: 70px 0 0; background: var(--night); z-index: 19; padding: 24px var(--gutter); flex-direction: column; gap: 6px; }
.nav-mobile.open { display:flex; }
.nav-mobile a { font-family: var(--display); font-size: 30px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav-mobile a.active { color: var(--pink); }
.nav-mobile .btn { margin-top: 18px; align-self:flex-start; font-family: var(--body); font-size: 15px; border:0; }
@media (min-width: 761px) { .top .btn { display:inline-flex; } }
@media (max-width: 760px) { .nav { display:none; } .nav-toggle { display:block; } .top .wrap { height: 70px; } .top .logo img { height: 44px; } }

/* ---------- buttons ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor:pointer; font-family: var(--body); transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn-pink { background: var(--pink); color: #1A0611; }
.btn-pink:hover { background: #ff58b9; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(19,27,54,.6); }
.btn-ghost:hover { background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation:isolate; overflow:hidden; }
.hero-bg { position:absolute; inset:0; z-index:-1; background: var(--night); }
.hero-bg img, .hero-bg video { width:100%; height:100%; object-fit: cover; object-position: 50% 28%; }
.hero-bg video { display:none; }
.hero-bg::after { content:""; position:absolute; inset:0; background:
  linear-gradient(180deg, rgba(10,16,36,.35) 0%, rgba(10,16,36,.55) 45%, var(--night) 100%),
  linear-gradient(90deg, rgba(10,16,36,.75) 0%, rgba(10,16,36,.15) 60%); }
@media (max-width: 760px) {
  .hero-bg.has-video img { display:none; }
  .hero-bg.has-video video { display:block; object-position: 50% 0%; }
  /* su telefono lo sfondo copre solo la parte alta (titolo e testo) e sfuma nel blu notte prima della card dell'episodio */
  .hero-bg { bottom: auto; height: 400px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(10,16,36,0) 0%, rgba(10,16,36,.15) 45%, rgba(10,16,36,.9) 80%, var(--night) 100%); }
}
.hero .wrap { padding-block: clamp(72px, 12vw, 150px) 0; display:grid; gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items:end; }
.hero h1 { font-size: clamp(50px, 8.6vw, 108px); text-transform: uppercase; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 18px rgba(61,225,255,.55), 0 0 48px rgba(61,225,255,.25); }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); max-width: 34ch; margin-top: 22px; }
.hero-cta { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 30px; }
.stats { display:flex; gap: 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-variant-numeric: tabular-nums; }
.stats div { display:grid; gap:2px; }
.stats b { font-family: var(--display); font-size: 34px; font-weight: 600; line-height:1; }
.stats span { font-size: 13px; color: var(--muted); }
.onair { display:inline-flex; align-items:center; gap:8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--amber); margin-bottom: 14px; }
.onair i { width:8px; height:8px; border-radius:50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:.35; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 34px; } .stats { gap: 22px; } .stats b { font-size: 28px; } }
@media (max-width: 760px) { .hero .wrap { padding-top: 230px; } }   /* il neon resta sopra al titolo, come un'insegna */

/* ---------- page header (pagine interne) ---------- */
.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(40px, 7vw, 76px); text-transform: uppercase; }
.page-head p { color: var(--muted); max-width: 56ch; margin-top: 14px; font-size: 18px; }

/* ---------- episode cards ---------- */
.ep { display:grid; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow:hidden; transition: border-color .15s ease, transform .2s ease; }
.ep:hover { border-color: var(--muted); transform: translateY(-2px); }
.ep-thumb { position:relative; display:block; aspect-ratio: 16/9; background:#000; }
.ep-thumb img { width:100%; height:100%; object-fit:cover; }
.ep-dur { position:absolute; right:10px; bottom:10px; background: rgba(0,0,0,.72); color:#fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.ep-body { display:grid; gap: 4px; padding: 14px 16px 16px; }
.ep-num { font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing:.04em; }
.ep-title { font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.15; }
.ep-guest { font-size: 14px; color: var(--muted); }
.ep-big { box-shadow: 0 30px 80px rgba(0,0,0,.55); border-color: rgba(255,63,176,.45); }
.ep-big .ep-title { font-size: 28px; }
.ep-big .ep-body { padding: 18px 20px 20px; }
.ep-big .ep-num::before { content:"Ultimo episodio · "; color: var(--pink); }
.grid { display:grid; gap: 18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.empty { color: var(--muted); padding: 40px 0; text-align:center; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 110px); }
.sec-tight { padding-top: 0; }
.sec-head { display:flex; align-items:end; justify-content:space-between; gap: 20px; margin-bottom: 28px; }
.sec-head p { color: var(--muted); max-width: 52ch; margin-top: 8px; }
.sec-head .btn { flex:none; }
@media (max-width: 560px) { .sec-head { flex-direction:column; align-items:flex-start; } }
.season-title { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--pink); margin: 40px 0 16px; text-transform: uppercase; }
.season-title:first-child { margin-top: 0; }

/* ---------- shorts ---------- */
.shorts { display:flex; gap: 14px; overflow-x:auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.shorts::-webkit-scrollbar { display:none; }
.short { flex: 0 0 clamp(150px, 42vw, 200px); scroll-snap-align: start; position:relative; aspect-ratio: 9/16; border-radius: 12px; overflow:hidden; background: var(--surface); border: 1px solid var(--line); }
.short img { width:100%; height:100%; object-fit:cover; }
.short span { position:absolute; left:0; right:0; bottom:0; padding: 36px 12px 12px; font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.15; color:#fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.short:hover { border-color: var(--muted); }
.sec-ctl { display:flex; align-items:center; gap: 8px; flex:none; }
.sec-ctl .btn { margin-left: 8px; }
.sh-nav { width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background: var(--surface); color: var(--ink); display:grid; place-items:center; cursor:pointer; padding:0; transition: background .15s ease; }
.sh-nav:hover { background: var(--surface-2); }
.sh-nav:active { background: #22305A; }
.sh-nav svg { width:20px; height:20px; }
@media (max-width: 760px) { .sh-nav { display:none; } }

/* ---------- hosts ---------- */
.hosts { display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items:center; }
.hosts img { border-radius: 14px; }
.hosts p.body { color: var(--ink-2); margin-top: 16px; max-width: 48ch; }
.host-list { list-style:none; padding:0; margin: 26px 0 0; display:grid; gap: 14px; }
.host-list li { display:grid; gap:2px; padding-left: 14px; border-left: 2px solid var(--pink); }
.host-list b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.host-list span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .hosts { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- guests wall ---------- */
.sec-guests { background: var(--surface); border-block: 1px solid var(--line); }
.guests { list-style:none; padding:0; margin:0; columns: 3; column-gap: 32px; }
.guests li { break-inside: avoid; display:grid; gap:2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guests b { font-family: var(--display); font-weight: 500; font-size: 21px; }
.guests span { font-size: 14px; color: var(--muted); }
.guests li > a { display:grid; gap:2px; }
.guests a:hover b { color: var(--pink); }
@media (max-width: 900px) { .guests { columns: 2; } }
@media (max-width: 560px) { .guests { columns: 1; } }

/* ---------- listen ---------- */
.listen { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.listen a { display:flex; align-items:center; gap: 16px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s ease; }
.listen a:hover { border-color: var(--muted); }
.listen svg { width: 34px; height:34px; flex:none; }
.listen b { display:block; font-family: var(--display); font-weight:500; font-size: 22px; }
.listen span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .listen { grid-template-columns: 1fr; } }

/* ---------- sponsor ---------- */
.sponsor { border-radius: 18px; padding: clamp(28px, 5vw, 56px); background:
  radial-gradient(60% 120% at 100% 0%, rgba(255,63,176,.22), transparent 60%),
  radial-gradient(50% 100% at 0% 100%, rgba(61,225,255,.16), transparent 60%), var(--surface);
  border: 1px solid var(--line); display:grid; grid-template-columns: minmax(0,1.2fr) auto; gap: 28px; align-items:center; }
.sponsor p { color: var(--ink-2); margin-top: 12px; max-width: 52ch; }
@media (max-width: 760px) { .sponsor { grid-template-columns: 1fr; } }
.partners { display:flex; flex-wrap:wrap; gap: 14px 36px; align-items:center; justify-content:center; padding-block: 28px; border-top: 1px solid var(--line); }
.partners img { height: 36px; width:auto; opacity:.85; }
.partners small { width:100%; text-align:center; color: var(--muted); font-size: 13px; }

/* ---------- episode page ---------- */
.player { position:relative; aspect-ratio: 16/9; background:#000; border-radius: 14px; overflow:hidden; border: 1px solid var(--line); }
.player iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.ep-page { display:grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items:start; margin-top: 28px; }
.ep-page h1 { font-size: clamp(34px, 5vw, 56px); }
.ep-meta { display:flex; flex-wrap:wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.ep-meta b { color: var(--cyan); font-weight: 700; }
.ep-desc { margin-top: 24px; color: var(--ink-2); max-width: 66ch; }
.ep-desc p + p { margin-top: 1em; }
.aside { display:grid; gap: 16px; position: sticky; top: 84px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card .btn { margin-top: 12px; width: 100%; }
.card-links { display:grid; gap: 8px; margin-top: 4px; }
.card-links a { display:flex; align-items:center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; font-weight: 600; font-size: 15px; transition: background .15s ease, border-color .15s ease; }
.card-links a:hover { background: #22305A; border-color: var(--line); }
.card-links a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 0; }
.card-links svg { width: 24px; height: 24px; flex: none; }
.card-sponsor { border-color: rgba(255,63,176,.45); }
.card-sponsor small { display:block; color: var(--muted); font-size: 12px; letter-spacing:.04em; margin-bottom: 8px; }
.card-sponsor img { max-height: 60px; width:auto; }
.ep-nav { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.ep-nav a { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; display:grid; gap: 4px; }
.ep-nav a:hover { background: var(--surface); }
.ep-nav small { color: var(--muted); font-size: 12px; letter-spacing:.04em; }
.ep-nav b { font-family: var(--display); font-weight: 500; font-size: 18px; }
.ep-nav a.next { text-align:right; }
@media (max-width: 860px) { .ep-page { grid-template-columns: 1fr; } .aside { position: static; } .ep-nav { grid-template-columns: 1fr; } }

/* ---------- blog ---------- */
.post { display:grid; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow:hidden; transition: border-color .15s ease; }
.post:hover { border-color: var(--muted); }
.post-img { aspect-ratio: 16/9; background: var(--surface-2); }
.post-img img { width:100%; height:100%; object-fit:cover; }
.post-body { padding: 16px 18px 18px; display:grid; gap: 8px; }
.post-cat { font-size: 12px; font-weight: 700; color: var(--pink); letter-spacing:.04em; }
.post-title { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.15; }
.post-excerpt { color: var(--muted); font-size: 15px; display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden; }
.post-meta { color: var(--muted); font-size: 13px; display:flex; gap: 14px; }
.article h1 { font-size: clamp(34px, 5.5vw, 60px); margin-top: 10px; }
.article .post-meta { margin-top: 14px; }
.article-img { margin-top: 28px; border-radius: 14px; overflow:hidden; border: 1px solid var(--line); }
.article-content { margin-top: 32px; font-size: 18px; color: var(--ink-2); }
.article-content p { margin: 0 0 1.2em; }
.article-content h2 { font-size: 30px; margin: 1.6em 0 .5em; color: var(--ink); }
.article-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--pink); font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.article-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.back { display:inline-flex; align-items:center; gap: 8px; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--ink); }

/* ---------- chi siamo ---------- */
.team { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display:grid; gap: 10px; }
.member .ph { width: 120px; height: 120px; border-radius: 50%; overflow:hidden; border: 2px solid var(--line); background: var(--surface-2); }
.member .ph img { width:100%; height:100%; object-fit:cover; }
.member h3 { font-size: 24px; }
.member .role { color: var(--pink); font-size: 14px; font-weight: 700; }
.member p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
.prose { color: var(--ink-2); font-size: 18px; }
.prose p + p { margin-top: 1em; }

/* ---------- contatti / form ---------- */
.form { display:grid; gap: 16px; }
.field { display:grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { width:100%; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.consent { display:flex; gap: 10px; align-items:flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor:pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); flex:none; }
.consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.form-ok { background: rgba(61,225,255,.1); border: 1px solid var(--cyan); border-radius: 10px; padding: 14px 16px; }
.contact-grid { display:grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items:start; }
.contact-side { display:grid; gap: 18px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- sostieni ---------- */
.tiers { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display:grid; gap: 14px; align-content:start; }
.tier.main { border-color: var(--pink); }
.tier h3 { font-size: 26px; }
.tier .who { color: var(--muted); font-size: 14px; }
.tier ul { margin:0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display:grid; gap: 6px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.big-stats { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.big-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display:grid; gap: 4px; }
.big-stats b { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; }
.big-stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .big-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 14px; margin-top: 40px; }
footer .wrap { display:flex; flex-wrap:wrap; gap: 18px 36px; justify-content:space-between; align-items:center; }
footer nav { display:flex; flex-wrap:wrap; gap: 18px; }
footer a:hover { color: var(--ink); }
footer .admin { font-size: 12px; opacity: .6; }

/* ---------- banner cookie ---------- */
.ck { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); display:grid; gap: 14px; }
.ck p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.ck p a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.ck-btns { display:flex; gap: 10px; justify-content:flex-end; flex-wrap:wrap; }
.ck-btns .btn { padding: 10px 18px; font-size: 14px; }
