/*
 * Theme Name: HS2
 * Description: Starter Theme to use with Timber
 * Author: MonkeySpace3
*/

html{scroll-behavior: smooth;
overflow-x: hidden;}

body {
    font-family: "Gabarito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    font-weight: 400;
    color: #222222;
    overflow-x: hidden;
}

.absolute{position: absolute;}
.fixed{position: fixed;}
.relative {position: relative;}

.text-right{text-align: right;}
.text-center{text-align: center;}

h1{font-size: 32px;}
h2{font-size: 28px;}
h3{font-size: 22px;}
h4{font-size: 18px;}

ul{
    margin: 0;
}

header a, footer a, header a:hover, footer a:hover, header a:visited,  footer a:visited, .cta-pill-menu a, .cta-pill-menu a:hover, .cta-pill-menu a:visited{text-decoration: none; color: #fff;}
a {text-decoration: none;}

.testo_bianco{color:#ffffff;}
.testo_dark{color:#222222;}
.testo_ottanio{color:#003E52;}
.testo_zucchero{color:#82A0BE;}
.testo_rosa{color:#FFF5E6;}

.mini_text{font-size:10px;}
.w-fit{width: fit-content;}

.bg{background-size: cover; background-repeat: no-repeat; background-position: center;}

.bg_bianco{background-color: #fff;}
.bg_ottanio{background-color:#003E52; color:#fff;}

.circle{border-radius: 50%;}
.bordered{border: 5px solid #fff;}

.btn {
    border-radius: 20px;
    border: 0;
    text-transform: uppercase;
    font-size: 18px;
    padding: 8px 30px;
}
.btn:hover{background-color: #ccc;}
.btn:active, .btn:focus{outline: none;box-shadow: none;}
.btn-ottanio{background-color: #003E52; color: #ffffff;}
.btn-ottanio a{color:#ffffff;}
.btn-bianco{background-color: #ffffff; color: #003E52;}

.uppercase {text-transform: uppercase;}
.italic {font-style: italic;}

.light {font-weight: 300;}
.regular {font-weight: 400;}
.medium {font-weight: 500;}
.semibold {font-weight: 600;}
.bold {font-weight: 700;}
.extrabold {font-weight: 800;}
.black {font-weight: 6900;}

.overflow-h{overflow: hidden;}

header{position: fixed; width: 100%; top:0; background-color: transparent; z-index:101; transition: background-color 0.3s ease, box-shadow 0.3s ease;}
header.scrolled{background-color: rgba(255,255,255,0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 12px rgba(0,0,0,0.08);}
header ul{list-style: none; padding-left: 0; margin-bottom: 0px;}
header li{display: inline-block; margin-right: 15px;}
header li:last-child{margin-right: 0;}
header .nav-main a{color:#3E556B; font-size: 18px;}

.single-services .no-mb ul {
  list-style-position: inside;
}

.content-wrapper{padding-top: 0;}
.object-fit-cover{
    object-fit: cover;
}
.object-fit-contain{
    object-fit: contain;
}

.no-mb p, .single-services p, .single-posizioni-aperte p{
    margin: 0;
}

.no-last-mb p:last-child {
    margin-bottom: 0;
}

.mega-menu {
    display: none;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0px;
    z-index: 100;
    overflow-y: auto;
    background-color: #1D5D62;
}
.mega-menu.reveal {
    opacity: 1;
}
.mega-menu nav {
    padding-top: 80px;
}
.mega-menu ul {
    list-style: none;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    font-size: 1.5rem;
}
.mega-menu li {
    display: block;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 14px 0;
}
.mega-menu .menu a {
    color: #fff;
    font-size: 20px;
}
.mega-menu.reveal {
    display: block;
}
.close-menu {
    height: 30px;
    cursor: pointer;
}


.gabarito-regular{
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.gabarito-bold{
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.footer{font-size:12px;}
.footer .social_footer{list-style: none;}
.footer .social_footer li{display: inline-block; margin-right: 5px;}
.footer .social_footer li:last-child{margin-right: 0;}

.border-rounded{
    border-radius: 0 0 160px 160px;
}

.br-50{
    border-radius: 50px;
}
.br-t-50{
    border-radius: 50px 50px 0 0;
}

.green_bg{
    background-color: #96C34F;
}

.dark-green_bg{
    background-color: #1D5D62;
}

.dark-green_bg_imp{
    background-color: #1D5D62 !important;
}

.green_text{
    color: #96C34F !important;
}

.dark-green_text{
    color: #1D5D62 !important;
}

.green_border{
    border: #96C34F 1px solid;
}


.bottom-hero{
    bottom: 20%;
}

.section-title{
    font-size:72px;
    line-height: 42px;
    font-weight: 700;
    font-kerning: 20%;
}

.content_title{
    font-size: 42px;
    line-height: 30px;
    font-weight: 700;
    font-kerning: 20%;
}

.cta-pill{
    border-radius: 20px;
    padding: 10px 32px;
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
    display: block;
    width: fit-content;
}

.cta-pill-menu{
    border-radius: 20px;
    padding: 10px 32px;
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
    display: block;
    width: fit-content;
}

header .cta-pill-menu, header .cta-pill{
    font-size: 18px;
    font-weight: 400;
}

.cta-text{
    font-size: 22px;
}

.border-top-white{
    border-top: 1px solid #fff;
}

/* hero */

.hero-gradient{
    background: #ffffff;
    background: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(29, 93, 98, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(29, 93, 98, 1) 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(29, 93, 98, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFF", endColorstr="#1D5D62", GradientType=0);
}

.hero_title{
    font-size: 100px;
    line-height: 80px;
    font-kerning: 20%;
}

.hero_subtitle{
    font-size: 32px;
    line-height: 26px;
    font-weight: 400;
    font-kerning: 20%;
}

/* chi siamo */
.swiper {
      width: 100%;
      height: 100%;
    }

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiperChiSiamo .swiper-slide {
    aspect-ratio: 1 / 1;
}

.swiperChiSiamo .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* servizi */
.card_img_h{
    height: 270px;
    overflow: hidden;
}
.card_img_h img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* prenota */

.section-h{
    height: 750px;
}

/* bande colorate */
.banda_hero{
    height: 30%;
    width: 98%;
    background-color: #96C34F;
    bottom: 15%;
}

.banda_hero_page{
    height: 35%;
    width: 98%;
    background-color: #96C34F;
    bottom: 15%;
}

.banda_chi_siamo{
    height: 30%;
    width: 98%;
    background-color: #96C34F;
    bottom: 15%;
}

.banda_servizi{
    height: 30%;
    width: 98%;
    background-color: #96C34F;
    bottom: 15%;
}

.banda_prenota{
    height: 30%;
    width: 98%;
    background-color: #96C34F;
    bottom: 15%;
}

.banda_lavora{
    height: 30%;
    width: 98%;
    background-color: #1D5D62;
    bottom: 15%;
}

.border-bottom-verde{
    border-bottom: 2px solid #1D5D62;
}


.wpcf7 input[type="submit"] {
    background-color: #7a9a3a;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
}

.form-check{
    padding-left: 0;
}

.form-check-label a{
    color: #1D5D62 !important;
}


/* ===== CF7 FORM (no autop) ===== */

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

.wpcf7 .wpcf7-not-valid-tip {
    font-size: 14px;
    color: #dc3545;
    margin-top: 4px;
    display: block;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #dc3545;
}

.wpcf7 .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 16px;
}

.wpcf7 input[type="submit"] {
    background-color: #7a9a3a;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
}

/* Checkbox sedi */
.wpcf7 .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px 24px;
    border: none;
    border-radius: 6px;
    background-color: #fff;
    width: 100%;
    position: relative;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

/* Stile custom checkbox — sedi + privacy */
.wpcf7 .wpcf7-checkbox input[type="checkbox"],
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #adb5bd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 6px;
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked,
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
    background-color: #7a9a3a;
    border-color: #7a9a3a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: 18px;
    font-family: "Gabarito", sans-serif;
    color: #222222;
    cursor: pointer;
    vertical-align: middle;
}

/* Privacy link */
.wpcf7 a {
    color: #1D5D62 !important;
}

@media screen and (max-width: 1399px) {
     .banda_hero{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }
    .banda_servizi{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }
    .banda_prenota{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }
    
}

@media screen and (max-width: 991px) {
    .hero_title{
        font-size: 80px;
        line-height: 0.85;
    }
    .hero_subtitle{
        font-size: 26px;
        line-height: 20px;
        font-weight: 400;
    }
    .banda_hero{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }
    .banda_chi_siamo{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }
     .banda_prenota{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }

    .wa__btn_popup, .wa__btn_popup_icon{
        right: 15px !important;
        bottom: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
    .btn-contatti{
        font-size: 1.5rem;
        margin-top: 24px;
    }
    footer{
        font-size: 14px;
    }

    .logo_footer img{
        height: 80px;
    }

    .hero_title .riga-2 {
        margin-top: -0.20em; /* si scala col font-size automaticamente */
    }

    .hero_title .riga-3 {
        margin-top: -0.20em;
    }

    .riga-2-last {
        display: block;
        transform: translateY(-0.2em);
    }


}

@media screen and (min-width: 991px) {
    .riga-3 {
        margin-top: 0 !important;
    }
    .hero_title {
        white-space: nowrap;
    }
    .riga-2 { margin-top: -0.20em; }

    .banda_hero_page{
    height: 25%;
    width: 90%;
    background-color: #96C34F;
    bottom: 21%;
    left: 0;
}

    
}

@media screen and (max-width: 767px) {
    
    .bottom-hero{
        bottom: 30%;
    }
    .cta-pill-menu{
        padding: 0;
    }

    .banda_hero{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }

    .banda_chi_siamo{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }

    .banda_servizi{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }

    .banda_prenota{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }

    .banda_lavora{
        height: 30%;
        width: 98%;
        background-color: #1D5D62;
        bottom: 15%;
    }
    .btn-docs{
        font-size: 11px !important;
    }
}

@media screen and (max-width: 480px) {
    .section-title{
        font-size: 48px;
    }
    .hero_title{
        font-size: 58px;
        line-height:0.85;
    }
    .w-50{
        width: 100% !important;
    }
       .banda_chi_siamo{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }
    .banda_servizi{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }
    .banda_prenota{
        height: 30%;
        width: 98%;
        background-color: #96C34F;
        bottom: 15%;
    }
    .banda_lavora{
        height: 30%;
        width: 98%;
        background-color: #1D5D62;
        bottom: 15%;
    }
}

