/*
 * Theme Name: Crewel
 * Description: Starter Theme to use with Timber
 * Author: MonkeySpace3
*/

html{scroll-behavior: smooth;}

body {
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    color: #103D5D;
    background-color: #F6FBFF;
}

.testo_mid{font-size: 36px; line-height: 50px;}

.epilogue{
    font-family: "Epilogue", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

.absolute{position: absolute;}
.fixed{position: fixed;}
.relative {position: relative;}

.z2{position:relative; z-index:2;}

h1{font-size: 60px; line-height: 140%; font-family: "Epilogue", sans-serif;}
h2{font-size: 48px; line-height: 140%; font-family: "Epilogue", sans-serif;}
h3{font-size: 36px; line-height: 140%; font-family: "Epilogue", sans-serif;}
h4{font-size: 28px; line-height: 140%; font-family: "Epilogue", sans-serif;}
h5{font-size: 22px; line-height: 140%; font-family: "Epilogue", sans-serif;}

a, a:hover, a:visited{text-decoration: none; color: #E85E57;}
a.testo_bianco, a.testo_bianco:hover, a.testo_bianco:visited{color:#fff;}
a.testo_salmone a.testo_salmone:hover, a.testo_salmone:visited{color:#E85E57;}
a.testo_blu a.testo_blu:hover, a.testo_blu:visited{color:#103D5D;}

.testo_bianco{color:#fff !important;}
.testo_dark{color:#2E4753;}
.testo_salmone{color:#E85E57;}
.testo_grigio{color:#536978;}
.testo_blu{color:#103D5D;}

.mini_text{font-size:12px; line-height: 18px;}

.bg{background-size: cover; background-repeat: no-repeat; background-position: center;}

.bg_bianco{background-color: #fff;}
.bg_soft{background-color: #F6FBFF;}
.bg_dark{background-color:#2E4753; color:#fff;}
.bg_blu{background-color:#103D5D; color:#fff;}
.bg_salmone{background-color:#E85E57; color:#fff;}

.waves_pattern{background-image: url("/wp-content/themes/aces/static/img/geometric_blue_pattern.svg"); background-repeat: repeat;}

.circle{border-radius: 50%;}
.bordered{border: 5px solid #fff;}

.btn {
    border: 0;
    border-radius: 0;
    font-size: 16px;
    line-height: 18px;
    padding: 12px 30px;
    background-color: #E85E57;
    color:#fff;
    font-weight: 600;
}
.btn:hover{background-color: #27587C; color:#fff;}
.btn:active, .btn:focus{outline: none;box-shadow: none;}
.btn-blu{background-color: #103D5D; color: #ffffff;}
.btn-blu a{color:#fff;}
.btn-bianco{background-color: #ffffff; color: #103D5D;}
.btn_salmone{background-color: #E85E57; color: #fff;}
.btn_classic{background-color:#fff; border-width:1px; border-style: solid; border-color: rgba(16, 61, 93, .2); color:#103D5D; cursor: default !important; border-left: 6px solid #F3A445;
    background-image: url('/wp-content/themes/crewel/static/img/arrow_go_classic.svg');
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 30px 30px;
    padding-left: 56px;
    font-family: "Epilogue", sans-serif;
    font-size: 22px;
    line-height: 24px;
    font-weight: 400;
}
.btn_classic:hover{background-color:#fff; color:#103D5D;}

.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: 900;}

.overflow-h{overflow: hidden;}

header{width: 100%; top:0; z-index:101; background-color: #fff;}
header.menu-open{background-color: #F6FBFF;}
header .logo{transition: width 0.3s ease-out; width: 100%;}
header.sticky{transition: max-height 0.3s ease-out;}
header ul{list-style: none; padding-left: 0; margin-bottom: 0;}
header li{display: inline-block; margin-right: 15px;}
header li:last-child{margin-right: 0;}
header a{color:#fff !important;}

header.sticky{
    position:fixed;
    left:0;
    transform: translateY(0);
}
header:not(.sticky){
    position: relative;
    transform: translateY(0);
}

.icone_menu img{height: 24px; cursor: pointer;}

/*MENU*/
.site-header {
    position: relative;
    z-index: 1060;
}

.mega-menu {
    position: fixed;
    left: 0;
    width: 100%;
    top: var(--header-height, 70px);
    background: #f6fbff;
    z-index: 1050;
    transform: translateY(-100%);
    visibility: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    padding: 40px 0;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1),
    visibility 0s linear 0.35s; /* aspetta la fine del transform prima di nascondere */
}

.mega-menu.reveal {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1),
    visibility 0s linear 0s; /* in apertura diventa visibile subito */
}

.mega-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-nav li {
    margin-bottom: 12px;
}

.mega-menu-nav a {
    font-size: 1.5rem;
    text-decoration: none;
    color: inherit;
}

/* Toggle icone dentro il bottone */
.hamburger-btn {
    border: 0;
    background: transparent;
    padding: 0;
}

.hamburger-btn .icona-chiusa { display: none; }
.hamburger-btn[aria-expanded="true"] .icona-aperta { display: none; }
.hamburger-btn[aria-expanded="true"] .icona-chiusa { display: inline-block; }

/* Blur + blocco scroll quando il menu è aperto */
#content.blur {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

body.overflow-h {
    overflow: hidden;
}

.mega-menu.reveal, .megamenu_footer{border-top-width: 1px; border-top-style: solid; border-top-color: rgba(16, 61, 93, .2);}

.mega-menu ul{list-style: none; padding-left: 0;}
.mega-menu .colonna_primaria a{font-size: 48px; line-height: 160%; color:#103D5D;}
.mega-menu .colonna_secondaria a{font-size: 22px; line-height: 200%; color:#103D5D;}
.mega-menu .colonna_secondaria > ul > li{margin-top: 8px;}
.mega-menu .colonna_secondaria > ul > li:first-child{margin-top: 0;}
.mega-menu .menu-item-has-children ul a{font-size: 16px; line-height: 140%;}
.mega-menu a:hover{color:#E85E57;}
.mega-menu .menu_orizzontale a{color:#103D5D;}
.mega-menu .menu_orizzontale a:hover{color:#E85E57;}

.mega-menu .colonna_primaria ul li:nth-child(2) > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.mega-menu .colonna_primaria ul li:nth-child(2) > a::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("/wp-content/themes/crewel/static/img/go.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.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;}

.header_bg{height: 80px;}
.header .header_logo{top:-20px; left:0;}

.hero_hp{background-position: center bottom; height: 100vh;}
.hero_hp .blocco_titolo{padding-top: 10%;}
.hero_hp .h_nome{font-size: 20px; line-height: 22px;}
.blocco_hero{height: 100%; display: flex; flex-direction: column;}

.aces_card{border-radius: 30px; font-size: 18px; line-height: 24px;}

.swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testo_principale{font-size: 60px; line-height: 66px;}
.testo_secondario{font-size: 28px; line-height: 40px;}

.separatore{width: 100%; height: 1px; background-color: rgba(255, 255, 255, .3);}
.bg_soft .separatore{width: 100%; height: 1px; background-color: rgba(16, 61, 93, .2);}
.separatore_verticale{width: 1px; height: 100%; background-color: rgba(16, 61, 93, .2); margin:auto;}
.separatore_mini_giallo{width: 35px; height: 3px; background-color:#F3A445; margin-bottom:20px;}

.menu_verticale, .menu_verticale ul{list-style: none; padding-left: 0; margin-bottom:0;}
.menu_verticale li, .menu_verticale ul li{line-height: 1.4rem;}
.menu_orizzontale ul{list-style: none; margin-bottom: 0; padding-left: 0;}
.menu_orizzontale li{display: inline-block; margin-right: 10px;}
.menu_orizzontale li:last-child{margin-right: 0;}

.footer a{color:#fff;}
.footer_claim{font-size: 18px; line-height: 20px; font-weight: 300;}

.decoration_1{position: absolute; bottom:-186px; right: 0; z-index: 2;}
.decoration_2{position: absolute; bottom:0; left: 0; z-index: 1;}
.decoration_3{position: absolute; bottom:-38px; right: 0; z-index: 2;}

ul {
    list-style-image: url('/wp-content/themes/crewel/static/img/plus_giallo.svg');
}

.titolo_sezione{font-size: 60px; line-height: 84px;}
.sottotitolo_sezione{font-size: 22px; line-height: 32px;}
.testo_sezione{line-height: 180%; color:#536978;}
.bg_blu .testo_sezione{line-height: 180%; color:#fff;}

.accordion-button{font-size: 22px; line-height: 140%;}
.accordion-body{font-size: 16px; line-height: 200%; color:#536978;}
.accordion-button:not(.collapsed){color:inherit; background-color: transparent; box-shadow: inset 0 -1px 0 rgba(16,61,93,.2);}
.accordion-button:focus{box-shadow:none;}
.accordion-button::after {
    background-image: url('/wp-content/themes/crewel/static/img/accordion_piu.svg');
    transition: none;
    width: 2.5rem;
    height: 2.5rem;
    background-size: 2.5rem;
}
.accordion-button:not(.collapsed)::after {
    background-image: url('/wp-content/themes/crewel/static/img/accordion_close.svg');
    transform: none;
}
.accordion-item, .accordion-button{background-color: transparent !important;}

.img_con_contenuto .main_img{min-height: 400px;}

.label{font-size: 12px; line-height: 25px; margin-bottom: 5px;}

.contactform input, .contactform textarea{width:100%; background-color:transparent; border:0; border-bottom: 1px solid #103D5D; padding:10px 0; margin-bottom:10px; opacity: 50%; color:#103D5D;}
.bg_blu .contactform input, .bg_blu .contactform textarea, .bg_salmone .contactform input, .bg_salmone .contactform textarea{border-bottom: 1px solid #fff; color:#fff;}
.contactform ::placeholder{color:#103D5D;}
.bg_salmone .contactform ::placeholder{color:#fff;}
.bg_blu .contactform ::placeholder{color:#fff;}
.contactform{font-size: 28px; line-height: 140%;}
.contactform  .wpcf7-acceptance{font-size: 14px; line-height: 140%;}
.contactform  .wpcf7-acceptance input{width: auto;}
.contactform  .wpcf7-acceptance span{margin-left:0;}
.contactform input.wpcf7-submit{opacity:1; margin-top:20px; width: auto; background-color: #E85E57; color: #fff; border: 0; border-radius: 0; font-size: 16px; line-height: 140%; padding: 12px 56px 12px 18px; font-weight: 600;}
.contactform .wpcf7-not-valid-tip{font-size: 16px; line-height: 140%; color:#E85E57;}
.contactform .wpcf7-form-control.wpcf7-submit {
    background-image: url('/wp-content/themes/crewel/static/img/arrow_go.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 56px;
}
.iscrizione_newsletter .contactform input.wpcf7-submit{background-color: #103D5D;}
.contactform .argomenti input{width: auto; margin-bottom: 0;}
.contactform .argomenti .wpcf7-list-item{margin-left:0; margin-right: 10px; margin-bottom: 10px;}
.contactform .argomenti label{border: 1px solid #fff; font-size: 12px; line-height: 140%; padding: 12px 30px; font-weight: 500;}

.argomenti .wpcf7-list-item {
    display: inline-block;
    margin: 0 8px 8px 0;
}
.argomenti .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.argomenti input[type="checkbox"] {
    display: none;
}
/* stato selezionato: rettangolo evidenziato */
.argomenti .wpcf7-list-item label:has(input:checked) {
    border-color: #fff;
    background-color: #fff;
    color:#103D5D;
}
/* spunta che compare solo quando selezionato */
.argomenti .wpcf7-list-item label::after {
    content: "";
    display: none;
}
.argomenti .wpcf7-list-item label:has(input:checked)::after {
    content: "✓";
    display: inline-block;
    color: #103D5D;
    font-weight: bold;
}

.approfondisci a{text-decoration: underline; color:#103D5D; font-weight: 500;}
.approfondisci .ico{margin-left: 5px;}

.blog_ultime .news_img{min-height: 360px}
.blog_ultime .news_data, .news_ultime .news_data{font-size: 12px; line-height: 14px;}
.blog_ultime .news_titolo{font-size: 22px; line-height: 140%;}
.blog_ultime .card_news_big .approfondisci a{color:#fff;}

.blog_ultime .news_mini_img{aspect-ratio: 1 / 1;}
.blog_ultime .container{border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgba(16, 61, 93, .2);}
.blog.blog_ultime .container{border-bottom-width: 0;}

.card_news{border-width: 1px; border-style: solid; border-color: rgba(16, 61, 93, .2);}
.news_ultime .card_news_img, .blog .card_news_img{height: 150px;}

.immagine_top{height: 400px;}

.tag{padding: 4px 10px; font-size: 12px; line-height: 14px;}

.titoletto{font-size: 36px; line-height: 140%;}

.consulenza_titolo{font-size: 22px; line-height: 140%;}
.consulenza_descrizione{font-size: 16px; line-height: 200%; color:#536978;}
.card_consulenza{border-right-width: 1px; border-right-style: solid; border-right-color: rgba(16, 61, 93, .2);}
.row_consulenza > div:last-child .card_consulenza{border-right: 0;}
.consulenza{border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgba(16, 61, 93, .2);}

.card_servizio .approfondisci a{color:#E85E57;}
.servizio_titolo{font-size: 22px; line-height: 140%;}

.parliamone .info a, .parliamone .info a:hover, .parliamone .info a:visited{color:#103D5D;}
.parliamone.bg_blu .info a, .parliamone.bg_blu .info a:hover, .parliamone.bg_blu .info a:visited{color:#fff;}
.parliamone.bg_salmone .info a, .parliamone.bg_salmone .info a:hover, .parliamone.bg_salmone .info a:visited{color:#fff;}

.border_right_card{border-right-width: 1px; border-right-style: solid; border-right-color: rgba(16, 61, 93, .2);}

.decoration_bordo_giallo{width: 100%; height: 6px; background-color: #F3A445;}
.card_team{cursor: pointer;}
.card_team_nome{font-size: 22px; line-height: 24px;}
.card_team_carica{font-size: 12px; line-height: 14px;}
.card_team_modal .label{font-size: 12px; line-height: 14px;}
.card_team_email, .card_team_lavoro{font-size: 14px; line-height: 16px;}
.card_team_modal .modal-body{padding:0;}

.card_team_foto {
    position: relative;
    overflow: hidden;
}
.card_team_foto::after {
    content: "Scopri il profilo completo";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(243, 164, 69, .7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
    cursor: pointer;
}
.card_team:hover .card_team_foto::after {
    opacity: 1;
    visibility: visible;
}

/*.modal-content .card_team_descrizione{max-height: 500px; overflow: scroll;}*/

.community .sottotitolo{font-size: 22px; line-height: 140%;}

.community  .bb_row {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgba(16, 61, 93, .2);
}
.community  .bb_row:last-child{border-bottom-width: 0;}

.valori{border-top-width: 1px; border-top-style: solid; border-top-color: rgba(16, 61, 93, .2);}
.card_valori_nome{font-size: 22px; line-height: 24px;}

.label.mb-0 p{margin-bottom: 0;}

.card_servizio{border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgba(16, 61, 93, .2);}
.card_servizio:last-child{border-bottom-width: 0;}

.consulenza_icona .line{width:100%; height: 1px; background-color: rgba(16, 61, 93, .2); left:0; top:50%;}

.col-arrow {
    flex: 0 0 auto;   /* non cresce, non si restringe, larghezza definita dal contenuto/width */
    width: 60px;       /* regola in base alla dimensione desiderata */
    max-width: 60px;
}
.col-arrow img {width: 24px; position: relative; top:20%;}

.servizi_doppia_colonna .row_listaelementi .col_listaelementi:nth-child(even) .card_consulenza{border-right-width:0;}

.metodoSwiper .swiper-slide img{width: auto;}









@media (min-width: 768px) {
    .card_team_modal .modal-content {
        overflow: hidden;
    }
    .card_team_modal .col-md-6:first-child img {
        display: block;
        width: 100%;
        height: auto;
    }
    .card_team_modal .col-md-6:last-child .p-3 {
        display: flex;
        flex-direction: column;
    }
    .card_team_modal .close_modal,
    .card_team_modal .card_team_nome,
    .card_team_modal .card_team_carica,
    .card_team_modal .label,
    .card_team_modal .card_team_email,
    .card_team_modal .card_team_lavoro {
        flex-shrink: 0;
    }
    .card_team_modal .card_team_descrizione {
        overflow-y: auto;
    }

    .row_metodo > div:last-child .line{display: none;}
    .swiper .swiper-slide:last-child .line{display: none;}
}
@media screen and (min-width: 992px) {
    .modal-dialog{max-width: 90% !important;}
}
@media screen and (min-width: 1400px) {
    .modal-dialog{max-width: 50% !important;}
}

@media screen and (max-width: 1399px) {
}

@media screen and (max-width: 991px) {
    .modal-dialog{max-width: 80% !important; margin:auto;}

    .mega-menu .colonna_primaria a{font-size: 28px; line-height: 160%;}
}

@media screen and (max-width: 767px) {
    .card_consulenza{border-right:0;}
    .col-arrow{transform: rotate(90deg); width:100%;}

    .mega-menu .colonna_primaria ul li:nth-child(2) > a::after{display: none;}
    .mega-menu .colonna_secondaria a {
        font-size: 20px; line-height: 1.2rem;}

    .testo_principale{font-size: 50px; line-height: 56px;}
    .testo_mid{font-size: 26px; line-height: 36px;}
}

@media screen and (max-width: 480px) {
    .decoration_1{max-width: 60%; bottom: -85px;}

    .mega-menu .colonna_primaria a{font-size: 20px;}
}