:root{
    --font-family-1: "Domine", serif;
    --color-1:#f0b62d;
    --color-2:#382f2d;
    --color-3:#6d625f;
    --color-4:#ffffff;
    /* - filtro COLOR-1 - */
    --filter-1: brightness(0) saturate(100%) invert(72%) sepia(55%) saturate(613%) hue-rotate(354deg) brightness(97%) contrast(93%);
    --general-gap: 25px;
}


    
body{
    margin: auto;
}

*{
    font-family: var(--font-family-1);
}

h1, h2, h3, h4, a{
    color: #382f2d;
    text-decoration-line: none;
}
p{
    color: #6d625f;
}

h1{
    font-size: 2em;
}
h2{
    font-size: 1.8em;
}
h3{
    font-size: 1.6em;
}
h4{
    font-size: 1.4em;
}
a{
    font-size: 1.2em;
}
p{
    font-size: 1.2em;
}

/* --- GENERAL CSS --- */

    section{
        width: 1000px;
        margin: auto;
        margin-bottom: 100px;
    }

    .text-left{
        margin-right: 50px;
        display: flex;
        flex-direction: column;
    }

    .text-right{
        margin-left: 50px;
        display: flex;
        flex-direction: column;
    }

    .text-left p, .text-right p{
        text-align: justify;
        margin-bottom: 35px;
    }

    .button{
        display: inline-block;
        width: fit-content;
        padding: 12px 25px;
        margin: auto;
        font-weight: bolder;
        background-color: var(--color-1);
    }

    .icon{
        aspect-ratio: 1, 1;
        width: 100px;
        filter: var(--filter-1);
        margin-bottom: 25px;
    }

    .hero-container{
        width: 100%;
        height: 70vh;
        display: flex;
    }

    .hero-logo{
        width: min(100vw, 350px);
        margin: auto;
        margin-right: 16.5%;
    }

    .first-paragraph-container{
        display: flex;
        align-items: center;
    }

    .img-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--general-gap);
    }

    .rect-img{
        width: 250px;
        height: 250px;
        object-fit: cover;
        
    }

    .paragraph-container{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .paragraph-img{
        width: 450px;
        height: 450px;
        object-fit: cover;
        padding: 10px;
    }

    .secondary-page-hero-container{
        width: 100%;
        height: 50vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container h1{
        color: var(--color-4);
        font-size: 2.5em;
        text-shadow: 0px 0px 20px #000000;
    }



/* --- HEADER --- */

    .header-container{
        width: min(1000px, 100vw);
        margin: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        overflow-x: hidden;
    }

    .logo-home-link{
        width: min(20em, 100vw);
    }

    .logo-home{
        width: 100%;
    }

    .menu-container{
        justify-content: space-between;
    }

    .menu-main{
        list-style: none;
        display: flex;
        justify-content: right;
        padding: 0;
    }

    .menu-main > li{
        margin: 25px;
        font-weight: bolder;
    }

    .sub-menu-list{
        display: none;
        list-style: none;
    }

    .mobile-nav-toggle{
        display: none;
    }

/* --- Home Page --- */

    .home-hero{
        width: 100%;
        background-image: linear-gradient(0.25turn, #0000,#0004, #000), url(/../images/domuspetra_3.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: 80%;
    }

    .work-phase-section h2{
        text-align: center;
        margin-bottom: 75px;
    }

    .three-icon-container{
        display: flex;        
        margin: auto;
        text-align: center;
    }

    .icon-card{
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin: 25px;
    }

    .services-section{
        width: calc(100% - var(--general-gap)*2);
        display: flex;
        flex-direction: column;
    }

    .services-container{        
        display: flex;
        gap: var(--general-gap);
    }

    .services{
        width: 100%;
    }

    .services p{
        width: 100%;
        height: 300px;
        text-align: center;
        align-content: end;
        padding-bottom: 30px;
        color: var(--color-4);
    }

    .first-service{
        background-image: linear-gradient(#0000,#0001,#000), url(/../images/pavimentazione_vari_colori_hotel_main.jpg);
    }

    .second-service{
        background-image: linear-gradient(#0000,#0001,#000), url(/../images/Scala-a-posa-tradizionale_1.jpg);
    }

    .third-service{
        background-image: linear-gradient(#0000,#0001,#000), url(/../images/Travertinum-Titanium-Iraniano-Lucido_1.jpg);
    }

    .fourth-service{
        background-image: linear-gradient(#0000,#0001,#000), url(/../images/fontane_marmo.jpg);
    }

    .first-service, .second-service, .third-service, .fourth-service{
        background-size: cover;
        background-repeat: no-repeat;
        background-position-x: center;
        background-position-y: 80%;
        margin-bottom: 50px;
    }

    .values-section{
        text-align: center;
    }

    .four-icon-container{
        display: flex;
    }

    .projects-section{
        text-align: center;
        width: 100%;
    }

    .reviews-section{
        text-align: center;
    }

    .reviews-section h2{
        margin-bottom: 50px;
    }

    .reviews-container{
        display: flex;
        gap: var(--general-gap);
    }

    .review-card{
        width: 500px;
        text-align: center;
        padding: 20px;
        background-color: var(--color-1);
    }
    .review-card h3{
        font-size: 5em;
        margin-top: 0;
        margin-bottom: -10px;
    }
    .review-card p{
        margin-bottom: 0;
    }

    .main-review{
        background-color: var(--color-2);
    }

    .main-review h3, .main-review h4, .main-review p{
        color: var(--color-1);
    }

/* --- Services page --- */

    .services-hero{
        width: 100%;
        background-image: linear-gradient(0turn, #0000,#0005, #000), url(/../images/domuspetra_1.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: 50%;
    }


/* --- Company page --- */
    
    .company-hero{
        width: 100%;
        background-image: linear-gradient(0turn, #0000,#0005, #000), url(/../images/lavorazione_marmo_1.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: 65%;
    }

    .marble-saw-img{
        object-fit: cover;
        object-position: 15%;
    }

    .family-section{
        width: calc(100% - var(--general-gap)*2);
        display: flex;
        flex-direction: column;
        gap: var(--general-gap);
    }

    .family-section h1{
        text-align: center;
    }

    .family-container{
        display: flex;
        gap: var(--general-gap);
    }

    .family-member{
        width: 100%;
    }

    .family-member p{
        width: 100%;
        height: 300px;
        text-align: center;
        align-content: end;
        padding-bottom: 30px;
        color: var(--color-4);
    }

    .alex{
        background-image: linear-gradient(#000,#0001,#000), url(/../images/alex.jpg);
    }

    .samuele{
        background-image: linear-gradient(#000,#0001,#000), url(/../images/samuele.jpg);
    }

    .davide{
        background-image: linear-gradient(#000,#0001,#000), url(/../images/davide.jpg);
    }

    .giovanni{
        background-image: linear-gradient(#000,#0001,#000), url(/../images/giovanni.jpg);
    }

    .alex, .samuele, .davide, .giovanni{
        background-size: cover;
        background-repeat: no-repeat;
        background-position-x: center;
        background-position-y: 80%;
        margin-bottom: 50px;
    }

/* --- Contacts page --- */
    .contacts-hero{
        width: 100%;
        background-image: linear-gradient(0turn, #0000,#0005, #000), url(/../images/tronchi_marmo_1.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: 60%;
    }

    .contacts-icons-section h2{
        text-align: center;
    }

    .contacts-form p{
        text-align: center;
    }

    .map-section{
        width: 100%;
        background-color: #000;
        display: flex;
        align-items: center;
    }
    .company-map-position{
        width: 100%;
        height: 50vh;
        border: 0;
        margin: auto;
    }

/* --- PROJECTS CAROUSEL --- */

    .projects-scroller-container{
        width: 100%;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .projects-scroller{
        display: flex;
        gap: var(--general-gap);
        flex-wrap: wrap;
        justify-content: center;        
    }

    .project-image{
        width: 550px;
        height: 400px; 
        object-fit: cover;
    }

    .scroller[data-animated = true]{
        overflow: hidden;
    }

    .scroller[data-animated = true] .projects-scroller{
        width: max-content;
        flex-wrap: nowrap;
        justify-content: left;
        animation: scroll 120s linear infinite;
    }

    @keyframes scroll {
        to {
            transform: translate(calc(-50% - calc(var(--general-gap)/2)));
        }
    }

/* --- SOCIAL BUTTONS --- */

    .social-button{
        aspect-ratio: 1, 1;
        width: 100px;
        margin-bottom: 0;
    }

    .social-button .icon{
        margin-top: 50px;
        margin-bottom: 0;
    }

    .social-buttons-container{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: calc(var(--general-gap) * 2);
    }

    .social-section{
        text-align: center;
        margin-top: 150px;
    }



/* --- FOOTER --- */

    .footer{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: calc(var(--general-gap) * 2);
        width: 100%;
        height: 250px;
        background-image: url(/../images/bagno_antracite_pavimento.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .footer-logo-home{
        width: 275px;
    }

    .company-info{
        margin-left: 150px;
    }

    .company-info p{
        color: var(--color-4);
        margin: auto;
        margin-bottom: 10px;
    }

    .company-info .website-from{
        font-size: 1em;
        text-align: end;
        margin-top: 40px;
        margin-bottom: 0;
    }

@media screen and (max-width:1023px) {
       body > *{
        width: 100vw;
        overflow-x: hidden;
    }

}

@media screen and (max-width: 1023px){

    /* --- GENERAL CSS --- */

    section{
        margin-bottom: 15%;
    }

    .paragraph-container{
        flex-direction: column;
        margin: auto 10%;
        text-align: center;
    }

    .text-right{
        margin-left: 0;
    }

    .text-left{
        margin-right: 0;
    }

    .second-paragraph-image-container, .fourth-paragraph-image-container, .sixth-paragraph-image-container{
        order: 1;
        margin: auto;
    }

    /* --- Home --- */

    .home-hero{
        background-image: linear-gradient(0turn, #000d, #0005, #000d), url(/../images/domuspetra_3.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: 80%;
        margin-bottom: 10%;
    }

    .hero-container{
        height: 50vh;
    }

    .hero-logo{
        width: min(75%, 350px);
        margin: auto;        
    }

    .first-paragraph-container, .four-icon-container{
        flex-direction: column;  
        margin: auto 10%;      
    }

    .first-paragraph-container h1{
        text-align: center;
    }

    .text-left{
        margin-right: auto;
        margin-bottom: 10%;
    }

    .work-phase-section{
        margin-bottom: 5%;
    }

    .work-phase-section h2{
        margin-bottom: 10%;
    }

    .values-section{
        margin-bottom: 10%;
    }

    .values-section h2{
        margin-bottom: 5%;
    }

    .four-icon-container{
        width: 100%;
        margin: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .icon-card{
        margin: auto;
        margin-bottom: 10%;
        width: 85%;
    }

    .icon{
        margin: auto;
    }
    .icon-card h3, .icon-card p{
        margin-top: 5%;
        margin-bottom: 0%;
    }

    .services-container{
        margin-bottom: 50px;
    }

    .services p{
        height: 250px;
        margin: auto;
    }

    .services{
        margin: auto;
    }

    .family-member p{
        height: 250px;
        margin: auto;
    }

    .family-member{
        margin: auto;
    }

    /* --- HEADER --- */  

    .header-container{
        height: 6em;
    }

    .menu-main{
        position: fixed;
        inset: 0 0 0 20%;
        background-color: var(--color-1);

        flex-direction: column;
        padding-top: min(30vh, 7.5rem);
        padding-left: 0.25em;
        margin: auto;
        font-size: 2em;
        z-index: 1000;

        transform: translateX(101%);
        transition: transform 350ms ease-out;
    }

    .menu-main[data-visible="true"]{
        transform: translateX(0%);  
    }

    .mobile-nav-toggle{
        display: block;  
        position:absolute;
        top: 1.9em;
        right: 2em;     
        background: url("../icons/mobile_hamb_icon.svg");
        background-repeat: no-repeat;
        background-size: cover;
        border: none;
        width: 3em;
        aspect-ratio: 1;
        z-index: 9999;
    }

    .mobile-nav-toggle[aria-expanded="true"]{
        background: url("../icons/mobile_close_icon.svg");
        background-repeat: no-repeat;
        background-size: cover;

    }

    .menu-main li{
        margin-bottom: 1.5em;
    }

    .logo-home-link{
        width: min(15em, 75%, 20em);
    }

    .footer{
        flex-direction: column;
        height: 50%;
    }

    .footer a{
        margin-top: 10%;
    }

    .company-info{
        font-size: 0.7em;
        margin: auto 9%;
        text-align: center;
    }

    .company-info .website-from{
        text-align: center;
        margin-top: auto;
        margin-bottom: 10%;
    }
}

@media screen and (max-width: 700px) {
    
    /* --- Home --- */

    .first-paragraph-container, .services-container, .three-icon-container, .four-icon-container{
        flex-direction: column;         
    }

    .img-grid{
        grid-template-columns: 1fr;
    }

    .four-icon-container{
        display: flex;
        flex-direction: column;
    }
   
    .social-buttons-container{
        gap: 0;
    }

    /* --- Company --- */

    .family-container{
        flex-direction: column;
    }

    .family-member p{
        margin-bottom: 5%;
    }


    /* --- HEADER --- */

}

@media screen and (max-width: 590px) {
    
    /* --- Home --- */

    .first-paragraph-container, .services-container, .three-icon-container, .four-icon-container{
        flex-direction: column;         
    }

    .img-grid{
        grid-template-columns: 1fr;
    }

    .four-icon-container{
        display: flex;
        flex-direction: column;
    }

   
    .social-buttons-container{
        gap: 0;
    }

    .paragraph-img{
        width: 250px;
        height: 250px;
        padding: 0;
    }

    /* --- HEADER --- */



}

