/********** Template CSS **********/
:root {
    --primary: #28a745;
    --secondary: #1c335a;
    --light: #F8F8F9;
    --dark: #001D23;
    --primaryrgb: 241, 196, 0;
    --dark-navy: #1f355a;
    --bg-navy-overlay: rgba(15, 41, 74, 0.88);
    --font-titles: 'Righteous', sans-serif;
    --font-text: 'Roboto Condensed', sans-serif;
    --bg-blue: #1c335a;
    --primary-green: #28a745;
}

html {
    scroll-padding-top: 110px;
}

body {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 300;
    color: #000000;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: "Righteous", sans-serif;
    color: var(--secondary);
}
.text-bg-info {
	background-color: var(--primary)!important;
	color: #fff!important;
	font-size: 18px;
}

/* Link generici (ereditano il colore del testo o usano il colore primario per evitare il bianco-su-bianco) */
a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary);
}

.righteous {
    font-family: "Righteous", sans-serif;
}

/* --- PULSANTI GENERICI --- */
.btn {
    font-size: 1.4rem;
    font-weight: 500;
    transition: .5s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 15px 0px 20px 0px;
}

.btn-primary:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: transparent;
}

.btn-check:focus + .btn-primary, .btn-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: none;
}

.btn-outline-primary {
    color: #FFF;
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    color: #000;
    background-color: var(--primary);
    border-color: var(--primary);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.bg-info {
    background-color: var(--secondary) !important;
}

.carousel-indicators {
    z-index: 4;
}

/* --- ANIMAZIONI --- */
@-webkit-keyframes fading {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-moz-keyframes fading {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fading {
    from { opacity: 0; }
    to { opacity: 1; }
}

.start-delay {
    opacity: 0;
    -webkit-animation: fading ease-in 1s;
    animation: fading ease-in 1s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.border-light {
    --bs-border-opacity: .5;
    border-color: rgba(var(--bs-light-rgb), var(--bs-border-opacity)) !important;
}

@media (min-width: 1200px) {
    .display-6 {
        font-size: 2.2rem;
    }
}

.card {
    border: none;
    border-radius: 15px 0px 0px 30px;
}

.card-header {
    background-color: rgb(var(--primaryrgb));
    border-bottom: none;
    border-radius: 15px 0px 20px 0px !important;
}

.gx-5 {
    --bs-gutter-x: 5rem;
}

.object-fit-cover {
    -o-object-fit: cover !important;
    object-fit: cover !important;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

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

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

strong {
    font-weight: 500;
}

/*** CUSTOM NAV BAR ***/
.custom-navbar {
    background-color: transparent;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
}

.custom-navbar .container-fluid {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar .logo {
    height: 110px;
    max-width: 200px;
}

.custom-navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 125px;
}

.custom-navbar .nav-item {
    width: 120px;
    display: flex;
}

.custom-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    padding: 0 !important;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-top: 6px solid transparent;
}

.custom-navbar .nav-link.active,
.custom-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-top: 6px solid #28a745;
    color: #ffffff !important;
}

/* --- PULSANTE "CHIAMA ORA" --- */
.custom-btn-call {
    display: inline-flex;
    align-items: stretch;
    border-radius: 50px;
    overflow: hidden;
    text-decoration: none !important;
    font-family: 'Righteous', sans-serif;
    font-weight: 400;
    height: 54px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #1c335a;
}

.custom-btn-call:hover {
    transform: scale(1.015);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-btn-call .btn-text-blue {
    background-color: #1c335a;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 2.5rem 0 2rem;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    height: 100%;
}

.custom-btn-call .btn-text-green {
    background-color: #28a745;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 2rem 0 0;
    height: 100%;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    margin-left: -15px;
    position: relative;
    z-index: 1;
}

.custom-btn-call .icon-green-outer {
    background-color: #28a745;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 12px;
}

.custom-btn-call .icon-white-inner {
    background-color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-btn-call .icon-white-inner i {
    color: #1c335a;
    font-size: 1.25rem;
    transform: scaleX(-1) rotate(90deg);
}

.custom-btn-call .phone-number {
    font-size: 1.55rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

/* --- ACCOPPIATE MEDIA QUERY DA 992px A 1369px --- */
@media (min-width: 992px) and (max-width: 1369px) {
    .custom-btn-call {
        height: 46px;
    }

    .custom-btn-call .icon-green-outer {
        width: 46px;
        height: 46px;
        margin-right: 8px;
    }

    .custom-btn-call .icon-white-inner {
        width: 38px;
        height: 38px;
    }

    .custom-btn-call .icon-white-inner i {
        font-size: 1.05rem;
    }

    .custom-btn-call .phone-number {
        font-size: 1.25rem;
    }

    /* Nascondiamo la parte blu sotto i 1264px */
    @media (max-width: 1264px) {
        .custom-btn-call .btn-text-blue {
            display: none !important;
        }
        .custom-btn-call .btn-text-green {
            margin-left: 0 !important;
            padding-left: 12px !important;
            border-radius: 50px !important;
        }
    }

    /* Comportamento sopra i 1265px */
    @media (min-width: 1265px) {
        .custom-btn-call .btn-text-blue {
            padding: 0 1.8rem 0 1.5rem;
            font-size: 1.1rem;
        }
        .custom-btn-call .btn-text-green {
            padding: 0 1.4rem 0 0;
            border-top-left-radius: 46px;
            border-bottom-left-radius: 46px;
            margin-left: -12px;
        }
    }
}

/* --- ADATTAMENTO RESPONSIVE MOBILE BARRA DI CHIAMATA --- */
@media (max-width: 991.98px) {
    .custom-btn-call {
        height: 42px;
    }
    .custom-btn-call .btn-text-blue {
        padding: 0 1.5rem 0 1.2rem;
        font-size: 0.95rem;
    }
    .custom-btn-call .btn-text-green {
        padding: 0 1.2rem 0 0;
        border-top-left-radius: 42px;
        border-bottom-left-radius: 42px;
        margin-left: -10px;
    }
    .custom-btn-call .icon-green-outer {
        width: 42px;
        height: 42px;
        margin-right: 6px;
    }
    .custom-btn-call .icon-white-inner {
        width: 34px;
        height: 34px;
    }
    .custom-btn-call .icon-white-inner i {
        font-size: 0.9rem;
    }
    .custom-btn-call .phone-number {
        font-size: 1.1rem;
    }
}

/* --- MEDIA QUERY DESKTOP --- */
@media (min-width: 992px) {
    .navbar .logo {
         max-width: 250px;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }

    .top-bar .social-header {
        margin-right: -50px;
        margin-top: 50px;
        position: relative;
        z-index: 1;
    }
}

/* --- MEDIA QUERY MOBILE COMPLESSIVA (navbar, toggle & menu) --- */
@media (max-width: 991.98px) {
    .container-nav {
         background-color: var(--secondary);
    }
    .custom-navbar {
        min-height: auto;
        padding: 0.8rem 0 !important;
    }
    .custom-navbar .navbar-nav {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        padding-top: 1rem;
    }
    .custom-navbar .nav-item {
        width: 100%;
    }
    .custom-navbar .nav-link {
        padding: 0.8rem 1rem !important;
        text-align: left;
        justify-content: flex-start;
        height: auto;
        border-top: none;
        border-left: 5px solid transparent;
    }
    .custom-navbar .nav-link.active,
    .custom-navbar .nav-link:hover {
        border-top: none;
        border-left: 5px solid #28a745;
    }

    /* --- HAMBURGER MENU --- */
    .custom-navbar .navbar-toggler {
         background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
         background-repeat: no-repeat;
         background-position: center;
         border-color: rgba(255, 255, 255, 0.25);
         transition: all 0.3s ease;
    }

    .custom-navbar .navbar-toggler-icon {
         background-image: none;
    }

    .custom-navbar .navbar-toggler:hover,
    .custom-navbar .navbar-toggler[aria-expanded="true"] {
         background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2328a745' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
         border-color: #28a745;
    }

    .custom-navbar .navbar-toggler:focus {
         outline: none !important;
         box-shadow: none !important;
    }
}

.fixed-top {
    transition: .5s;
}

/*** Header ***/
.carousel-inner img {
    max-height: 1000px;
    object-fit: cover;
}

.carousel-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(28 51 90) 5%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    z-index: 2;
}

.hero-text-section {
    padding: 3rem 2rem;
    max-width: 700px;
}

.custom-title {
    font-family: 'Righteous', sans-serif;
    color: #ffffff;
    font-size: 2.8rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 10px solid #28a745;
    padding-left: 20px;
    margin-bottom: 2.5rem;
}

.custom-description {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    line-height: 1.4;
    padding-left: 26px;
    max-width: 507px;
}

@media (max-width: 1400px) {
    .custom-title {
         font-size: 4vw;
    }
}

@media (max-width: 1100px) {
    .hero-text-section {
        padding: 2rem 1rem;
    }
    .custom-title {
        border-left-width: 4px;
        padding-left: 12px;
        margin-bottom: 1.5rem;
    }
    .custom-description {
        font-size: 1.15rem;
        padding-left: 16px;
    }
}

.carousel-caption {
    top: 10rem;
    left: 0;
    right: 0;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    z-index: 3;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
    z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 1;
}

.carousel-indicators .active {
    background-color: var(--secondary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 500px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}

/* --- BOX SERVIZI IN INIZIO PAGINA --- */
.absolute-cards-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
    bottom: -110px;
}

.cards-white-box {
    background-color: #ffffff;
    border-radius: 55px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card {
    background-color: #e1f2e5;
    border-radius: 35px;
    padding: 2rem 12px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 260px;
    overflow: visible;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon-circle-bg {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card .icon-circle-bg i {
    color: #1c335a;
    font-size: 2.6rem;
}

.service-card .card-btn {
    background-color: #28a745;
    color: #ffffff !important;
    font-family: 'Righteous', sans-serif;
    font-weight: 400;
    text-align: center;
    text-decoration: none !important;
    display: block;
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: -12px;
    padding: 1rem 0.5rem;
    margin-top: auto;
    border-radius: 35px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.service-card .card-btn:hover {
    background-color: #218838;
}

@media (max-width: 1399.98px) {
    .absolute-cards-container {
        position: relative;
        left: 0;
        transform: none;
        margin-top: 3rem;
        bottom: 0;
    }

    .cards-white-box {
        border-radius: 35px;
        padding: 1.5rem;
    }

    .service-card {
        border-radius: 25px;
        min-height: 220px;
        padding: 1.5rem 8px 8px 8px;
    }

    .service-card .card-btn {
        width: calc(100% + 16px);
        margin-left: -8px;
        margin-right: -8px;
        margin-bottom: -8px;
        font-size: 0.95rem;
        border-radius: 25px;
        white-space: normal;
    }

    .service-card .icon-circle-bg {
        width: 95px;
        height: 95px;
    }

    .service-card .icon-circle-bg i {
        font-size: 2.2rem;
    }
}

.icon-circle {
   background-color: #ffffff;
   width: 50px;
   height: 50px;
   border-radius: 50%;
   color: #39b54a;
   font-size: 1.4rem;
   font-weight: bold;
}

/*** I NOSTRI SERVIZI (SEZIONE TABS E SLIDER) ***/
.services-section {
     position: relative;
     background: url('../img/hero-service.jpg') no-repeat top center;
     background-size: cover;
     padding: 80px 0;
     min-height: 100vh;
     display: flex;
     align-items: center;
     font-family: var(--font-text);
}

.services-section::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     z-index: 1;
     background: linear-gradient(90deg, rgb(28 51 90) 5%, rgba(255, 255, 255, 0) 100%);
}

.services-container {
     position: relative;
     z-index: 2;
     width: 100%;
     max-width: 1200px;
}

.subtitle-top {
     font-family: var(--font-titles);
     font-size: 14px;
     text-transform: uppercase;
     color: #ffffff;
     letter-spacing: 2px;
     margin-bottom: 5px;
     text-align: center;
}

.main-title {
     font-family: var(--font-titles);
     font-size: 42px;
     text-transform: uppercase;
     color: #ffffff;
     letter-spacing: 1px;
     margin-bottom: 40px;
     text-align: center;
}

.tabs-wrapper {
     border-bottom: 2px solid rgba(255, 255, 255, 0.2);
     margin-bottom: 40px;
     padding: 0;
}

.tabs-list {
     display: flex;
     justify-content: space-between;
     list-style: none;
     padding: 0;
     margin: 0;
     width: 100%;
}

.tab-item {
     flex: 1;
     text-align: center;
}

.tab-button {
     background: none;
     border: none;
     color: #ffffff;
     font-family: var(--font-titles);
     font-size: 15px;
     text-transform: uppercase;
     padding: 15px 10px;
     width: 100%;
     cursor: pointer;
     position: relative;
     transition: all 0.3s ease;
     white-space: nowrap;
     letter-spacing: 0.5px;
     opacity: 0.8;
}

.tab-button:hover {
     opacity: 1;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.tab-item.active .tab-button {
     opacity: 1;
}

.tab-item.active .tab-button::after {
     background-color: var(--primary-green);
}

.slider-window {
     overflow: hidden;
     width: 100%;
     border-radius: 40px;
}

.slider-track {
     display: flex;
     width: 500%;
     transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-container .service-card {
     width: 20%;
     flex-shrink: 0;
     background-color: #ffffff;
     padding: 25px;
     box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.service-img-wrapper {
     width: 100%;
     height: 100%;
     min-height: 320px;
     border-radius: 25px;
     overflow: hidden;
}

.service-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
}

.service-content-col {
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     padding-left: 20px;
}

.service-header-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 25px;
}

.services-container .service-card-title {
     font-family: var(--font-titles);
     font-size: 34px;
     text-transform: uppercase;
     color: var(--dark-navy);
     margin: 0;
     letter-spacing: 0.5px;
}

.category-icon-circle {
     width: 64px;
     height: 64px;
     background-color: var(--primary-green);
     color: #ffffff;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 26px;
}

.service-description {
     font-size: 16px;
     line-height: 1.5;
     color: #4a4a4a;
     margin-bottom: 35px;
     text-align: justify;
}

.service-description strong {
     color: #222222;
     font-weight: 700;
}

.btn-preventivo {
    display: inline-flex;
    align-items: center;
    background-color: var(--dark-navy);
    color: #ffffff !important; /* Forza il testo bianco nei pulsanti preventivo */
    text-decoration: none;
    padding: 5px 20px 5px 5px;
    border-radius: 50px;
    font-family: var(--font-titles);
    font-size: 20px;
    text-transform: uppercase;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
    letter-spacing: 0.5px;
}

.btn-preventivo:hover {
     background-color: #12213a;
     color: #ffffff !important;
     transform: translateY(-2px);
}

.btn-preventivo-circle {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 18px;
}

@media (max-width: 991px) {
   .tabs-list {
       flex-wrap: wrap;
       justify-content: center;
       gap: 10px 15px;
       border-bottom: none;
   }

   .tab-item {
       flex: 0 1 auto;
   }

   .tab-button {
       padding: 10px 15px;
       font-size: 14px;
   }

   .tab-button::after {
       bottom: 0;
       height: 3px;
       width: 60%;
       left: 20%;
   }

   .service-content-col {
       margin-top: 30px;
   }

   .service-img-wrapper {
       min-height: 250px;
       height: 250px;
   }
}

@media (max-width: 576px) {
   .main-title {
       font-size: 30px;
   }
   .services-container .service-card {
       padding: 25px;
   }
   .services-container .service-card-title {
       font-size: 24px;
   }
   .category-icon-circle {
       width: 50px;
       height: 50px;
       font-size: 20px;
   }
   .btn-preventivo {
       font-size: 14px;
       padding: 6px 25px 6px 8px;
   }
   .btn-preventivo-circle {
       width: 36px;
       height: 36px;
       margin-right: 12px;
       font-size: 14px;
   }
}
/* --- ALTEZZA UNIFORME SLIDE DESKTOP --- */
@media (min-width: 992px) {
    /* 1. Assegniamo un'altezza fissa identica per tutte le card su Desktop */
    .services-container .service-card {
        height: 440px; /* Regola questo valore se ti serve più o meno spazio */
    }

    /* 2. La row interna copre tutta l'altezza della card */
    .services-container .service-card > .row {
        height: 100%;
    }

    /* 3. Gestione colonna Immagine */
    .services-container .service-card .col-lg-4 {
        height: 100%;
    }

    .services-container .service-img-wrapper {
        height: 100% !important;
        min-height: 0 !important;
    }

    /* 4. Gestione colonna Testo: distribuisce il contenuto e ancora il pulsante in fondo */
    .services-container .service-content-col {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/*** SEZIONE CONTATTI ***/
.contact-section {
     position: relative;
     padding-top: 60px;
     padding-bottom: 0;
     display: flex;
     flex-direction: column;
}

.main-container {
     position: relative;
     z-index: 2;
}

.text-tag-green {
     font-family: var(--font-titles);
     color: var(--primary-green);
     font-size: 14px;
     text-transform: uppercase;
     letter-spacing: 1px;
     margin-bottom: 10px;
}

.title-block {
     border-left: 6px solid var(--primary-green);
     padding-left: 15px;
     margin-bottom: 25px;
}

.main-contact-title {
     font-family: var(--font-titles);
     color: var(--bg-blue);
     font-size: 38px;
     line-height: 1.1;
     text-transform: uppercase;
     margin: 0;
}

.subtitle-text {
     font-size: 18px;
     font-weight: 600;
     color: #333333;
     line-height: 1.4;
     margin-bottom: 30px;
     max-width: 450px;
}

.map-wrapper {
     width: 100%;
     height: 400px;
     border-top-left-radius: 35px;
     border-top-right-radius: 35px;
     overflow: hidden;
     box-shadow: 0 -5px 15px rgba(0,0,0,0.02);
     margin-bottom: 0;
}

.map-wrapper iframe {
     width: 100%;
     height: 100%;
     border: 0;
}

.bottom-blue-bar-section {
     background-color: var(--bg-blue);
     color: #ffffff;
     width: 100%;
     padding-top: 40px;
     padding-bottom: 40px;
}

.company-info-block {
     color: #ffffff;
}

/* Forza i link dei contatti/footer ad essere bianchi (senza compromettere i link generici del sito) */
.company-info-block a,
.bottom-blue-bar-section a {
    color: #ffffff !important;
}

.company-name {
     font-weight: 500;
     font-size: 24px;
     margin-bottom: 5px;
}

.company-address {
     font-size: 18px;
     opacity: 0.9;
     margin-bottom: 20px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-green);
    color: #ffffff !important;
    font-family: var(--font-titles);
    font-size: 18px;
    padding: 5px 5px;
    border-radius: 30px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-badge:hover {
     color: #ffffff !important;
     opacity: 0.9;
}

.contact-badge i {
     margin-right: 12px;
     font-size: 20px;
}

.form-column-wrapper {
     position: relative;
     height: 100%;
}

.form-card-green {
     background-color: var(--primary-green);
     border-radius: 35px;
     padding: 45px 40px;
     box-shadow: 0 15px 35px rgba(0,0,0,0.2);
     color: #ffffff;
     position: absolute;
     top: 40px;
     left: 12px;
     right: 12px;
     z-index: 10;
}

.form-card-green .btn-preventivo {
    color: #ffffff !important;
}

.form-main-title {
     font-family: var(--font-titles);
     font-size: 32px;
     text-transform: uppercase;
     text-align: center;
     margin-bottom: 5px;
     letter-spacing: 0.5px;
     color: #FFF;
}

.form-subtitle {
     font-size: 14px;
     text-align: center;
     opacity: 0.9;
     margin-bottom: 35px;
}

.form-card-green .form-control {
     border: none;
     border-radius: 15px;
     padding: 15px 20px;
     font-size: 16px;
     color: var(--bg-blue);
     font-weight: 500;
     margin-bottom: 20px;
}

.form-card-green .form-control::placeholder {
     color: #555555;
     font-weight: 400;
}

.form-card-green textarea.form-control {
     height: 160px;
     resize: none;
}

.privacy-row {
     display: flex;
     align-items: flex-start;
     margin-bottom: 30px;
     font-size: 13px;
     line-height: 1.3;
}

.custom-checkbox-input {
     width: 22px;
     height: 22px;
     border-radius: 5px;
     background-color: #ffffff;
     border: none;
     margin-right: 12px;
     flex-shrink: 0;
     cursor: pointer;
     appearance: none;
     -webkit-appearance: none;
     position: relative;
}

.custom-checkbox-input:checked::before {
     content: '\f00c';
     font-family: 'Font Awesome 5 Free';
     font-weight: 900;
     color: var(--primary-green);
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     font-size: 14px;
}

.privacy-text {
     opacity: 0.95;
     padding-top: 2px;
}

.btn-submit-container {
     display: flex;
     justify-content: flex-end;
     align-items: center;
}

@media (max-width: 991px) {
     .form-card-green {
          position: relative;
          top: 0;
          left: 0;
          right: 0;
          margin-top: 40px;
          margin-bottom: 40px;
     }
     .map-wrapper {
          border-bottom-left-radius: 35px;
          border-bottom-right-radius: 35px;
     }
     .btn-submit-container {
          justify-content: center;
     }
}

/* --- SIDEBAR DI CONTATTO RAPIDO --- */
.sidebar-contact-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 9999;
}

.contact-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #28a745;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s ease-in-out;
}

.contact-bar-item:hover {
    background-color: #28a745;
    padding-left: 4px;
    width: 54px;
}

@media (max-width: 576px) {
    .contact-bar-item {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .contact-bar-item:hover {
        width: 46px;
    }
}
