@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400,400i,500,700");
@import url("https://fonts.googleapis.com/css?family=Lato:100,300,400");

:root {
    scroll-behavior: initial;

    --main-color: #fcc207;
    --main-blue: #006bb3;
    --body-color: #000;
    --body-color-t: #2d2d32bf;
    --very-dark-grey: #323232;

    
    --light-color: #cfb86a;
    --main-very-dark: #868378;
    --main-dark: rgb(184, 177, 155);
    --main-light: #ddc36e;
    --main-very-light: #f0d57e;
    --secondary-color: #000;
    --main-grey: #a8a9ad;
}

html,
body {
    color: #000;
    font-size: 15px;
    font-weight: 400;
    max-width: 100%;
    overflow-x: hidden!important;
    scroll-behavior: smooth;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-y: auto;
}

::-webkit-scrollbar {
    height: 0 !important;
    width: 8px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--main-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-blue);
}
::-webkit-scrollbar-track {
    background: #fff;
}

a{
    text-decoration: unset;
}

.preloader {
    background-color: #fffffff2;
    height: 100vh;
    width: 100vw;
    position: fixed;
    overflow: hidden;
    z-index: 1062;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
}

.preloader .spinner {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 75px;
    height: 75px;
}
.preloader .spinner div {
    position: absolute;
    border: 3px solid var(--main-color);
    opacity: 1;
    border-radius: 50%;
    animation:spinner 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.preloader .spinner div:nth-child(2) {
    animation-delay: -0.5s; 
}

.preloader span {
    display: inline-block;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%,-50%);   
}

/** COOKIES **/

body.cookies_open .cookies_banner_backdrop {
    opacity: 1;
    pointer-events: initial;
    z-index: 2147483643;
}

#cookies_modal .form-check {
    transform: translate(5px, 5px)!important;
}

#cookies_modal .form-switch .form-check-input:checked {
    background-color: var(--main-color);
    background-image: url("data:image/svg+xml, %3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")!important;
    border-color: var(--main-color);
}

#cookies_modal .form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml, %3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2885, 135, 185, 0.25%29'/%3e%3c/svg%3e");
    border-color: var(--main-light);
    box-shadow: 0 0 0 0.25rem var(--main-color-transp);
}

#cookies_modal .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgb(0 0 0 / 25%);
    border-color: var(--secondary-color);
}
#cookies_modal .form-check-input[type=checkbox].square {
    border-radius: 0;
}
#cookies_modal .form-check-input:checked{
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

#cookies_modal .form-check-input:checked {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

#cookies_modal .modal-header, #cookies_modal .modal-footer, #cookies_modal .border-top, .modal .modal-header, .modal .modal-footer, .modal .border-top {
    border-color: #e6e6e6!important;
}

#cookies_modal .modal-header, #cookies_modal .modal-footer, #cookies_modal .modal-content, .modal .modal-header, .modal .modal-footer, .modal .modal-content {
    border-radius: 15px;
}

#cookies_modal, .modal {
    z-index: 2147483646;
}

.body_color {
    color: var(--body-color);
}

.main_color {
    color: var(--main-color);
}

.btn_accept_all_cookie, .btn_save_cookies, .btn_close_banner, .main_bg {
    background: var(--main-color);
}

.main_blue_bg{
    background-color: var(--main-blue);
}

.btn_accept_all_cookie:hover, .btn_save_cookies:hover, .btn_close_banner:hover {
    background: var(--main-very-light);
}

.btn_preferences_cookie {
    background: var(--very-dark-grey);
}

.btn_close_banner, .btn_preferences_cookie, .btn_accept_all_cookie, .btn_cookie_policy, .btn_save_cookies, .close_modal_btn {
    border: none;
    border-radius: 10px;
    line-height: 1;
    text-align: center!important;
}

.btn_close_banner.closed_icon {
    background: transparent !important;
}

.closed_icon i {
    font-size: 18px;
}

.btn_close_banner.disabled, .btn_accept_all_cookie.disabled, .btn_save_cookies.disabled {
    cursor: not-allowed;
    opacity: .5;
}

.btn_preferences_cookie:hover {
    background: var(--body-color);
}

.btn_cookie_policy, .close_modal_btn {
    background: #e6e6e6;
    color: var(--body-color)!important;
}

.btn_cookie_policy:hover, .close_modal_btn:hover {
    background: #dcdcdc;
}

.close_cookies_modal {
    color: var(--body-color-t);
}

.close_cookies_modal:hover {
    color: var(--body-color);
}

.cookies_banner {
    background: #000;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 2147483644;
}

.cookies_banner.hidden {
    opacity: 0;
    transform: translateY(100%);
}

.cookies_banner_backdrop {
    background: #000000bf;
    bottom: 0;
    height: 100vh;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: -2147483647;
}

.cookies_trigger {
    background-color: var(--main-blue);
    border-radius: 100%;
    bottom: 12px;
    font-size: 24px;
    height: 48px;
    left: 12px;
    position: fixed;
    width: 48px;
    z-index: 2147483642;
}

.cookies_trigger::before {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

/** COOKIES **/

.eweb_signature {
    background: #000;
    color: #ffffffbf;
    font-size: 75%;
}

.eweb_signature a{
    color: #fff;
    text-decoration: unset;
}
.eweb_signature a:hover{
    color: #fff;
    text-decoration: unset;
}

.ease{
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

.cursor-pointer{
    cursor: pointer;
}

.btn-yellow {
    color: #fff;
    background-color: var(--main-color);
    border-radius: 0px;
    transition: all ease .5s;
    text-transform: uppercase;
 }

 .btn-yellow.btn-arrow-right:hover{
    background-color: #fff;
    color: var(--main-color);
    font-weight: 700;
 }

 .btn-yellow.btn-on-white:hover{
    background-color: var(--main-blue);
    color: var(--main-color);
    font-weight: 700;
 }

 .btn-yellow.btn-on-blue:hover{
    background-color: #fff;
    color: var(--main-blue);
    font-weight: 700;
 }

 .btn-white {
    color: var(--main-blue);
    background-color: #fff;
    border-radius: 0px;
    transition: all ease .5s;
    text-transform: uppercase;
 }
 .btn-white:hover{
    background-color: var(--main-blue);
    color: #fff;
    font-weight: 700;
 }

 .btn-blue:hover {
     background-color: #0e5381;
 }

 .text-yellow{
    color: var(--main-color) !important;
 }

 .text-blue{
    color: var(--main-blue) !important;
 }

 .text-black{
    color: #000;
 }

 .nav_title_r{
    font-size: 1rem;
    font-weight: 700;
 }

 .nav_sun_right{
    
    right: 130px;
 }
 .sun_header_img{
    width: 200px;
    position: absolute;
    top: 0;
    right: 0;
    transition: all ease .5s;
 }

 .logo-mob{
    width: 180px;
    transition: all ease .5s;
 }

 img.logo-mob.after_scroll{
    width: 120px;
 }
 img.sun_header_img.after_scroll{
    width: 110px;
 }

 .half-screen {
    /* height: 50vh; */
}

.img-section {
    height: 60vh;
    background-size: cover;
    background-position: center;
}

.img-section.home{
    background-image: url('../../media/images/general/Top-operai.jpg');
  	background-position: right;
}

.text-section {
    height: 40vh;
    background-color: var(--main-blue);
    color: white;
}

nav.navbar{
    background-color: #fff;
    padding-top: 0;
    padding-bottom: 0;
}

.border-bottom-light-grey{
    border-bottom: solid 1px #9E9E9E;
}

.main-content {
    padding-top: 100px;
}


.home_text_starter{
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.btn.btn_arrow{
    width: 50%;
    position: relative;
}

.btn-arrow-right:after {
    background-color: white;
    right: -14px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);

    content: "";
    position: absolute;
    top: 4px;
    width: 25px;
    height: 25px;
    background: inherit;
    border: inherit;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 0px 4px 0px 0px;
    -webkit-border-radius: 0px 4px 0px 0px;
    -moz-border-radius: 0px 4px 0px 0px;
}


.bg-color-yellow{
    background-color: var(--main-color) !important;
}
.bg-color-blue{
    background-color: var(--main-blue) !important;
}
.bg-color-light-grey{
    background-color: #f4f4f4 !important;
}

.arrows{
    width: 90%;
    height: 34.5px;
    margin-top: 1rem;
    position: relative;
}

.arrows.arrow-start:after {
    background-color: white;
    right: -12px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);

    content: "";
    position: absolute;
    top: 6px;
    width: 23px;
    height: 23px;
    background: inherit;
    border: inherit;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 0px 4px 0px 0px;
    -webkit-border-radius: 0px 4px 0px 0px;
    -moz-border-radius: 0px 4px 0px 0px;
    z-index: 99;
}

/* .box-sun{
    height: 150px;
    position: relative;
} */

.img_sun{
    height: 90px;
    display: flex;
    align-items: end;
}


.sun_vantaggi{
    width: 26px;
}

.green_sun_list{
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translate(0, -50%);
}

.mt_text{
    margin-top: 2px;
}

.color-green{
    color: #06c903 !important;
}
.color-red{
    color: #fc070b !important;
}

.accordion-button{
    text-transform: uppercase;
    font-weight: 700;
}

.accordion-button:not(.collapsed) {
    color: #000 !important;
    background-color: #F5F5F5;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
    z-index: 3;
    border-color: unset;
    /* border-color: #feec86; */
    outline: 0;
    box-shadow: unset;
    /* box-shadow: 0 0 0 .25rem rgba(253, 229, 13, 0.25); */
}

img.img-behind{
    max-width: 600px;
}

img.img_vantaggi{
    max-width: 330px;
}

.vantaggi_desktop{
    bottom: 0;
    right: 0;
}

.img_vantaggi_desktop{
    width: 680px;
}

.zx-1{
    z-index: 1 !important;
}

#questionAnswer .accordion-item {
    background-color: #fff;
    border: unset;
    border-bottom: 1px solid rgb(245 200 47);
}
#questionAnswer .accordion-button::after {
    background-image: url(https://topfotovoltaico.it/media/images/general/arrow-down.png);
}
#questionAnswer .accordion-button:not(.collapsed)::after {
    background-image: url(https://topfotovoltaico.it/media/images/general/arrow-down.png);

}

.works_box .works_img {
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-position: center;
}

/* .works_box .works_img.ap_tor {
    background-image: url('../../media/images/projects/abitazione_privata_torino.jpeg');
}
.works_box .works_img.parc_cun {
    background-image: url('../../media/images/projects/parco_fotovoltaico_cuneo.jpeg');
}
.works_box .works_img.ap_cun {
    background-image: url('../../media/images/projects/abitazione_privata_cuneo.jpeg');
} */

.works_box .works_img::after{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 2000px rgb(168 152 162 / 30%);
    z-index: 1;
    transition: all ease 1s;
}
.works_box:hover .works_img:after , .project_detail::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 2000px rgb(0 0 0 / 50%);
    z-index: 1;
}

.works_box .work_title, .project_detail .project_title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    z-index: 99;
    transition: all ease 1s;
}

.works_box:hover .work_title, .project_detail .project_title{
    color: var(--main-color);
    border-bottom: solid 1px;
    font-size: 2.1rem;
}

.works_box .works_description {
   margin-top: 1rem;
}

.works_link{
    color: initial;
    text-decoration: unset;
}
.works_link:hover{
    color: initial;
    text-decoration: unset;
}

.partner_box{
    padding: 10px;
    border: solid 1px #cccccc47;
}
.partner_box .parter_img{
    max-width: 200px;
}

.border-left{
    border-left: 2px solid;
}

.link_href_form{
    text-decoration: unset;
    transition: all ease .5s;
}
.link_href_form:hover{
    font-weight: 700;
}

section.bg-color-blue .link_href_form{
    color: #fff;
}
section.bg-color-blue .link_href_form:hover{
    color: #ffc300;
}
section.bg-color-yellow .link_href_form{
    color: var(--main-blue);
}
section.bg-color-yellow .link_href_form:hover{
    color: #0e517e;
}

.home_form button[type="submit"]{
    width: 350px;
}

.home_form .form-check{
    border-bottom: 1px solid;
    width: 270px;
}

.home_form .form-check-label, .photovoltaic_contacts_form .form-check-label{
    font-size: 16px;
    margin-left: -1rem;
    color: #fff;
}

.home_form .form-check-input, .photovoltaic_contacts_form .form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 0 !important;
    border: solid 1px #fff;
    margin-right: 1rem;
}

.home_form .form-check-input:checked[type=radio], .photovoltaic_contacts_form .form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

.photovoltaic_contacts_form .form-control{
    border: none !important;
    border-radius: 0 !important;
}

.SumoSelect {
    width: 100% !important;
}

.map_container{
    height: 500px;
}

.photovoltaic_contacts_form .SumoSelect>.CaptionCont {
    height: 55px !important;
    padding-top: 1.1rem;
    font-size: 16px;
    padding-left: 0.85rem;
}

.contact_form .form-control{
    border: 0;
    border-bottom: solid 1px #fff;
    border-radius: 0 !important;
}

.contact_form .form-check-input{
    width: 30px;
    height: 30px;
    border-radius: 0 !important;
    border: solid 1px #fff;
    margin-right: 1rem;
}

section.bg-color-blue .contact_form .form-control{
    background-color: var(--main-blue);
    color: #fff;
}

section.bg-color-yellow .contact_form .form-control{
    background-color: var(--main-color);
    color: var(--main-blue);
}

section.bg-color-blue .contact_form .form-check-input, .home_form .form-check-input, .photovoltaic_contacts_form .form-check-input{
    background-color: var(--main-blue);
}

section.bg-color-yellow .contact_form .form-check-input{
    background-color: var(--main-color);
}

.contact_form .select2 {
    width: 100% !important;
}

.contact_form .select2-container--default .select2-selection--single{
    background: transparent !important;
    border-color: #fff !important;
    border-right: none !important;
    border-top: none !important;
    border-left: none !important;
}

.contact_form .select2-container--default .select2-selection--single .select2-selection__placeholder, 
.contact_form .select2-container--default .select2-selection--single .select2-selection__rendered,
.contact_form .select2-container--default .select2-selection--single .select2-selection__clear{
    color: #fff !important;
}

.contact_form .select2-container--default .select2-selection--single .select2-selection__arrow b{
    border-color: #fff transparent transparent transparent !important;
}

.cut_string, .form-group > label, .input-group-text {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.form-group > label {
    position: absolute;
    left: 1px;
    right: 1px;
    top: 18px;
    transform: translateY(-50%);
    cursor: text;
    z-index: 0;
}

.form-control:focus {
    box-shadow: unset;
}

.link_footer{
    color: var(--main-blue);
    text-decoration: unset;
    transition: all ease .5s;
}

.link_footer:hover{
    color: var(--main-color);
    font-weight: 700;
}

.logo-footer{
    width: 200px;
}

.list-group-footer .list-group-item{
    border: 0;
}
.list-group-footer .list-group-item a{
    text-decoration: unset;
}


.offer_title_h{
    font-size: 3rem;
    font-weight: 700;
}

.offer_subtitle_h{
    font-size: 2rem;
    font-weight: 700;
}

.fiditalialogo{
    width: 150px;
}


.project_detail{
    position: relative;
}

.animation_pulsee{
    animation: pulse-shadow 1.7s infinite;
}

.animation_zoomInOut{
    animation: zoomInZoomOut 2s infinite;
}

.select2-container--default .select2-selection--single{
    border-radius: 0px;
    height: 55px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 50%;
    right: 1px;
    width: 20px;
    transform: translateY(-50%);
}
.select2-dropdown{
    border-radius: 0px;
}

@keyframes zoomInZoomOut {
    0% {
      transform: scale(1, 1);
    }
    50% {
      transform: scale(1.1, 1.1);
    }
    100% {
      transform: scale(1, 1);
    }
  }

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0
    }

    70% {
        box-shadow: 0 0 20px 5px rgba(255,255,255,0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0)
    }
}


@keyframes spinner {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .home_text_starter{
        font-size: 2rem;
    }
    .green_sun_list{
        left: 17px;
    }
}

@media (min-width: 768px) {
    .border-md-end {
        border-right: 1px solid #dee2e6 !important;
    }
}



/***** CONTAINER ******/
@media (min-width: 992px) {
    .container-pers {
        max-width: 1075px;
    }
    
}
@media (max-width: 992px) {
    .logo-mob{
        width: 150px;
    }
    .sun_header_img {
        width: 70px;
    }
    
}


@media  (min-width: 768px) and (max-width: 992px) {
    img.img-behind {
        max-width: 330px;
    }
    
}

@media (min-width: 1200px) {
    .container-pers {
    	max-width: 1280px ;
    }

    .photovoltaic_contacts_form button[type="submit"]{
        width: 50%;
    }
}

@media (min-width: 1400px) {
    .container-pers {
        max-width: 1555px;
    }
}
/***** CONTAINER ******/

@media (max-width: 1400px) {
    .home_text_starter{
        font-size: 2.8rem;
    }
    .fiditalialogo{
        width: 100px;
    }
}