html {
    font-family: "Work Sans", sans-serif;
    scroll-behavior: smooth;
    caret-color: transparent;
}

/* Assicurati che questa parentesi graffa di chiusura sia presente */


.work-sans-font1 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    /* Usa un valore valido come 400 per normale o 700 per grassetto */
    font-style: normal;
}


/* Reset some basic elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 3rem;
}

h1.in-view {
    animation-name: slideup;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    animation-delay: 0.0s;


}


h2 {
    font-size: 1.8rem;
    width: 70%;
    text-align: center;
}

#caldaie::before {

    display: none;
    padding: 5%;
    justify-content: center;
    align-items: flex-start;
    content: "Installazione di caldaie e scaldabagni, manutenzione periodica, riparazione guasti, sopralluoghi inclusi, soluzioni personalizzate, consulenza per efficienza energetica.";
    text-align: center;
    text-align: justify;
    color: #a59e9a;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: white;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#caldaie.mostra::before {
    display: flex;
    opacity: 1;
    /* Cambia l'opacità a 1 */
    animation-name: slideup;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    transition: 500ms;
}

#clima::before {
    display: none;
    padding: 5%;
    justify-content: center;
    align-items: flex-start;
    content: "Installazione di climatizzatori di diverse marche e modelli, manutenzione regolare per garantire prestazioni ottimali, riparazione di guasti e malfunzionamenti, sopralluoghi inclusi per valutare le esigenze specifiche per ogni ambiente.";
    text-align: center;
    text-align: justify;
    color: #a59e9a;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: white;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#clima.mostra::before {
    display: flex;
    opacity: 1;
    /* Cambia l'opacità a 1 */
    animation-name: slideup;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    transition: 500ms;
}

#Riparazioni::before {
    display: none;
    padding: 5%;
    justify-content: center;
    align-items: flex-start;
    content: "Riparazioni rapide ed efficienti per impianti idraulici, climatizzatori e caldaie, con sopralluoghi inclusi e tempi brevi.";
    text-align: center;
    text-align: justify;
    color: #a59e9a;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: white;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#Riparazioni.mostra::before {
    display: flex;
    opacity: 1;
    /* Cambia l'opacità a 1 */
    animation-name: slideup;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    transition: 500ms;
}

#bagni::before {
    display: none;
    padding: 5%;
    justify-content: center;
    align-items: flex-start;
    content: "Installazione di impianti idraulici per abitazioni e aziende, manutenzione regolare per prevenire problemi, riparazione di perdite e guasti, soluzioni personalizzate per ogni tipo di impianto.";
    text-align: center;
    text-align: justify;
    color: #a59e9a;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: white;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#bagni.mostra::before {
    display: flex;
    opacity: 1;
    /* Cambia l'opacità a 1 */
    animation-name: slideup;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    transition: 500ms;
}


#assistenza::before {
    display: none;
    padding: 5%;
    justify-content: center;
    align-items: flex-start;
    content: "Assistenza tecnica rapida e professionale per impianti idraulici, climatizzatori e caldaie, con sopralluoghi inclusi e soluzioni su misura.";
    text-align: center;
    text-align: justify;
    color: #a59e9a;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: white;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#assistenza.mostra::before {
    display: flex;
    opacity: 1;
    /* Cambia l'opacità a 1 */
    animation-name: slideup;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    transition: 500ms;
}

#pannelli::before {
    display: none;
    padding: 5%;
    justify-content: center;
    align-items: flex-start;
    content: "Installazione di pannelli solari per abitazioni e aziende, manutenzione periodica per garantire efficienza, riparazione di eventuali guasti, soluzioni personalizzate per massimizzare il risparmio energetico.";
    text-align: center;
    text-align: justify;
    color: #a59e9a;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: white;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#pannelli.mostra::before {
    display: flex;
    opacity: 1;
    /* Cambia l'opacità a 1 */
    animation-name: slideup;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    transition: 500ms;
}







h2.in-view {
    animation-name: slideup;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    animation-delay: 0.4s;


}

.prova {
    width: 100%;
    background-color: rgb(52, 58, 64)
}

body {
    font-family: Arial, sans-serif;
    background-color: hsl(0, 12%, 94%);
    z-index: 0;
    position: relative;
}

.contenitoreservizi {
    width: 80%;
    margin-top: 5rem;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: black;
    gap: 0.5rem;

}

.titoloservizi {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    width: auto;
    height: auto;
    position: relative;
    font-weight: 600;
}

.cardservizi {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;

}

.cardservizi>* {
    flex: 1 1 calc(33.333% - 2rem);
    /* 3 elementi per riga, considerando il gap */
    box-sizing: border-box;
    /* Assicura che il padding e il border siano inclusi nella larghezza totale */
}

.card {
    position: relative;
    cursor: pointer;
    padding: 0%;
    width: 18rem;
    min-width: 300px;
    background-color: transparent;
    height: 18rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-size: 2rem;
    position: relative;
    color: black;
    background-color: white;
    border-bottom: hwb(0 82% 18%) solid 0.5px;
    border-left: hwb(0 82% 18%) solid 0.5px;
    border-right: hwb(0 82% 18%) solid 0.5px;
    box-shadow: 1px 1px 7px rgb(0, 0, 0, 0.2);
    opacity: 0;
    /* box-shadow: 0 0 5px 2px rgb(0, 0, 0, 0.2); */
}

.card:hover {
    box-shadow: 1px 2px 7px rgb(0, 0, 0, 0.4);
    transition: 500ms;
}

.card.in-view {
    animation-name: slideup;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    animation-delay: 0.0s;
}

@keyframes slideup {
    0% {
        opacity: 0;
        transform: translate(0, +150px);
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
    }

}

@keyframes slideup2 {
    0% {
        opacity: 0;
        transform: translate(0, +100%);
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translate(0, -10%);
    }

}

@keyframes slidedown {
    0% {
        opacity: 0;
        transform: translate(0, -150px);
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
    }

}







.titoloservizi.in-view {
    animation-name: slideup;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;

}

.titoloservizi:after {
    opacity: 1;
}

@keyframes anim1 {
    0% {
        transform: translate(-100%);
        opacity: 0;
    }

    100% {
        transform: translate(0%);
    }

}


#caldaie::after {
    content: " ";
    width: 100%;
    height: 80%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background-position: 0%;
    background-size: cover;
    background-image: url(img2/caldaie.jpg);

}

#clima::after {
    content: " ";
    width: 100%;
    height: 80%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background-position: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(img2/climatizzatore.jpg);
}

#bagni::after {
    content: " ";
    width: 100%;
    height: 80%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background-position: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(img2/impiantiidraulici.jpg);
}

#assistenza::after {
    content: " ";
    width: 100%;
    height: 80%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background-position: -0;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(img2/assistenza.JPG);
}


.buttoncont {
    font-size: 1.5rem;
    font-weight: 600;
    border: 1px solid white;
    padding: 0.7rem;
    border-radius: 10%;
    cursor: pointer;
    caret-color: transparent;
}

.buttoncont.in-view {
    animation-name: slideup;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    animation-delay: 0.8s;


}

.buttoncont:hover {
    background-color: white;
    color: black;
    transition: 500ms;
}

#Riparazioni::after {
    content: " ";
    width: 100%;
    height: 80%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background-position: -0;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(img2/riparazioni.jpg);
}

#pannelli::after {
    content: " ";
    width: 100%;
    height: 80%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background-position: -0;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(img2/pannelli.jpg);
}


/* CSS */
.buttoncontact {
    position: absolute;
    bottom: 3rem;
    align-items: center;
    background: #FFFFFF;
    border: 0 solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    color: #1A202C;
    display: inline-flex;
    font-family: Inter, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    height: 64px;
    justify-content: center;
    line-height: 24px;
    overflow-wrap: break-word;
    padding: 24px;
    text-decoration: none;
    width: auto;
    border-radius: 8px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* The Modal (background) */
.modal {
    transition: 500ms;
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    /* Full width */
    height: auto;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: transparent
        /* Black w/ opacity */

}

/* Modal Content/Box */
.modal-content {
    color: #1A202C;
    font-size: 2rem;
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    width: 80%;
    /* Could be more or less, depending on screen size */
    box-shadow: 0px 5px 24px 5px rgb(0, 0, 0, 0.2);
    text-align: justify;

}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.contenitoreiniziale {
    position: relative;
    width: 100%;
    background-image: url(img2/energyeff.jpg);
    height: 70vmin;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    color: #fefefe;
    background-size: cover;
    z-index: 0;
}


.contenitoreservizi1 {
    padding: 0rem;
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: auto;
    margin-bottom: 10rem;
}

.cardservizi {
    width: 90%;
}

.cardservizio {
    position: relative;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25rem;
    height: 25rem;
}

.icona {
    font-size: 2.5rem;
    display: none;
    position: absolute;
    top: 5rem;
    display: block;
    color: #ff4800;
    opacity: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.icona.in-view {
    animation-name: slideup1;
    animation-duration: 1s;
    animation-delay: 0s;
    animation-fill-mode: both
}

@keyframes slideup {
    0% {
        opacity: 0;
        transform: translate3d(0, 250px, 0);
        will-change: transform, opacity;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        will-change: transform, opacity;
    }
}

/* Fix for blurry icons on iPhone */
.icona {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
}

@keyframes slideup1 {
    0% {
        opacity: 0;
        transform: translate(0, 250px);
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);

    }

}



.titolocard {
    font-size: 1.6rem;
    position: absolute;
    top: 40%;
    color: #514a45;
    opacity: 1;
    font-weight: 600;


}

.titolocard1 {
    font-size: 1.3rem;
    position: absolute;
    bottom: 5%;
    width: 100%;
    left: 0%;
    text-align: center;
    color: #514a45;
    opacity: 1;
    font-weight: 600;


}


.titolocard.in-view {
    animation-name: slideup;
    animation-duration: 1s;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.contenutocard {
    padding-bottom: 1rem;
    border-top: 1px solid #ff4800;
    padding: 1.8rem;
    position: absolute;
    text-align: justify;
    font-size: 1.3rem;
    top: 14rem;
    color: #a59e9a;
    opacity: 1;

}

.contenutocard.in-view {
    animation-name: slideup;
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}



.contenitoremarchi {
    align-self: center;
    width: 90%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}


.marchio {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10rem;
    height: 6rem;
    position: relative;
}






.titolomarchi {
    text-align: center;
    display: block;
    margin-top: 10rem;
    font-size: 2rem;
    font-weight: 600;
}




.marchio img {
    max-width: 100%;
    /* Assicura che il logo non superi la larghezza della box */
    max-height: 100%;
    /* Assicura che il logo non superi l'altezza della box */
    object-fit: contain;
    /* Mantiene le proporzioni del logo */
}

.centra {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;

}


.contreclam {
    padding: 5%;
    height: 15rem;
    background-image: url(img2/pexels-ryank-21193045.jpg);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    width: 100%;
}

.reclam.in-view {
    animation-name: slideup;
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-fill-mode: both;
    line-height: 3rem;
}