@import url('./reset.css');
@import url('./root.css');
@import url('./rows.css');
@import url('./form.css');
@import 'https://fonts.googleapis.com/css?family=Montserrat:400,700';

@font-face {
    font-family: 'Eloi';
    src: url('./fonts/eloi.woff2') format('woff2'),
         url('./fonts/eloi.woff') format('woff'),
		 url('./fonts/eloi.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;

}
html {
    font-size: 16px; scroll-behavior: smooth; color: var(--text-primary); background-color: var(--bg-primary);
}

body {
    font-family: var(--font-primary); line-height: 1.6; color: var(--text-primary); font-size: 16px; font-weight: 400;
    color: var(--text-primary); background-color: var(--bg-primary);
}

a { text-decoration: none; color: inherit;}
ul { list-style: none;}
hgroup{ margin: 0; padding: var(--spacing-md) 0; }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6
{ font-family: 'Eloi'; font-weight: 700; line-height: 1.2; margin: .5rem 0; padding: 0; }
h1, .h1{ font-size: 3.3rem; }
h2, .h2{ font-size: 2.9rem; }
h3, .h3{ font-size: 2.5rem; }
h4, .h4{ font-size: 2rem; }
h5, .h5{ font-size: 1.5rem; }
h6, .h6{ font-size: 1rem; }
.h{font-family: 'Eloi'; font-weight: 700; line-height: 1.2; font-size: 1.5em;}
p, .p{ font-size: 1rem; line-height: 1.3; padding-bottom: 1.2em;}
strong, b { font-weight: 700; }

hgroup > * { margin: 0 0 var(--spacing-xs) 0; padding: 0; line-height: 1; }
hgroup > *:last-child { margin: 0; }



figure{ margin: 0; padding: 0; }

img { width: 100%; height: auto; object-fit: cover; margin: 0; padding: 0; display: block;}

a.cta, a.btn, a.button, button, .button, .btn, .cta {
    display: inline-block; padding: 0.75rem 1.5rem; background: var(--dark-color); color: var(--text-on-dark); border: 1px solid var(--text-on-dark);
    text-decoration: none; font-weight: 700; transition: all 0.3s ease-in-out; border-radius: 1.5rem;
    font-size: 0.9rem; line-height: 1; text-transform: uppercase;
}
a.cta:hover, a.btn:hover, a.button:hover, button:hover, .button:hover, .btn:hover, .cta:hover {
    background-color: var(--text-on-dark); color: var(--text-on-light);
}
.cta_container, .button_container, .btn_container {
    /* display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; */
    padding: var(--spacing-md) 0 0 0;
}

.margin-y{ margin-top: var(--spacing-md) !important; margin-bottom: var(--spacing-md) !important;}
.margin-y-sm{ margin-top: var(--spacing-sm) !important; margin-bottom: var(--spacing-sm) !important;}
.margin-y-lg{ margin-top: var(--spacing-lg) !important; margin-bottom: var(--spacing-lg) !important;}

.flex {
    display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: nowrap;
}
.flex.wrap {
    flex-wrap: wrap;
}
.flex.center {
    align-items: center; justify-content: center;
}
.flex.column {
    flex-direction: column; align-items: center; justify-content: center;
}
.flex-gap{ gap: var(--spacing-md); }


/* Stili per il menu di navigazione */
header.header{
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: var(--spacing-sm); background-color: var(--bg-primary);
}
.header-inner{ 
    display: flex; justify-content: space-between; align-items: center; 
    width: 100%; height: var(--site-header-height);
}
    .logo_header_link { max-width: var(--site-header-height);  z-index: 600; }
        .logo_header_link img { max-width: 100%; }

    .site_navbar_user{
        display: flex; justify-content: center; align-items: center; gap: var(--spacing-xs);
    }
.app_main_menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-secondary); z-index: 1050;
    transition: transform 0.3s ease-in-out; transform: translateX(-100%);
    padding: 2rem;  overflow-y: auto;
    font-size: 1.5rem; color: var(--text-on-dark); text-align: center;
    font-family: var(--font-primary); font-weight: 700; line-height: 1.5; z-index: 100; top: 0; left: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    
}

    .app_main_menu.menu-visible {
        transform: translateX(0); transition: transform 0.3s ease-in-out; background-color: var(--bg-secondary);
    }
    .app_main_menu ul { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 0; margin: 0; list-style: none; }
    .app_main_menu ul li{ margin: 1rem 0; width: 100%; }
    .app_main_menu ul li a{ font-family: 'Eloi'; font-size: 1.5em; }


    .menu-toggle{ display: block; cursor: pointer; width: 25px; height: 25px; position: fixed; top: 25px; right: 40px; padding: 0; z-index: 500;}
	.menu-toggle__bar { display: block; width: 25px; height: 3px; background-color: var(--dark-color); margin: 5px 0; position: relative; transition: all 0.3s ease-in-out;}
	.mobile-open .menu-toggle .menu-toggle__bar{ display: none; position: absolute; top: 5px; left: 0; background-color: var(--dark-color);}
	.mobile-open .menu-toggle .menu-toggle__bar:first-child {  display: block; transform: rotate(45deg);  }
	.mobile-open .menu-toggle .menu-toggle__bar:last-child { display: block; transform: rotate(-45deg); }

    .is-active .hamburger-inner, .is-active .hamburger-inner::before, .is-active .hamburger-inner::after{ background-color: var(--light-color)}
    
.main_container{ width: 100%; max-width: 100vw; margin: 0 auto; padding: 0; padding-top: calc(var(--site-header-height) * 1.5);}
.myIn, .myInner{ max-width: var(--width-container); padding: 0 var(--spacing-md); margin: 0 auto;   }

.form_contatti_in{
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; gap: var(--spacing-md);
}



/* fine stili per i blocchi */ 


/* Stili per quick servizi */

.quick-subpage-item__description{ padding: 1em 0; font-size: 1.2rem; line-height: 1.5; }


.section-services {
    display: block; width: 100%; max-width: 100vw; margin: 0 auto; padding: 0;
}
.quick-subpage-item {
    border-top: 1px solid var(--bg-light);
    padding: var(--spacing-md) 0;
    transition: all 0.3s ease-in-out;
}
.quick-subpage-item__header {
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
}
.quick-subpage-item__header h3{ width: 100%; }

.quick-subpage-item__content {
    /* display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; */
}



/* Stili per progetti */


.post_list_cards_cnt{
   display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; padding: 2rem 0;
}
.post-header__content{
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    
}
.post-header__content .info-progetto{
    display: inline-block; margin-top: 3rem; padding: 0.5rem 1rem; border-top: solid 1px var(--bg-secondary);
    padding: 1rem 0; font-size: 1.2rem; line-height: 1.5;
}


.quick-services__list{
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center;
}
.gallery__content{ position: relative; }
.gallery_swiper{ position: relative; }

.max-width-reader{ max-width: 2200px;  margin: 0 auto; }

/* fine stili per progetti */

/* Stili per il footer */
footer.footer {
    margin: var(--spacing-lg) 0 0 0;
}
.footer__logo{
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--spacing-md); text-align: center;
}
.footer__logo a{
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--spacing-md); text-align: center;
}
.footer__logo img{
   max-width: 120px; width: 100%; height: auto; object-fit: contain;
}
.footer__content{
    display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--spacing-md);
}

.footer__content a:hover{
    opacity: 0.8;
}

.footer_social_cnt{
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--spacing-xs);
}
    .social_link{
        display: block; width: 30px; height: 30px;
    }
   
    .social_link img{
        width: 100%; height: 100%; object-fit: contain;
    }

.footer__content{
    display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--spacing-md);
}

   
/* fine stili per il footer */

.testi-x2 p { font-size: 1.2rem;  }
.testi-x2 p { line-height: 1.2; }

.light{ background-color: var(--bg-alternate); color: var(--text-on-dark); }
.dark{ background-color: var(--bg-dark); color: var(--text-on-dark); }

.hamburger {
    display: block;
}
.hero_gallery__caption{ background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%); backdrop-filter: none;}

@media screen and (max-width: 768px) {
    .mobile-center{ text-align: center; }
    .hero_gallery__image{height: auto; aspect-ratio: 3 / 4; }
}
@media screen and (min-width: 1024px) {
   .myIn, .myInner{padding: 0 var(--spacing-lg);   }


    .hamburger {
        display: none;
    }
    

    h1, .h1{ font-size: 3.8rem;}
    h2, .h2{ font-size: 3rem; }
    h3, .h3{ font-size: 2.4rem; }
    h4, .h4{ font-size: 2rem; }
    h5, .h5{ font-size: 1.8rem; }
    h6, .h6{ font-size: 1.4rem; }
    p, .p{ font-size: 1.5rem; }


    .menu-toggle {display: none; }
    .header-app-switch__link{margin-right: 0;}

    .header-inner {
        max-width: var(--width-container);
        padding: 0 var(--spacing-lg);
        margin: 0 auto;
    }

        .app_main_menu { 
            position:relative; width: auto; height: auto; background: transparent; z-index: auto; transform: none; padding: 0; overflow-y: visible;
             color: var(--text-on-dark); text-align: center; font-family: var(--font-primary); font-weight: 700; line-height: 1;
        }        
            .app_main_menu ul { display: flex; flex-direction: row; align-items: center; justify-content: center; width: 100%; padding: 0; gap: 0; margin: 0; list-style: none; }
            .app_main_menu ul li{ margin: 0 .5rem; width: 100%; }
            .app_main_menu ul li a{ white-space: nowrap; padding: .75rem .5rem; line-height: 1; font-weight: 300; text-transform: uppercase; color: var(--dark-color); transition: all 0.3s ease-in-out; }
            .app_main_menu ul li a:hover, .app_main_menu ul li a.is_current{ color: var(--evidence-color);}

            .intro-txt__content {font-size: 3.5rem;}

    .post_list_cards_cnt{
       display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding: 2rem 0;
    }
    .card_listing_item{  width: calc(50% - var(--spacing-md)); position: relative; }
    .card_listing_item.card_listing_item_big{
       width: calc(50% - var(--spacing-md));
    }
    .last_projects_item{ width: calc(25% - var(--spacing-md)); }
    .last_projects_item:nth-child(3){ width: calc(50% - var(--spacing-md)); }
    /* .last_projects_item.last_projects_item_big{
       width: calc(50% - var(--spacing-md));
    } */


    .post-category-link{ display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--spacing-xs); font-weight: 700; font-size: 1.3rem; line-height: 1; }
    .post-category-link:hover{ color: var(--bg-secondary); }
    .post-category-link span{font-size: 1.5em; line-height: 1; }

    .post-category-ballon{ 
        display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: var(--spacing-xs); font-weight: 700; font-size: 1.3rem; line-height: 1; 
        border-radius: 1rem; background-color: var(--light-color); color: var(--dark-color); padding: 0.5rem; width: fit-content; margin: .2em 0; }

    .post-category-ballon-mini{ font-size: 1rem; line-height: 1; padding: 0.2rem 0.8rem .3rem .5rem; margin: 0; border-radius: 0 0 1rem 0; position: absolute; top: 0; left: 0; }


    .img_strip__content{  display: flex; gap: var(--spacing-md); flex-wrap: wrap; justify-content: space-between; align-items: center; }
    .img_strip__item{ flex:1;  width: auto; max-width: 100%;  height: auto; }

    .blocco_titolo_sezione_inner {
        display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between;  padding: 1em 0;
    }
    .blocco_titolo_sezione_inner .cta_container{
        margin: 0; padding: .3em;
    }
    .blocco_titolo_sezione_title {
        margin-right: var(--spacing-md); text-transform: uppercase; font-weight: 700; 
    }
    .blocco_titolo_sezione_title  * {
        margin: 0; padding: 0; line-height: 1;
    }



        .testi-x2 p { font-size: 1.9rem; line-height: 1.3; }


        .footer__content{
            display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: var(--spacing-md);
        }
}

@media screen and (min-width: 1440px) {
    h1, .h1{ font-size: 4.2rem;}
    h2, .h2{ font-size: 3.5rem; }
    h3, .h3{ font-size: 3rem; }
    h4, .h4{ font-size: 2.1rem; }
    h5, .h5{ font-size: 2rem; }
    h6, .h6{ font-size: 1.6rem; }
    .app_main_menu {
        display: flex; justify-content: center; align-items: center;
    }
   .myIn, .myInner{padding: 0 var(--spacing-xl);   }

        .intro-txt__content {font-size: 4.2rem;}

    .row-columns__grid-3{  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }

  
}

/* Stili per il contenuto principale */