/* =====================================================================
   Gli Amici di Boyle · home-extra.css (ottobre 2026)
   Caricato dopo styles.css: solo aggiunte e override mirati della home.
   ===================================================================== */

/* ── 1. TITOLO HERO ANIMATO ───────────────────────────────────────────
   Le lettere "risalgono dal fondo" (sfocate → nitide), poi l'accento
   si rivela con un fascio di luce che lo attraversa e una linea di
   profondità che si accende. Al termine resta un riflesso lento. */
.hero h1.hero-title { position: relative; }
/* senza la pillola sopra, il titolo prende tutto lo spazio */
.hero h1.hero-title { font-size: clamp(2.6rem, 11.2vw, 8.2rem); line-height: .92; letter-spacing: -.045em; margin-bottom: 26px; }
@media (min-width: 901px) { .hero .hero-content { max-width: 1180px; } }
/* sul telefono il titolo va su tre righe, piu' grande: "ambienti" ed "estremi" una per riga */
@media (max-width: 600px) { .hero h1.hero-title { font-size: clamp(2.6rem, 13.4vw, 4.2rem); line-height: .95; } }
.ht-word { display: inline-block; white-space: nowrap; }
/* il titolo statico non deve comparire prima dell'animazione: resta nascosto
   finche' home-extra.js non lo ricostruisce (rete di sicurezza dopo 2,5 s) */
.hero-intro #hero-h1-el:not(.ht-ready) { visibility: hidden; animation: htShowFallback 0s linear 2.5s forwards; }
@keyframes htShowFallback { to { visibility: visible; } }

.ht-ch {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.ht-play .ht-ch {
  opacity: 0;
  transform: translateY(.55em) scale(.94);
  filter: blur(12px);
  animation: htRise 1s cubic-bezier(.2, .75, .25, 1) forwards;
  animation-delay: calc(var(--i) * 34ms + 180ms);
}
@keyframes htRise {
  55% { opacity: 1; filter: blur(1.5px); }
  100% { opacity: 1; transform: none; filter: none; }
}

.hero h1 .ht-accent {
  /* annulla il gradiente del vecchio .accent: lo porta lo span interno */
  background: none;
  -webkit-text-fill-color: initial;
  display: inline-block;
  position: relative;
  max-width: 100%;
  padding-bottom: .08em;
}
.ht-accent-in {
  display: inline-block;
  background: linear-gradient(100deg,
    var(--cyan-2) 0%, var(--blue) 28%, #e9fcff 44%, var(--cyan) 52%, var(--blue) 70%, var(--cyan-2) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ht-play .ht-accent-in {
  clip-path: inset(-.2em 100% -.2em 0);
  filter: blur(8px);
  animation:
    htReveal 1.15s cubic-bezier(.65, 0, .25, 1) var(--ht-accent-delay, .8s) forwards,
    htCaustic 9s ease-in-out calc(var(--ht-accent-delay, .8s) + 1.2s) 2; /* due passaggi, poi si ferma */
}
@keyframes htReveal {
  to { clip-path: inset(-.2em -.1em -.2em 0); filter: none; }
}
@keyframes htCaustic {
  0%, 100% { background-position: 100% 0; }
  50%      { background-position: 0% 0; }
}
/* fascio di luce che scorre durante la rivelazione */
.ht-accent::before {
  content: ""; position: absolute; top: -6%; bottom: 4%; left: 0; width: 3px;
  border-radius: 3px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, #dff9ff 30%, #dff9ff 70%, transparent);
  box-shadow: 0 0 18px 4px rgba(150, 230, 255, .55);
}
.ht-play .ht-accent::before {
  animation: htBeam 1.15s cubic-bezier(.65, 0, .25, 1) var(--ht-accent-delay, .8s) forwards;
}
@keyframes htBeam {
  0%   { left: 0;    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
/* linea di profondità sotto l'accento */
.ht-accent::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -.04em; height: 2px;
  border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(123,228,255,.85), transparent);
  box-shadow: 0 0 14px rgba(123,228,255,.45);
  transform: scaleX(0); opacity: .55;
}
.ht-play .ht-accent::after {
  animation: htLine 1.4s cubic-bezier(.2, .7, .2, 1) calc(var(--ht-accent-delay, .8s) + .75s) forwards;
}
@keyframes htLine { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .ht-play .ht-ch, .ht-play .ht-accent-in, .ht-play .ht-accent::before, .ht-play .ht-accent::after {
    animation: none !important; opacity: 1; transform: none; filter: none; clip-path: none;
  }
  .ht-accent::after { transform: scaleX(1); }
}

/* ── 2. NUMERI HERO: griglia compatta su mobile ───────────────────── */
@media (max-width: 640px) {
  .hero .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    flex-direction: initial;
  }
  .hero .hero-stats .hero-stat {
    grid-column: span 2;
    min-width: 0; padding: 13px 6px;
    border-right: 1px solid rgba(123,228,255,.1) !important;
    border-bottom: 1px solid rgba(123,228,255,.08) !important;
  }
  .hero .hero-stats .hero-stat:nth-child(3) { border-right: none !important; }
  .hero .hero-stats .hero-stat:nth-child(5),
  .hero .hero-stats .hero-stat:nth-child(6) { grid-column: span 3; border-bottom: none !important; }
  .hero .hero-stats .hero-stat:nth-child(6) { border-right: none !important; }
  .hero .hero-stats .hero-stat-divider { display: none !important; }
  .hero .hero-stats .hero-stat strong { font-size: 1.22rem; }
  .hero .hero-stats .hero-stat span { font-size: .64rem; line-height: 1.3; display: block; }
  .hero .hero-stats .hero-stat--infinity strong { font-size: 1.55rem; }
}

/* ── 3. PROSSIMI APPUNTAMENTI ─────────────────────────────────────── */
.appt-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 30px;
}
.appt-head .section-heading { margin-bottom: 0; }
.appt-all {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(8,26,52,.5);
  color: var(--cyan-2); font-weight: 600; font-size: .9rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.appt-all:hover { border-color: var(--border-hi); background: rgba(10,34,68,.75); transform: translateY(-1px); }

.appt-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  align-items: stretch;
}
.appt-card {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), box-shadow .35s, border-color .35s;
}
.appt-card:hover { transform: translateY(-6px); border-color: var(--border-hi); box-shadow: var(--shadow), 0 0 40px rgba(100,200,255,.18); }

.appt-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3.6; background: #04101f;
}
.appt-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s;
}
.appt-card:hover .appt-media img { transform: scale(1.045); }
.appt-media::after { /* sfumatura verso il corpo della card */
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5,18,38,.92));
}

.appt-date {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; padding: 8px 10px 7px; border-radius: 16px;
  background: rgba(4,16,34,.72); border: 1px solid rgba(160,230,255,.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  color: #fff; line-height: 1; text-align: center;
}
.appt-date b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.appt-date b i { font-style: normal; font-size: .62em; font-weight: 700; opacity: .85; }
.appt-date span { margin-top: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-2); }
.appt-date em { margin-top: 3px; font-style: normal; font-size: .62rem; letter-spacing: .1em; color: var(--soft); }

.appt-badge {
  position: absolute; top: 16px; right: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #052036; background: linear-gradient(135deg, #a8eeff, #4fa8ff);
  box-shadow: 0 6px 18px rgba(79,168,255,.4);
}
.appt-badge--ecm  { background: linear-gradient(135deg, #b8ffe9, #3fd6b0); box-shadow: 0 6px 18px rgba(63,214,176,.35); }
.appt-badge--save { color: #fff; background: linear-gradient(135deg, #ff6a5c, #e0262a); box-shadow: 0 6px 18px rgba(224,38,42,.4); }

.appt-body { position: relative; padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.appt-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 0 0 8px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft);
}
.appt-countdown:empty { display: none; }
.appt-countdown {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  color: var(--cyan-2); background: rgba(123,228,255,.1); border: 1px solid rgba(123,228,255,.25);
  letter-spacing: .08em;
}
.appt-countdown::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}
.appt-card[data-state="soon"] .appt-countdown,
.appt-card[data-state="live"] .appt-countdown { color: #4dffd6; background: rgba(77,255,214,.1); border-color: rgba(77,255,214,.35); }
.appt-card[data-state="soon"] .appt-countdown::before,
.appt-card[data-state="live"] .appt-countdown::before { animation: dotPulse 1.6s ease-in-out infinite; }

.appt-body h3 { margin: 0 0 4px; font-size: 1.32rem; line-height: 1.15; letter-spacing: -.02em; }
.appt-sub { margin: 0 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.appt-facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.appt-facts li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.appt-facts svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.appt-facts strong { color: var(--text); font-weight: 600; }
.appt-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.appt-cta .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
.appt-note { margin: 12px 0 0; font-size: .78rem; color: var(--soft); line-height: 1.45; }

.appt-card--past { opacity: .55; filter: saturate(.5); }
.appt-card--past .appt-cta .btn-primary { display: none; }

.appt-foot {
  margin-top: 28px; padding: 18px 22px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px dashed rgba(123,228,255,.22); background: rgba(6,20,44,.35);
}
.appt-foot p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 70ch; }
.appt-foot .btn { flex-shrink: 0; }

/* Tablet e mobile: carosello orizzontale con aggancio */
@media (max-width: 1080px) {
  .appt-grid {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    --bleed: 24px;
    margin: 0 calc(var(--bleed) * -1); padding: 4px var(--bleed) 18px; scroll-padding: 0 var(--bleed);
    scrollbar-width: none;
  }
  .appt-grid::-webkit-scrollbar { display: none; }
  .appt-card { flex: 0 0 46%; scroll-snap-align: start; }
  .appt-card:hover { transform: none; }
}
@media (max-width: 760px) {
  .appt-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .appt-grid { --bleed: 16px; }
  .appt-card { flex-basis: 84%; }
  .appt-media { aspect-ratio: 4 / 3.3; }
  .appt-body { padding: 16px 18px 18px; }
  .appt-body h3 { font-size: 1.18rem; }
  .appt-foot { flex-direction: column; align-items: stretch; text-align: left; }
  .appt-foot .btn { width: 100%; justify-content: center; }
}
.appt-dots { display: none; }
@media (max-width: 1080px) {
  .appt-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .appt-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(123,228,255,.25); transition: background .25s, width .25s; }
  .appt-dots span.is-on { width: 20px; border-radius: 6px; background: var(--cyan); }
}

/* ── 4. PUBBLICAZIONE IN EVIDENZA ─────────────────────────────────── */
.articoli-grid .pub-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: center;
  padding: 28px;
  border-color: rgba(255, 120, 90, .35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(230, 60, 40, .16), transparent 55%),
    var(--glass);
}
.pub-featured__cover {
  display: block; border-radius: 10px; overflow: hidden;
  box-shadow: 0 22px 45px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(900px) rotateY(-9deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.pub-featured:hover .pub-featured__cover { transform: perspective(900px) rotateY(0) rotateX(0) translateY(-4px); }
.pub-featured__cover img { width: 100%; height: auto; display: block; }
.pub-featured__body h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; margin: 6px 0 8px; }
.pub-authors { margin: 0 0 10px; color: var(--cyan-2); font-size: .9rem; }
.pub-badge {
  display: inline-block; margin-right: 8px; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #ff7a5c, #e0262a); color: #fff;
  font-size: .62rem; letter-spacing: .12em; vertical-align: 1px;
}
.pub-featured__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.pub-doi { font-size: .82rem; color: var(--soft); text-decoration: underline; text-decoration-color: rgba(168,238,255,.3); text-underline-offset: 3px; }
.pub-doi:hover { color: var(--cyan-2); }
@media (max-width: 760px) {
  .articoli-grid .pub-featured { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .pub-featured__cover { width: 150px; margin: 0 auto; transform: none; }
  .pub-featured__cta .btn { width: 100%; justify-content: center; }
}

/* ── 5. PARTNER: griglia a quattro, loghi su targhe uniformi ──────── */
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.partner-grid .partner-feature,
.partner-grid .partner-cta-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; }
.partner-grid .partner-feature > p { flex: 1; margin: 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.partner-grid .partner-feature > h3 { margin: 4px 0 0; font-size: 1.08rem; line-height: 1.25; }
.partner-grid .partner-feature > img.partner-logo {
  width: 100%; max-width: 100%; height: 118px; min-height: 118px; max-height: 118px;
  object-fit: contain; object-position: center;
  margin: 0; padding: 16px; border-radius: 14px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.partner-grid .partner-feature > img.partner-logo--phy { background: #0b1b2e; padding: 22px 26px; }
.partner-grid .partner-feature .btn { margin-top: 4px; }
@media (max-width: 1080px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .partner-grid { grid-template-columns: 1fr; gap: 14px; }
  .partner-grid .partner-feature > img.partner-logo { height: 96px; min-height: 96px; max-height: 96px; }
  .partner-grid .partner-feature .btn { width: 100%; justify-content: center; }
}
.partner-grid .partner-feature > img.partner-logo[src*="simae"] { padding: 10px; }

/* ── 6. DICONO DI NOI: tre testate affiancate su desktop ──────────── */
@media (min-width: 1000px) {
  #dicono-di-noi .articoli-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 7. VIDEO DI SFONDO NELLA HERO ────────────────────────────────── */
.hero-video {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: #031024 url("assets/video/hero-poster.jpg?v=3") 50% 45% / cover no-repeat;
}
/* sfumatura verso il basso (al posto di una maschera, molto piu' leggera da disegnare) */
.hero-video::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1;
  background: linear-gradient(180deg, rgba(3,14,32,0) 0%, rgba(3,14,32,.7) 60%, rgba(3,14,32,.96) 100%);
}
.hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  opacity: 0; transition: opacity .8s ease;
  transform: translateZ(0); /* livello dedicato: niente ricalcoli inutili */
}
.hero-video video.is-on { opacity: 1; }
/* velo per la leggibilita' del testo */
.hero-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 48%, rgba(2,10,24,.32), transparent 100%),
    linear-gradient(180deg, rgba(2,10,24,.25) 0%, transparent 30%, transparent 70%, rgba(2,10,24,.4) 100%);
}
/* con il video attivo il pulviscolo statico della hero si attenua */
.hero.has-video .hero-bg { background: none; }
/* con il video in movimento gli strati animati e le sfocature "a vetro"
   della hero si fermano: il browser non deve ricalcolarli a ogni fotogramma */
.hero.has-video .particles,
.hero.has-video .light-scattering { display: none; }
.hero.has-video::before,
.hero.has-video::after { animation: none; }
.hero.has-video .hero-stats,
.hero.has-video .hero-eyebrow {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: rgba(5,18,42,.72);
}
html.hero-video-on .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(4,20,52,.97); }
@media (max-width: 768px) {
  /* sul telefono un video verticale ritagliato apposta: niente ingrandimenti */
  .hero-video { background-image: url("assets/video/hero-poster-mobile.jpg?v=3"); background-position: center; }
  .hero-video video { object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video video { transition: none; }
}

/* ── 8. PARTNER: quattro realtà + invito a collaborare su tutta la riga ── */
.partner-grid .partner-cta-card {
  grid-column: 1 / -1; height: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 22px;
}
.partner-grid .partner-cta-card .energy-icon { grid-row: span 2; margin: 0; }
.partner-grid .partner-cta-card h3 { margin: 0; }
.partner-grid .partner-cta-card p { margin: 0; grid-column: 2; }
.partner-grid .partner-cta-card .btn { grid-column: 3; grid-row: 1 / span 2; white-space: nowrap; }
.partner-grid .partner-feature > img.partner-logo[src*="edges"] { padding: 14px 18px; }
.partner-sublink { margin-top: 0; font-size: .88rem; }
@media (max-width: 640px) {
  .partner-grid .partner-cta-card { grid-template-columns: 1fr; }
  .partner-grid .partner-cta-card .energy-icon,
  .partner-grid .partner-cta-card p,
  .partner-grid .partner-cta-card .btn { grid-column: 1; grid-row: auto; }
  .partner-grid .partner-cta-card .btn { width: 100%; justify-content: center; }
}

/* ── 9. HERO: TRE PULSANTI DI PARI PESO, CON ENTRATA IN SEQUENZA ──────
   Stesso stile per tutti e tre; all'apertura risalgono come bolle uno
   dopo l'altro e si "accendono" con lo stesso riflesso, lo stesso bordo
   luminoso e lo stesso impulso sonar, che poi ripassa una volta da
   sinistra a destra. Solo al primo caricamento (.hero-intro). */
.hero .hero-cta-row .btn.hero-btn-main,
.hero .hero-cta-row .btn.hero-btn-rete,
.hero .hero-cta-row .btn.hero-btn-podcast {
  min-height: 52px; padding: 0 26px;
  font-size: .96rem; font-weight: 700; letter-spacing: .01em;
  color: #eaf8ff;
  background: linear-gradient(180deg, rgba(14,44,92,.78), rgba(6,24,56,.78));
  border: 1px solid rgba(123,228,255,.55);
  box-shadow: 0 8px 26px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.1), 0 0 18px rgba(79,168,255,.14);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hero .hero-cta-row .btn svg { color: #7be4ff; opacity: 1; transition: color .2s; }
.hero .hero-cta-row .btn.hero-btn-podcast::before { display: none; }
.hero .hero-cta-row .btn:hover {
  color: #021830; border-color: transparent;
  background: linear-gradient(135deg, #8eeaff 0%, #5aa8ff 100%);
  box-shadow: 0 14px 38px rgba(100,200,255,.42), inset 0 1px 0 rgba(255,255,255,.35);
}
.hero .hero-cta-row .btn:hover svg { color: #021830; }

/* riflesso di luce */
.hero .hero-cta-row .btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); opacity: 0; pointer-events: none;
}

.hero-intro .hero-lead { animation: heroFadeUp .9s cubic-bezier(.2,.7,.2,1) 1s backwards; }
.hero-intro .hero-stats { animation: heroFadeUp 1s cubic-bezier(.2,.7,.2,1) 1.9s backwards; }

.hero-intro .hero-cta-row .btn {
  animation-name: heroBtnRise, heroBtnLight, heroSonar;
  animation-duration: .95s, 1.4s, 2.2s;
  animation-timing-function: cubic-bezier(.18,.89,.32,1.18), ease-out, ease-out;
  animation-fill-mode: backwards, none, none;
}
.hero-intro .hero-cta-row .btn::after { animation: heroGlint 1.1s cubic-bezier(.4,0,.2,1) backwards; }
.hero-intro .hero-cta-row .btn:nth-child(1) { animation-delay: 1.25s, 2.1s, 2.15s; }
.hero-intro .hero-cta-row .btn:nth-child(2) { animation-delay: 1.4s, 2.25s, 2.3s; }
.hero-intro .hero-cta-row .btn:nth-child(3) { animation-delay: 1.55s, 2.4s, 2.45s; }
.hero-intro .hero-cta-row .btn:nth-child(1)::after { animation-delay: 2.1s; }
.hero-intro .hero-cta-row .btn:nth-child(2)::after { animation-delay: 2.25s; }
.hero-intro .hero-cta-row .btn:nth-child(3)::after { animation-delay: 2.4s; }

/* secondo passaggio, una sola volta: un'onda che attraversa i tre pulsanti */
.hero-intro .hero-cta-row { animation: none; }
.hero-intro .hero-cta-row .btn:nth-child(1) { --wave: 8.5s; }
.hero-intro .hero-cta-row .btn:nth-child(2) { --wave: 8.7s; }
.hero-intro .hero-cta-row .btn:nth-child(3) { --wave: 8.9s; }
.hero-intro .hero-cta-row .btn > span { position: relative; }
.hero-intro .hero-cta-row .btn > svg,
.hero-intro .hero-cta-row .btn > span { animation: heroWave 1.6s ease-out var(--wave, 9s) 1 both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes heroBtnRise {
  0%   { opacity: 0; transform: translateY(34px) scale(.86); filter: blur(10px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes heroBtnLight {
  0%   { border-color: rgba(123,228,255,.55); }
  30%  { border-color: rgba(200,245,255,1); }
  100% { border-color: rgba(123,228,255,.55); }
}
@keyframes heroSonar {
  0%   { box-shadow: 0 8px 26px rgba(0,0,0,.28), 0 0 0 0 rgba(123,228,255,.6); }
  70%  { box-shadow: 0 8px 26px rgba(0,0,0,.28), 0 0 0 16px rgba(123,228,255,0); }
  100% { box-shadow: 0 8px 26px rgba(0,0,0,.28), 0 0 0 0 rgba(123,228,255,0); }
}
@keyframes heroGlint {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}
@keyframes heroWave {
  0%, 100% { text-shadow: none; filter: none; }
  35%      { text-shadow: 0 0 12px rgba(168,238,255,.9); filter: brightness(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro .hero-lead, .hero-intro .hero-stats,
  .hero-intro .hero-cta-row .btn, .hero-intro .hero-cta-row .btn::after,
  .hero-intro .hero-cta-row .btn > svg, .hero-intro .hero-cta-row .btn > span { animation: none !important; }
}

/* ── 10. TRE PORTE D'INGRESSO SOTTO LA HERO (riquadri cliccabili) ─── */
.info-card--link { display: flex; flex-direction: column; color: inherit; text-decoration: none; cursor: pointer; }
.info-card--link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.info-card--link .info-card-body { display: flex; flex-direction: column; flex: 1; }
.info-card--link h2 { margin-bottom: 8px; }
.gate-count { color: #4dffd6; }
.info-card__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px;
  font-size: .9rem; font-weight: 700; color: var(--cyan-2);
}
.info-card__go span[aria-hidden] { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.info-card--link:hover .info-card__go span[aria-hidden] { transform: translateX(5px); }
.info-card--network .info-card__go { color: #4dffd6; }
.info-card--content .info-card__go { color: #c9bfff; }
#evidenza .split-3 { align-items: stretch; }
#evidenza .info-card--link { height: 100%; }
@media (max-width: 768px) {
  .info-card__go { padding-top: 8px; font-size: .84rem; }
}

/* ── 11. TRE PORTE: VISUAL ANIMATO IN TESTA A OGNI RIQUADRO ─────────── */
.gx { padding: 0 !important; overflow: hidden; --gx: #4dffd6; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; }
.gx.info-card--vision { --gx: #ff9a6b; }
.gx.info-card--content { --gx: #b9a6ff; }
.gx .info-card-body { padding: 22px 26px 26px; }
.gx-media {
  flex: none !important; position: relative; height: 150px; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid color-mix(in srgb, var(--gx) 22%, transparent);
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--gx) 16%, #04121f) 0%, #030b16 70%);
}
.gx-media::after { /* riflesso che attraversa al passaggio del mouse */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.gx:hover .gx-media::after { transform: translateX(120%); }

/* rete: mappa a punti con archi che pulsano */
.gx-media--net svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gx-grid { fill: rgba(77,255,214,.13); }
.gx-arcs path { fill: none; stroke: rgba(77,255,214,.55); stroke-width: 1.1; stroke-dasharray: 3 5; animation: gxFlow 2.6s linear infinite; }
.gx-nodes circle { fill: #4dffd6; transform-box: fill-box; transform-origin: center; animation: gxNode 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.gx-nodes .gx-hub { fill: #eafffb; animation-duration: 2s; }
.gx-chip {
  position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 2;
  font-size: .66rem; letter-spacing: .08em; color: rgba(214,255,245,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes gxFlow { to { stroke-dashoffset: -32; } }
@keyframes gxNode { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.7); opacity: 1; } }

/* marte: pianeta che sorge e copertina del capitolo */
.gx-planet {
  position: absolute; width: 260px; height: 260px; left: -60px; bottom: -190px; border-radius: 50%;
  background: radial-gradient(circle at 60% 25%, #ffb88a 0%, #d0583a 38%, #6d1f17 72%, #2a0b08 100%);
  box-shadow: 0 0 60px 8px rgba(255,120,80,.35);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.gx:hover .gx-planet { transform: translateY(-14px); }
.gx-stars { position: absolute; inset: 0; background-image:
  radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 18%, #fff, transparent),
  radial-gradient(1.2px 1.2px at 45% 60%, #ffe, transparent), radial-gradient(1px 1px at 85% 55%, #fff, transparent),
  radial-gradient(1px 1px at 60% 40%, #fff, transparent), radial-gradient(1px 1px at 32% 12%, #fff, transparent);
  opacity: .7; animation: gxTwinkle 4s ease-in-out infinite; }
.gx-cover {
  position: absolute; right: 26px; top: 18px; width: 92px; height: auto; border-radius: 4px; z-index: 2;
  box-shadow: 0 14px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(6deg); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.gx:hover .gx-cover { transform: rotate(0deg) translateY(-6px) scale(1.04); }
.gx-badge {
  position: absolute; left: 16px; top: 16px; z-index: 2; padding: 5px 10px; border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd9c4;
  background: rgba(255,120,80,.16); border: 1px solid rgba(255,150,110,.4);
}
@keyframes gxTwinkle { 50% { opacity: .35; } }

/* podcast: copertina + equalizzatore */
.gx-pod { position: absolute; left: 16px; top: 16px; width: 118px; height: 118px; border-radius: 14px; z-index: 2; box-shadow: 0 12px 30px rgba(0,0,0,.5); object-fit: cover; }
.gx-eq { position: absolute; left: 150px; right: 16px; bottom: 26px; height: 90px; display: flex; align-items: flex-end; gap: 4px; }
.gx-eq i {
  flex: 1; height: 100%; border-radius: 3px; transform-origin: bottom;
  background: linear-gradient(to top, #6f5cff, #b9a6ff 60%, #e8e2ff);
  transform: scaleY(.2); animation: gxEq 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--k) * -137ms); opacity: .85;
}
.gx-eq i:nth-child(3n) { animation-duration: .8s; }
@media (max-width: 768px) { .gx-eq i:nth-child(2n) { display: none; } } .gx-eq i:nth-child(4n+1) { animation-duration: 1.4s; }
.gx-play {
  position: absolute; left: 56px; top: 56px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,8,30,.6); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px); transition: transform .3s, background .3s;
}
.gx-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.gx:hover .gx-play { transform: scale(1.15); background: #7a63ff; }
@keyframes gxEq { 0% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }

/* inclinazione 3D seguendo il puntatore (variabili impostate dallo script) */
.gx.is-tilting { transition: transform .12s linear, box-shadow .3s, border-color .3s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) !important; }
@media (max-width: 768px) {
  .gx-media { height: 120px; }
  .gx-pod { width: 88px; height: 88px; }
  .gx-play { left: 41px; top: 41px; }
  .gx-eq { left: 118px; height: 70px; bottom: 20px; }
  .gx-cover { width: 74px; }
  .gx .info-card-body { padding: 18px 20px 22px; }
}

/* ── 12. AREE DI ATTIVITA': ESPLORATORE A SCHEDE ──────────────────────── */
.ax-wrap {
  display: grid; grid-template-columns: 250px 1fr; gap: 0; margin-top: 34px; overflow: hidden;
  border-radius: 26px; border: 1px solid rgba(123,228,255,.16);
  background: linear-gradient(140deg, rgba(8,28,50,.82), rgba(4,14,28,.9));
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.ax-tabs { display: flex; flex-direction: column; padding: 14px; gap: 6px; border-right: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.18); }
.ax-tab {
  position: relative; display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 18px 18px 20px; overflow: hidden;
  border: 0; border-radius: 16px; background: transparent; color: #9fb4c9; text-align: left; cursor: pointer;
  font: inherit; font-size: 1.12rem; font-weight: 700; transition: background .3s, color .3s;
}
.ax-tab b { font-size: .78rem; letter-spacing: .14em; color: color-mix(in srgb, var(--c) 70%, #8aa); font-weight: 700; }
.ax-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.ax-tab.is-on { color: #fff; background: color-mix(in srgb, var(--c) 12%, transparent); }
.ax-tab.is-on b { color: var(--c); }
.ax-tab:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }
.ax-bar { position: absolute; left: 18px; right: 18px; bottom: 9px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.ax-bar::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: left; }
.ax-tab.is-on .ax-bar::after { transform: scaleX(1); }
.ax-wrap.is-auto .ax-tab.is-on .ax-bar::after { animation: axProg var(--ax-dur, 8s) linear forwards; transform: scaleX(0); }
@keyframes axProg { to { transform: scaleX(1); } }

.ax-panels { position: relative; min-height: 420px; }
.ax-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: center; padding: 38px 40px; height: 100%; }
.ax-panel[hidden] { display: none; }
.ax-panel.is-on .ax-copy > * { animation: axIn .7s cubic-bezier(.2,.7,.2,1) both; }
.ax-panel.is-on .ax-copy > *:nth-child(2) { animation-delay: .06s; }
.ax-panel.is-on .ax-copy > *:nth-child(3) { animation-delay: .12s; }
.ax-panel.is-on .ax-copy > *:nth-child(4) { animation-delay: .18s; }
@keyframes axIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
.ax-stat { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; color: #cfe0ef; font-size: .98rem; line-height: 1.35; }
.ax-stat b {
  font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: .9; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, var(--c)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.ax-p { color: var(--muted, #b9c9dc); line-height: 1.6; margin: 0 0 18px; }
.ax-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.ax-list a {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 14px 11px 16px; border-radius: 12px; text-decoration: none; color: #eaf4ff;
  border-left: 2px solid color-mix(in srgb, var(--c) 60%, transparent); background: rgba(255,255,255,.03);
  transition: background .25s, transform .25s;
}
.ax-list a span { font-weight: 600; }
.ax-list a small { color: #8fa6bd; font-size: .8rem; }
.ax-list a:hover { background: color-mix(in srgb, var(--c) 10%, transparent); transform: translateX(4px); }
.ax-cta { display: inline-flex; gap: 8px; font-weight: 700; color: var(--c); text-decoration: none; }
.ax-cta span[aria-hidden] { transition: transform .25s; }
.ax-cta:hover span[aria-hidden] { transform: translateX(6px); }

.ax-visual { position: relative; height: 320px; display: grid; place-items: center; }
.ax-fan { position: relative; width: 190px; height: 270px; }
.ax-fan img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1);
  transform: rotate(calc((var(--n) - 1) * 9deg)) translateX(calc((var(--n) - 1) * 46px));
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.ax-panel.is-on .ax-fan img { animation: axFan .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--n) * .08s); }
.ax-visual:hover .ax-fan img { transform: rotate(calc((var(--n) - 1) * 14deg)) translateX(calc((var(--n) - 1) * 70px)) translateY(-6px); }
@keyframes axFan { from { transform: rotate(0) translateX(0) translateY(30px); opacity: 0; } }
.ax-visual--sonar span {
  position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 1.5px solid var(--c);
  animation: axSonar 3.6s cubic-bezier(.2,.6,.3,1) infinite; opacity: 0;
}
.ax-visual--sonar span:nth-child(2) { animation-delay: 1.2s; } .ax-visual--sonar span:nth-child(3) { animation-delay: 2.4s; }
.ax-visual--sonar em {
  font-style: normal; font-size: 5.5rem; font-weight: 800; letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 1.5px var(--c); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 50%, transparent));
}
@keyframes axSonar { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.ax-visual--pod img { width: 200px; height: 200px; border-radius: 20px; box-shadow: 0 24px 50px rgba(0,0,0,.55); position: relative; z-index: 1; }
.ax-visual--pod .gx-eq { left: 0; right: 0; bottom: 18px; height: 120px; opacity: .55; }

@media (max-width: 900px) {
  .ax-wrap { grid-template-columns: 1fr; }
  .ax-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); padding: 10px; }
  .ax-tabs::-webkit-scrollbar { display: none; }
  .ax-tab { flex: 0 0 auto; width: auto; padding: 12px 16px 16px; font-size: .98rem; gap: 8px; }
  .ax-bar { left: 14px; right: 14px; bottom: 7px; }
  .ax-panel { grid-template-columns: 1fr; padding: 26px 22px 30px; }
  .ax-visual { order: -1; height: 200px; }
  .ax-fan { width: 120px; height: 170px; }
  .ax-fan img { transform: rotate(calc((var(--n) - 1) * 9deg)) translateX(calc((var(--n) - 1) * 34px)); }
  .ax-visual--pod img { width: 150px; height: 150px; }
  .ax-visual--sonar em { font-size: 4rem; }
  .ax-panels { min-height: 0; }
}

/* ── 13. DIVING-BOYLE IN HOME ─────────────────────────────────────────── */
.db-sec { padding-top: 0; }
.db-spot {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; padding: 34px 44px;
  color: inherit; text-decoration: none; overflow: hidden; position: relative;
  border: 1px solid rgba(70,200,255,.22);
  background: radial-gradient(80% 140% at 0% 50%, rgba(30,140,220,.18), transparent 60%), linear-gradient(135deg, rgba(10,40,70,.55), rgba(4,16,30,.75));
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.db-spot:hover { transform: translateY(-4px); border-color: rgba(90,215,255,.5); box-shadow: 0 26px 60px -30px rgba(40,170,255,.6); }
.db-map svg { width: 100%; height: 320px; display: block; overflow: visible; }
.db-dots { fill: none; stroke: rgba(110,210,255,.5); stroke-width: 1.35; stroke-linecap: round; }
.db-dots--hi { stroke: #b5f7ff; stroke-width: 1.9; }
.db-body h2 { margin: 6px 0 12px; }
.db-body > p:not(.section-kicker) { color: var(--muted, #b9c9dc); line-height: 1.65; margin: 0 0 20px; }
.db-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 24px; }
.db-stats span { display: flex; flex-direction: column; }
.db-stats b { font-size: 2rem; font-weight: 800; line-height: 1; color: #7fe7ff; letter-spacing: -.02em; }
.db-stats em { font-style: normal; font-size: .82rem; color: #9fb4c9; margin-top: 4px; }
.db-btn { pointer-events: none; display: inline-flex; gap: 8px; }
.db-spot:hover .db-btn span[aria-hidden] { transform: translateX(5px); }
.db-btn span[aria-hidden] { transition: transform .25s; }
@media (max-width: 760px) {
  .db-spot { grid-template-columns: 1fr; padding: 26px 22px 30px; gap: 10px; text-align: left; }
  .db-map svg { height: 220px; }
  .db-dots { stroke-width: 1.5; stroke: rgba(110,210,255,.5); }
}

/* ── 14. RICERCA: RISALITA DALL'ABISSO A MARTE (scorrimento guidato) ─── */
/* overflow-x: hidden su html e body rende body un contenitore di scorrimento e blocca
   il posizionamento "sticky": clip taglia allo stesso modo senza questo effetto */
@supports (overflow: clip) { html, body { overflow-x: clip !important; } }
.rx2 { padding-bottom: 0; }
.rx2-track { position: relative; margin-top: 30px; }
.rx2-stage { position: relative; }
.rx2-bg { display: none; }
.rx2-inner { position: relative; z-index: 2; }
.rx2-gauge, .rx2-dots { display: none; }
/* senza animazioni: i tre fronti uno sotto l'altro */
.rx2-panels { display: grid; gap: 18px; padding-bottom: 60px; }
.rx2-panel {
  position: relative; padding: 30px 30px 28px; border-radius: 24px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 10%, rgba(6,20,36,.92)), rgba(4,12,24,.92));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.rx2-num { margin: 0; font-size: 4.6rem; font-weight: 800; line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.4px color-mix(in srgb, var(--c) 70%, transparent); position: absolute; right: 26px; top: 22px; opacity: .55; }
.rx2-k { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.rx2-panel h3 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; max-width: 14ch; }
.rx2-p { margin: 0 0 18px; color: #c6d6e6; line-height: 1.6; max-width: 46ch; }
.rx2-proof { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.rx2-proof li { position: relative; padding-left: 20px; color: #e3eef8; font-size: .92rem; line-height: 1.45; }
.rx2-proof li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid var(--c); box-shadow: 0 0 10px var(--c); }
.rx2-go {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700;
  color: #021018; background: var(--c); box-shadow: 0 10px 30px -10px var(--c);
  transition: transform .25s, box-shadow .25s;
}
.rx2-go:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--c); }
.rx2-go span[aria-hidden] { transition: transform .25s; }
.rx2-go:hover span[aria-hidden] { transform: translateX(5px); }

/* con le animazioni: palcoscenico fisso mentre si scorre */
.rx2.rx2-on .rx2-track { height: 330vh; margin-top: 10px; }
.rx2.rx2-on .rx2-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rx2.rx2-on .rx2-bg { display: block; position: absolute; inset: 0; z-index: 0; background: #02030a; }
.rx2-space { position: absolute; inset: 0; background: radial-gradient(60% 50% at 75% 30%, rgba(120,70,190,.28), transparent 70%), radial-gradient(40% 40% at 20% 70%, rgba(40,90,190,.22), transparent 70%), #02030a; }
.rx2-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #071a2e 0%, #10395a 45%, #2b6a8c 78%, #6aa5bf 100%); will-change: opacity; }
.rx2-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34vh; will-change: transform, opacity; }
.rx2-ridge .r1 { fill: #0b2236; }
.rx2-ridge .r2 { fill: #061525; }
.rx2-mars {
  position: absolute; right: -14vh; bottom: -60vh; width: 95vh; height: 95vh; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle at 35% 28%, #ffc29a 0%, #e0714a 22%, #a33a24 48%, #4a130d 78%, #1a0503 100%);
  box-shadow: 0 0 120px 30px rgba(255,110,60,.25), inset -40px -30px 80px rgba(0,0,0,.6);
  transform: translateY(80vh);
}
.rx2-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rx2-sea { position: absolute; left: 0; right: 0; top: 0; height: 320vh; will-change: transform; }
.rx2-wave { display: block; width: 100%; height: 50px; margin-bottom: -1px; }
.rx2-wave path { fill: #0a4d78; }
.rx2-water { height: calc(100% - 50px); background: linear-gradient(180deg, #0a4d78 0%, #06304f 14%, #041d33 40%, #020c18 100%); }
.rx2-sea::before { /* raggi di luce sott'acqua */
  content: ""; position: absolute; left: 0; right: 0; top: 48px; height: 90vh; pointer-events: none;
  background: repeating-linear-gradient(100deg, rgba(160,230,255,.07) 0 3%, transparent 3% 9%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}

.rx2.rx2-on .rx2-inner {
  height: 100%; display: grid; grid-template-columns: 210px minmax(0, 1fr) 46px; gap: 40px; align-items: center;
}
.rx2.rx2-on .rx2-gauge { display: block; align-self: stretch; position: relative; padding: 12vh 0; }
.rx2-env { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(220,240,255,.7); }
.rx2-val { margin: 6px 0 2px; font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.rx2-unit { margin: 0; font-size: 1.05rem; font-weight: 600; color: #8fe9ff; font-variant-numeric: tabular-nums; }
.rx2-rail { position: absolute; left: 4px; top: calc(12vh + 130px); bottom: 12vh; width: 2px; background: linear-gradient(180deg, rgba(255,170,120,.6), rgba(255,255,255,.35) 50%, rgba(92,214,255,.6)); }
.rx2-rail span { position: absolute; left: 16px; top: var(--y); transform: translateY(-50%); font-size: .7rem; letter-spacing: .08em; color: rgba(225,240,255,.55); white-space: nowrap; }
.rx2-rail span::before { content: ""; position: absolute; left: -16px; top: 50%; width: 8px; height: 1px; background: rgba(255,255,255,.5); }
.rx2-mark { position: absolute; left: -6px; top: 100%; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 0 20px #8fe9ff; transform: translateY(-50%); will-change: top; }

.rx2.rx2-on .rx2-panels { display: grid; padding: 0; }
.rx2.rx2-on .rx2-panel {
  grid-area: 1 / 1; max-width: 640px; opacity: 0; transform: translateY(40px) scale(.98); filter: blur(6px); pointer-events: none;
  transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1), filter .6s;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 9%, rgba(4,14,28,.62)), rgba(3,10,20,.55));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.rx2.rx2-on .rx2-panel.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.rx2.rx2-on .rx2-panel.is-on .rx2-proof li { animation: rx2Li .6s cubic-bezier(.2,.7,.2,1) both; }
.rx2.rx2-on .rx2-panel.is-on .rx2-proof li:nth-child(2) { animation-delay: .1s; }
.rx2.rx2-on .rx2-panel.is-on .rx2-proof li:nth-child(3) { animation-delay: .2s; }
@keyframes rx2Li { from { opacity: 0; transform: translateX(-12px); } }
.rx2.rx2-on .rx2-dots { display: flex; flex-direction: column; gap: 12px; }
.rx2-dots button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.7); font: 700 .78rem/1 inherit; cursor: pointer; transition: all .3s;
}
.rx2-dots button.is-on { background: #fff; color: #031020; border-color: #fff; box-shadow: 0 0 24px rgba(255,255,255,.4); }
.rx2-dots button:focus-visible { outline: 2px solid #8fe9ff; outline-offset: 3px; }

@media (max-width: 860px) {
  .rx2.rx2-on .rx2-track { height: 300vh; }
  .rx2.rx2-on .rx2-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 14px; align-items: start; padding-top: 76px; padding-bottom: 22px; }
  .rx2.rx2-on .rx2-gauge { padding: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .rx2-env { width: 100%; }
  .rx2-val { font-size: 2.1rem; margin: 0; }
  .rx2-rail { display: none; }
  .rx2.rx2-on .rx2-panels { align-self: center; }
  .rx2.rx2-on .rx2-panel { padding: 22px 20px 22px; }
  .rx2-num { font-size: 3.2rem; right: 18px; top: 16px; }
  .rx2-k { padding-right: 84px; }
  .rx2-panel h3 { font-size: 1.65rem; max-width: 12ch; }
  .rx2-p { font-size: .95rem; margin-bottom: 14px; }
  .rx2-proof li { font-size: .86rem; }
  .rx2.rx2-on .rx2-dots { flex-direction: row; justify-content: center; }
  .rx2-dots button { width: 40px; height: 40px; }
  .rx2-mars { width: 70vh; height: 70vh; right: -30vh; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .rx2-proof li:nth-child(3) { display: none; }
}

/* ── 15. LEGGEREZZA: stesse animazioni, su proprieta' che non costringono a ridisegnare ── */
.btn-partner-cta::before { left: -28%; animation: partnerSweepT 3.2s linear infinite; }
@keyframes partnerSweepT { 0% { transform: translateX(0) skewX(-22deg); } 100% { transform: translateX(570%) skewX(-22deg); } }
.energy-icon::after { box-shadow: 0 0 16px rgba(123,228,255,.18), inset 0 0 12px rgba(123,228,255,.06); animation: iconGlowO 3.4s ease-in-out infinite; }
@keyframes iconGlowO { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ── 16. HERO: QUADRO DI COMANDO AL POSTO DI PULSANTI E CONTATORI ───────
   Titolo e frase al centro, il video libero di respirare; in basso cinque
   destinazioni operative, come i tasti di una console. La prima e' viva:
   mostra il prossimo appuntamento con il conto alla rovescia. */
.hero { flex-direction: column; align-items: stretch; justify-content: center; }
.hero > .container:not(.hx-wrap) { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: 100%; }
.hero .hero-lead { margin-bottom: 0; }
.hero-scroll { display: none !important; }
.hx-wrap { position: relative; z-index: 3; width: 100%; margin-top: 40px; }
/* su schermo largo hero e console stanno nella prima schermata, sotto menu e nastro */
@media (min-width: 901px) {
  .hero { min-height: calc(100svh - 112px); padding: 40px 0 28px; }
  .hx-wrap { margin-top: 28px; }
}
.hx {
  max-width: 1260px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 20px; overflow: hidden;
  background: rgba(4, 16, 36, .38);
  border: 1px solid rgba(123, 228, 255, .16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hx { -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.25); background: rgba(4, 16, 36, .24); }
}
.hx-cell {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px;
  padding: 18px 20px 20px; text-decoration: none; color: #E8EEF5;
  border-left: 1px solid rgba(123, 228, 255, .12);
  transition: background .25s ease;
}
.hx-cell:first-child { border-left: 0; }
.hx-cell::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #39e6c3, #7be4ff);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.hx-cell:hover, .hx-cell:focus-visible { background: rgba(123, 228, 255, .08); outline: none; }
.hx-cell:hover::before, .hx-cell:focus-visible::before { transform: none; }
.hx-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font: 600 11px/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .14em; color: rgba(185, 198, 214, .7); }
.hx-live { width: 7px; height: 7px; border-radius: 50%; background: #4dffd6; box-shadow: 0 0 0 0 rgba(77, 255, 214, .6); animation: hxPulse 2.2s ease-out infinite; }
@keyframes hxPulse { 0% { box-shadow: 0 0 0 0 rgba(77, 255, 214, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(77, 255, 214, 0); } }
.hx-ico { grid-row: 2 / 4; align-self: center; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: #7be4ff; background: transparent; border: 1px solid rgba(123, 228, 255, .24); transition: color .25s, background .25s, border-color .25s; }
.hx-cell:hover .hx-ico { color: #04121f; background: #7be4ff; border-color: #7be4ff; }
.hx-txt { display: contents; }
.hx-label { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.hx-sub { font-size: 13px; line-height: 1.35; color: #a9b8ca; }
.hx-go { position: absolute; right: 16px; top: 16px; color: #7be4ff; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.hx-cell:hover .hx-go, .hx-cell:focus-visible .hx-go { opacity: 1; transform: none; }
/* la cella viva ha l'accento verde acqua */
.hx-cell--live .hx-ico { color: #4dffd6; background: rgba(77, 255, 214, .08); border-color: rgba(77, 255, 214, .22); }
.hx-cell--live .hx-top { color: #4dffd6; }
.hx-cell--live .hx-sub b { color: #E8EEF5; font-weight: 600; }
/* entrata al primo caricamento: la console arriva dopo titolo e frase */
.hero-intro .hx-cell { animation: hxIn .9s cubic-bezier(.16, 1, .3, 1) backwards; }
.hero-intro .hx-cell:nth-child(1) { animation-delay: 1.25s; }
.hero-intro .hx-cell:nth-child(2) { animation-delay: 1.33s; }
.hero-intro .hx-cell:nth-child(3) { animation-delay: 1.41s; }
.hero-intro .hx-cell:nth-child(4) { animation-delay: 1.49s; }
.hero-intro .hx-cell:nth-child(5) { animation-delay: 1.57s; }
.hero-intro .hx { animation: hxPanel 1s ease 1.15s backwards; }
@keyframes hxIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes hxPanel { from { opacity: 0; } }
@media (max-width: 1100px) {
  .hx-cell { padding: 16px 14px 18px; column-gap: 10px; }
  .hx-ico { width: 36px; height: 36px; }
  .hx-label { font-size: 15px; }
}
/* Telefono e tablet: la console diventa compatta, per lasciare vedere il video.
   In alto una barra sottile con il prossimo evento, sotto quattro tasti come un dock. */
@media (max-width: 900px) {
  /* tutta la hero, console compresa, sta nella prima schermata del telefono */
  .hero { min-height: calc(100svh - 104px); padding: 28px 0 18px; }
  .hx-wrap { margin-top: 24px; }
  .hx { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 18px;
    background: rgba(4, 16, 36, .22); border-color: rgba(123, 228, 255, .16); box-shadow: none; }
  .hx-top, .hx-go { display: none; }
  .hx-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 12px;
    border-left: 1px solid rgba(123, 228, 255, .1); text-align: center; }
  .hx-cell:nth-child(2) { border-left: 0; }
  .hx-ico { width: 38px; height: 38px; border-radius: 11px; background: rgba(123, 228, 255, .06); }
  .hx-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
  .hx-cell:not(.hx-cell--live) .hx-sub { display: none; }
  /* la barra del prossimo evento */
  .hx-cell--live { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; text-align: left;
    padding: 12px 14px; border-left: 0; border-bottom: 1px solid rgba(123, 228, 255, .12); }
  .hx-cell--live .hx-ico { width: 34px; height: 34px; flex: none; }
  .hx-cell--live .hx-label { font: 600 10.5px/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: #4dffd6; order: 0; }
  .hx-cell--live .hx-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
  .hx-cell--live .hx-sub { font-size: 14px; line-height: 1.3; color: #c9d4e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hx-cell--live .hx-sub br { display: none; }
  .hx-cell--live .hx-sub b::after { content: " · "; color: #7f93aa; font-weight: 400; }
  .hx-cell--live::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid #7be4ff; border-right: 2px solid #7be4ff; transform: rotate(45deg); margin-right: 4px; }
  .hx-cell--live .hx-live { display: none; }
}
@media (max-width: 360px) {
  .hx-label { font-size: 11.5px; }
  .hx-ico { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-live, .hero-intro .hx-cell, .hero-intro .hx { animation: none !important; }
}
