/**
 * Componente Hero
 * Stili per la sezione hero con immagine/video di sfondo
 */

.hero-block {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-video iframe,
.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

/* Overlay personalizzato per hero */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content {
    color: #fff;
    width: 100%;
}

.hero-content-center {
    text-align: center !important;
}

.hero-content-left {
    text-align: left !important;
}

.hero-content h2.hero-title,
.hero-block h2.hero-title,
.hero-title {
    font-size: 3.5rem !important;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
    opacity: 0.95;
}

/* Titolo blocco hero (H2) segue il contrasto dell’H1 pagina */
body.has-top-hero.logo-on-light .hero-content .hero-title,
body.has-top-hero.logo-on-light .hero-content .hero-text {
    color: #000;
}

body.has-top-hero.logo-on-dark .hero-content .hero-title,
body.has-top-hero.logo-on-dark .hero-content .hero-text {
    color: #fff;
}

.hero-text {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: normal;
    width: 70%;
    font-weight: 300;
}

.hero-content-center .hero-text {
    margin-left: auto;
    margin-right: auto;
}

.hero-content-left .hero-text {
    margin-left: 0;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-content-center .hero-buttons {
    justify-content: center;
}

.hero-content-left .hero-buttons {
    justify-content: flex-start;
}

.hero-button {
    background-color: #fff;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: none;
    border: none;
}

.hero-button:hover {
    transform: none;
}

.hero-button:active {
    transform: none;
}

/* Overlay scuro opzionale per migliorare leggibilità - rimosso, usa overlay personalizzato dal backend */

/* Tablet */
@media (max-width: 768px) {
    .hero-content-wrapper {
        padding: 1.5rem;
    }
    
    .hero-content h2.hero-title,
    .hero-block h2.hero-title,
    .hero-title {
        font-size: 3.5rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-text {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }
    
}

/* Mobile */
@media (max-width: 480px) {
    .hero-content-wrapper {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-content h2.hero-title,
    .hero-block h2.hero-title,
    .hero-title {
        font-size: 3.5rem !important;
        margin-bottom: 0.75rem;
    }
    
    .hero-text {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    /* Pulsanti dimensione normale come desktop, stessa posizione */
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        width: auto;
    }
    
    .hero-button {
        width: auto;
    }
}

