/* ========================================
   Nord Sud Ovest Fest - Styles v20
   Modern CSS with performance optimization
   ======================================== */

:root {
  --bg:#050509;
  --text:#f7f7ff;
  --muted:rgba(255,255,255,.72);
  --line:rgba(255,255,255,.12);
  --hot:#ff4fd8;   /* neon pink */
  --cold:#33b5ff;  /* electric blue */
  --sun:#ffd45a;   /* warm yellow */
  --shadow: 0 20px 70px rgba(0,0,0,.65);
  --max: 1120px;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* FX Layers (scanlines + noise) */
.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: opacity;
}

.fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(51,181,255,.28), transparent 55%),
    radial-gradient(900px 520px at 85% 5%, rgba(255,79,216,.22), transparent 55%),
    radial-gradient(800px 520px at 60% 110%, rgba(255,212,90,.16), transparent 55%);
  opacity: .95;
}

.fx::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("assets/noise.png");
  background-size: 200px 200px;
  opacity: .22;
  mix-blend-mode: overlay;
  transform: translateZ(0);
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,.16) 3px,
    rgba(0,0,0,0) 4px
  );
  opacity: .26;
}

/* Header - inizia statico, diventa sticky dopo scroll */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: none;
  transition: background .3s ease, border-bottom .3s ease, backdrop-filter .3s ease;
}
header.headerSticky {
  position: fixed;
  background: rgba(5,5,9,.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.brand img{width:40px;height:40px;border-radius:14px; box-shadow:0 12px 34px rgba(0,0,0,.55)}
.brand strong{font-size:14px; letter-spacing:.5px}
.brand span{display:block; font-size:12px; color: rgba(255,255,255,.6)}

.navlinks{display:none; gap:10px; align-items:center}
.navlinks a{
  text-decoration:none;
  font-size:13px;
  color: rgba(255,255,255,.65);
  padding:10px 10px;
  border-radius:12px;
}
.navlinks a:hover{color:var(--text); background: rgba(255,255,255,.06)}

.social-links{
  display:flex;
  gap:8px;
  align-items:center;
}
.social-links a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:10px;
  color: rgba(255,255,255,.65);
  transition: background .2s ease, color .2s ease;
}
.social-links a:hover{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:900;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.05)}

.btn.ticket{background: linear-gradient(135deg, rgba(255,212,90,.98), rgba(255,170,0,.92)); color:#070a12; border-color: rgba(255,212,90,.55)}
.btn.casting{background: rgba(34,211,238,.96); color:#071018; border-color: rgba(34,211,238,.55)}
.btn.booking{background: rgba(255,255,255,.05); color: rgba(255,255,255,.92); border-color: rgba(255,79,216,.55)}
.btn.booking:hover{background: rgba(255,79,216,.12)}
.btn.small{padding:10px 12px; border-radius:999px}

/* --- Promo video --- */
/* Mobile: layout verticale */
.heroLayout{
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.promoVideoWrapper{
  width: 100%;
  max-width: 300px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
}
.promoVideoWrapper iframe{
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Layout sections --- */
main{position:relative; z-index:1}
.hero{
  position: relative;
  overflow: hidden;
}
.heroContent{
  position: relative;
  z-index: 2;
  padding: 60px 0 32px;
}
.heroText{
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.heroQuote{
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(255,79,216,.3);
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.70);
  font-size:12px;
  font-weight:900;
  letter-spacing:.3px;
}
.kicker i{
  width:10px;height:10px;border-radius:50%;
  background: var(--hot);
  box-shadow:0 0 0 6px rgba(255,79,216,.16);
}
h1{
  margin: 14px 0 10px;
  font-size: 44px;
  line-height:1.03;
  letter-spacing:-.8px;
}
.gradientText{
  background: linear-gradient(90deg, var(--sun), var(--cold), var(--hot));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}
.lead{
  margin: 20px auto 0;
  color: rgba(255,255,255,.90);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.7;
  max-width: 600px;
  letter-spacing: 0.3px;
  text-align: center;
}
.ctas{display:flex; gap:10px; flex-wrap:wrap; margin-top: 24px; justify-content: center}

.section{padding: 22px 0}
/* --- Prezzo overlay nel mariachi --- */
.prezzoOverlay{
  display: none; /* nascosto su mobile */
}
.prezzoQuestion{
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.6));
}
.prezzoAnswer{
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
}
.prezzoBanconota{
  height: auto;
  transform: rotate(-4deg);
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.7));
  transition: transform .3s ease;
}
/* Parallax: nessuna transizione CSS altrimenti si crea un delay rispetto allo scroll */
.prezzoOverlay .prezzoBanconota,
.prezzoMobile .prezzoBanconota{
  transition: none;
}
.prezzoBanconota:hover{
  transform: translateX(var(--banconota-x, 0px)) rotate(0deg) scale(1.03);
}

/* --- Prezzo mobile (solo mobile, tra mariachi e date) --- */
.prezzoMobile{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  position: relative;
  z-index: 25;             /* sopra mariachi (z:3) e #date (z:10) */
  margin-top: -60px;       /* si sovrappone al fondo del mariachi */
}
.prezzoMobile .prezzoQuestion{
  width: 100%;
  max-width: none;
  display: block;
  position: static;
  transform: none;
}
.prezzoMobile .prezzoBanconota{
  width: 100%;
  max-width: none;
  display: block;
  margin-top: -4%;
  margin-bottom: -90px;    /* scavalca nel fondo della sezione date */
  transform: translateX(var(--banconota-x, -30px)) rotate(-2deg);
  will-change: transform;
}
/* #date su mobile: padding-top ampliato per fare spazio alla banconota a cavallo */
@media (max-width: 767px){
  #date{
    padding-top: 120px;
    margin-top: 42px;
  }
}

@media (min-width: 768px){
  .prezzoMobile{ display: none; }
  .prezzoOverlay{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    position: absolute;
    left: 8%;
    top: 110px;
    z-index: 20;
    pointer-events: auto;
    width: 44%;
  }
  .prezzoQuestion{
    width: 100%;
    max-width: 580px;
    position: relative;
    top: -25px;
    transform: translateX(var(--sticker-x, -50px));
    will-change: transform;
  }
  .prezzoAnswer{
    width: 100%;
    max-width: 420px;
    margin-top: -30px;
  }
  .prezzoBanconota{
    width: 100%;
    max-width: 620px;
    transform: rotate(-4deg);
    margin-top: -20px;
  }
}

.section h2{
  margin:0 0 10px;
  font-size: 32px;
  letter-spacing:-.5px;
}
.sub{margin:0 0 14px; color: rgba(255,255,255,.66); font-size:14px; max-width:70ch}

/* Ensure centered subtitles actually sit centered (not just the text) */
.sub.center{margin-left:auto; margin-right:auto; text-align:center}

.hr{height:1px; background: rgba(255,255,255,.12); margin: 0 0 18px 0}

/* Events as clean rows (no boxes) */
.events{display:flex; flex-direction:column}
.event{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,.14);
}
.event:first-child{border-top:1px solid rgba(255,255,255,.20)}
.event b{font-size:18px; font-weight:900; white-space:nowrap}
.event span{display:block; color: rgba(255,255,255,.70); margin-top:4px; font-size:15px}
.badge{
  font-size:11px; font-weight:950; letter-spacing:.18em;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  white-space:nowrap;
}

/* Casting - big, intuitive */
.castingGrid{display:grid; gap:16px; align-items:start}
.bigTitle{
  margin:0 0 8px;
  font-size: 34px;
  line-height:1.02;
  letter-spacing:-.7px;
}
.emails{display:flex; flex-wrap:wrap; gap:10px; margin-top: 12px}
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  text-decoration:none;
  font-weight:950;
}
.pill small{font-size:11px; color: rgba(255,255,255,.62); letter-spacing:.12em}

/* 9:16 video */
.video{
  max-width: 420px;
  width:100%;
  border-radius: 26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  position:relative;
  margin: 6px auto 0;
}
.video video{
  width:100%;
  height:auto;
  display:block;
  background: #000;
}
.video img{width:100%; height:auto; display:block}

/* Floating parallax objects */
.parallax{
  position:fixed; inset:0;
  z-index:0;
  pointer-events:none;
}
.parallax .obj{
  position:absolute;
  opacity:.22;
  filter: drop-shadow(0 18px 55px rgba(0,0,0,.65));
  will-change: transform;
}

/* Footer */
footer{
  border-top:1px solid rgba(255,255,255,.10);
  padding: 18px 0 28px;
  color: rgba(255,255,255,.62);
  font-size:12px;
  margin-top: 0;
  position: relative;
  z-index: 10;
  background: var(--bg);
}

@media (min-width: 980px){
  .navlinks{display:flex}
  /* .heroGrid{grid-template-columns: 1.05fr .95fr} - Commented for horizontal layout */
  h1{font-size: 62px}
  .section h2{font-size: 40px}
  .castingGrid{grid-template-columns: 1.05fr .95fr}
  .castingGrid .video{margin: 0 0 0 auto}
}

.btn.ghost{background: rgba(255,255,255,.06)}

/* Sticky CTA - appare dopo l'hero */
@keyframes stickyPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

.stickyLastCta {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 500;
  background: rgba(34,211,238,.96);
  color: #071018;
  border-color: rgba(34,211,238,.55);
  border-radius: 999px;
  font-size: 13px;
  animation: stickyPulse 1.6s ease-in-out infinite;
}
.center{text-align:center}
.castingCenter{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top: 10px;
}
.emails.center{justify-content:center}
.parallax.fg{z-index: 6}
.fgObj{opacity:0; transition: opacity .25s ease}

.spacedTop{margin-top: 0px; padding-top: 0px}
.centerVideo{margin-left:auto; margin-right:auto}
.castingCenter .video{margin-left:auto; margin-right:auto}
/* Casting - interprete di Mauro Repetto */
.castingSubtitle {
  font-size: 16px !important;
  color: rgba(255,255,255,.75);
}
.repettoName {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sun), var(--cold), var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}
@media (min-width: 768px) {
  .castingSubtitle {
    font-size: 18px !important;
  }
  .repettoName {
    font-size: 28px;
  }
}
.castingAccordion{
  width: 100%;
  max-width: 680px;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  text-align: center;
}
@media (max-width: 767px) {
  .castingAccordion {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: none;
    z-index: 20;
    white-space: nowrap;
  }
  .castingAccordion.applyBtn:hover {
    transform: translateX(-50%) scale(1.08);
  }
}
@media (min-width: 768px) {
  .castingAccordion { max-width: 480px; margin-top: 14px; }
}
.castingAccordion[open] .castingInstructions {
  display: block;
}

/* Apply Button Styles */
.applyBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 44px;
  background: rgba(34,211,238,.96);
  color: #071018;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 0 40px rgba(34,211,238,.35), 0 8px 28px rgba(0,0,0,.5);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  user-select: none;
  list-style: none;
  white-space: nowrap;
  width: auto;
}

.applyBtn::-webkit-details-marker {
  display: none;
}

.applyBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(34,211,238,.5), 0 12px 32px rgba(0,0,0,.5);
}

@media (min-width: 768px) {
  .applyBtn {
    font-size: 22px;
    padding: 24px 64px;
    box-shadow: 0 0 100px 40px rgba(0,0,0,.95), 0 0 50px rgba(34,211,238,.4);
  }
  .applyBtn:hover {
    box-shadow: 0 0 100px 40px rgba(0,0,0,.95), 0 0 80px rgba(34,211,238,.6);
  }
}
/* --- POST-IT casting instructions --- */
.castingInstructions {
  position: relative;
  background: #fef3a0;
  color: #1c1206;
  padding: 36px 22px 28px;
  border-radius: 3px;
  box-shadow: 5px 10px 32px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.2);
  transform: rotate(-2deg);
  margin-top: 20px;
  width: 290px;
  white-space: normal;
  text-align: left;
  line-height: 1.5;
  z-index: 25;
}
/* Nastro adesivo */
.castingInstructions::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  width: 60px;
  height: 22px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
/* Angolo ripiegato */
.castingInstructions::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 28px 28px;
  border-color: transparent transparent rgba(0,0,0,.18) transparent;
}
.castingInstructions h3 {
  font-size: 13px !important;
  font-weight: 900;
  margin: 0 0 12px !important;
  color: #1c1206;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid rgba(0,0,0,.18);
  padding-bottom: 8px;
}
.castingInstructions p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #2a1806;
}
.castingInstructions .mainInstruction {
  font-size: 13px;
  font-weight: 700;
}
.castingInstructions .emailBox {
  text-align: center;
  margin: 8px 0 12px;
}
.castingInstructions .emailBox a {
  color: #0a3d8a;
  font-weight: 900;
  font-size: 12px;
  text-decoration: underline;
  word-break: break-all;
}
.videoRequirements {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}
.requirement {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 0;
  background: none;
  border-left: none;
  border-radius: 0;
}
.reqIcon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.reqContent strong {
  display: block;
  font-size: 12px;
  color: #1c1206;
  margin-bottom: 1px;
}
.reqContent p {
  margin: 0;
  font-size: 12px;
  color: #3a2606;
}
.duration {
  display: block;
  font-size: 11px;
  color: #6a4a10;
  font-style: italic;
}
.uploadMethods {
  margin-top: 10px;
  border-top: 1px dashed rgba(0,0,0,.2);
  padding-top: 8px;
}
.uploadMethods .methodTitle {
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #1c1206;
}
.uploadMethods ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #2a1806;
  line-height: 1.6;
}
.note {
  font-size: 11px;
  color: #5a4010;
  font-style: italic;
  text-align: center;
}
.btn.ticket.small{justify-content:center; text-align:center}
.eventCta.disabled{background: rgba(255,255,255,.15) !important; color: rgba(255,255,255,.4) !important; border-color: rgba(255,255,255,.1) !important; pointer-events: none; cursor: default; text-decoration: none}

#date{
  scroll-margin-top: 100px;
  position: relative;
  z-index: 10; /* Sopra il mariachi */
  padding: 80px 0 0;
  overflow: visible;
  background: url('assets/sfondo_date_3.webp') center center / cover no-repeat;
}

#date h2 {
  color: #fff !important;
  text-shadow: 3px 3px 12px rgba(0,0,0,1);
  font-size: 56px !important;
  margin-bottom: 16px !important;
  text-align: center;
}

#date .sub {
  color: #fff !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,1);
  font-size: 18px !important;
  margin: 0 auto 32px auto !important;
  text-align: center !important;
}

#date .events {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

#date .event {
  background: rgba(0,0,0,0.75) !important;
  backdrop-filter: blur(10px);
  border-radius: 16px !important;
  padding: 24px 28px !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

#date .event b {
  color: #fff !important;
  font-size: 26px !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  display: block;
  margin-bottom: 8px;
}

#date .event span {
  color: rgba(255,255,255,0.9) !important;
  font-size: 18px !important;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

#date .badge {
  margin-top: 12px !important;
  background: rgba(255,212,90,0.95) !important;
  color: #000 !important;
  border: none !important;
  font-size: 13px !important;
  padding: 10px 16px !important;
}
#casting{
  scroll-margin-top: 100px;
  position: relative;
  z-index: 10; /* Sopra lo stregone */
  overflow: visible;
  margin-bottom: 0;
  padding-bottom: 64px;
  padding-top: 64px;
  background: linear-gradient(160deg, #0c1235 0%, var(--bg) 60%);
}
@media (min-width: 768px) {
  #casting { padding-top: 72px; padding-bottom: 100px; }
}

#contatti{
  scroll-margin-top: 100px;
  position: relative;
  z-index: 10; /* sopra lo stregone */
  margin-bottom: 0;
  padding-bottom: 0;
  padding-top: 56px;
}

/* MOBILE: contatti a SINISTRA di fianco allo stregone */
.contattiSection{
  position: relative;
  bottom: auto;
  left: 0;
  right: 0;
  padding: 20px 0 60px 0;
  margin-top: -30px; /* Sale leggermente */
}
.contattiContainer{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.contattiContainer h2{
  font-size: 28px;
  margin: 0 0 8px;
}
.contattiButtons{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

/* DESKTOP: contatti ORIZZONTALI di fianco allo stregone */
@media (min-width: 768px) {
  .contattiSection{
    position: absolute;
    bottom: 180px;
    left: 10%; /* Spostato dal margine sinistro */
    right: auto;
    width: 50%;
    margin-top: 0; /* Reset margin su desktop */
  }
  .contattiContainer{
    align-items: flex-start;
  }
  .contattiContainer h2{
    font-size: 36px;
  }
  .contattiButtons{
    flex-direction: column; /* Email una sotto l'altra */
    flex-wrap: nowrap;
    max-width: 360px; /* Limita larghezza bottoni */
  }

  footer {
    margin-top: 0; /* Reset footer margin su desktop */
  }
}

@media (min-width: 1200px) {
  .contattiSection{
    bottom: 220px;
    left: 12%; /* Ancora più centrato su desktop grande */
  }
  .contattiButtons{
    max-width: 380px;
  }
}

.footer-social{
  margin-bottom: 32px;
  text-align: center;
}
.footer-social-title{
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.footer-copyright{
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
.footer-social-links{
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-social-links a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  transition: all .3s ease;
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.footer-social-links a:hover{
  background: rgba(255,255,255,.2);
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255,255,255,.4);
}
/* TikTok - bagliore rosa/rosso */
.footer-social-links a:nth-child(1):hover{
  box-shadow: 0 8px 24px rgba(255,0,80,.6);
}
/* Instagram - bagliore viola */
.footer-social-links a:nth-child(2):hover{
  box-shadow: 0 8px 24px rgba(138,58,185,.6);
}
/* Facebook - bagliore blu */
.footer-social-links a:nth-child(3):hover{
  box-shadow: 0 8px 24px rgba(24,119,242,.6);
}

/* Footer senza spazio, attaccato allo stregone */
footer{
  border-top:1px solid rgba(255,255,255,.10);
  padding: 18px 0 28px;
  color: rgba(255,255,255,.62);
  font-size:12px;
  margin-top: 40px; /* Ancora un po' più giù su mobile */
  position: relative;
  z-index: 10;
  background: var(--bg);
}

.btn.small{justify-content:center; text-align:center}

.applyBtn.btn.casting{background: rgba(34,211,238,.96) !important; color:#071018; border-color: rgba(34,211,238,.55)}

/* =============================
   REV19 - INVERSIONE CADILLAC/STREGONE + FIX COMPLETO
   ============================= */
html, body { overflow-x: hidden; }

/* Ensure parallax layers don't create horizontal scrolling */
.sectionDivider, .wizardDivider, .cadillacDivider { overflow: visible; }

/* --- Mariachi divider (between hero and Date) --- */
/* MOBILE: centrato, dimensioni come screenshot */
/* DESKTOP: più grande e in basso */
.sectionDivider.sectionDivider--mariachi {
  position: relative;
  width: 100%;
  height: 280px;
  margin: 60px 0 -30px 0; /* Scende più in basso */
  pointer-events: none;
  overflow: visible;
}
.mariachiParallax {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(calc(-50% + var(--parallax-x, 0px)), -50%, 0);
  width: min(180vw, 1104px); /* 20% più piccolo (225vw * 0.8 = 180vw) */
  max-width: none; /* CRITICO: sovrascrive il max-width: 100% globale */
  height: auto;
  will-change: transform;
  z-index: 3; /* Sotto Date (z-index: 10) */
}
@media (min-width: 768px) {
  .heroContent {
    padding: 60px 0 32px;
  }
  .heroLayout {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .heroText {
    flex: 1;
    order: 1;
  }
  .promoVideoWrapper {
    width: 380px;
    max-width: 380px;
    margin: 0;
    order: 2;
  }
  .sectionDivider.sectionDivider--mariachi {
    height: 580px;
    margin: 26px 0 18px 0;
  }
  .mariachiParallax {
    left: auto;
    right: 0;
    bottom: -20px;
    top: auto;
    transform: translate3d(var(--parallax-x, 0px), 0, 0);
    width: min(95vw, 1350px);
  }
}


/* DATE section - font più grande */
#date h2 {
  font-size: 42px !important;
  letter-spacing: -1px;
}
@media (min-width: 768px) {
  #date h2 {
    font-size: 52px !important;
  }
}

/* --- CADILLAC divider (ORA tra Date e Casting - era wizard) --- */
.cadillacDivider {
  position: relative;
  width: 100%;
  height: 280px;
  margin: -50px 0 -10px 0;
  pointer-events: none;
  overflow: visible;
}
.cadillacDivider .cadillacParallax {
  position: absolute;
  left: 50%;
  bottom: -130px;
  width: min(140vw, 1100px); /* Un po' più grande */
  max-width: none; /* CRITICO: sovrascrive il max-width: 100% globale */
  height: auto;
  transform: translate3d(calc(-50% + var(--parallax-x, 0px)), 0, 0);
  will-change: transform;
  z-index: 15;
}
@media (min-width: 768px) {
  .cadillacDivider {
    height: 300px;
    margin-top: 40px;
    margin-bottom: 0;
  }
  .cadillacDivider .cadillacParallax {
    bottom: -230px;
    width: min(80vw, 1150px);
  }
}

/* --- WIZARD divider (tra Casting e Contatti) --- */
/* z-index:3 < footer z-index:10: il footer (background) funge da taglio netto.
   Lo stregone scende leggermente oltre la riga del footer, che copre i pixel eccedenti. */
.wizardDivider {
  position: relative;
  width: 100%;
  height: 600px;
  margin: -380px 0 0 0;
  padding: 0;
  pointer-events: none;
  overflow: visible;
}
.wizardParallax {
  position: absolute;
  display: block;
  right: -50%;
  bottom: -220px;
  width: min(158vw, 1320px);
  max-width: none;
  height: auto;
  transform: translate3d(var(--parallax-x, 0px), 0, 0);
  will-change: transform;
  z-index: 3;
}
@media (min-width: 768px) {
  .wizardDivider {
    height: 700px;
    margin: -220px 0 -80px 0;
  }
  .wizardParallax {
    right: -10%;
    bottom: -160px;
    width: min(85vw, 1600px);
  }
}
@media (min-width: 1200px) {
  .wizardDivider {
    height: 800px;
    margin: -260px 0 -110px 0;
  }
  .wizardParallax {
    right: -5%;
    bottom: -160px;
    width: min(75vw, 1700px);
  }
}

/* Center the Casting subtitle on desktop too */
.section--casting .castingSubtitle,
.section--casting p.castingSubtitle,
.section--casting .subtitle,
#casting .castingSubtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

/* Desktop: center casting heading */
@media (min-width: 980px){
  #casting h1, #casting h2, #casting h3{
    text-align: center !important;
  }
}

/* Mobile: use vertical hero image */
@media (max-width: 767px) {
  .social-links {
    display: none;
  }

  .footer-social {
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .footer-social-title {
    font-size: 20px;
    margin-bottom: 32px;
  }

  .hero {
    background-image: none;
    height: 70vh;
    margin-top: 0;
  }
}

/* --- Cassonato separatore --- */
.cassonato {
  padding: 80px 0 0;
  text-align: center;
  position: relative;
}
.cassonato .container {
  padding: 0;
  overflow: hidden;
}
.cassonato__img {
  width: 100%;
  max-width: none;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  transform-origin: 50% 40%;
  transform: scale(var(--cassonato-scale, 1));
  transition: none;
  overflow: hidden;
}
.cassonato__cta {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  white-space: nowrap;
  z-index: 20;
}
.cassonato__share {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  background: linear-gradient(135deg, var(--sun) 0%, var(--hot) 100%);
  color: #07020f;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 40px rgba(255,79,216,.35), 0 8px 28px rgba(0,0,0,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cassonato__share:hover {
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(255,79,216,.5), 0 12px 32px rgba(0,0,0,.5);
}
@media (max-width: 767px) {
  .cassonato .container { padding-top: 0; padding-bottom: 320px; }
  .cassonato__img { transform-origin: 50% 0%; }
}
@media (min-width: 768px) {
  .cassonato {
    padding: 200px 0 0;
    position: relative;
  }
  .cassonato .container { max-width: none; padding: 0; }
  .cassonato__img {
    width: 100%;
    max-width: none;
    border-radius: 0;
    margin: 0 auto;
    display: block;
  }
  .cassonato__cta {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    white-space: nowrap;
    z-index: 20;
  }
  .cassonato__share {
    font-size: 22px;
    padding: 24px 64px;
    box-shadow:
      0 0 100px 40px rgba(0,0,0,.95),
      0 0 50px rgba(255,79,216,.4);
  }
  .cassonato__share:hover {
    transform: scale(1.08);
    box-shadow:
      0 0 100px 40px rgba(0,0,0,.95),
      0 0 80px rgba(255,79,216,.6);
  }
}

/* ========================================
   OTTIMIZZAZIONE LANDING - v21
   ======================================== */

/* --- Hero Video --- */
.heroVideo {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
  overflow: hidden;
  margin-top: 0;
}
.heroVideoEl {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* --- Countdown --- */
.countdownSection {
  position: relative;
  z-index: 10;
  padding: 32px 0;
  background: linear-gradient(180deg, rgba(5,5,9,.95) 0%, var(--bg) 100%);
}
.countdownInner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.countdownLabel {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin: 0;
}
.countdownCity {
  font-size: 36px;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(90deg, var(--sun), var(--cold), var(--hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdownTimer {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.countdownTimer .cdUnit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.countdownTimer .cdNum {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(255,79,216,.3);
}
.countdownTimer .cdLabel {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}
.countdownUrgency {
  font-size: 15px;
  font-weight: 700;
  color: var(--hot);
  margin: 4px 0 0;
  text-shadow: 0 0 20px rgba(255,79,216,.4);
}
.countdownCta {
  font-size: 18px;
  padding: 16px 40px;
  border-radius: 999px;
  margin-top: 4px;
}
.countdownSection.countdownPast { display: none; }

/* --- Hero Content con embed IG --- */
.heroTextBlock {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.igEmbedRow {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 40px auto;
}
.igEmbedWrapper {
  flex: 1;
  max-width: 420px;
  min-width: 0;
}
@media (max-width: 767px) {
  .igEmbedRow {
    flex-direction: column;
    align-items: center;
  }
  .igEmbedWrapper { max-width: 100%; }
}
.igEmbedWrapper .instagram-media {
  border-radius: 18px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.6) !important;
}

/* --- Date + Locandina layout flex --- */
.dateLayout {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.dateLocandina {
  width: 100%;
  max-width: 360px;
}
.locandinaImg {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
}
.dateEvents {
  flex: 1;
  width: 100%;
}
@media (min-width: 768px) {
  .dateLayout {
    flex-direction: row;
    align-items: flex-start;
    max-width: none;
  }
  .dateLocandina {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
  }
  .dateEvents {
    flex: 1;
  }
}

/* --- Date mobile: CTA sotto, width 100% --- */
@media (max-width: 767px) {
  #date .event {
    flex-direction: column;
    align-items: flex-start;
  }
  #date .event .eventCta {
    width: 100%;
    margin-top: 14px;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 14px;
  }
}

/* --- Share section (Dillo ai tuoi amici) --- */
.shareSection {
  position: relative;
  z-index: 10;
  padding: 24px 0;
}
.shareInner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.shareTitle {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  max-width: 500px;
}
.shareBtn {
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 999px;
}
@media (min-width: 768px) {
  .shareSection { padding: 40px 0; }
  .shareInner { padding: 36px 32px; gap: 18px; }
  .shareTitle { font-size: 26px; }
  .shareBtn { font-size: 20px; padding: 18px 48px; }
}