/* ============================================================
   APD CASSACCO — Sito Pubblico
   sito.css — Stile principale
   ============================================================ */

/* === VARIABILI COLORI (aggiornare con colori reali del club) === */
:root {
  --color-primary:    #0B1E3D;    /* navy scuro — sfondo hero */
  --color-secondary:  #5486C5;    /* azzurro club (dal logo) */
  --color-accent:     #E30F29;    /* rosso Molten — accenti energici */
  --color-light:      #EEF4FC;    /* azzurro chiarissimo — sfondi sezioni */
  --color-white:      #FFFFFF;
  --color-text:       #0B1E3D;
  --color-text-light: #5C7A9A;
  --color-border:     #C8D9EF;

  --font-heading:     'Montserrat', sans-serif;
  --font-body:        'Inter', sans-serif;

  --transition-base:  0.35s ease;
  --shadow-card:      0 8px 32px rgba(11, 30, 61, 0.13);
  --radius-card:      16px;
  --section-pad:      100px 0;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

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

/* === NAVBAR === */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

#navbar.scrolled {
  background: rgba(11, 30, 61, 0.96);
  backdrop-filter: blur(12px);
  padding: 10px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

#navbar .nav-logo {
  height: 48px;
  width: auto;
  display: block;
  /* logo a colori: nessun filtro (prima brightness(0) invert(1) lo rendeva un cerchio bianco) */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: height var(--transition-base);
}
#navbar.scrolled .nav-logo { height: 40px; }

#navbar .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

#navbar .nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-base);
}

#navbar .nav-links a:hover {
  color: var(--color-accent);
}

/* Pulsante hamburger (solo mobile) */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base);
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

/* Stato aperto: le tre linee diventano una X */
#navbar.menu-aperto .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
#navbar.menu-aperto .nav-toggle span:nth-child(2) { opacity: 0; }
#navbar.menu-aperto .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* === HERO === */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  /* Gradiente radiale: centro più luminoso → blu più scuro ai bordi */
  background-color: var(--color-primary);
  background-image: radial-gradient(ellipse at center, #173a6e 0%, var(--color-primary) 55%, #050f22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  pointer-events: none;
  text-shadow: 0 4px 30px rgba(11, 30, 61, 0.85); /* leggibilità sopra il campo 3D */
}

.hero-content .hero-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* pillola scura: leggibile anche sopra il campo 3D luminoso */
  color: #fff;
  background: rgba(5, 14, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-shadow: none;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s ease forwards;
}

.hero-content h1 span {
  color: var(--color-accent);
}

.hero-content .hero-tag .punto { color: var(--color-accent); margin: 0 0.35em; }
@media (max-width: 576px) {
  .hero-content .hero-tag { font-size: 0.68rem; letter-spacing: 0.1em; padding: 8px 14px; }
  .hero-content .hero-tag .punto { margin: 0 0.25em; }
  .hero-content .hero-sub { font-size: 0.95rem; padding: 8px 16px; }
}

.hero-content .hero-sub {
  display: inline-block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  /* pillola scura come l'etichetta sopra, per staccarla dal campo 3D */
  color: #fff;
  background: rgba(5, 14, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-shadow: none;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s ease forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
}

/* === SEZIONE GENERICA === */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.section-title span { color: var(--color-accent); }

.section-lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 600px;
}

/* === SEZIONE 2 — DESCRIZIONE === */
#descrizione {
  padding: var(--section-pad);
  background: var(--color-white);
  position: relative;
  overflow: hidden;   /* anno gigante di sfondo e cerchio contatore */
}

/* --- Utility: split di parole (usato da A e D) --- */
.cs-wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.cs-w  { display: inline-block; }

/* --- Animazioni sezione Chi siamo (ex variante A di prova_chisiamo) ---
   Attivate da sito.js: aggiunge .in a #descrizione quando entra in vista */
.cs-a::before { /* grande numero di sfondo */
  content: attr(data-anno);
  position: absolute; right: -2vw; top: 40px;
  font: 900 clamp(8rem, 22vw, 20rem)/1 var(--font-heading);
  color: transparent; -webkit-text-stroke: 2px rgba(84, 134, 197, 0.14);
  pointer-events: none;
  transform: translateY(var(--par, 0px));
}
.cs-a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; position: relative; }

.cs-a-media { position: relative; }
.cs-a-img {
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card);
  clip-path: inset(0 100% 0 0 round 16px);
  transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1);
}
.cs-a-img img {
  width: 100%; height: 480px; object-fit: cover;
  transform: scale(1.3) translateY(var(--par-img, 0px));
  transition: transform 1.6s cubic-bezier(.2, .7, .2, 1);
}
.cs-a.in .cs-a-img { clip-path: inset(0 0 0 0 round 16px); }
.cs-a.in .cs-a-img img { transform: scale(1.12) translateY(var(--par-img, 0px)); }

/* Rotazione immagini Chi siamo — effetto "Cortocircuito" (WebGL, vedi sito.js):
   scarica elettrica che corre sul bordo, implosione a vortice, lampo + onda d'urto.
   Il canvas è visibile solo durante il passaggio, sopra alla foto. */
.cs-a-img { position: relative; }
.cs-cc {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0; display: block;
}
.cs-cc.on { opacity: 1; }

.cs-a-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--color-accent); color: #fff; font-weight: 800; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 50px; letter-spacing: 0.05em;
  transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.8, .64, 1) 1.1s;
}
.cs-a.in .cs-a-badge { transform: scale(1); }

.cs-a-stat {
  position: absolute; top: -28px; right: -28px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px rgba(11, 30, 61, .35);
  opacity: 0; transform: translateY(30px) rotate(-12deg);
  transition: opacity .8s ease 1.2s, transform .8s cubic-bezier(.34, 1.56, .64, 1) 1.2s;
  animation: csBob 4s ease-in-out 2.5s infinite;
}
.cs-a.in .cs-a-stat { opacity: 1; transform: none; }
.cs-a-stat .cs-count { font: 900 3rem/1 var(--font-heading); color: var(--color-accent); }
.cs-a-stat small { font-size: 0.72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .8; }
@keyframes csBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.cs-a-tag { opacity: 0; transform: translateX(-20px); transition: all .6s ease .1s; }
.cs-a.in .cs-a-tag { opacity: 1; transform: none; }
.cs-a-tag::before {
  content: ''; display: inline-block; width: 0; height: 2px; background: var(--color-secondary);
  vertical-align: middle; margin-right: 10px; transition: width .6s ease .3s;
}
.cs-a.in .cs-a-tag::before { width: 36px; }

.cs-a-title {
  font: 900 clamp(2.4rem, 5vw, 4.2rem)/1.05 var(--font-heading);
  color: var(--color-primary); margin-bottom: 28px;
}
.cs-a-title em { font-style: normal; color: var(--color-accent); position: relative; display: inline-block; }
.cs-a-title .cs-w {
  transform: translateY(110%) rotate(8deg); opacity: 0;
  transition: transform .8s cubic-bezier(.2, .9, .3, 1.2), opacity .5s ease;
  transition-delay: calc(0.25s + var(--i) * 0.09s);
}
.cs-a.in .cs-a-title .cs-w { transform: none; opacity: 1; }
.cs-a-underline {
  position: absolute; left: -4%; bottom: -0.22em; width: 108%; height: 0.38em; overflow: visible;
}
.cs-a-underline path {
  fill: none; stroke: var(--color-secondary); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  transition: stroke-dashoffset 1s cubic-bezier(.65, 0, .35, 1) 1.1s;
}
.cs-a.in .cs-a-underline path { stroke-dashoffset: 0; }

.cs-a-lead {
  font-size: 1.2rem; line-height: 1.8; color: var(--color-text-light); max-width: 600px;
  opacity: 0; transform: translateY(20px); transition: all .8s ease .9s;
}
.cs-a.in .cs-a-lead { opacity: 1; transform: none; }
.cs-a-lead mark {
  background: linear-gradient(transparent 58%, rgba(227, 15, 41, 0.22) 58%) no-repeat 0 0 / 0% 100%;
  color: var(--color-primary); font-weight: 700; padding: 0 2px;
  transition: background-size .9s cubic-bezier(.65, 0, .35, 1);
}
.cs-a.in .cs-a-lead mark { background-size: 100% 100%; }
.cs-a.in .cs-a-lead mark:nth-of-type(1) { transition-delay: 1.5s; }
.cs-a.in .cs-a-lead mark:nth-of-type(2) { transition-delay: 1.9s; }
.cs-a.in .cs-a-lead mark:nth-of-type(3) { transition-delay: 2.3s; }

@media (max-width: 1024px) {
  .cs-a-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-a-stat { right: 10px; width: 120px; height: 120px; }
  .cs-a-stat .cs-count { font-size: 2.4rem; }
}
@media (max-width: 576px) {
  .cs-a-img img { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-a *, .cs-a *::before, .cs-a *::after { transition: none !important; animation: none !important; }
  .cs-a .cs-w, .cs-a-img, .cs-a-badge, .cs-a-stat, .cs-a-tag, .cs-a-lead { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .cs-a .cs-a-underline path { stroke-dashoffset: 0; }
  .cs-a .cs-a-lead mark { background-size: 100% 100%; }
}

/* === SEZIONE 3 — SQUADRE === */
#squadre {
  padding: var(--section-pad);
  background: var(--color-primary);
}

#squadre .section-tag { color: var(--color-accent); }
#squadre .section-title { color: var(--color-white); }

.squadre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.squadra-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.squadra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.squadra-card .card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.squadra-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.squadra-card:hover .card-image img {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,27,42,0.9) 100%);
}

.squadra-card .card-body {
  padding: 20px 24px;
}

.squadra-card .card-categoria {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.squadra-card .card-nome {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 8px;
}

.squadra-card .card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* === SQUADRE — riquadri a fisarmonica (copiato da prova_squadre.css, variante 1) === */
/* ------------------------------------------------------------
   Riquadri squadre (fronte + dettaglio espanso)
   ------------------------------------------------------------ */
.sq-v { position: relative; margin-top: 30px; }
.sq-card {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer; color: #fff;
  background: #0f2448; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); outline: none;
}
.sq-card:focus-visible { box-shadow: 0 0 0 3px var(--color-accent), 0 20px 40px rgba(0, 0, 0, .35); }
.sq-fronte {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s, opacity .4s;
}
.sq-fronte::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,30,61,0) 30%, rgba(11,30,61,.92) 100%);
}
.sq-card:hover .sq-fronte { transform: scale(1.06); }
.sq-fronte-testo { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; transition: opacity .35s; }
.sq-tag { display: inline-block; font: 800 .68rem/1 var(--font-heading); letter-spacing: .2em; text-transform: uppercase; color: var(--color-accent); }
.sq-nome { font: 400 clamp(1.6rem, 2.6vw, 2.3rem)/1 'Anton', sans-serif; text-transform: uppercase; margin: 8px 0 6px; letter-spacing: .02em; }
/* soprannome squadra (Le Bestie / Le Iene) */
.sq-soprannome {
  display: inline-block; font: 400 1.05rem/1 'Anton', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--color-accent); padding: .28em .55em .3em; margin: 0 0 10px; transform: rotate(-3deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}
.sq-titolo .sq-soprannome { font-size: .42em; vertical-align: middle; margin: 0 0 0 .3em; }
.sq-v1.con-aperta .sq-card:not(.aperta) .sq-soprannome { display: none; }
.sq-breve { font-size: .92rem; color: rgba(255,255,255,.78); margin: 0 0 10px; }
.sq-apri { font: 800 .75rem/1 var(--font-heading); letter-spacing: .12em; text-transform: uppercase; color: #fff; border-bottom: 2px solid var(--color-accent); padding-bottom: 3px; }

.sq-dettaglio {
  position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 26px;
  background: linear-gradient(135deg, rgba(8, 20, 42, .97), rgba(22, 52, 98, .96));
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; cursor: default;
}
.sq-card.aperta .sq-dettaglio { opacity: 1; visibility: visible; transition: opacity .45s ease .45s, visibility 0s; }
.sq-card.aperta .sq-fronte-testo { opacity: 0; }
.sq-galleria { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sq-foto-grande {
  flex: 1; min-height: 200px; border-radius: 12px; background-size: cover; background-position: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.4); transition: opacity .25s;
}
.sq-foto-grande.cambia { opacity: 0; }
.sq-miniature { display: flex; gap: 8px; }
.sq-mini {
  width: 74px; height: 52px; border-radius: 8px; border: 2px solid transparent; background-size: cover; background-position: center;
  cursor: pointer; opacity: .6; transition: all .25s; padding: 0;
}
.sq-mini.attiva, .sq-mini:hover { opacity: 1; border-color: var(--color-accent); }
.sq-testo { overflow: auto; padding-right: 30px; }
.sq-testo > * { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
.sq-card.aperta .sq-testo > * { opacity: 1; transform: none; }
.sq-card.aperta .sq-testo > :nth-child(1) { transition-delay: .55s; }
.sq-card.aperta .sq-testo > :nth-child(2) { transition-delay: .63s; }
.sq-card.aperta .sq-testo > :nth-child(3) { transition-delay: .71s; }
.sq-card.aperta .sq-testo > :nth-child(4) { transition-delay: .79s; }
.sq-card.aperta .sq-testo > :nth-child(5) { transition-delay: .87s; }
.sq-titolo { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1 'Anton', sans-serif; text-transform: uppercase; margin: 8px 0 14px; }
.sq-testo p { color: rgba(255,255,255,.82); line-height: 1.7; font-size: 1rem; }
.sq-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.sq-info div { background: rgba(255,255,255,.07); border-left: 3px solid var(--color-accent); padding: 8px 12px; border-radius: 6px; }
.sq-info dt { font: 800 .62rem/1 var(--font-heading); letter-spacing: .15em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: 4px; }
.sq-info dd { margin: 0; font-size: .9rem; font-weight: 600; }
.sq-cta {
  display: inline-block; background: var(--color-accent); color: #fff !important; font: 800 .8rem/1 var(--font-heading);
  letter-spacing: .12em; text-transform: uppercase; padding: 13px 22px; border-radius: 50px;
}
.sq-chiudi {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem; cursor: pointer; transition: all .25s;
}
.sq-chiudi:hover { background: var(--color-accent); transform: rotate(90deg); }

/* ============================================================
   SQUADRE — FISARMONICA (moduli_comuni/sezione_squadre.php + sito.js)
   ============================================================ */
.sq-v1 { display: flex; gap: 12px; height: 580px; }
.sq-v1 .sq-card { flex: 1 1 0; min-width: 0; transition: flex .85s cubic-bezier(.7, 0, .2, 1); }
.sq-v1.con-aperta .sq-card { flex: .42 1 0; }
.sq-v1.con-aperta .sq-card.aperta { flex: 6 1 0; }
.sq-v1.con-aperta .sq-card:not(.aperta) .sq-fronte { filter: grayscale(.7) brightness(.7); }
.sq-v1.con-aperta .sq-card:not(.aperta):hover .sq-fronte { filter: none; }
.sq-v1.con-aperta .sq-card:not(.aperta) .sq-fronte-testo {
  left: 50%; right: auto; bottom: 24px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap;
}
.sq-v1.con-aperta .sq-card:not(.aperta) .sq-tag,
.sq-v1.con-aperta .sq-card:not(.aperta) .sq-breve,
.sq-v1.con-aperta .sq-card:not(.aperta) .sq-apri { display: none; }
.sq-v1.con-aperta .sq-card:not(.aperta) .sq-nome { font-size: 1.5rem; margin: 0; }
@media (max-width: 900px) {
  .sq-dettaglio { grid-template-columns: 1fr; overflow: auto; }
  .sq-foto-grande { min-height: 220px; }
  .sq-v1 { flex-direction: column; height: auto; }
  .sq-v1 .sq-card { flex: none; height: 170px; transition: height .8s cubic-bezier(.7, 0, .2, 1); }
  .sq-v1.con-aperta .sq-card { height: 70px; flex: none; }
  .sq-v1.con-aperta .sq-card.aperta { flex: none; }
  .sq-v1.con-aperta .sq-card.aperta { height: 820px; }
  .sq-v1.con-aperta .sq-card:not(.aperta) .sq-fronte-testo { writing-mode: horizontal-tb; transform: none; left: 20px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sq-v *, .sq-v1 .sq-card { transition: none !important; animation: none !important; }
}

/* === SEZIONE 4 — TIFO + PARTITE === */
#tifo {
  padding: var(--section-pad);
  background: var(--color-light);
  position: relative;
  overflow: hidden;             /* la folla (layer di fondo) non esce dalla sezione */
}

/* Contenuti sopra al layer della folla */
#tifo > .container {
  position: relative;
  z-index: 1;
}

.tifo-header {
  text-align: center;
  margin-bottom: 64px;
}

.tifo-call {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.tifo-call .highlight { color: var(--color-secondary); }

.partite-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.partita-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--color-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.partita-card:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 40px rgba(11, 30, 61, 0.15);
}

.partita-card.derby { border-left-color: var(--color-accent); }

.partita-data {
  text-align: center;
}

.partita-data .giorno {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.partita-data .mese-anno {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.partita-data .ora {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 4px;
}

.partita-info {}

.partita-cat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.partita-vs {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.partita-vs .vs-sep {
  color: var(--color-text-light);
  font-weight: 400;
  margin: 0 10px;
}

.partita-luogo {
  font-size: 0.83rem;
  color: var(--color-text-light);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.partita-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--color-secondary);
  color: white;
  white-space: nowrap;
}

.partita-badge.badge-derby {
  background: var(--color-accent);
  color: var(--color-primary);
}

.partite-vuote {
  text-align: center;
  color: var(--color-text-light);
  padding: 40px;
  font-size: 1rem;
}

/* === SEZIONE 5 — SOCIETÀ === */
#societa {
  padding: var(--section-pad);
  background: var(--color-white);
}

.societa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.societa-box {
  padding: 36px;
  border-radius: var(--radius-card);
  background: var(--color-light);
  border: 1px solid var(--color-border);
}

.societa-box h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.societa-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.societa-box dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: start;
  padding-top: 2px;
}

.societa-box dd {
  font-size: 0.92rem;
  color: var(--color-text);
  font-weight: 500;
}

.moduli-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modulo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--color-white);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.modulo-item:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(27, 79, 138, 0.1);
}

.modulo-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.modulo-nome {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

.modulo-download {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modulo-download:hover { color: var(--color-accent); }

/* === FOOTER === */
#footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 72px;
  width: auto;
  /* logo a colori, senza filtri */
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* === SOCIAL ICONS === */
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* === KEYFRAMES === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}

/* === RESPONSIVE === */

/* === TITOLO PARTITE "IMPATTO" (layout/js/tifo.js) ===
   Frase dinamica dai calendari FIPAV: lettere enormi che si schiantano,
   tremore, polvere, crepe, domanda a timbro, battito + glitch */
.tifo-titolo { position: relative; text-align: center; margin-bottom: 20px; min-height: 300px; }
.tifo-kicker {
  display: inline-block; font: 800 .8rem/1 var(--font-heading); letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-secondary); margin-bottom: 14px;
}
.tifo-dettaglio {
  display: inline-block; margin-top: 18px; padding: 10px 20px; border-radius: 50px;
  background: var(--color-primary); color: #fff; font-weight: 600; font-size: .95rem;
  opacity: 0; transform: translateY(14px); transition: all .6s ease;
}
.tifo-dettaglio:empty { display: none; }
.tifo-titolo.fine .tifo-dettaglio { opacity: 1; transform: none; }
.tifo-shake { animation: tifoShake .32s linear; }
@keyframes tifoShake {
  0% { transform: translate(0, 0); } 20% { transform: translate(-7px, 4px); } 40% { transform: translate(6px, -5px); }
  60% { transform: translate(-4px, 3px); } 80% { transform: translate(3px, -1px); } 100% { transform: translate(0, 0); }
}
.v1 { position: relative; padding-top: 10px; }
.v1-riga1 { font: 400 clamp(1.4rem, 3vw, 2.2rem)/1 'Anton', sans-serif; letter-spacing: .06em; color: var(--color-primary); text-transform: uppercase; opacity: 0; transition: opacity .4s; }
.v1.go .v1-riga1 { opacity: 1; }
.v1-parola {
  position: relative; z-index: 2; display: inline-block;
  font: 400 clamp(4.2rem, 15vw, 12rem)/.92 'Anton', sans-serif; letter-spacing: .01em; text-transform: uppercase;
  color: var(--color-accent); margin: 6px 0 0;
}
.v1-parola .l { display: inline-block; opacity: 0; transform: scale(5) translateY(-20px); filter: blur(14px); }
.v1-parola .w { display: inline-block; white-space: nowrap; }
.v1-parola .l.sp { width: .25em; }
.v1-parola .l.slam { animation: v1Slam .42s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes v1Slam {
  0%   { opacity: 0; transform: scale(5) translateY(-20px); filter: blur(14px); }
  70%  { opacity: 1; transform: scale(.9); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.v1-parola.glitch { animation: v1Glitch .5s steps(2) 1; }
@keyframes v1Glitch {
  0%   { text-shadow: 6px 0 var(--color-secondary), -6px 0 #00e5ff; transform: translateX(0); }
  25%  { text-shadow: -8px 2px var(--color-secondary), 8px -2px #00e5ff; transform: translateX(-6px) skewX(-8deg); }
  50%  { text-shadow: 4px -3px var(--color-secondary), -4px 3px #00e5ff; transform: translateX(5px); clip-path: inset(10% 0 40% 0); }
  75%  { text-shadow: -3px 0 var(--color-secondary), 3px 0 #00e5ff; transform: translateX(-2px) skewX(6deg); clip-path: none; }
  100% { text-shadow: none; transform: none; }
}
.v1-parola.battito { animation: v1Beat 1.1s ease-in-out infinite; }
@keyframes v1Beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.045); } 24% { transform: scale(1); } 36% { transform: scale(1.03); } }
.v1-domanda {
  display: inline-block; position: relative; z-index: 3; margin-top: 4px;
  font: 400 clamp(2rem, 5vw, 3.8rem)/1 'Anton', sans-serif; text-transform: uppercase; color: #fff;
  background: var(--color-primary); padding: .1em .4em .14em; transform: rotate(-4deg) scale(3); opacity: 0;
}
.v1-domanda.go { animation: v1Stamp .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes v1Stamp { 0% { opacity: 0; transform: rotate(-4deg) scale(3); } 100% { opacity: 1; transform: rotate(-4deg) scale(1); } }
.v1-crepe { position: absolute; inset: -40px -10%; z-index: 1; pointer-events: none; width: 120%; height: calc(100% + 80px); overflow: visible; }
.v1-crepe path { fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linecap: round; opacity: .35; }
.v1-polvere { position: absolute; inset: -60px -10%; width: 120%; height: calc(100% + 120px); z-index: 1; pointer-events: none; }

/* Manifesto "Non ci vuole il biglietto…": fasce da striscione che entrano di lato */
.tifo-manifesto { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 34px 0 26px; }
.tifo-manifesto .fascia {
  display: inline-block; font: 400 clamp(1.3rem, 3.4vw, 2.6rem)/1.05 'Anton', sans-serif; text-transform: uppercase;
  letter-spacing: .02em; color: #fff; background: var(--color-primary); padding: .18em .6em .22em;
  box-shadow: 0 12px 26px rgba(11, 30, 61, .3); opacity: 0; max-width: 94%;
  transition: transform .7s cubic-bezier(.2, 1.3, .4, 1), opacity .3s ease;
}
.tifo-manifesto .fascia:nth-child(1) { transform: rotate(-2deg) translateX(-110vw); }
.tifo-manifesto .fascia:nth-child(2) { transform: rotate(1.5deg) translateX(110vw); transition-delay: .25s; }
.tifo-manifesto.in .fascia:nth-child(1) { opacity: 1; transform: rotate(-2deg); }
.tifo-manifesto.in .fascia:nth-child(2) { opacity: 1; transform: rotate(1.5deg); }
.tifo-manifesto .barra { position: relative; color: #ffd0d6; }
.tifo-manifesto .barra::after { /* la parola viene barrata */
  content: ''; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em; background: var(--color-accent);
  transform: scaleX(0) rotate(-3deg); transform-origin: left center; transition: transform .35s ease .9s;
}
.tifo-manifesto.in .barra::after { transform: scaleX(1) rotate(-3deg); }
.tifo-manifesto .fascia--urlo {
  font-size: clamp(1.7rem, 5vw, 3.8rem); background: var(--color-accent); margin-top: 4px;
  transform: rotate(-1.5deg) scale(3); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) .95s, opacity .2s ease .95s;
}
.tifo-manifesto.in .fascia--urlo { opacity: 1; transform: rotate(-1.5deg) scale(1); }
.tifo-manifesto.in .fascia--urlo.urla { animation: tifoUrlo 2.4s ease-in-out 2.2s infinite; }
@keyframes tifoUrlo { 0%, 100% { transform: rotate(-1.5deg) scale(1); } 8% { transform: rotate(-1.5deg) scale(1.06); } 16% { transform: rotate(-1.5deg) scale(1); } }
.tifo-manifesto .sotto {
  margin-top: 8px; font-weight: 700; color: var(--color-primary); background: rgba(255, 255, 255, .85);
  padding: 6px 16px; border-radius: 50px; opacity: 0; transition: opacity .6s ease 1.6s;
}
.tifo-manifesto.in .sotto { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tifo-titolo *, .tifo-manifesto, .tifo-manifesto * { animation: none !important; transition: none !important; }
  .v1-parola .l, .v1-domanda, .tifo-manifesto .fascia, .tifo-manifesto .sotto { opacity: 1 !important; filter: none !important; }
  .v1-parola .l { transform: none !important; }
  .tifo-manifesto .barra::after { transform: scaleX(1) rotate(-3deg); }
}
@media (max-width: 576px) { .tifo-titolo { min-height: 240px; } }

/* Partita in casa questa settimana: la sezione #tifo è la prima della pagina (index.php)
   → navbar sempre scura (altrimenti testo bianco su sfondo chiaro) e spazio per la navbar */
body.tifo-in-alto #navbar {
  background: rgba(11, 30, 61, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
body.tifo-in-alto #tifo { padding-top: 130px; }

/* === FOLLA CANVAS (sezione #tifo) === */
/* Layer di fondo: occupa il 100% della sezione, sotto alle scritte */
.folla-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;       /* non blocca click/selezione sui contenuti */
}

#folla-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Testo CTA grande nella sezione tifo */
.tifo-cta-grande {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.tifo-cta-grande .accent { color: var(--color-secondary); }
.tifo-cta-grande .rosso  { color: var(--color-accent); }

.tifo-ingresso {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 50px;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .societa-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 70px 0; }

  #navbar { padding: 14px 20px; }
  #navbar.scrolled { padding: 8px 20px; }

  /* Menu mobile: tendina sotto la navbar, aperta dal pulsante hamburger */
  .nav-toggle { display: block; }

  #navbar.menu-aperto {
    background: rgba(11, 30, 61, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }

  #navbar .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 30, 61, 0.98);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.4s ease, visibility 0.4s;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }

  #navbar.menu-aperto .nav-links {
    max-height: 420px;
    visibility: visible;
  }

  #navbar .nav-links li { border-top: 1px solid rgba(255,255,255,0.08); }

  #navbar .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .partita-card {
    grid-template-columns: 90px 1fr;
    gap: 16px;
  }
  .partita-badge { display: none; }

  .societa-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { letter-spacing: -0.03em; }
  .partita-card { grid-template-columns: 1fr; }
  .partita-data { display: flex; align-items: baseline; gap: 12px; }
}


/* ==========================================================================
   SQUADRE — LIGHTBOX (click sulla foto grande della squadra aperta)
   JS in layout/js/sito.js (sezione SQUADRE, funzioni lb*)
   ========================================================================== */
.sq-card.aperta .sq-foto-grande { cursor: zoom-in; position: relative; }
.sq-card.aperta .sq-foto-grande::after {
  content: '⤢'; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff;
  background: rgba(11,30,61,.65); backdrop-filter: blur(4px); opacity: .85; transition: transform .25s, opacity .25s;
}
.sq-card.aperta .sq-foto-grande:hover::after { transform: scale(1.12); opacity: 1; }
body.lb-aperto { overflow: hidden; }
.sq-lb { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; }
.sq-lb.aperta { display: flex; }
.sq-lb-fondo {
  position: absolute; inset: 0; background: rgba(6,16,33,.92); backdrop-filter: blur(8px);
  animation: sq-lb-in .35s ease both;
}
.sq-lb.chiude .sq-lb-fondo { animation: sq-lb-out .3s ease both; }
@keyframes sq-lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sq-lb-out { from { opacity: 1; } to { opacity: 0; } }
.sq-lb-fig { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.sq-lb-img {
  display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); pointer-events: auto; cursor: default; will-change: transform;
}
.sq-lb-conta { color: rgba(255,255,255,.7); font: 700 .8rem/1 var(--font-heading); letter-spacing: .2em; min-height: 1em; animation: sq-lb-in .4s ease .3s both; }
.sq-lb-btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font: 400 2rem/1 var(--font-body);
  display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
  animation: sq-lb-in .4s ease .25s both;
}
.sq-lb-btn:hover { background: var(--color-accent); transform: scale(1.08); }
.sq-lb-chiudi { top: 18px; right: 18px; font-size: 1.3rem; }
.sq-lb-prec { left: 18px; top: 50%; margin-top: -26px; }
.sq-lb-succ { right: 18px; top: 50%; margin-top: -26px; }
.sq-lb:not(.multi) .sq-lb-prec, .sq-lb:not(.multi) .sq-lb-succ { display: none; }
.sq-lb.chiude .sq-lb-btn, .sq-lb.chiude .sq-lb-conta { opacity: 0; transition: opacity .15s; }
@media (max-width: 768px) {
  .sq-lb-img { max-width: 100vw; max-height: 78vh; border-radius: 0; }
  .sq-lb-btn { width: 44px; height: 44px; font-size: 1.6rem; background: rgba(0,0,0,.45); }
  .sq-lb-prec { left: 8px; } .sq-lb-succ { right: 8px; }
  .sq-lb-chiudi { top: 12px; right: 12px; }
}


/* ==========================================================================
   HERO — riga SEO dentro l'h1 ("Pallavolo a Cassacco · Udine")
   ========================================================================== */
.hero-content h1 .hero-h1-luogo {
  display: block; margin-top: .45em;
  font-size: clamp(.78rem, 1.5vw, 1.05rem); font-weight: 800; line-height: 1.2;
  letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}


/* ==========================================================================
   HERO — versione STATICA per dispositivi deboli (classe .hero-statico, messa da
   layout/js/hero_avvio.js o da hero.js se il 3D va a scatti): immagine del campo
   con un lento movimento di camera, al posto del canvas Three.js
   ========================================================================== */
#hero.hero-statico::before {
  content: ''; position: absolute; inset: -4%; z-index: 0; pointer-events: none;
  background: url('../images/hero_statico.webp') center / cover no-repeat;
  animation: hero-statico-camera 26s ease-in-out infinite alternate, hero-statico-entra 1s ease both;
}
#hero.hero-statico::after { /* velo per tenere leggibili le scritte, come la profondità del 3D */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(5, 14, 32, 0.15) 0%, rgba(5, 14, 32, 0.55) 100%);
}
#hero.hero-statico #hero-canvas { opacity: 0 !important; transition: opacity .8s ease; pointer-events: none; }
@keyframes hero-statico-camera {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, 1%); }
}
@keyframes hero-statico-entra { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) and (orientation: portrait) {
  #hero.hero-statico::before { background-image: url('../images/hero_statico_mobile.webp'); }
}
@media (prefers-reduced-motion: reduce) {
  #hero.hero-statico::before { animation: none; }
}
