/* Presentazione a slide dell'hero — Blue Scorpion */
.hero-slide > .eyebrow { margin-bottom: 14px; }
.hero-slide h1 { animation: hero-slide-in .5s ease both; }
.hero-slide p { animation: hero-slide-in .5s .08s ease both; }
.hero-slide .hero-actions { animation: hero-slide-in .5s .16s ease both; }
@keyframes hero-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.reduced-motion .hero-slide h1,
.reduced-motion .hero-slide p,
.reduced-motion .hero-slide .hero-actions,
.reduced-motion .hero-visual-item { animation: none !important; transition: none !important; }

.hero-slider-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ffffff3d;
    background: #ffffff14;
    color: #d4ecff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, background .15s ease;
}
.hero-arrow:hover:not(:disabled) { border-color: #8ae6ff; background: #ffffff24; }
.hero-arrow:focus-visible { outline: 3px solid #8ae6ff; outline-offset: 2px; }
.hero-arrow:disabled { opacity: .35; cursor: default; }

.hero-dots { display: flex; gap: 10px; }
.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #8ae6ff;
    background: transparent;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.hero-dot:hover { background: #8ae6ff66; }
.hero-dot:focus-visible { outline: 3px solid #8ae6ff; outline-offset: 2px; }
.hero-dot.is-active { background: #8ae6ff; transform: scale(1.15); }

/* Pannello visivo per le slide con illustrazione (su fondo scuro) */
.hero-visuals { position: absolute; inset: 0; }
.hero-visual-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* L'attributo hidden va rispettato: senza questa regola display:flex lo annulla
   e tutte le grafiche restano impilate (si vedrebbe sempre l'ultima). */
.hero-visual-item[hidden] { display: none; }
.hero-visual-item.is-active { animation: hero-visual-in .45s ease both; }
@keyframes hero-visual-in {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}
.hero-visual-card {
    width: min(62%, 300px);
    aspect-ratio: 1;
    background: linear-gradient(140deg, #f4f9fc, #dcebf5);
    border: 1px solid #ffffff2e;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(3, 21, 38, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%;
}

/* Slide con foto: la foto è lo sfondo di tutto l'hero, testi in primo piano */
.hero-bgs { position: absolute; inset: 0; z-index: 0; }
.hero-bg-item { position: absolute; inset: 0; }
.hero-bg-item[hidden] { display: none; }
.hero-bg-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg-item:has(img)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 24, 41, .88) 0%, rgba(7, 24, 41, .68) 45%, rgba(7, 24, 41, .25) 100%);
}
.hero-slider.photo-active .hero-art { display: none; }
.hero-slider .hero-slide.has-photo h1 { color: #fff; }
.hero-slider .hero-slide.has-photo h1 em { color: #8ae6ff; }
.hero-slider .hero-slide.has-photo p { color: #e3edf5; }
.hero-slider .hero-slide.has-photo .eyebrow { color: #bfe9ff; }
.hero-slider .hero-slide.has-photo .text-link { color: #fff; }
.hero-slider.photo-active .hero-arrow { border-color: #ffffff66; }
@media (max-width: 860px) {
    .hero-bg-item:has(img)::after { background: rgba(7, 24, 41, .72); }
}

@media (max-width: 860px) {
    .hero-visual-card { width: min(80%, 230px); }
    .hero-slider-controls { margin-top: 22px; }
}
