*{
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

#container{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

@media (max-width:575px){
    #container{
        overflow: auto;
    }
}

.content{
    background: url("/img/lamed-center-header-bg.jpg");
    background-size: cover;
    background-position: bottom;
}

#container-logo{
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width:575px){
    #container-logo{
        background-repeat: no-repeat;
        background-size: cover;
    }
}

#container-logo img{
    width: 50%;
    height: auto;
    max-width: 450px;
}

.descrizione-lamed{
    text-align: center;
    margin-bottom: 20px;
    max-width: 500px;
    padding: 0 30px;
}

#servizi{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    gap: 20px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 40px;
}
#servizi img{
    width: 30px;
    margin-bottom: -9px;
    margin-right: 8px;
}
@media (max-width: 568px) {
    #servizi p {
        width: 100%;
        margin-bottom: 5px;
        font-size: 16px;
        text-align: center;
    }
}

#sito-in-costruzione{
    font-size: 40px;
    color: #0071ba;
    padding: 0 20px;
    text-align: center;
    line-height: 2rem;
}


#contatti{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 20px;
    max-width: 1080px;
    margin: 0 auto;
}

#contatti a{
    width: 33.33333%;
    font-size: 20px;
    text-decoration: none;
    font-weight: 700;
    color: black;
    text-align: center;
    transition: 0.3s;
}

#contatti a:hover{
    color: #0071ba;
    transition: 0.3s;
}

#contatti img{
    margin-bottom: 10px;
    filter: saturate(0);
    transition: 0.3s;
    width: 90px;
}

#contatti a:hover img{
    opacity: 1;
    filter: none;
}

@media (max-width: 568px) {
    #contatti a {
        width: 100%;
        margin-bottom: 20px;
        font-size: 16px;
    }
    #contatti img{
        filter: none;
    }
}


.slider {
    position: relative;
    height: clamp(200px, 38vh, 620px);
    border-radius: var(--radius);
    overflow: hidden;
    outline: 1px solid color-mix(in oklab, var(--text) 8%, transparent);
    box-shadow: var(--shadow);
    isolation: isolate;
    }
    .slider::after { /* subtle gradient overlay */
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.35) 65%, rgba(0,0,0,.55));
    pointer-events: none;
    }
    .slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; transform: scale(1.02);
    animation: fade 20s infinite;
    object-fit: cover; object-position: center;
    filter: saturate(105%) contrast(102%);
    }
    /* Stagger the frames for 4 images. Adjust delays if you add/remove slides */
    .slide:nth-child(1) { animation-delay: 0s; }
    .slide:nth-child(2) { animation-delay: 5s; }
    .slide:nth-child(3) { animation-delay: 10s; }
    .slide:nth-child(4) { animation-delay: 15s; }
    
    @keyframes fade {
    0% { opacity: 0; transform: scale(1.02); }
    5% { opacity: 1; transform: scale(1); }
    22% { opacity: 1; transform: scale(1); }
    27% { opacity: 0; transform: scale(1.01); }
    100% { opacity: 0; transform: scale(1.02); }
    }
    
    /* Reduce motion for accessibility */
    @media (prefers-reduced-motion: reduce) {
    .slide { animation: none; opacity: 1; }
    .slide:not(:first-child) { display: none; }
    }


    #footer{
        background-color: #0071ba;
        padding: 21px;
        text-align: center;
        color: white;
        line-height: 1.5rem;
        font-size: 14px;
    }
    #footer a{
        color: white;
        text-decoration: none;
    }
    
 