﻿.hero-video-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

    .hero-video-wrapper video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100vw;
        min-height: 100vh;
        transform: translate(-50%, -50%);
        object-fit: cover;
        z-index: 1;
    }

.audio-controls {
    display: none;
    position: absolute;
    bottom: 40px;
    right: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-btn {
    display: none;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
}

/* Volume slider verticale */
.volume-slider {
    appearance: none;
    writing-mode: bt-lr; /* verticale da basso a alto */
    width: 4px;
    height: 80px;
    margin-bottom: 120px;
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
    display: none; /* nascosto di default */
    cursor: pointer;
}

    /* Thumb custom (facoltativo) */
    .volume-slider::-webkit-slider-thumb {
        appearance: none;
        width: 14px;
        height: 14px;
        background: white;
        border-radius: 50%;
        border: none;
    }

.hero-overlay-content {
    position: absolute;
    z-index: 2;
    padding-top: 10rem;
    padding-left: 340px; /* ✅ sposta il testo a destra rispetto a colonna */
    padding-right: 2rem;
    color: white;
    text-align: start;
    max-width: 100%; /* ✅ non esce dalla viewport */
    box-sizing: border-box;
}

.hero-claim,
.hero-subclaim {
    font-family: 'Michroma', sans-serif !important;
}

.hero-claim {
    font-weight: 400;
    letter-spacing: 3px;
    font-size: 3.4rem;
    margin: 0.5rem 0 0.5rem 1rem;
    color: var(--primary-color, white);
    word-break: break-word; /* ✅ forza capo se parola lunga */
    max-width: 100%; /* ✅ evita overflow */
}

.hero-subclaim {
    letter-spacing: 3px;
    font-weight: 400;
    font-size: 1.8rem !important;
    font-style: italic;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    margin: 0.5rem 0 0.5rem 1rem;
    max-width: 100%;
    /* effetto iniziale invisibile */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .hero-subclaim.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* 🔽 Posizionamento delle card in overlay in basso */
.servizi-card-wrapper.overlay-bottom {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    padding-inline: 2rem;
    z-index: 3;
    /* Scrollbar invisibile */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.servizi-card-wrapper.overlay-bottom {
    scroll-padding-top: 6rem;
    scroll-padding-bottom: 7rem;
}

    /* 🔼 Spazio fittizio in alto */
    .servizi-card-wrapper.overlay-bottom::before {
        content: "";
        display: block;
        height: 6rem;
        flex-shrink: 0;
    }

    /* 🔽 Spazio fittizio in basso */
    .servizi-card-wrapper.overlay-bottom::after {
        content: "";
        display: block;
        height: 7rem;
        flex-shrink: 0;
    }


    .servizi-card-wrapper.overlay-bottom::-webkit-scrollbar {
        display: none;
    }

/* 🎭 Maschera sfumata verticale */
.servizi-card-wrapper.overlay-bottom {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}


/* Card stile vetro */
.servizio-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    padding: 1rem;
    width: 260px;
    border-radius: 1rem;
    color: white !important;
    transition: all 0.2s ease;
}
    .servizio-card h5 {
        font-size: 1.0rem;
        font-weight: 600;
        margin: 0 0 0.4rem;
    }

    .servizio-card p {
        font-size: 0.85rem;
        font-weight: 400;
        color: #f7f7f7;
        margin: 0;
    }


    .servizio-card a,
    .servizio-card a:visited {
        text-decoration: none;
        color: var(--primary-color);
    }

    .servizio-card:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .servizio-card img {
        max-width: 100%;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
        object-fit: cover;
    }




    @media (max-width: 768px) {

        
        .hero-overlay-content {
            z-index: 2;
            top: 0;
            padding-top: 7rem;
            padding-left: 0.5rem; /* ✅ sposta il testo a destra rispetto a colonna */
            padding-right: 0.5rem;
            color: white;
            text-align: start;
            max-width: 100%; /* ✅ non esce dalla viewport */
            box-sizing: border-box;

        }

        .hero-claim {
            font-size: 1.6rem;
        }

        .hero-subclaim {
            font-size: 1rem !important;
        }


        .servizi-card-wrapper.overlay-bottom {
            position: absolute;
            top: 35rem !important;
            padding-bottom: 7rem !important;
            left: 0;
            width: 100vw;
            max-height: 50vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding-inline: 0.75rem;
            z-index: 3;
            /* Scrollbar invisibile */
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .servizio-card {
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 1rem;
            padding: 0rem;
        }

            .servizio-card img {
                width: 30%;
                height: auto;
                object-fit: cover;
                border-radius: 0.5rem;
                margin-bottom: 0;
            }

            .servizio-card h5 {
                font-size: 1rem;
                margin: 0 0 0.3rem;
            }

            .servizio-card p {
                font-size: 0.85rem;
                margin: 0;
                color: #ddd;
            }

            .servizio-card a {
                display: flex;
                align-items: center;
                gap: 1rem;
                width: 100%;
                text-decoration: none;
                color: inherit;
            }

            .servizio-card .card-text-content {
                flex-grow: 1;
            }
    }
