/*
  ============================================================
  TREpUNTOZERO - CSS PAGINE CORSI
  ============================================================

  File unico condiviso da tutte le pagine corso.

  COSA PUOI MODIFICARE QUI:
  - colori generali
  - sfondo sfumato
  - dimensioni header/menu
  - griglia loghi spettacoli
  - stile sezioni Video / Trama / Attori / Info
  - footer

  COSA NON SERVE MODIFICARE QUI:
  - titolo del singolo corso
  - anno
  - trama
  - attori
  - link YouTube
  - nome file video hero

  Quelle informazioni sono nel blocco CONFIG all'inizio di ogni file HTML.
*/

:root {
  --black: #000;
  --white: #fff;
  --grey-1: #f4f4f4;
  --text: #111;
  --max: 1160px;
  --pad: clamp(22px, 4vw, 54px);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;

  /*
    SFONDO UFFICIALE HOME TREpUNTOZERO
    ----------------------------------
    Se vuoi cambiare lo sfondo di tutte le pagine corso,
    modifica questo background.
  */
  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;

  color: var(--black);
  line-height: 1.45;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

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

/* Header più alto per ospitare TREpuntoZERO + “i corsi” */
.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}

.brand {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: .9;
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  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: -0.12em;
  line-height: .82;
}

.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(--black);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  background: var(--white);
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(0,0,0,.60);
  position: relative;
  transition: transform .2s ease, opacity .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: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.menu a { opacity: .72; }
.menu a:hover { opacity: 1; }

.menu .trial-link {
  opacity: 1;
  border: 2px solid var(--black);
  padding: 9px 13px;
  border-radius: 999px;
}

/*
  ============================================================
  HERO CON VIDEO MP4 LOCALE
  ============================================================

  Il file video viene scelto automaticamente da CONFIG.slug:
  video/[slug]-hero.mp4
*/

.page-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 180px) 0 70px;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: rgba(0,0,0,.60);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: rgba(0,0,0,.60);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.60),
      rgba(0,0,0,.42),
      rgba(0,0,0,.60)
    );
}

.page-intro .site-shell {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 100%;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  margin-bottom: 26px;
}

.breadcrumb span::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255,255,255,.45);
}

.kicker {
  font-size: clamp(18px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 4px;
}

h1 {
  font-size: clamp(68px, 16vw, 190px);
  line-height: .78;
  margin: 0;
  letter-spacing: -0.12em;
  font-weight: 950;
  text-transform: uppercase;
}

.subtitle {
  margin-top: 20px;
  font-size: clamp(24px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -0.07em;
  font-weight: 900;
  max-width: 950px;
}

.intro-text {
  max-width: 760px;
  margin-top: 28px;
  font-size: clamp(17px, 2vw, 23px);
  color: rgba(255,255,255,.98);
 
}


.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 2px solid var(--black);
  background: rgba(0,0,0,.60);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: 12px;
}

.page-intro .btn {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

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

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

.section {
  padding: clamp(46px, 7vw, 86px) 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: transparent;
}

.section-title {
  display: block;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 88px);
  line-height: .86;
  letter-spacing: -0.09em;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title p {
  margin: 18px 0 0;
  color: #333;
  font-size: 17px;
  
}

/*
  ============================================================
  GRIGLIA LOGHI SPETTACOLI
  ============================================================
*/

.show-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.show-logo {
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: var(--radius);
  min-height: 132px;
  padding: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.show-logo:hover,
.show-logo.current {
  scale: 1.04; 
  border-color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.show-logo img {
  width: min(120px, 100%);
  max-height: 74px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.show-logo small {
  color: rgba(255,255,255,.96);
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

/*
  ============================================================
  TRAMA / ATTORI / INFO
  ============================================================
*/

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.text-block h3,
.data-block h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: .95;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-transform: uppercase;
}

.text-block p {
  margin: 0 0 18px;
  font-size: 18px;
  color: #242424;
}

.data-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--black);
}

.data-list li {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
}

.data-list strong {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 12px;
}

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

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.media-card {
  border-top: 2px solid var(--black);
  padding-top: 18px;
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.media-card.is-wide { grid-column: 1 / -1; }

.media-card h3 {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: clamp(22px, 3vw, 36px);
  line-height: .95;
  font-weight: 950;
}

.media-card p {
  margin: 18px 0 0;
  line-height: 1.6;
  color: #333;
  font-size: 15px;
}

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.60);
  border-radius: 18px;
  overflow: hidden;
}

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

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

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

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

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

/*
  ============================================================
  FOOTER / CONTATTI
  ============================================================
*/

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

.footer-contact h2 {
  color: var(--white);
  margin-bottom: 34px;
}

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

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

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

.footer-small-links,
.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: #555;
  font-size: 13px;
}

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

@media (max-width: 1024px) {
  .burger { display: flex; }
  
  body {
    /* background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgb(11, 175, 164) 68%, rgb(16, 154, 32) 98%); */
    background-image: linear-gradient(90deg, rgb(3, 113, 164) 0%, rgb(57, 163, 160) 23%, rgb(52, 126, 55) 43%, rgb(184, 175, 2) 63%, rgb(183, 133, 217) 83%, rgb(84, 84, 190) 99%);
    animation: gradient 70s ease infinite;
    background-size: 500% 500%;
    background-attachment: fixed;
    overflow-x: hidden;
  }

  .menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 86px;
    display: grid;
    gap: 0;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid #e9e9e9;
    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;
  }

  .menu a {
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
    opacity: 1;
  }

  .menu .trial-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(0,0,0,.60);
    color: var(--white);
  }

  .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;
  }
}

@media (max-width: 900px) {
  .section-title,
  .two-col,
  .about-box,
  .footer-grid { grid-template-columns: 1fr; }
  .show-strip { grid-template-columns: repeat(3, 1fr); }
  .media-grid { grid-template-columns: 1fr; }
  .data-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .show-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .show-logo { min-height: 112px; }
  .page-intro { min-height: 72vh; }
}


.actor-link, .info-link 
 {

  font-weight: 700;
  background-image: linear-gradient(45deg, #008793 0%, #00bf72 30%, #a8eb12 100%);
  background: var(--gradient1);
  background: linear-gradient(90deg, #402388 0%, #850763 90%);
  background-clip: text;
  color: transparent;
}

.actor-link:hover, .info-link:hover {
  background-image: linear-gradient(45deg, #00e8fd 0%, #03ff9a 30%, #b5ff15 100%);
    transition: all 0.5s ease-in-out;  background-clip: text;
  color: transparent;
}


/*
  ============================================================
  PAGINA CORSI - COMPONENTI AGGIUNTIVI
  ============================================================
*/

/* Variante del sottotitolo sotto TREpuntoZERO nel menu */
.brand small {
  content: "i corsi";
}

/*
  GRIGLIA CORSI
  -------------
  Riutilizza la logica delle card spettacoli, ma con icone.
*/
.course-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
}

.course-card {
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: var(--radius);
  min-height: 160px;
  padding: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.course-card:hover,
.course-card.current {
  transform: translateY(-3px);
  border-color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.course-icon {
  width: 58px;
  height: 58px;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 10px;
}

.course-card small {
  color: rgba(255,255,255,.96);
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

/*
  LIVELLI / ETA'
  -------------
  Pulsanti per cambiare livello: bambini, ragazzi, adulti, open, ecc.
*/
.level-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 34px;
}

.level-tab {
  border: 2px solid rgba(0,0,0,.75);
  background: rgba(255,255,255,.50);
  backdrop-filter: blur(8px);
  color: var(--black);
  padding: 12px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.level-tab:hover,
.level-tab.current {
  background: rgba(0,0,0,.60);
  color: var(--white);
}

/*
  BLOCCO LIVELLO
*/
.level-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.level-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: .9;
  letter-spacing: -0.07em;
  font-weight: 950;
  text-transform: uppercase;
}

.level-copy p {
  margin: 0 0 18px;
  font-size: 18px;
  color: #242424;
}

.course-highlights {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--black);
}

.course-highlights li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.18);
}

.course-highlights strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 12px;
}

.course-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.course-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(0,0,0,.20);
}

.course-gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/*
  VIDEO DEL LIVELLO
*/
.level-video-intro {
  max-width: 760px;
  margin-top: 18px;
  font-size: 17px;
  color: #333;
}

.course-cta-box {
  background: rgba(0,0,0,.60);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.course-cta-box h2 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 72px);
}

.course-cta-box p {
  color: rgba(255,255,255,.92);
  font-size: 18px;
  margin: 14px 0 0;
}

.course-cta-box .btn {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .course-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .course-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .level-layout,
  .course-cta-box {
    grid-template-columns: 1fr;
  }

  .course-highlights li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .course-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .course-card {
    min-height: 112px;
  }

  .course-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .level-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .level-tab {
    width: 100%;
  }

  .course-gallery {
    grid-template-columns: 1fr;
  }
}

.course-icon img {
  width: 100%;
  max-width: 74px;
  height: auto;
  object-fit: contain;
  display: block;
}


.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-grid 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;
}


.footer-grid a:hover {
 background-image: linear-gradient(45deg, #00e8fd 0%, #03ff9a 30%, #b5ff15 100%);
    transition: all 0.5s ease-in-out;
}