/* colori */
.title-style-three .main-title span {
    color: var(--prime-five);
}

.hero-banner-five .hero-heading span {
    color: var(--prime-one);
}

.hero-heading {
    color: var(--prime-six);
}

.theme-inner-banner {
    padding: 0;
    background: none;
}

.container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    padding-right: var(--bs-gutter-x, .0rem);
    padding-left: var(--bs-gutter-x, .0rem);
}

.hero-banner-five {
    padding: 0;
}

theme-menu-four .navbar .navbar-nav .nav-item.active .nav-link, .theme-menu-four .navbar .navbar-nav .nav-item:hover .nav-link {
    color: var(--prime-five);
}

.theme-main-menu.sticky-menu.fixed {
    background: #073763;
}

.theme-menu-four .navbar .navbar-nav .nav-link:before { /* riga sotto link */
    background: var(--prime-five);
}

.theme-menu-four .navbar .navbar-nav .nav-item.active .nav-link, .theme-menu-four .navbar .navbar-nav .nav-item:hover .nav-link {
    color: var(--prime-five);
}

.ico {
    background-color: var(--prime-three);
    padding: 5px;
    margin: 9px 8px;
    border-radius: 5px;
    color: #fff;
}

.fancy-short-banner-five .msg-btn {
    background: var(--prime-five);
}

.fancy-short-banner-five .bg-wrapper {
    background: none;
    padding: 0;
    border-radius: 0;
}

.form-style-one {
    margin: 150px 0 0 0;
}

.form-style-one-contatti {
    margin: 0;
}

.form-style-one-contatti .form-title {
    font-family: gorditamedium;
    font-size: 58px
}

.testoimmagine {
    display: flex;
}

.testoimmagine span {
    margin-left: 15px;
}

.title-style-three .sc-title {
    color: var(--prime-tree);
    background: #F2F2F2;
}

.form-style-one-contatti form label {
    display: block;
    line-height: initial;
    color: rgba(0,40,78,.5);
    font-size: 16px;
    margin-bottom: 7px
}

.form-style-one-contatti form input {
    font-size: 18px;
    width: 100%;
    height: 60px;
    border: 1px solid rgba(0,40,78,.15);
    border-radius: 8px;
    padding: 0 20px
}

.form-style-one-contatti form select {
    font-size: 18px;
    width: 100%;
    height: 60px;
    border: 1px solid rgba(0,40,78,.15);
    border-radius: 8px;
    padding: 0 20px
}

.form-style-one-contatti form textarea {
    font-size: 18px;
    width: 100%;
    max-width: 100%;
    height: 190px;
    max-height: 190px;
    border: 1px solid rgba(0,40,78,.15);
    border-radius: 8px;
    padding: 10px 20px
}

.theme-menu-four {
    padding-left: 20px;
    padding-right: 40px;
}

.carousel-caption {
    position: absolute;
    right: 15%;
    top: 18%;
    bottom: 1.25rem;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: left;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 600px;
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    top: 380px;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
    list-style: none;
}

.form-select {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    height: 60px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Colori e stili */
.bianco {
    color: white;
}

.grigio {
    color: grey;
}

.rosso {
    color: red;
}

.verde {
    color: green;
}

.round {
    border-radius: 20px;
}

/* Cookie inizio */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    color: black;
    font-size: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .cookie-banner .perp {
        width: 70%
    }

    .cookie-banner .buttons {
        display: flex;
        gap: 20px;
    }

    .cookie-banner button {
        padding: 8px 16px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
    }

.accept {
    background: #213F60;
    color: white;
}

.manage {
    background: #dadada;
    color: black;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    font-size: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 50%;
    max-width: 600px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .modal.show {
        display: flex;
        flex-direction: column;
        opacity: 1;
    }

    .modal h3 {
        margin-bottom: 15px;
        text-align: center;
    }

    .modal p {
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .modal button {
        margin-top: 15px;
        padding: 10px 20px;
        background: #213F60;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .modal .chiudi {
        background: #dadada;
        color: black;
    }

    .modal .buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

    .slider::before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #4CAF50;
}

    input:checked + .slider::before {
        transform: translateX(24px);
    }

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

        .cookie-banner .perp {
            width: 85%
        }

        .cookie-banner .buttons {
            flex-direction: column;
            gap: 10px;
        }

    .modal {
        width: 80%;
        padding: 20px;
    }

        .modal .buttons {
            flex-direction: column;
            gap: 10px;
        }

    .toggle-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner button {
        padding: 2px 5px;
        border: none;
        cursor: pointer;
        border-radius: 2px;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        font-size: 10px !important;
    }

    .modal {
        font-size: 10px !important;
    }
}

/* Cookie Fine */

/* modale success */

.custom-modal-overlay {
    display: none; /* nascosto di default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.custom-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.custom-modal-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeInScale 0.3s ease-in-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#customCloseModal {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    #customCloseModal:hover {
        background-color: #0056b3;
    }
/*modale success fine */


/* Modale  */

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    animation: fadeInScale 0.3s ease-out;
}

.modal-overlay.show {
    display: flex; /* o block */
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    /*    padding: 10px 20px; */
    cursor: pointer;
    border-radius: 5px;
}

    button:hover {
        background-color: #0056b3;
    }
/* Modale  Fine */

/* Responsive */

@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        color: var(--prime-six) !important;
    }
}

@media (max-width: 992px) {
    .hero-banner-five {
        padding: 0 !important;
    }
    
    .theme-menu-four:before {
        width: 200px !important;
        height: 200px !important;
    }
    
    .carousel-caption {
        position: absolute;
        right: 15%;
        top: 30%;
        bottom: 1.25rem;
        left: 15%;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        color: #fff;
        text-align: left;
    }
    /*
    .carousel-indicators {
        top: 400px;
    }
    */
}

@media (min-width: 991px) and (orientation: landscape) {
    .carousel-indicators {
        top: 90% !important;
    }

    .navbar .navbar-nav .nav-link {
        color: var(--prime-six) !important;
    }
}
@media screen and (max-width: 428px) and (max-height: 926px) and (orientation: portrait) {
    .carousel-indicators {
        top: 180px;
    }
       .carousel-inner {
        height: 36vh !important;
        top: 0rem;
    }
    .theme-main-menu {
        padding: 2px 0 !important;
    }
    .theme-main-menu .inner-content {
        padding: 2px 5px !important;
    }
    .carousel-caption {
        bottom: 0;
        width: 300px;
        top: 58px !important;
        padding-top: 0rem;
        padding-bottom: 0rem;
    }
    .navbar .navbar-nav .nav-link {
        color: var(--prime-three);
    }
    .text-lg {
        font-size: 17px !important;
        line-height: 1.3em !important;
    }
    .hero-banner-five .hero-heading span {
        font-size: 19px;
        color: var(--prime-one);
        padding-top: 1em;
    }
    .hero-banner-five h1.hero-heading {
        font-size: 19px !important;
    }
    .theme-menu-four:before {
        display: none;
    }
    .md-pt-30 {
        padding: 0 !important;
    }
    .md-mb-40 {
        padding: 0 !important;
    }
    .pt-40 {
        padding: 0 !important;
    }
}
@media (max-width: 375px) {
    .service-sidebar .service-category {
        display: none; /* side bar nel dettaglio servizio */
    }
    .carousel-indicators {
        top: 170px;
    }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 800px !important;
    }
}

@media (min-width: 576px) and (orientation: landscape) {

    .carousel-indicators {
        top: 58%;
    }

    .navbar .navbar-nav .nav-link {
        color: var(--prime-three);
    }
    .md-pt-30 {
        padding: 0 !important;
    }
    .md-mb-40 {
        padding: 0 !important;
    }
    .pt-40 {
        padding: 0 !important;
    }
}

@media (max-width: 1200px) {
    .navbar .navbar-nav .nav-link {
        font-size: 14px;
    }
}
