/* home.css - Stili della home, portati dal prototipo demo-templates. */
/* ==========================================================================
   Explora Edu - Home (prototipo fedele alla v3 approvata)
   Stili specifici della homepage. Si carica DOPO explora-demo.css.
   Fix di contrasto AA rispetto al mockup v3 baked-in (intro, stelle, CTA).
   ========================================================================== */

.btn-white { background: var(--white); color: var(--explora-black); }
.btn-white:hover { background: var(--gray-100); color: var(--explora-black); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.label-white { color: #fff; }
.label-white::before { background: #fff; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-e), var(--color-p), var(--color-l), var(--color-o), var(--color-teal), var(--color-r), var(--color-a)); }

/* ===== Header variante "hero" (trasparente sopra la hero, bianco allo scroll) ===== */
/* rgba(0,0,0,.65) invece di transparent (WCAG 1.4.3, tecnica G18): un
   validatore che risale gli antenati cercando un background-color, se trova
   solo transparent, assume bianco - testo bianco su "bianco presunto" non e'
   mai calcolabile come conforme, quale che sia la foto vera dietro. Con un
   background-color reale sull'header il contrasto e' calcolabile SEMPRE,
   anche appiattendo l'alpha su bianco (il caso peggiore, foto bianchissima):
   nero 65% su bianco = grigio rgb(89,89,89), bianco sopra = 6.98:1 (>= 4.5:1
   richiesto per il testo normale del menu). Sulla foto vera e' ancora piu'
   scuro, mai un problema. */
.site-header--hero { position: fixed; top: 3px; left: 0; right: 0; background: rgba(0,0,0,.65); box-shadow: none; transition: background 0.35s, box-shadow 0.35s; }
.site-header--hero.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 1px 0 var(--gray-200); }
.site-header--hero:not(.scrolled) .main-nav a { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.site-header--hero:not(.scrolled) .header-login { color: #fff; border-color: rgba(255,255,255,0.5); }
.site-header--hero:not(.scrolled) .header-login:hover { border-color: #fff; color: #fff; }
.site-header--hero:not(.scrolled) .menu-toggle span { background: #fff; }

/* ===== Logo hero: animato monocromo bianco sopra la foto, colorato allo scroll ===== */
.logo--hero { align-items: center; }
.logo--hero .logo-anim { display: inline-flex; align-items: center; }
.logo--hero .logo-anim img { height: 44px; width: auto; }
.logo--hero .logo-anim-motion { display: block; }
.logo--hero .logo-anim-still { display: none; }   /* fallback statico (reduce-motion) */
.logo--hero .logo-solid { display: none; }         /* nascosto finche' non si scrolla */
.site-header--hero.scrolled .logo--hero .logo-anim { display: none; }
.site-header--hero.scrolled .logo--hero .logo-solid { display: inline-flex; align-items: center; gap: 0.75rem; }
@media (prefers-reduced-motion: reduce) {
  .logo--hero .logo-anim-motion { display: none; }
  .logo--hero .logo-anim-still { display: block; }
}
@media (max-width: 640px) { .logo--hero .logo-anim img { height: 34px; } }

/* ===== Titoli sulle foto: leggibilita' editoriale senza riquadro (appunti #1 e #3) =====
   Niente box colorato: testo bianco + ombra morbida, scrim locale mirato dietro il testo,
   e una sottile riga-accento brand come elemento guida sotto il titolo. */
.hl {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.38), 0 6px 28px rgba(0,0,0,0.5);
}
/* Riga-accento sotto i titoli sulle foto (elemento guida alla lettura) */
.hero-title::after,
.fullwidth-photo-content h2::after {
  content: ''; display: block; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--explora-orange), var(--color-p));
}
.hero-title::after { width: 0; margin-top: 1.35rem; animation: ruleGrow 0.9s 0.35s cubic-bezier(0.22,1,0.36,1) forwards; }
.fullwidth-photo-content h2::after { width: 76px; margin: 1.15rem auto 0; }
@keyframes ruleGrow { to { width: 88px; } }
@media (prefers-reduced-motion: reduce) { .hero-title::after { width: 88px; animation: none; } }

/* Body con header hero non spinge il contenuto: la hero parte sotto */
body.has-hero { }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--explora-black); }
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .hero-bg img { animation: heroZoom 25s ease-in-out infinite alternate; } }
@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
.hero-bg::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 42%, rgba(0,0,0,0.4) 72%, rgba(0,0,0,0.5) 100%); }
.hero-deco { position: absolute; z-index: 2; pointer-events: none; }
.hero-deco-1 { width: 180px; height: 180px; top: 12%; right: 8%; background: var(--color-l); border-radius: 50%; opacity: 0.15; }
.hero-deco-2 { width: 100px; height: 100px; bottom: 25%; right: 15%; background: var(--color-p); opacity: 0.12; border-radius: 4px; transform: rotate(20deg); }
.hero-deco-3 { width: 70px; height: 70px; top: 35%; left: 5%; background: var(--color-o); opacity: 0.12; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-deco-1 { animation: float 7s ease-in-out infinite; }
  .hero-deco-2 { animation: float 9s ease-in-out 1s infinite reverse; }
  .hero-deco-3 { animation: float 8s ease-in-out 0.5s infinite; }
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(4deg); } }
.hero-content { position: relative; z-index: 4; width: 100%; padding-bottom: 4rem; padding-top: 6rem; }
/* Scrim locale, morbido e senza bordi, dietro il testo: leggibilita' senza riquadro visibile */
.hero-content::before { content: ''; position: absolute; z-index: -1; inset: 0 30% -1rem -4rem; pointer-events: none;
  background: radial-gradient(115% 85% at 22% 42%, rgba(0,0,0,0.6), rgba(0,0,0,0) 62%); }
@media (max-width: 767px) { .hero-content::before { inset: 0 -2rem -1rem -2rem; background: radial-gradient(130% 70% at 40% 40%, rgba(0,0,0,0.55), rgba(0,0,0,0) 68%); } }
.hero-title { font-size: clamp(2.5rem, 6.5vw, 4.8rem); line-height: 1.08; letter-spacing: -0.025em; color: #fff; max-width: 17ch; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 400; line-height: 1.6; color: #fff; margin-bottom: 2rem; max-width: none; text-shadow: 0 1px 12px rgba(0,0,0,0.55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
/* text-shadow come .hero-subtitle qui sopra (WCAG 1.4.3): stessa zona della
   foto hero, stesso rischio "porzione chiara sotto al testo bianco" - lo
   scrim di .hero-content::before copre gia' quest'area (verificato: >=16:1
   anche nel punto piu' chiaro campionato), l'ombra e' un rinforzo a costo
   zero per restare sicuri anche se la foto cambia in futuro. */
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; font-size: 1.05rem; color: #fff; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.2); text-shadow: 0 1px 12px rgba(0,0,0,0.55); }
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hero-trust strong { color: #fff; font-weight: 700; font-size: 1.15rem; }

/* ===== MARQUEE ===== */
.marquee { background: var(--explora-black); color: #fff; padding: 0.85rem 0; overflow: hidden; display: flex; align-items: center; gap: 0.85rem; }
.marquee-track { display: flex; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 35s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
  /* Pausa "sticky" impostata dal bottone (site.js), non solo al passaggio del
     mouse/focus: WCAG 2.2.2, chi si allontana da tastiera deve poterla
     lasciare in pausa, non solo sospenderla per un istante. */
  .marquee.is-paused .marquee-track { animation-play-state: paused !important; }
}
.marquee-item { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 2rem; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em; white-space: nowrap; }
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Bottone pausa/riproduci: cerchio piccolo, sempre fermo a sinistra (flex:none,
   non e' dentro .marquee-track quindi non scorre con lui). */
.marquee-toggle {
  flex: none; width: 26px; height: 26px; margin-left: var(--gutter);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 50%; color: #fff; cursor: pointer; padding: 0;
  font-size: 0.6rem; line-height: 1;
}
.marquee-toggle:hover { border-color: #fff; }
/* Icona "play" (triangolo) quando in pausa: stessa tecnica del resto del
   tema (currentColor + glifo unicode), niente immagini/SVG in piu'. */
.marquee.is-paused .marquee-toggle-icon { font-size: 0.7rem; }

/* ===== INTRO (arancio) - fix AA: bg piu scuro + testo bianco pieno ===== */
.intro { background: var(--explora-orange-dark); color: #fff; position: relative; overflow: hidden; }
.intro::after { content: ''; position: absolute; top: -15%; right: -10%; width: 400px; height: 400px; border-radius: 50%; border: 50px solid rgba(255,255,255,0.1); }
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 768px) { .intro-grid { grid-template-columns: 1fr 1fr; } }
.intro-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.intro-text .label { color: #fff; }
.intro-text .label::before { background: #fff; }
.intro-text h2 { margin-bottom: 1rem; color: #fff; }
.intro-text p { color: #fff; margin-bottom: 1rem; }
.intro-stats { display: flex; gap: 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.3); }
.intro .stat-number { font-size: 2.2rem; font-weight: 700; line-height: 1; color: #fff; }
.intro .stat-label { font-size: 0.85rem; color: #fff; margin-top: 0.25rem; }

/* ===== OFFERTA / format card (testo bianco su gradiente scuro) ===== */
.offerta-header { margin-bottom: 3rem; }
.offerta-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.5rem; }
.offerta-intro { max-width: none; }
/* white-space:nowrap rimosso: a zoom testo 200% (WCAG 1.4.4) il titolo puo'
   eccedere la larghezza disponibile anche sopra i 1024px - il testo torna
   libero di andare a capo su piu' righe a qualunque larghezza. */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.format-card { display: block; border-radius: var(--radius-lg); overflow: hidden; position: relative; color: inherit; text-decoration: none; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s; }
.format-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.format-card-img { height: 320px; overflow: hidden; position: relative; background: var(--gray-200); }
.format-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.format-card:hover .format-card-img img { transform: scale(1.06); }
.format-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.2) 100%); }
/* background-color reale (non solo il gradiente di .format-card-img::after,
   che e' su un elemento FRATELLO - un validatore che risale gli ANTENATI di
   h3/p/span qui dentro non lo vede mai, quale che sia la foto). Stesso
   nero 65% dell'header hero: 6.98:1 anche nel caso peggiore (vedi commento
   li' sopra). Il gradiente del fratello resta, si somma solo un po' di scuro
   in piu' vicino al bordo inferiore. */
.format-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.75rem; z-index: 2; color: #fff; background: rgba(0,0,0,.65); }
.format-card-content h3 { font-size: 1.4rem; margin-bottom: 0.4rem; color: #fff; }
.format-card-content p { font-size: 0.9rem; color: #fff; margin-bottom: 1rem; }
/* Pillola bianco-trasparente (0.2 alpha) sostituita con arancio scuro pieno
   (WCAG 1.4.3): il testo bianco dentro alla pillola ha come antenato PIU'
   VICINO la pillola stessa, non lo scrim nero di .format-card-content - un
   validatore la trova per prima e flatten-a-su-bianco di un bianco
   trasparente resta bianco (1:1 con testo bianco), a prescindere da quanto
   sia scuro tutto quello che sta dietro. Arancio scuro pieno = calcolabile
   E conforme da solo (4.83:1, stessa coppia gia' verificata altrove). */
.format-card-link { font-size: 0.9rem; font-weight: 700; text-decoration: none; color: #fff; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem; background: var(--explora-orange-dark); border-radius: var(--radius); }
/* Nero e non l'arancio chiaro brand (#e95e30/bianco = 3.44:1, non basta per
   testo normale): stesso principio "solo coppie testo/sfondo gia' verificate
   AA" del resto del sito. */
.format-card-link:hover, .format-card:hover .format-card-link { background: var(--explora-black); color: #fff; }
.format-card-link .arrow { transition: transform 0.25s; }
.format-card-link:hover .arrow, .format-card:hover .format-card-link .arrow { transform: translateX(4px); }

/* ===== Fascia foto full-width ===== */
.fullwidth-photo { position: relative; min-height: 340px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fullwidth-photo .fw-bg { position: absolute; inset: 0; }
.fullwidth-photo .fw-bg img { width: 100%; height: 100%; object-fit: cover; }
.fullwidth-photo .fw-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(17,32,98,0.7)); }
/* background-color reale, stesso motivo/stesso valore di .format-card-content
   qui sopra: il gradiente e' su .fw-bg::after (elemento fratello, invisibile
   a chi risale gli antenati del testo). Riquadro arrotondato invece di banda
   a tutta larghezza: la sezione ha gia' padding verticale suo (min-height
   340px, contenuto centrato), un riquadro e' piu' coerente con le altre
   card del design system che con una fascia piena. */
.fullwidth-photo-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 3rem 2rem; background: rgba(0,0,0,.65); border-radius: var(--radius-lg); }
.fullwidth-photo-content h2 { font-size: clamp(1.75rem, 4vw, 3rem); max-width: 20ch; line-height: 1.15; color: #fff; margin: 0 auto; }
.fullwidth-photo-content p { margin: 1.25rem auto 1.5rem; color: #fff; max-width: none; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }

/* ===== Corsi in evidenza (riusa .corso-card) ===== */
.corsi-home { background: var(--off-white); }
.corsi-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.5rem; }
.corsi-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
@media (max-width: 767px) { .corsi-header { flex-direction: column; align-items: flex-start; } }

/* ===== Accreditamento ===== */
.accr-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .accr-grid { grid-template-columns: repeat(3, 1fr); } }
.accr-card { padding: 2rem 1.5rem; border-radius: var(--radius-lg); background: var(--off-white); border: 1px solid var(--gray-200); transition: transform 0.3s, box-shadow 0.3s; }
.accr-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.accr-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 0 1rem; display: flex; align-items: center; justify-content: center; }
.accr-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.accr-card p { font-size: 0.85rem; color: var(--gray-600); }

/* ===== Fascia blu ===== */
.fascia-blu { background: var(--color-r); color: #fff; padding: 5.5rem 0; position: relative; overflow: hidden; }
.fascia-blu::before { content: ''; position: absolute; top: -30%; right: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.fascia-blu-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.fascia-blu h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); max-width: 34ch; color: #fff; }
.fascia-blu p { color: rgba(255,255,255,0.9); max-width: none; }
.fascia-blu-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
/* white-space:nowrap rimosso: a zoom testo 200% (WCAG 1.4.4) il titolo puo'
   eccedere la larghezza disponibile anche sopra i 640px - il testo torna
   libero di andare a capo su piu' righe a qualunque larghezza. */
@media (max-width: 767px) {
  .fascia-blu-inner { flex-direction: column; text-align: center; }
  /* text-align centra il TESTO dentro il proprio riquadro, ma h2 ha un
     max-width (20ch, per l'effetto titolo) e nessun margine automatico:
     il riquadro stesso restava appoggiato a sinistra nel contenitore a piena
     larghezza, quindi il testo appariva centrato solo "su se stesso". */
  .fascia-blu h2 { margin-inline: auto; }
  .fascia-blu-actions { justify-content: center; }
}

/* ===== Testimonial (stelle: dorato scuro per AA) ===== */
.testimonial { background: var(--off-white); overflow: hidden; }
.testimonial-header { margin-bottom: 2.5rem; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
.testimonial-card { padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: var(--white); }
.testimonial-stars { color: #8a6a00; letter-spacing: 0.13em; font-size: 0.95rem; margin-bottom: 0.75rem; }
.testimonial-card blockquote { font-size: 0.98rem; line-height: 1.6; color: var(--gray-700); font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; color: #fff; flex-shrink: 0; }
.testimonial-name { font-weight: 600; font-size: 0.88rem; }
.testimonial-role { font-size: 0.8rem; color: var(--gray-600); }

/* ===== CTA (giallo) - fix AA: testo scuro pieno ===== */
.cta-section { background: var(--color-l); color: var(--explora-black); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; bottom: -20%; left: -10%; width: 300px; height: 300px; border-radius: 50%; background: rgba(0,0,0,0.05); }
.cta-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 768px) { .cta-grid { grid-template-columns: 3fr 2fr; } }
.cta-section h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.cta-section .label { color: #6b5400; }
.cta-section .label::before { background: #6b5400; }
.cta-section p { color: var(--gray-800); margin-bottom: 1.5rem; }
.cta-section .btn-outline,
.cta-section .btn-outline:visited { color: var(--explora-black); }
.cta-section .btn-outline:hover,
.cta-section .btn-outline:focus { color: #fff; background: var(--explora-black); border-color: var(--explora-black); }
.cta-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Nota: .menu-toggle e .main-nav.open (chrome header condiviso) sono in base.css,
   cosi' funzionano su tutte le pagine, non solo in home. */

/* ===== Launcher del prototipo (fisso, discreto) ===== */
.proto-launcher { position: fixed; right: 1rem; bottom: 1rem; z-index: 300; }
.proto-toggle {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  background: var(--explora-black); color: #fff; border: none; border-radius: 100px;
  padding: 0.6rem 1.1rem; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.25); min-height: 40px;
}
.proto-toggle::before { content: '\25C9'; margin-right: 0.4rem; color: var(--color-l); }
.proto-toggle:hover { background: var(--gray-800); }
.proto-panel {
  position: absolute; right: 0; bottom: calc(100% + 0.6rem); width: min(300px, 80vw);
  max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(0,0,0,0.2); padding: 1rem 1.1rem;
}
.proto-title { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-600); margin-bottom: 0.5rem; }
.proto-group { font-size: 0.72rem; font-weight: 700; color: var(--gray-700); margin: 0.85rem 0 0.25rem; }
.proto-panel ul { display: flex; flex-direction: column; gap: 0.1rem; }
.proto-panel a { display: block; padding: 0.4rem 0.6rem; border-radius: var(--radius); text-decoration: none; color: var(--gray-800); font-size: 0.88rem; }
.proto-panel a:hover { background: var(--gray-100); color: var(--explora-black); }
.proto-panel a[aria-current="page"] { background: var(--explora-orange-dark); color: #fff; }

/* ===== Reveal on scroll =====
   Niente "opacity: 0" di partenza: vedi il commento gemello in base.css
   (stessa regola, duplicata per riuso fuori home) - il testo deve restare
   a contrasto pieno anche prima che JS aggiunga ".visible" allo scroll. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(26px); transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
  .reveal.visible { transform: translateY(0); }
  .reveal-d1 { transition-delay: 0.1s; }
  .reveal-d2 { transition-delay: 0.2s; }
  .reveal-d3 { transition-delay: 0.3s; }
}

/* ============================================================
   Fix blocchi core della home (Fase B): overlay cover, immagini uniformi
   ============================================================ */

/* Cover: velo scuro garantito sopra la foto (leggibilita' testo, indipendente
   dal fatto che il CSS core del blocco sia caricato o meno). */
.wp-block-cover { position: relative; isolation: isolate; overflow: hidden; }
.wp-block-cover__image-background {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.wp-block-cover__background { position: absolute; inset: 0; z-index: 1; }
.wp-block-cover .has-background-dim { opacity: 0.6; }
.wp-block-cover .wp-block-cover__inner-container { position: relative; z-index: 2; }
/* Ombra di sicurezza sul testo bianco delle cover */
.wp-block-cover :is(h1, h2, p) {
  text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 6px 24px rgba(0,0,0,0.45);
}

/* Immagini uniformi nelle colonne (card) della home: stessa proporzione,
   crop centrato, cosi' le card si allineano. */
.home .wp-block-columns .wp-block-column > .wp-block-image img {
  width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; border-radius: 12px; display: block;
}

/* Titolo pagina ridondante di Kadence sopra la hero: nascosto solo in home. */
.home .entry-hero-container,
.home .entry-hero,
.home .page-title,
.home header.entry-header { display: none !important; }
