/*
 * Theme Name: Ematonil plus
 * Description: Starter Theme to use with Timber
 * Author: Dunk S.r.l.
 * Author URI: https://thedunk.it
 * Template: timber-starter-theme
 * Version: 1.0.0
*/

html{scroll-behavior: smooth;}

body {
    font-family: "Albert Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 24px;
    color: #002352;
}

:root{--header-height: 0px;}
:root{
    --header-doc-width: 150px;
    --header-curve-width: 167px;
}
.sezione_fullscreen{min-height: calc(100vh - var(--header-height));}

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

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

a, a:hover, a:visited{text-decoration: none; color: #D5104A;}

.testo_bianco{color:#ffffff;}
.testo_blu{color:#243A76;}
.testo_rosso{color:#D5104A;}

.mini_text{font-size:10px;}

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

.bg_bianco{background-color: #fff;}
.bg_blu{background-color:#002352; color:#fff;}
.bg_blu_footer{background-color: #243A76; color:#fff;}
.bg_rosso{background-color:#D5104A; color:#fff;}

.bordered{border: 5px solid #002352;}

.btn {
    border-radius: 25px;
    border: 0;
    font-size: 20px;
    line-height: 22px;
    padding: 18px 30px;
    font-weight: 700;
    background-color: #D5104A;
    color:#fff;
}
.btn_celeste{background-color: #00ADEE;}
.btn:hover{background-color: #002352; color:#fff;}
.btn:active, .btn:focus{outline: none;box-shadow: none;}

.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;}

.padding_y_big{padding-top: 6rem !important; padding-bottom: 6rem !important;}

header{
    width:100%;
    top:0;
    background-color:#fff;
    z-index:101;
    /*
    background-image:url("/wp-content/themes/ematonil/static/img/menubar_bg_end.svg");
    background-position: right;
    background-size: 640px;
    */
    /*background-position:right -35px top;*/
    /*background-size:430px;*/
    background-image:url("/wp-content/themes/ematonil/static/img/menubar_bg_end.svg");
    background:#00ADEE;
    background-repeat:no-repeat;
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
    min-height: 90px;
}
header.sticky{
    position:fixed;
    left:0;
    transform: translateY(0);
    box-shadow: 2px 4px 10px #c0c0c0;
}
header:not(.sticky){
    transform: translateY(0);
}

/*HEADER+MENU*/
.header_row{
    min-height: 90px;
    align-items: stretch !important;
    position: relative;
}
.header_row::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:-100vw;
    right:calc(var(--header-doc-width) + var(--header-curve-width));
    background-color:#fff;
    z-index:0;
}
.header_brand{
    flex-shrink: 0;
    display:flex;
    align-items:center;
    position: relative;
    z-index:1;
}
.header_menu{
    flex: 1 1 auto;
    min-width: 0;
    display:flex;
    align-items:center;
    position: relative;
    z-index:1;
}
.header_menu_inner{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 100%;
}
.header_cta{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}
.header_cta .btn{
    white-space: nowrap;
}
.linguetta, .col_menu{
    position: relative;
}
.header_curve,
.header_doc{
    flex-shrink: 0;
}
.header_curve{
    align-self: stretch;
    min-height: 90px;
    height: 100%;
    position: relative;
    overflow: hidden;
    width: var(--header-curve-width);
    min-width: var(--header-curve-width);
    max-width: var(--header-curve-width);
    aspect-ratio: 339.03 / 182.37;
    z-index:1;
}
.header_doc{
    min-width: var(--header-doc-width);
    width: var(--header-doc-width);
    max-width: var(--header-doc-width);
    display:flex;
    align-items:center;
    justify-content:center;
    position: relative;
    z-index:1;
}
.linguetta::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color:#fff;
    -webkit-mask-image:url('/wp-content/themes/ematonil/static/img/linguetta_bianca.svg');
    -webkit-mask-repeat:no-repeat;
    -webkit-mask-position:left center;
    -webkit-mask-size:100% 100%;
    mask-image:url('/wp-content/themes/ematonil/static/img/linguetta_bianca.svg');
    mask-repeat:no-repeat;
    mask-position:left center;
    mask-size:100% 100%;
    z-index:-1;
}
.col_menu::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color:#fff;
    z-index:-1;
}

.logo_doc{
    top:20px;
    right: 20px;
    transform: scale(0.8);
    transform-origin: center;
}

header.sticky .logo{transition: width 0.3s ease-out;}
header ul, footer ul{list-style: none; padding-left: 0; margin-bottom: 0;}
header li, footer li{display: inline-block; margin-right: 15px;}
header li:last-child, footer li:last-child{margin-right: 0;}
header .col_menu ul{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    column-gap: 32px;
    row-gap: 10px;
    width: auto;
    min-height: 100%;
}
header .col_menu li{
    margin-right: 0;
}
header a, header a:visited, header a:hover{color:#002352; font-weight: bold; font-size: 18px; line-height: 22px;}
header .current-menu-item a,
header .current-menu-item a:visited,
header .current-menu-item a:hover,
header .menu-item-anchor-active a,
header .menu-item-anchor-active a:visited,
header .menu-item-anchor-active a:hover{color:#869BB6;}
footer a{color:#fff;}

.mega-menu ul{list-style: none; font-size: 1.8rem;}
.mega-menu .menu a{color:#fff;}
.mega-menu nav{margin-top: 100px;}

/*
.mega-menu {
    transition: .3s ease-in-out;
    position: fixed;
    padding-bottom: 78px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    opacity: 0;
    display: none;
    overflow-y: auto;
    text-align: right;
}
.mega-menu nav {
    padding-top: 70px;
}
.mega-menu.reveal {
    opacity: 1;
    background:#000;
}
.close-menu {
    height: 30px;
    cursor: pointer;
    display: none;
}
*/

.white_gradient{background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 30%, rgba(255, 255, 255, 0) 50%); bottom:0; left: 0; width: 100%; z-index: 1;}
.black_gradient{background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 50%); bottom:0; left: 0; width: 100%; z-index: 1;}

.visore.visore_mobile .white_gradient{background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0) 60%); background-size: cover;}
.visore .visore_content{z-index: 3; position: relative;}
.visore_overskin_sx, .visore_overskin_dx{z-index: 2; position: absolute; top: 0; width: 500px;}
.visore_overskin_sx{left:0;}
.visore_overskin_dx{right: 0;}
.visore .headline{font-weight: 700; font-style: italic; font-size: 80px; line-height: 84px;}
.visore .bodycopy{font-weight: 300; font-size: 40px; line-height: 44px;}

.visore_interno{height: 450px;}
.visore_interno .headline{font-weight: 700; font-style: unset; font-size: 64px; line-height: 68px;}
.visore_interno .bodycopy{font-weight: 300; font-size: 30px; line-height: 34px;}

.sfumatura_bianca{background: linear-gradient(180deg,rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 20%);}
.sfumatura_blu{background: linear-gradient(180deg,rgba(0, 173, 238, 0.5) 0%, rgba(0, 173, 238, 0) 20%);}
.sfumatura_rossa{background: linear-gradient(180deg,rgba(213, 16, 74, 0.5) 0%, rgba(213, 16, 74, 0) 20%);}

.foto_con_widetext.sfumatura_bianca, .foto_con_widetext.sfumatura_blu, .foto_con_widetext.sfumatura_rossa{background: linear-gradient(180deg, rgba(0,173,238,0.5) 0%, rgba(0,173,238,0) 40%);}

.titolo{font-weight: 700; font-size: 45px; line-height: 47px;}
.sottotitolo{font-size: 20px; line-height: 24px;}
.titoletto{font-weight: 700; font-size: 34px; line-height: 36px;}

.disclaimer{font-size: 24px; line-height: 26px;}

.sezione_con_icone .servizio_icona .circle, .sezione_con_icone .servizio_icona .square{width: 200px; height: 200px; margin: auto;}
.servizio_icona .icona{background-size: contain; background-repeat: no-repeat;}

.icon-shape {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 5px solid #002352;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}
.icon-inner {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-inner img{
    object-fit: contain;
}
.sezione_con_icone .icon-inner img {
    width: 100%;
    height: 100%;
}

.sezione_icone_quadrate_band_sx .icon-inner img{width: 100%}

/*.sezione_icone_quadrate_band_sx .icon-shape{width: 70%; height: 70%;}*/


.sezione_icone .titolo_icona{line-height: 1.2; min-height: calc(1.2em * 2);}

.sezione_con_icone .col-md-3 .icon-shape{margin:auto;}
/*.col-md-3 .icon-shape img{max-width: 65%;}*/

.circle {border-radius: 50%;}
.circle .icon-inner {border-radius: 50%;}
.square {border-radius: 25px; border-color: #D5104A;}
.square .icon-inner {border-radius: 25px;}

.servizio_icona .descrizione_immagine, .servizio_immagine .descrizione_immagine{font-size: 20px; line-height: 22px;}

.file_audio_item{border-radius: 25px;}
.ico_play, .ico_stop{cursor:pointer;}
.img_waves{opacity:0; transition: opacity .3s ease;}
.img_waves.visible{opacity:1;}

.accordion-item{border-radius: 25px !important;}
.accordion-button{padding:0; background-color: transparent; color:#fff;}
.accordion-button::after{background-image: url("/wp-content/themes/ematonil/static/img/arrow_white.svg"); background-size:2rem; width: 2.25rem;}
.faq_domanda{font-size: 24px; line-height: 28px;}
.accordion-button:not(.collapsed){background-color: transparent; color:#002352; box-shadow: none; border-bottom: 2px dashed #002352;}
.accordion_item_aperto{border:1px solid #002352;}
.accordion_item_aperto .faq_domanda{margin-bottom: 20px;}
.accordion-flush .accordion-item:first-child{border-top: 1px solid #002352;}
.accordion-item:not(:first-of-type){border-top: 1px solid #002352;}
.accordion-flush .accordion-item{border-left: 1px solid #002352; border-right: 1px solid #002352;}
.accordion-flush .accordion-item:last-child{border-bottom: 1px solid #002352;}
.accordion-button:not(.collapsed)::after{background-image: url("/wp-content/themes/ematonil/static/img/arrow.svg"); rotate:180deg;}
.accordion-button:focus{box-shadow: none;}

.card_diagramma{border-radius: 25px; border: 5px solid #D5104A; display:flex; align-items: center; justify-content: center;}
.card_diagramma p{margin-bottom: 0;}

.modal-content{border-radius:25px; margin-top:80px; overflow: hidden; position: relative;}
.modal-header{border-bottom: 0; z-index: 2;}
.modal-body{z-index: 2;}
.modal_footer{padding:1rem; z-index: 2; padding-left: 10%;}
.modal .btn-close{background-image: url("/wp-content/themes/ematonil/static/img/ico_close_bianco.svg"); opacity:1; background-size: contain;}
.modal .visore_overskin_sx, .modal .visore_overskin_dx{position:absolute; height:100%; z-index:1;}

.waves_svg path{
    stroke:#00ADEE;
    stroke-width:5;
    stroke-linecap:round;
    transform-origin:center;
    transform-box:fill-box;
}
@keyframes wave {
    0%   { transform: scaleY(0.3); }
    50%  { transform: scaleY(1); }
    100% { transform: scaleY(0.3); }
}
.img_waves.visible path{
    animation: wave 0.8s infinite ease-in-out;
}
.img_waves.visible path:nth-child(2){ animation-delay:0.1s }
.img_waves.visible path:nth-child(3){ animation-delay:0.2s }
.img_waves.visible path:nth-child(4){ animation-delay:0.3s }
.img_waves.visible path:nth-child(5){ animation-delay:0.4s }
.img_waves.visible path:nth-child(6){ animation-delay:0.5s }
.img_waves.visible path:nth-child(7){ animation-delay:0.6s }

.gradiente_controllato{position: relative;}
.gradiente_controllato::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px; /* altezza massima del gradiente */
    background: linear-gradient(180deg, rgba(0,173,238,0.5) 0%, rgba(0,173,238,0) 40%);
    pointer-events: none;
}

.footer{font-size:15px; line-height: 21px;}
.footer .menu-item a{font-size: 18px; line-height: 24px; color:#fff;}
.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;}
.footer .separatore{width: 100%; height: 2px; background: rgba(255, 255, 255, 0.1);}
.footer p{margin-bottom: 0;}

/*.bg_img_celeste{background-image:url("/wp-content/themes/ematonil/static/img/menubar_bg_end.svg"); background-position: left; background-size: 640px; background-repeat: no-repeat;}*/


/* Nasconde l'introduzione della Dichiarazione Cookiebot */
.CookieDeclarationDialogText {
    display: none !important;
}






@media screen and (min-width: 1200px) {
    .modal-dialog{max-width: 1000px;}
    .sezione_icone_quadrate_band_sx .icon-shape{width: 70%;}

    /*header{background-position:right -125px top;}*/
}

@media screen and (min-width: 1200px) and (max-width: 1599px) {
    header a, header a:visited, header a:hover{font-size: 16px; line-height: 20px;}
    header .col_menu ul{column-gap: 22px;}
    .header_menu_inner{gap: 16px;}
    .header_cta .btn{
        font-size: 17px;
        line-height: 18px;
        padding: 14px 22px;
    }
}

@media screen and (min-width: 992px) {
    :root{
        --header-doc-width: 150px;
        --header-curve-width: 167px;
    }
    .header_brand{
        width: 290px;
        max-width: 290px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .servizio_icona .circle, .servizio_icona .square{width: 185px; height: 185px;}
    header .col_menu ul{column-gap: 20px;}
    header a, header a:visited, header a:hover{font-size: 16px; line-height: 18px;}
    .header_menu_inner{gap: 16px;}
    .header_cta .btn{
        font-size: 16px;
        line-height: 16px;
        padding: 12px 20px;
    }
    .header_menu_inner:has(.header_cta) ul{
        display: none;
    }
    .header_menu_inner:has(.header_cta){
        justify-content: flex-end;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .servizio_icona .circle, .servizio_icona .square{width: 140px; height: 140px;}
    .sezione_con_icone .servizio_icona .circle, .sezione_con_icone .servizio_icona .square{width:150px; height: 140px;}
    .header_brand .hdr-logo-link{
        max-width: 340px;
    }
}



@media screen and (max-width: 991px) {
    :root{
        --header-doc-width: 146px;
        --header-curve-width: calc(72px * 339.03 / 182.37);
    }
    .header_row{
        min-height: 72px;
    }
    .header{
        min-height: 72px;
    }
    .header .container{
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .header_row > *{
        padding-left: 0;
        padding-right: 0;
    }
    .header_brand{
        flex: 1 1 auto;
        max-width: none;
        width: auto;
        padding-left: 20px;
        padding-right: 12px;
        min-width: 0;
    }
    .header_brand .hdr-logo-link{
        display: block;
        max-width: 340px;
    }
    .header_brand img{
        width: 100%;
    }
    .header_curve{
        flex: 0 0 var(--header-curve-width);
        width: var(--header-curve-width);
        min-width: var(--header-curve-width);
        max-width: var(--header-curve-width);
        min-height: 72px;
        height: 72px;
        aspect-ratio: 339.03 / 182.37;
        margin-right: 0;
    }
    .header_doc{
        flex: 0 0 var(--header-doc-width);
        min-width: var(--header-doc-width);
        width: var(--header-doc-width);
        max-width: var(--header-doc-width);
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
    }
    .logo_doc{
        top: 0;
        right: 0;
    }
    .descrizione_immagine{font-size: 24px; line-height: 26px;}
}

@media screen and (max-width: 767px) {
    :root{
        --header-doc-width: 132px;
        --header-curve-width: calc(64px * 339.03 / 182.37);
    }
    body{font-size: 26px; line-height: 30px;}
    /*.visore_mobile{height: 450px;}*/
    .visore .headline{font-size: 54px; line-height: 58px;}
    .visore .bodycopy{font-size: 30px; line-height: 34px;}

    .foto_con_widetext.sfumatura_bianca,
    .foto_con_widetext.sfumatura_blu,
    .foto_con_widetext.sfumatura_rossa {
        background-position: 0 120px; /* regola questo valore */
    }
    .header_row{
        min-height: 64px;
    }
    .header{
        min-height: 64px;
    }
    .header_brand{
        padding-left: 20px;
        padding-right: 14px;
    }
    .header_brand .hdr-logo-link{
        max-width: 280px;
    }
    .header_curve{
        flex: 0 0 var(--header-curve-width);
        width: var(--header-curve-width);
        min-width: var(--header-curve-width);
        max-width: var(--header-curve-width);
        min-height: 64px;
        height: 64px;
    }
    .header_doc{
        flex: 0 0 var(--header-doc-width);
        min-width: var(--header-doc-width);
        width: var(--header-doc-width);
        max-width: var(--header-doc-width);
        padding-left: 8px;
        padding-right: 8px;
    }
    .header_cta{
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    :root{
        --header-doc-width: 116px;
        --header-curve-width: calc(58px * 339.03 / 182.37);
    }
    body{font-size: 22px; line-height: 26px;}
    /*.visore_mobile{height: 350px;}*/
    .padding_y_big{padding-top: 4rem !important; padding-bottom: 4rem !important;}
    .btn {font-size: 16px; line-height: 16px; padding: 12px 20px;}
    .visore .headline{font-size: 32px; line-height: 36px;}
    .visore .bodycopy{font-size: 24px; line-height: 26px;}
    .titolo {font-size: 24px; line-height: 26px;}
    .foto_con_widetext{text-align: center;}
    .disclaimer{font-size: 18px; line-height: 20px;}
    .visore_interno{height: 350px;}

    .sottotitolo{font-size: 22px; line-height: 26px;}
    .header_row{
        min-height: 58px;
    }
    .header{
        min-height: 58px;
    }
    .header_brand{
        padding-left: 16px;
        padding-right: 12px;
    }
    .header_brand .hdr-logo-link{
        max-width: 220px;
    }
    .header_curve{
        flex: 0 0 var(--header-curve-width);
        width: var(--header-curve-width);
        min-width: var(--header-curve-width);
        max-width: var(--header-curve-width);
        min-height: 58px;
        height: 58px;
    }
    .header_doc{
        flex: 0 0 var(--header-doc-width);
        min-width: var(--header-doc-width);
        width: var(--header-doc-width);
        max-width: var(--header-doc-width);
        padding-left: 6px;
        padding-right: 6px;
    }
}
