html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  /* box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb; */
  box-shadow: none;
} 

html {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

/* body {
  margin-bottom: 60px;
} */

/**** ICONA HEADER ****/
#menuIcon i {
    font-size: 28px;
}

/**** BUTTON ****/
.btn-primary, .btn-primary:hover {
    background-color: #22577e;
    border-color: #22577e;
}

/**** BACKGROUND ****/
section.bg-primary {
    background-color: #22577e !important;
}

/**** FOOTER ****/
.social-icon {
    width: 40px;
    height: 40px;
    background-color: #2b2b2b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #0d6efd; /* blu bootstrap */
    color: white;
}

.footer-link {
    background: none;
    border: none;
    color: #adb5bd;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}

.footer-link:hover {
    color: white;
}

/**** HERO ****/
.hero-section {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1698958656652-41ac66d0e2e0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1920');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    z-index: 2;
}

/* Bottone effetto hover */
.hero-btn {
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: scale(1.05);
}

/**** CHI SIAMO ****/
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/**** NUMERI ****/
.stat-box {
    padding: 20px;
}

.icon-box {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 28px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1.1rem;
    color: #dbeafe; /* simile a text-blue-100 */
}

/**** SETTORI INTERVENTO ****/
.sector-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

.sector-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
    background: #e7f1ff;
    color: #22577e;
    /*color: #0d6efd;*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sector-icon i {
    font-size: 28px;
}

/**** SERVIZI ****/
.service-card {
    background: #f8f9fa;
    padding: 1.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    background: #22577e;
    /*background: #0d6efd;*/
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 24px;
}

.service-description {
    line-height: 1.7;
}

/**** REALIZZAZIONI ****/
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

/* overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    color: #fff;
    /* sfumatura elegante */
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: opacity 0.3s ease;
}

/* effetto hover */
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/**** CONTATTI ****/
.contact-icon {
    width: 48px;
    height: 48px;
    background: #e7f1ff;
    color: #22577e;
    /*color: #0d6efd;*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
}

.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* rapporto 16:9 */
    height: 0;
    overflow: hidden;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-responsive-contact {
    position: relative;
    width: 100%;
    padding-bottom: 28.125%; /* rapporto 16:9 */
    height: 0;
    overflow: hidden;
}

.map-responsive-contact iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/**** BOX PAGINE REALIZZAZIONI ****/
.img-wrapper {
    position: relative;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    display: block;
}

.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.img-wrapper:hover .img-hover {
    opacity: 1;
}


/* ******** INFORMATIVA ******** */
.pnlInformativa {
    position: fixed;
    max-width: 915px;
    width: 90vw;
    inset: 0;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    max-height: 285px;
    background: #FBF6EF !important;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(115, 115, 115, 0.81);
    box-shadow: 0px 0px 15px 5px rgba(115, 115, 115, 0.81);
    padding: 16px;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 99999;
}

#testoInf {
    font-family: -apple-system, sans-serif !important;
    line-height: 20px;
}

#personalizza, #rifiuta, #accetta, #rifiutaT, #salvaPreferenze {
    border-radius: 64px !important;
}

#btnMobile {
    display: none;
}

/* Media query per schermi piccoli */
@media (max-width: 575px) {
    .pnlInformativa {
        max-width: 100%;
        width: 100vw;
        padding: 12px;
        max-height: 470px;
        margin-top: 0;
    }

    #accetta, #rifiuta {
        width: 100%;
    }

    #btnMobile {
        display: unset;
    }

    #btnNMobile {
        display: none;
    }
}

/* *************** COOKIE *************** */
.pnlCookie {
    position: fixed;
    max-width: 600px;
    width: 90vw;
    top: 30px;
    left: calc(50% - 300px);
    z-index: 99999;
    background: #FBF6EF !important;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(115,115,115,0.81);
    box-shadow: 0px 0px 15px 5px rgba(115,115,115,0.81);
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
}

@media (max-width: 575px) {
    .pnlCookie {
        max-width: 400px;
        width: 90vw;
        top: 30px;
        left: calc(50% - 175px);
    }
}


.cookie .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .cookie .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.cookie .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .cookie .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

.cookie input:checked + .slider {
    background-color: #2196F3;
}

.cookie input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

.cookie input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    content: "\2714";
    font-size: 22px;
    text-align: center;
    line-height: 26px;
    color: #2196F3;
}

/* Rounded sliders */
.cookie .slider.round {
    border-radius: 34px;
}

    .cookie .slider.round:before {
        border-radius: 50%;
    }


.cookie .switchDisabled {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .cookie .switchDisabled input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.cookie .sliderDisabled {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .cookie .sliderDisabled:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
        content: "\2714";
        font-size: 22px;
        text-align: center;
        line-height: 26px;
        color: #ccc;
    }

    .cookie .sliderDisabled.round {
        border-radius: 34px;
    }

        .cookie .sliderDisabled.round:before {
            border-radius: 50%;
        }

    .cookie .sliderDisabled.False:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
        content: "";
        font-size: 22px;
        text-align: center;
        line-height: 26px;
        color: #ccc;
    }

#privacyModal .modal-body {
    max-height: 80vh;
    overflow: auto;
}

/**** CONFERME INVIO FORM ****/
.novisibile {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

.conferma {
    width: 344px;
    background-color: white;
    height: 60px;
    -webkit-box-shadow: 6px 3px 5px 0px rgba(100,100,100,0.5);
    -moz-box-shadow: 6px 3px 5px 0px rgba(100,100,100,0.5);
    box-shadow: 6px 3px 5px 0px rgba(100,100,100,0.5);
    border: 1px solid grey;
    position: fixed;
    left: calc(50vw - 112px);
    top: 100px;
    z-index: 1200;
}

.conferma div {
    float: left;
    text-align: center;
    vertical-align: middle;
    height: 58px;
}

.divConf1 {
    background-color: #23ca05;
    color: white;
    width: 35px;
    font-size: 60px;
    font-weight: bold;
    line-height: 0px;
    padding-top: 16px;
}

.divConf1 i {
    font-size: 22px;
    color: white;
}

.divErr1 {
    background-color: red;
    color: white;
    width: 35px;
    font-size: 60px;
    font-weight: bold;
    line-height: 0px;
    padding-top: 16px;
}

.divErr1 i {
    font-size: 22px;
    color: white;
}

.divConf2, .divConf3 {
    width: 272px;
    color: #1a1a1a;
    text-align: center;
    padding: 10px;
}

.divConf2 p, .divConf3 p {
    margin-top: 4px !important;
    font-size: 12px !important;
    margin-bottom: 4px !important;
    text-align: left;
}

.divConf2 h6, .divConf3 h6 {
    margin-top: 2px !important;
    margin-bottom: 0px !important;
    font-size: 13px !important;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
}

.chiudiConferma i {
    font-size: 22px;
}

.chiudiConferma {
    width: 35px;
    color: #666666;
    font-size: 50px;
    padding-top: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 0px;
}
