/*
  ============================================================
  TREpuntoLONDON - CSS
  ============================================================

  Questo file gestisce tutta la parte grafica della sezione
  TREpuntoLONDON.

  Se vuoi modificare colori, dimensioni, card, lista episodi,
  hero o menu, parti da qui.
*/

/* ============================================================
   VARIABILI GENERALI
   ============================================================ */

:root {
  --black: #000;
  --white: #fff;
  --max: 1160px;
  --pad: clamp(22px, 4vw, 54px);
  --radius: 22px;
  --line: rgba(255,255,255,.14);
  --soft: rgba(255,255,255,.78);
  --muted: rgba(255,255,255,.58);
}

/* ============================================================
   RESET BASE
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  line-height: 1.45;
  overflow-x: hidden;

  /*
    Sfondo coerente con la home TREpuntoZERO.
  */
  background:
    radial-gradient(49% 81% at 45% 47%, #FFE20345 0%, #073AFF00 100%),
    radial-gradient(113% 91% at 17% -2%, #00D4FFFF 1%, #FF000000 99%),
    radial-gradient(142% 91% at 83% 7%, #E0FF00FF 1%, #FF000000 99%),
    radial-gradient(142% 91% at -6% 74%, #030619AB 1%, #FF000000 99%),
    radial-gradient(142% 91% at -6% 74%, #0900FFFF 1%, #FF000000 99%),
    radial-gradient(142% 91% at 111% 84%, #FF07E600 -1%, #FF0000FF 100%),
    radial-gradient(142% 91% at 111% 84%, #3C00FFFF 0%, #FF0000FF 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

.site-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   HEADER / MENU
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.68);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand {
  font-size: clamp(27px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .9;
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  width: max-content;
}

.brand-main {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: -.10em;
  line-height: .82;
}

/*
  Riduce la parola "punto" nei loghi testuali.
*/
.brand-main .small-point,
.logo-title .small-point,
.season-title .small-point,
.tplondon-word .small-point {
  font-size: .6em;
  letter-spacing: -.02em;
  display: inline-block;
  vertical-align: baseline;
}

.brand small {
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .72;
  white-space: nowrap;
  line-height: 1;
  margin-left: 2px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--white);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  background: rgba(255,255,255,.08);
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: transform .2s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.menu {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a {
  opacity: .78;
  flex-shrink: 0;
}

.menu a:hover,
.menu a.current {
  opacity: 1;
}

.menu .trial-link {
  opacity: 1;
  border: 2px solid var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */

.stream-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(110px, 12vw, 180px) 0 clamp(58px, 8vw, 96px);
  background: #000;
}

.hero-video,
.hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.hero-video video,
.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  
}


.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.meta-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,.76);
  margin-bottom: 18px;
}

.logo-title {
  font-size: clamp(54px, 11vw, 144px);
  line-height: .78;
  margin: 0;
  letter-spacing: -.12em;
  font-weight: 950;
  text-transform: uppercase;
  max-width: 980px;
  overflow: visible;
}

.season-title {
  font-size: clamp(52px, 10vw, 132px);
  line-height: .82;
  margin: 0;
  letter-spacing: -.10em;
  font-weight: 950;
  text-transform: uppercase;
  max-width: 1040px;
}

.hero-tagline {
  margin: 24px 0 0;
  font-size: clamp(25px, 4.6vw, 58px);
  line-height: .9;
  letter-spacing: -.07em;
  font-weight: 950;
}

.hero-description {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255,255,255,.90);
}

.hero-description p {
  margin: 0 0 14px;
}

/* ============================================================
   BOTTONI
   ============================================================ */

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--white);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: 12px;
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-main {
  background: var(--white);
  color: var(--black);
}

.btn-ghost {
  background: rgba(255,255,255,.10);
  color: var(--white);
}

/* ============================================================
   SEZIONI
   ============================================================ */

.stream-section {
  padding: clamp(46px, 7vw, 88px) 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.season-copy h2,
.about-box h2,
.footer-contact h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 88px);
  line-height: .86;
  letter-spacing: -.09em;
  font-weight: 950;
  text-transform: uppercase;
}

.section-heading p,
.season-copy p {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 17px;
  max-width: 780px;
}

.prose p {
  margin: 0 0 16px;
}

.prose strong {
  font-weight: 900;
}

.prose em {
  font-style: italic;
}

/* ============================================================
   CARD STAGIONI
   ============================================================ */

.season-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28%);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 22px;
  scroll-snap-type: x mandatory;
}

.season-card {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,.60);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
  box-shadow: none !important;
}

.season-card:hover,
.season-card.current {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(255,255,255,.82);
  box-shadow: none !important;
}

.season-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.season-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.28) 58%, rgba(0,0,0,.10) 100%);
}

.season-card-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 2;
}

.season-card-copy small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 900;
}

.season-card-copy strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(17px, 2.1vw, 24px);
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  max-width: 100%;
}

.season-card-copy strong{
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

/* ============================================================
   DETTAGLIO STAGIONE / FEATURED
   ============================================================ */

.season-detail {
  display: grid;
  grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  background: rgba(0,0,0,.46);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 34px);
}

.season-poster {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.60);
}

.season-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.season-facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.fact {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

/* ============================================================
   CAST
   ============================================================ */

.cast-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
}

.cast-card {
  text-align: center;
}

.cast-card a,
.cast-card div {
  display: block;
}

.cast-card img {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2px solid rgba(255,255,255,.26);
}

.cast-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}

.cast-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

/* ============================================================
   EPISODI - LISTA VERTICALE STILE STREAMING
   ============================================================ */

.episode-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.episode-row {
  display: grid;
  grid-template-columns:58px minmax(260px,340px) minmax(0,1fr);
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: transparent;
  transition: background .16s ease;
}

.episode-row:hover {
  background: rgba(255,255,255,.055);
}

.episode-number {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 500;
  color: rgba(255,255,255,.70);
  text-align: center;
}

.episode-thumb-list {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  position: relative;
  cursor: pointer;
  background: #111;
}

.episode-thumb-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-copy-list {
  padding: 0;
  min-width: 0;
}

.episode-copy-list h3 {
  margin: 8px 0 8px;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: none;
}

.episode-copy-list .prose {
  max-width: 820px;
  color: var(--soft);
  font-size: 16px;
}

.episode-copy-list .prose p {
  margin: 0 0 8px;
}

.episode-copy-list .episode-actions {
  margin-top: 14px;
}

.episode-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  font-weight: 900;
}

.episode-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  opacity: .65;
}

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: #000;
  font-weight: 900;
}

.episode-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.mini-link {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  background: rgba(255,255,255,.07);
  cursor: pointer;
}

/* ============================================================
   MODALE VIDEO
   ============================================================ */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
}

.video-modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
}

.modal-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.modal-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-text {
  padding: 18px 4px 0;
}

.modal-text h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.modal-text p {
  margin: 0 0 12px;
  color: var(--soft);
}

.modal-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.12);
  color: var(--white);
  z-index: 110;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* ============================================================
   BLOCCO TREpUNTOZERO / FOOTER
   ============================================================ */

.about-box {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  color: #111;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: .4fr 1fr;
  gap: 28px;
  align-items: start;
  border-radius: var(--radius);
}

.about-box h2 {
  color: #000;
  font-size: clamp(34px, 5vw, 64px);
}

.about-box p {
  margin: 0;
  font-size: 17px;
  color: #282828;
}

.footer-contact {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: clamp(48px, 8vw, 92px) 0;
}

.footer-contact h2 {
  margin-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.footer-contact p {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}

.footer-bottom {
  padding: 22px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .burger {
    display: flex;
  }

  .menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 86px;
    display: grid;
    gap: 0;
    background: rgba(0,0,0,.92);
    border-bottom: 1px solid rgba(255,255,255,.14);
    padding: 16px var(--pad) 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
    font-size: 15px;
    z-index: 45;
    overflow: visible;
    white-space: normal;
  }

  .menu a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    opacity: 1;
  }

  .menu .trial-link {
    justify-content: center;
    margin-top: 16px;
  }

  .nav-toggle:checked ~ .burger span {
    background: transparent;
  }

  .nav-toggle:checked ~ .burger span::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked ~ .burger span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle:checked ~ .menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .season-detail {
    grid-template-columns: 1fr;
  }

  .season-poster {
    max-width: 460px;
  }
}

@media (max-width: 760px) {
  .stream-hero {
    min-height: 78vh;
    align-items: flex-end;
  }

  .season-row {
    grid-auto-columns: minmax(210px, 78%);
  }

  .about-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-title {
    font-size: clamp(48px, 15vw, 84px);
  }

  .season-title {
    font-size: clamp(46px, 14vw, 82px);
  }

  .episode-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
  }

  .episode-thumb-list {
    grid-column: 2;
  }

  .episode-copy-list {
    grid-column: 2;
  }

  .episode-number {
    grid-row: 1 / span 2;
    font-size: 28px;
    padding-top: 6px;
  }
}
/* ============================================================
   FIX MODALE VIDEO MOBILE
   ============================================================ */

.video-modal.is-open {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
}

.video-modal.is-open .modal-content {
  margin-top: clamp(70px, 10vh, 110px);
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .video-modal {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 76px 16px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content {
    width: 100%;
    max-width: none;
  }

  .modal-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    border-radius: 14px;
  }

  .modal-text {
    padding: 18px 2px 40px;
  }

  .modal-text h3 {
    font-size: clamp(26px, 8vw, 38px);
    line-height: .95;
  }

  .modal-text .prose {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }

  .modal-text .prose p {
    margin-bottom: 14px;
  }

  .modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 120;
    width: 44px;
    height: 44px;
  }
}
/* ============================================================
   FIX SFONDO NERO MODALE MOBILE DURANTE LO SCROLL
   ============================================================ */

.video-modal {
  background: rgba(0,0,0,.94);
}

.video-modal.is-open {
  background: rgba(0,0,0,.94);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  background: rgba(0,0,0,.94);
}

@media (max-width: 760px) {
  .video-modal {
    background: rgba(0,0,0,.96);
  }

  .video-modal.is-open {
    background: rgba(0,0,0,.96);
  }

  .modal-backdrop {
    position: fixed;
    background: rgba(0,0,0,.96);
  }

  .modal-content {
    position: relative;
    z-index: 2;
  }
}




#footer a {
  text-shadow:none;
}

.flexcontatti {
  width: 100%;
  margin: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  text-align: left;
  align-content: center;
  justify-content: space-around;
  vertical-align: middle;
}

.SN {
  max-width:300px;
  height:50px;
  margin-top:40px;
  display: flex; 
}

.SN-item {
  flex:wrap;
  gap:5px;
  height: auto;
}

.SN-item img {
  height: 50px;
  filter: drop-shadow(0px 0px 3px #ea86fa);
  
}

.SN-item img:hover {
  filter: drop-shadow(0px 0px 2px #10dbed);
}


footer a,
.contatti a,
.social-insegnanti a{
 
  background-image: linear-gradient(45deg, #008793 0%, #00bf72 30%, #a8eb12 100%);
  background: var(--gradient1);
  background: linear-gradient(90deg, #FCF67C 0%, #CF90F8 90%);
  background-clip: text;
  color: transparent;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  text-decoration: none;
  text-shadow: #e9eaeb95 1px 1px;
  text-shadow: #00000030 1px 1px;
  margin: 0;
  transition: all 0.5s ease-in-out;
}

.social-insegnanti a{

  text-shadow: #00000050 1px 1px;
}



footer a:hover,
.contatti a:hover,
.social-insegnanti a:hover{
 
    background-image: linear-gradient(45deg, #00e8fd 0%, #03ff9a 30%, #b5ff15 100%);
    transition: all 0.5s ease-in-out;
    /* text-shadow: none; */
}