/*
 * «AI Will Shake You» — proposta grafica D (il teatro e la stagione), approvata
 * da Mauro il 25/09/2026. Tutto qui dentro: la CSP del sito non ammette stili in
 * linea né caratteri esterni.
 *
 * I CARATTERI. Il modello usa Baskerville e Avenir Next, che sono sul Mac (e su
 * iPhone). Per chi non li ha, i ripieghi sono quelli dell'app: Georgia per il
 * serif, i caratteri di sistema per il sans.
 */
:root {
  --bg: #1d140d; --bg2: #26190f; --card: #2a1d12; --fg: #f4e8d2; --muted: #b9a585; --line: #4a3924;
  --gold: #dcaa5f; --rose: #e39a7f; --curtain: rgba(120, 36, 24, .38);
  --serif: 'Baskerville', 'Baskerville Old Face', 'Libre Baskerville', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', 'Avenir', 'Segoe UI', ui-sans-serif, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* --- pezzi comuni --- */
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; letter-spacing: .5px; }
.logo .ai { font-weight: 800; letter-spacing: 2px; }
.logo .bar { width: 2px; height: 22px; background: var(--gold); }
.logo .will { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 24px; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: calc(26px + env(safe-area-inset-top, 0px)) 56px 26px; position: relative; z-index: 2; }
.nav .links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); letter-spacing: .3px; }
.nav .links a:hover, .nav .links a.on { color: var(--fg); }
.label { font-size: 13px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--gold); cursor: pointer; transition: background .16s, color .16s;
}
.btn.gold { background: var(--gold); color: #1d140d; }
.btn.gold:hover { background: #e8bd79; }
.btn.ghost { color: var(--fg); }
.btn.ghost:hover { background: rgba(220, 170, 95, .12); }
.btn.is-off { cursor: default; opacity: .75; }
.btn.is-off:hover { background: var(--gold); }
.store {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .03); min-width: 230px; transition: border-color .16s;
}
a.store:hover { border-color: var(--gold); }
.store .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold); color: #1d140d; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.store .ic-sm { font-size: 13px; }
.store small { display: block; font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.store b { font-size: 17px; }
.store.soon { opacity: .6; cursor: default; }
.store.soon .ic { background: var(--line); color: var(--fg); }
.foot { border-top: 1px solid var(--line); padding: 36px 56px calc(36px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.foot b { color: var(--fg); }
.foot i { font-family: var(--serif); }

/* --- 1. apertura: sipario, riflettore, insegna --- */
.hero {
  position: relative; min-height: 760px; text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(255, 196, 120, .38), transparent 70%),
    linear-gradient(90deg, var(--curtain), transparent 18%, transparent 82%, var(--curtain)),
    var(--bg);
}
.hero::before, .hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 15%;
  background: repeating-linear-gradient(90deg, rgba(140, 40, 28, .55) 0 22px, rgba(70, 16, 10, .55) 22px 44px); opacity: .55;
}
.hero::before { left: 0; -webkit-mask: linear-gradient(90deg, #000 40%, transparent); mask: linear-gradient(90deg, #000 40%, transparent); }
.hero::after { right: 0; -webkit-mask: linear-gradient(270deg, #000 40%, transparent); mask: linear-gradient(270deg, #000 40%, transparent); }
.hero .inner { position: relative; z-index: 2; padding: 70px 20px 0; }
.marquee {
  display: inline-flex; gap: 12px; align-items: center; padding: 10px 22px; border-radius: 999px; border: 2px dotted var(--gold);
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 600; white-space: nowrap;
}
.marquee b { color: var(--fg); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 112px; line-height: 1; margin: 34px 0 10px; letter-spacing: -2px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .tag { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--muted); }
.hero .thesis { max-width: 640px; margin: 26px auto 36px; font-size: 19px; line-height: 1.6; opacity: .9; }
.hero .thesis em { color: var(--gold); font-style: normal; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; }
.stage-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; z-index: 1; background: linear-gradient(180deg, transparent, var(--bg) 92%); }

section { padding: 90px 56px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 52px; margin-top: 10px; line-height: 1.08; }

/* --- 2. in scena ora: testo + slide impilate --- */
.now { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 30px; }
.now .q { font-size: 22px; line-height: 1.5; margin: 22px 0 10px; max-width: 540px; }
.now .q b { color: var(--gold); font-weight: 600; }
.now .meta { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.now .ctas { display: flex; gap: 14px; margin-top: 30px; }
.stack { position: relative; height: 540px; }
.stack img { position: absolute; width: 330px; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); border: 1px solid var(--line); }
.stack img:nth-child(1) { left: 190px; top: 70px; transform: rotate(8deg); opacity: .5; }
.stack img:nth-child(2) { left: 120px; top: 40px; transform: rotate(3deg); opacity: .8; }
.stack img:nth-child(3) { left: 50px; top: 10px; transform: rotate(-3deg); }
/* prima del lancio c'è solo la copertina */
.stack.is-one img:nth-child(1) { left: 110px; top: 20px; transform: rotate(-3deg); opacity: 1; }

/* --- 3. la stagione: locandine --- */
.season { border-top: 1px solid var(--line); }
.season .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; margin-bottom: 34px; gap: 20px; }
.playbills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.pb { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--card); }
.pb img { width: 100%; height: 100%; object-fit: cover; }
.pb .badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #1d140d; font-size: 11px; font-weight: 800; letter-spacing: 2px; padding: 6px 10px; border-radius: 6px; }
.pb.next {
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 196, 120, .14), transparent 70%), var(--card);
}
.pb.next .n { font-family: var(--serif); font-size: 64px; color: var(--gold); opacity: .5; line-height: 1; }
.pb.next .play { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.pb.next .line { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 16px; margin-top: 8px; }
.pb.next .date { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* «All episodes →»: si apre la lista intera, sotto il titolo, a tutta larghezza */
.all summary { list-style: none; }
.all summary::-webkit-details-marker { display: none; }
.all[open] { flex-basis: 100%; }
.all[open] summary { margin-bottom: 18px; }
.all-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
/* la data ha una colonna fissa: con «auto» ogni riga (una griglia a sé) la
   faceva larga quanto il suo testo, e le battute di «Wed 7 Oct» partivano
   qualche pixel più a destra di quelle di «Wed 14 Oct» */
.all-list li { display: grid; grid-template-columns: 3.8rem 1.35fr 1fr 8.2rem; gap: 22px; align-items: baseline; padding: 20px 4px 22px; border-bottom: 1px solid var(--line); }
.all-list .n { font-family: var(--serif); color: var(--gold); font-size: 28px; line-height: 1; }
/* il titolo e, sotto, il filone e il tema dell'episodio (28/09/2026) */
.all-list .pl { display: grid; gap: 7px; min-width: 0; }
.all-list .play { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.all-list .tema { font-size: 15px; line-height: 1.45; color: var(--muted); }
.all-list .tema b { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; color: var(--gold); }
.all-list .line { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.4; color: var(--rose); }
.all-list .date { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); white-space: nowrap; justify-self: end; }

/* --- chi e perché (26/09/2026) --- */
.about { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.about .h2 em { font-style: italic; color: var(--gold); white-space: nowrap; }
.about-text p { font-size: 19px; line-height: 1.65; opacity: .92; max-width: 640px; }
.about-text p + p { margin-top: 18px; }
.about-text em { font-family: var(--serif); font-style: italic; color: var(--gold); }
.about .who { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.about .who .label { margin-bottom: 12px; }
.about .who p:not(.label) { font-size: 17px; color: var(--muted); }
.about .who b { color: var(--fg); font-weight: 600; }

/* --- 4. l'app --- */
.app {
  margin: 0 56px 90px; padding: 48px; border: 1px solid var(--line); border-radius: 22px;
  display: grid; grid-template-columns: 130px 1fr auto; gap: 36px; align-items: center;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(220, 170, 95, .10), transparent 70%), rgba(255, 255, 255, .02);
}
.app img { width: 130px; height: 130px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: 0 0 50px rgba(220, 170, 95, .3); }
.app h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 8px 0; }
.app p:not(.label) { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 520px; }
.app .stores { display: flex; flex-direction: column; gap: 10px; }

/* --- la pagina dell'episodio (da C, il palco) --- */
body.ep {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 196, 120, .30), transparent 72%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(0, 0, 0, .6), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
.center { text-align: center; padding: 10px 20px 0; }
.center .label { margin-bottom: 14px; }
.center h1 { font-family: var(--serif); font-weight: 400; font-size: 64px; letter-spacing: -1px; line-height: 1.05; }
.center h1 em { color: var(--gold); }
.center .tag { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 22px; margin-top: 6px; }
.deck { position: relative; margin-top: 34px; }
.spot { position: absolute; left: 50%; top: -60px; width: min(760px, 100%); height: 760px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 210, 150, .20), transparent 60%); pointer-events: none; }
/* il nastro: ogni slide scatta al centro, le vicine si intravedono ai lati */
.track {
  position: relative; display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 20px calc(50% - 200px) 40px; scrollbar-width: none; outline: none;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 400px; scroll-snap-align: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); background: var(--card); transition: opacity .35s, transform .35s, border-color .35s; }
.js .slide { opacity: .4; transform: scale(.86); }
.js .slide.is-on { opacity: 1; transform: none; border-color: var(--gold); }
.arrows { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(1180px, calc(100% - 40px)); display: flex; justify-content: space-between; pointer-events: none; }
.arrow {
  pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center;
  color: var(--gold); background: rgba(29, 20, 13, .75); font-size: 20px; cursor: pointer;
}
.arrow:disabled { opacity: .3; cursor: default; }
html:not(.js) .arrows { display: none; }
.info { text-align: center; position: relative; z-index: 5; padding: 0 20px; }
.progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.progress i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: background .25s; }
.progress i.on { background: var(--gold); box-shadow: 0 0 8px rgba(220, 170, 95, .6); }
html:not(.js) .progress { display: none; }
.info .q { font-size: 26px; font-weight: 700; max-width: 620px; margin: 0 auto 20px; line-height: 1.25; }
.info .ctas { display: flex; gap: 12px; justify-content: center; }
.appbar { margin: 80px auto 60px; max-width: 980px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; padding: 0 20px; }
.appbar .t { width: 100%; text-align: center; margin-bottom: 10px; }
.appbar .t h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin-top: 8px; }

/* --- telefono --- */
@media (max-width: 600px) {
  .nav { padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 18px; }
  /* il menu resta anche sul telefono (26/09/2026): sotto il logo, su una riga
     che va a capo se non ci sta, senza JavaScript */
  .nav { flex-direction: column; gap: 14px; }
  .nav .links { flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; }
  .foot { padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px)); flex-direction: column; gap: 8px; }
  .hero { min-height: 700px; }
  .hero .inner { padding-top: 40px; }
  .hero h1 { font-size: 56px; }
  .hero .tag { font-size: 21px; }
  .hero .thesis { font-size: 16px; padding: 0 10px; }
  .marquee { font-size: 11px; letter-spacing: 2px; padding: 8px 14px; }
  .marquee .long { display: none; }
  .hero .ctas, .now .ctas { flex-direction: column; align-items: center; }
  section { padding: 56px 20px; }
  .h2 { font-size: 34px; }
  .now { grid-template-columns: 1fr; padding-top: 10px; }
  .now .ctas { align-items: stretch; }
  .stack { height: 360px; }
  .stack img { width: 220px; }
  .stack img:nth-child(1) { left: 110px; }
  .stack img:nth-child(2) { left: 65px; }
  .stack img:nth-child(3) { left: 20px; }
  .stack.is-one img:nth-child(1) { left: 50%; margin-left: -110px; }
  .season .head { flex-direction: column; align-items: flex-start; }
  .playbills { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pb.next { padding: 16px; }
  .pb.next .play { font-size: 19px; }
  .pb.next .n { font-size: 44px; }
  .all[open] { width: 100%; }
  .all-list li { grid-template-columns: 2.6rem 1fr; gap: 6px 12px; padding: 16px 2px 18px; }
  .all-list .n { font-size: 24px; }
  .all-list .play { font-size: 21px; }
  .all-list .tema { font-size: 14px; }
  .all-list .line { font-size: 16px; }
  .all-list .line, .all-list .date { grid-column: 2; }
  .all-list .date { justify-self: start; }
  .all-list .date { font-size: 12px; letter-spacing: 2px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about-text p { font-size: 17px; }
  .app { margin: 0 20px 50px; padding: 26px; grid-template-columns: 1fr; gap: 22px; }
  .app img { width: 84px; height: 84px; }
  .app h3 { font-size: 28px; }
  .store { min-width: 0; }
  .center h1 { font-size: 40px; }
  .center .tag { font-size: 18px; }
  .track { gap: 16px; padding: 16px calc(50% - 140px) 30px; }
  .slide { flex-basis: 280px; }
  /* su telefono le frecce stanno sotto la slide, non sopra il suo bordo */
  .arrows { top: auto; bottom: -34px; transform: translateX(-50%); width: 160px; }
  .info { margin-top: 70px; }
  .center .label { font-size: 11px; letter-spacing: 3px; }
  .info .q { font-size: 21px; }
  .info .ctas { flex-direction: column; align-items: center; }
  .appbar { margin: 50px auto; }
  .appbar .store { width: 100%; }
}

/* --- telefoni stretti (26/09/2026): a 320px la carta di fondo del mazzo,
   ruotata, usciva di 48px a destra dal lancio in poi; e il menu ci sta su una riga --- */
@media (max-width: 360px) {
  .stack { height: 330px; }
  .stack img { width: 200px; }
  .stack img:nth-child(1) { left: 70px; }
  .stack img:nth-child(2) { left: 45px; }
  .stack img:nth-child(3) { left: 20px; }
  .stack.is-one img:nth-child(1) { margin-left: -100px; }
  .nav .links { gap: 8px 14px; font-size: 13px; }
}
