/* IdroCraft — Brand Manifesto Design System
   Palette: Navy #1B1464 | Azzurro Elettrico #187CE8 | Oro Premium #D4AF37
   Font: Montserrat (titoli, 700/900) + Open Sans (body, 400/600)
*/
/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-y: contain;
    background: #fff;
    transition: all 0.3s linear;
}

::selection {
    color: #fff;
    background: #187CE8;
}

::-moz-selection {
    color: #fff;
    background: #187CE8;
}

p {
    color: #666;
    margin: 0 0 1em !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #1B1464;
}

a {
    color: #187CE8;
    text-decoration: none;
    text-shadow: none;
    transition: all 0.2s linear;
}

a:hover {
    color: #1B1464;
    text-decoration: none;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

section {
    padding: 160px 0;
}

.fitImage {
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}

/* ===== BUTTONS ===== */
.btn {
    background: linear-gradient(135deg, #1B1464, #1B1464);
    border: 0px;
    transition: all 0.3s ease;
    border-radius: 6px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1B1464, #187CE8);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #1B1464, #1B1464);
}

.btn-cta {
    font-weight: 700;
}

.scale-hover {
    transition: transform 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* ===== FORMS ===== */
.form-control {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    outline: none;
    color: #585858;
    margin: 0;
    margin-bottom: 20px;
    background: #fff;
    font-size: inherit;
    border-radius: 5px !important;
    width: 100%;
    max-width: 100%;
    display: block;
    height: 50px;
    box-shadow: none;
    box-sizing: border-box;
}

textarea.form-control {
    height: auto !important;
    min-height: 120px;
    padding: 12px 14px;
}

/* ===== HEADER & NAVBAR ===== */
.header {
    position: fixed;
    width: 100%;
    background: #1B1464;
    z-index: 50;
    border-radius: 0;
    top: 0px;
    transition: background 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,-5 L0,50 C 200,-10 700,80 1200,70 L1200,-5 Z' fill='%231B1464'/%3E%3Cpath d='M0,50 C 200,-10 700,80 1200,70 L1200,78 C 700,90 200,5 0,65 Z' fill='%23187CE8'/%3E%3C/svg%3E") no-repeat center top / 100% 100%;
    z-index: 10;
    pointer-events: none;
    margin-top: -1px;
}

.addBg {
    background: #1B1464;
    filter: drop-shadow(0 4px 10px rgba(27, 20, 98, 0.4));
    transition: all 0.3s linear;
}

.navbar-dark {
    background: transparent;
    border: none !important;
}

.navbar-dark .navbar-toggler {
    background-color: #1B1464;
    border: 1px solid rgba(255,255,255,0.5) !important;
}

.navbar-dark .navbar-toggler:hover,
.navbar-dark .navbar-toggler:focus {
    background: #1B1464;
}

.navbar-dark .navbar-collapse,
.navbar-dark .navbar-form {
    border: 0px solid transparent;
}

.header .navbar {
    background: transparent;
    border: none !important;
    position: relative;
    z-index: 20;
}

.navbar-brand {
    padding: 0;
    position: relative;
    display: block;
}

.navbar-brand img {
    height: 80px;
    width: auto;
    max-height: none;
    display: block;
}

.header .navbar-brand {
    margin-left: 0;
    display: flex;
    align-items: center;
}

.navbar-nav {
    position: relative;
}

.navbar-nav>li {
    display: inline-block;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    font-size: 1.1em;
    line-height: normal;
    margin: 20px 15px;
    padding: 6px 0px !important;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.navbar-dark .navbar-nav .btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 5px;
}

.navbar-dark .navbar-nav .btn-primary,
.navbar-dark .navbar-nav .btn-success {
    border: 1px solid #fff;
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .active > .nav-link:hover,
.navbar-dark .navbar-nav .active > .nav-link:focus {
    color: #187CE8;
    background: none;
    border-radius: 0px;
}

.navbar-nav .nav-item:hover > .nav-link {
    color: #187CE8;
    transform: translateY(-2px);
}

/* ===== HEADINGS ===== */
.heading {
    padding: 3px 10px;
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: block;
}

.heading h2 {
    color: #1B1464;
    font-size: 36px;
    text-transform: uppercase;
    font-weight: 900;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    letter-spacing: 1px;
}

.heading h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
    border-radius: 2px;
}

.heading p {
    font-size: 1.2em;
    color: #777;
}

#contactUs .heading h2 {
    color: #fff;
}

/* ===== SLIDER HOME ===== */
/* ===== SLIDER HOME ===== */
#featured {
    padding: 0;
}
.flexslider {
    margin: 0 !important;
}

#main-slider {
    position: relative;
    max-width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

#main-slider .slides {
    width: 100%;
    height: 100%;
}

#main-slider .slides li {
    width: 100%;
    height: 100%;
    position: relative;
}

#main-slider .slides li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.7);
}

.flex-caption {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 20;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: none;
    background: transparent;
    margin: 0 !important;
    padding: 0 !important;
}

.flex-caption h3 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Pulsanti Servizi Slider */
.slide-service-link {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 35px 70px;
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    background: #1B1464;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    margin: 0 !important;
}

.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40; /* sotto navbar e menu a tendina */
    color: #fff;
    font-size: 2rem;
    opacity: 0.8;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.scroll-indicator.prev {
    left: 20px;
    animation: bounce-left 2s infinite;
}

.scroll-indicator.next {
    right: 20px;
    animation: bounce-right 2s infinite;
}

@keyframes bounce-right {
    0%, 20%, 50%, 80%, 100% { transform: translateY(-50%) translateX(0); }
    40% { transform: translateY(-50%) translateX(10px); }
    60% { transform: translateY(-50%) translateX(5px); }
}

@keyframes bounce-left {
    0%, 20%, 50%, 80%, 100% { transform: translateY(-50%) translateX(0); }
    40% { transform: translateY(-50%) translateX(-10px); }
    60% { transform: translateY(-50%) translateX(-5px); }
}

.slide-service-link:hover {
    background: #187CE8;
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.slide-service-link i {
    margin-right: 18px;
    font-size: 2.6rem;
    transition: transform 0.3s ease;
}

.slide-service-link:hover i {
    transform: none;
}

/* Frecce Navigazione Slider */
.flex-direction-nav {
    display: none;
}

.flex-direction-nav a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    color: #fff;
    text-shadow: none;
    opacity: 0.8;
    transition: all 0.4s ease;
    text-decoration: none;
    font-size: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

.flex-direction-nav a.flex-prev {
    left: calc(50% - 380px);
}

.flex-direction-nav a.flex-next {
    right: calc(50% - 380px);
}

.flex-direction-nav a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 28px;
    content: '\f053';
    color: inherit;
}

.flex-direction-nav a.flex-next::before {
    content: '\f054';
}

.flex-direction-nav a:hover {
    background: #fff;
    color: #1B1464;
    border-color: #fff;
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.flex-direction-nav a:hover::before {
    color: #1B1464;
}


/* ===== SEZIONE SERVIZI ===== */
#service {
    padding: 0;
}

.service-content-wrapper {
    position: relative;
    width: 100%;
}

.service-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-content.active {
    display: block;
    opacity: 1;
}

.service-content-centered {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Before-After Slider */
.before-after-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: col-resize;
    line-height: 0;
}

.before-after-container .after {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    object-position: left;
}

.before-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.before-mask .before {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: left;
    min-width: 0;
    max-width: none;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    cursor: col-resize;
    z-index: 3;
    transform: translateX(-2px);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slider-thumb {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid #1B1464;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: col-resize;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.slider-thumb::before,
.slider-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
}

.slider-thumb::before {
    left: 8px;
    transform: translateY(-50%);
    border-width: 6px 8px 6px 0;
    border-color: transparent #1B1464 transparent transparent;
}

.slider-thumb::after {
    right: 8px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #1B1464;
}

.slider-line:hover .slider-thumb,
.slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== CHI SIAMO ===== */
.feature {
    margin-bottom: 40px;
}

.feature-media {
    display: flex;
    align-items: center;
}

.feature-media .fitImage {
    max-width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: contain;
    padding: 10px 0; /* stesso spazio sopra e sotto il logo */
    display: block;
    margin: 0 auto;
}

.list-spaced li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
}

.list-spaced i {
    margin-right: 10px;
    margin-top: 5px;
    color: #187CE8;
    flex-shrink: 0;
}

.mt-30 {
    margin-top: 30px;
}

.mb-20 {
    margin-bottom: 20px;
}

.contact-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1B1464, #187CE8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-circle i {
    color: #fff;
    font-size: 20px;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.contact-number {
    font-size: 20px;
    font-weight: 700;
    color: #1B1464;
}

/* ===== PORTFOLIO / LAVORI ===== */
#work {
    background: #f9f9f9;
}

.portfolio-top,
.portfolio_btm {
    height: 30px;
}

.filters {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filters li {
    display: inline-block;
    margin: 0;
    flex: 0 1 auto;
}

.filter-btn {
    color: #9FA9A9;
    font-size: 20px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    display: block;
    padding: 5px 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    white-space: nowrap;
}

.filter-btn i {
    font-size: 16px;
    margin-right: 20px;
    transition: color 0.3s ease;
    vertical-align: middle;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #1B1464, #1B1464) !important;
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.25);
}

.filter-btn:hover i,
.filter-btn.active i {
    color: #FFFFFF;
}

#portfolio-container {
    display: flex;
    flex-wrap: wrap;
}

.mix {
    padding: 15px;
    box-sizing: border-box;
}

.portfolio_img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    line-height: 0;
}

.portfolio_img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.portfolio-item a {
    display: block;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.portfolio-item a:hover .portfolio_img img {
    transform: scale(1.1);
}

.item_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(27, 20, 98, 0.9) 0%, rgba(27, 20, 98, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
}

.portfolio-item a:hover .item_overlay {
    opacity: 1;
}

.item_info {
    padding: 20px;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    width: 100%;
}

.portfolio-item a:hover .item_info {
    transform: translateY(0);
}

.project_name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
}

.item_info p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* ===== EFFETTO MULTI-FOTO (STACKING) ===== */
.portfolio-item.multi-image {
    overflow: visible !important; /* Permette agli elementi dietro di sporgere */
    box-shadow: none !important;
    background: transparent;
    transform-style: preserve-3d;
}

.portfolio-item.multi-image a {
    position: relative;
    z-index: 10;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background: #fff;
    overflow: hidden; /* Mantiene l'overlay dentro i bordi */
}

.portfolio-item.multi-image::before,
.portfolio-item.multi-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e6e6e6;
    border: 1px solid #999;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.portfolio-item.multi-image::before {
    z-index: -1;
    transform: rotate(3.5deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #dcdcdc;
}

.portfolio-item.multi-image::after {
    z-index: -2;
    transform: rotate(7deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #bfbfbf;
}

/* Animazione Hover sullo stack */
.portfolio-item.multi-image:hover::before {
    transform: rotate(5deg) translate(4px, 2px);
}

.portfolio-item.multi-image:hover::after {
    transform: rotate(10deg) translate(8px, 4px);
}

/* GLightbox */
.glightbox-clean .gslide-description {
    background: #1B1464 !important;
}

.glightbox-clean .gdesc-inner {
    padding: 22px 20px;
}

.glightbox-clean .gslide-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.glightbox-clean .gslide-desc {
    color: #ccc;
}

.glightbox-button-hidden {
    display: none;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(255,255,255,0.9);
    color: #1B1464;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background: #1B1464;
    color: #fff;
}

/* ===== TESTIMONIALS ===== */
#testimonials {
    background: #f9f9f9;
    padding-top: 20px;
}

.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
}

.testimonials-slider-wrapper:before,
.testimonials-slider-wrapper:after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.testimonials-slider-wrapper:before {
    left: 0;
    background: linear-gradient(to right, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
}

.testimonials-slider-wrapper:after {
    right: 0;
    background: linear-gradient(to left, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
}

#testimonials-carousel .item {
    padding: 15px;
}

#testimonials .testimonial {
    position: relative;
    height: 400px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border-bottom: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#testimonials .testimonial .testimonial-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#testimonials .testimonial:hover .testimonial-background-img {
    transform: scale(1.1);
}

#testimonials .testimonial .glightbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#testimonials .testimonial .stars {
    position: relative;
    bottom: auto;
    left: auto;
    z-index: 2;
    color: gold;
    font-size: 16px;
    margin-top: 15px;
}

#testimonials .testimonial .stars i {
    opacity: 1;
    color: gold;
}

#testimonials .testimonial .testimonial-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 20, 98, 0.88);
    color: #fff;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#testimonials .testimonial:hover .testimonial-text-overlay {
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
}

#testimonials .testimonial-text-overlay .testimonial-content p {
    color: #fff;
    font-size: 16px;
}

#testimonials .testimonial-text-overlay .testimonial-author h5 {
    color: #fff;
}

#testimonials .testimonial-text-overlay .testimonial-author span {
    color: #ddd;
}

.text-gold {
    color: gold;
}

.mt-40 {
    margin-top: 40px;
}

.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(0, 102, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

/* ===== CONTATTI ===== */
.contact-parlex {
    padding-top: 10px;
    background-image: url(../images/bg_chill.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-icon-box {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.contact-icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #187CE8;
}

/* ===== FOOTER ===== */
footer {
    border-top: none;
    margin-top: auto;
    padding: 60px 0 15px;
    background: #1B1464;
    color: #fff;
    font-size: 15px;
}

footer h3,
footer h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

footer p {
    color: #ccc;
    line-height: 1.7;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

footer ul {
    list-style: none;
    padding: 0;
    line-height: 2;
    max-width: 320px;
    width: 100%;
}

footer ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

footer ul li i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

footer .contact-list li {
    justify-content: flex-start;
    align-items: center;
}

footer .footer-copy {
    margin-top: 0px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

.logo_footer {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-top: -70px;
    display: block;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background: #fff;
    color: #333;
    padding: 30px;
    z-index: 9999;
    display: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 0 0 9999px rgba(0,0,0,0.5);
    border-radius: 10px;
    text-align: center;
}

.cookie-banner p {
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.cookie-banner a {
    color: #1B1464;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cookie-banner .btn {
    border-radius: 50px !important;
    padding: 8px 25px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.cookie-banner .btn-outline-light {
    color: #666;
    border-color: #ccc;
}

.cookie-banner .btn-outline-light:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #bbb;
}

.cookie-banner .btn-primary {
    background: #1B1464;
    border-color: #1B1464;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .navbar-brand img {
        height: 60px;
    }
    
    .before-after-container,
    .before-after-container .after,
    .before-mask .before {
        max-height: 60vh;
    }
}

@media (max-width: 992px) {
    #main-slider,
    #main-slider .slides,
    #main-slider .slides > li {
        /* Usa 100dvh (dynamic viewport height) per adattarsi correttamente agli schermi mobile, evitando che l'interfaccia del browser crei una scrollbar indesiderata. */
        min-height: 100dvh !important;
        height: 100dvh !important;
    }
    
    .slide-service-link {
        padding: 25px 50px;
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .slide-service-link i {
        font-size: 1.8rem;
        margin-right: 15px;
    }
    
    .flex-direction-nav a {
        width: 60px;
        height: 60px;
    }
    
    .flex-direction-nav a.flex-prev { left: calc(50% - 300px); }
    .flex-direction-nav a.flex-next { right: calc(50% - 300px); }
    
    .before-after-container,
    .before-after-container .after,
    .before-mask .before {
        max-height: 50vh;
    }
    
    .filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .filter-btn i {
        font-size: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 50px;
    }

    #mainNav {
        background-color: #1B1464 !important;
        padding: 10px 0;
    }
    
    .navbar-dark .navbar-nav {
        align-items: center;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        margin: 8px 15px;
        padding: 10px 0 !important;
        font-size: 1.1em;
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-item .btn {
        margin: 6px auto;
        display: block;
        width: 85%;
        max-width: 320px;
    }
    
    .navbar-collapse {
        background-color: #1B1464;
        padding-bottom: 20px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .heading h2 {
        font-size: 28px;
    }

    #main-slider,
    #main-slider .slides,
    #main-slider .slides > li {
        /* Usa 100dvh (dynamic viewport height) per adattarsi correttamente agli schermi mobile, evitando che l'interfaccia del browser crei una scrollbar indesiderata. */
        min-height: 100dvh !important;
        height: 100dvh !important;
    }
    
    .slide-service-link {
        padding: 20px 30px;
        font-size: 1.4rem;
        width: auto;
        max-width: 95%;
        letter-spacing: 1px;
    }
    
    .slide-service-link i {
        font-size: 1.6rem;
        margin-right: 8px;
    }
    
    .flex-direction-nav a {
        display: flex !important;
        width: 50px;
        height: 50px;
    }
    
    .flex-direction-nav a::before {
        font-size: 20px;
    }
    
    .flex-direction-nav a.flex-prev { left: 10px; }
    .flex-direction-nav a.flex-next { right: 10px; }
    
    .before-after-container {
        max-width: 95%;
        max-height: 40vh;
    }
    
    .before-after-container .after,
    .before-mask .before {
        max-height: 40vh;
    }
    
    .filters {
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .filter-btn i {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .feature-media .fitImage {
        max-width: 50% !important;
        max-height: none !important;
        padding-bottom: 0px;
        display: block;
        margin: 0 auto 0px auto;
    }
    
    .testimonials-slider-wrapper:before,
    .testimonials-slider-wrapper:after {
        width: 50px;
    }
    
    #testimonials .testimonial {
        height: 350px;
    }
    
    #testimonials .testimonial-text-overlay {
        padding: 20px;
    }
    
    #testimonials .testimonial-text-overlay .testimonial-content p {
        font-size: 15px;
        line-height: 1.4;
    }
    
    #testimonials .testimonial .testimonial-text-overlay {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }
    
    #testimonials .owl-item.active .testimonial .testimonial-text-overlay {
        opacity: 1;
        pointer-events: auto;
        transition-delay: 1s;
    }
}

@media (max-width: 767px) {
    .logo_footer {
        margin-left: auto;
        margin-right: auto;
    }
    
    footer .col-sm-12.mb-30 {
        text-align: center;
    }
    
    footer .col-sm-12.mb-30 > ul {
        display: inline-block;
        text-align: left;
    }
    
    footer .col-sm-12.mb-30 ul li {
        justify-content: flex-start;
    }
    
    .before-after-container {
        width: 95%;
    }
}

@media (max-width: 576px) {
    .slide-service-link {
        padding: 15px 25px;
        font-size: 1.2rem;
    }
    
    .slide-service-link i {
        font-size: 1.4rem;
        margin-right: 10px;
    }
    
    .flex-direction-nav a {
        display: flex !important;
        width: 40px;
        height: 40px;
    }
    
    .flex-direction-nav a::before {
        font-size: 16px;
    }
    
    .flex-direction-nav a.flex-prev { left: 5px; }
    .flex-direction-nav a.flex-next { right: 5px; }
}

@media (max-width: 480px) {
    .before-after-container,
    .before-after-container .after,
    .before-mask .before {
        max-height: 35vh;
    }
}

@media (max-width: 400px) {
    .heading h2 {
        font-size: 24px;
    }
}

/* Tab servizi — tutti della stessa larghezza (la più larga: Climatizzatori) */
.tab-service-link {
    /* ================================================ */
    /*  PERSONALIZZA I PULSANTI QUI:                    */
    /*                                                  */
    --btn-scala: 0.9;        /* SCALA TUTTO INSIEME       */
    /*                        (1 = normale,              */
    /*                         1.5 = 50% più grande,     */
    /*                         0.5 = metà dimensione)    */
    /*                                                  */
    --btn-altezza: 60px;   /* ALTEZZA PULSANTI          */
    --btn-larghezza: 500px;/* LARGHEZZA MAX PULSANTI    */
    --btn-testo: 1.4rem;   /* GRANDEZZA TESTO           */
    /* ================================================ */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95%;
    max-width: calc(var(--btn-larghezza) * var(--btn-scala));
    height: calc(var(--btn-altezza) * var(--btn-scala));
    padding: 0 40px !important;
    font-size: calc(var(--btn-testo) * var(--btn-scala)) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff !important;
    background: #1B1464 !important;
    border: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.tab-service-link i {
    margin-right: calc(10px * var(--btn-scala));
    font-size: calc(var(--btn-testo) * var(--btn-scala));
    flex-shrink: 0;
}

.tab-service-link:hover,
.tab-service-link.active {
    background: #187CE8 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(24, 124, 232, 0.35);
}

.tab-service-link:hover i,
.tab-service-link.active i {
    color: #fff;
}

/* ===== HERO CTA (dentro slider) ===== */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 1.15rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-weight: 500;
}

.hero-cta-group {
    display: none; /* nascosti su desktop, visibili su mobile */
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px !important;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-cta-phone {
    background: #1B1464;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}

.hero-cta-phone:hover {
    background: #fff;
    color: #1B1464;
}

.hero-cta-wa {
    background: #25D366;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}

.hero-cta-wa:hover {
    background: #1da851;
    color: #fff;
}

/* ===== STICKY WHATSAPP BUTTON ===== */
.sticky-wa-btn {
    display: none; /* nascosto su desktop */
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 14px 20px;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
    transition: all 0.3s ease;
    animation: wa-pulse 2.5s infinite;
}

.sticky-wa-btn .sticky-wa-label {
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.sticky-wa-btn:hover {
    background: #1da851;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37,211,102,0.7);
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 6px 35px rgba(37,211,102,0.85), 0 0 0 8px rgba(37,211,102,0.15); }
}

/* ===== FILTRI PORTFOLIO SCROLLABILI ===== */
.filters-scroll-wrapper {
    width: 100%;
}

/* ===== MOBILE TAB CTA ===== */
.mobile-tab-cta {
    border-bottom: 1px solid #eee;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {

    /* Slider: 70vh per mostrare contenuto sotto */
    #main-slider,
    #main-slider .slides,
    #main-slider .slides > li {
        min-height: 70vh !important;
        height: 70vh !important;
    }

    /* Mostra CTA dentro slider su mobile */
    .hero-cta-group {
        display: flex;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Frecce slider più piccole e a lato su mobile */
    .scroll-indicator.prev { left: 10px; }
    .scroll-indicator.next { right: 10px; }

    /* Tab pulsanti: ridotti su mobile */
    .tab-service-link {
        letter-spacing: 0.5px;
    }

    .tab-service-link i {
    }

    /* Filtri portfolio orizzontalmente scrollabili */
    .filters-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .filters-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .filters-scroll-wrapper .filters {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: max-content;
        margin-bottom: 20px !important;
    }

    .filters-scroll-wrapper .filter-btn {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
    }

    /* Prima/Dopo: altezza ottimizzata su mobile */
    .before-after-container {
        max-height: 42vh;
        border-radius: 8px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .before-after-container .after {
        max-height: 42vh;
    }
    .before-mask .before {
        max-height: 42vh;
    }

    /* Thumb slider visibile su mobile */
    .slider-thumb {
        display: block;
    }

    /* Sezione servizi: meno padding */
    #service {
        padding: 40px 0 10px;
    }

    /* Pulsante sticky WhatsApp visibile su mobile */
    .sticky-wa-btn {
        display: flex;
    }

    /* Padding extra in basso per non coprire contenuto col bottone sticky */
    body {
        padding-bottom: 0px;
    }

    /* Bottoni contatto: full width su mobile */
    #contactUs .d-grid {
        display: grid !important;
    }

    #contactUs .d-sm-flex {
        flex-direction: column;
        align-items: stretch;
    }

    #contactUs .btn-lg {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Riduciamo i margini vuoti esagerati su mobile per evitare spazi bianchi giganti */
    #aboutUs, #work-scroll, #contact-scroll {
        margin-top: 20px !important;
    }
}


/* hero-content: abilita click solo sui CTA interni */
.hero-content {
    pointer-events: none;
}
.hero-content .hero-cta-btn {
    pointer-events: auto;
}

/* ===== BEFORE-AFTER BADGES ===== */
.badge-before, .badge-after {
    position: absolute;
    bottom: 16px;
    z-index: 5;
    background: rgba(0, 35, 71, 0.82);
    color: #fff;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    pointer-events: none;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1.2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    transition: opacity 0.25s ease;  /* dissolvenza fluida */
    opacity: 1;
}
.badge-before {
    left: 16px;
}
.badge-after {
    right: 16px;
}

@media (max-width: 768px) {
    .badge-before, .badge-after {
        bottom: 10px;
        padding: 4px 11px;
        font-size: 0.72rem;
        letter-spacing: 0.8px;
    }
    .badge-before { left: 10px; }
    .badge-after { right: 10px; }
}

/* ===== HERO SCROLL DOWN (mobile only) ===== */
.hero-scroll-down {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    color: rgba(255,255,255,0.85);
    font-size: 1.6rem;
    text-decoration: none;
    animation: bounce-down 1.8s infinite;
    pointer-events: auto;
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== PORTFOLIO CONTACT CTA ===== */
.portfolio-contact-cta {
    background: linear-gradient(135deg, #1B1464 0%, #1B1464 100%);
    padding: 40px 0;
    margin-top: 10px;
}

.portfolio-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.portfolio-cta-text h4 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.portfolio-cta-text p {
    color: rgba(255,255,255,0.8);
    margin: 0 !important;
    font-size: 1rem;
}

.portfolio-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.portfolio-cta-btn {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    padding: 12px 26px;
    border-radius: 6px !important;
    transition: all 0.3s ease;
}

.portfolio-cta-btn.btn-outline-primary {
    border-color: rgba(255,255,255,0.6) !important;
    color: #fff !important;
    background: transparent !important;
}

.portfolio-cta-btn.btn-outline-primary:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* ===== HERO SUBTITLE STYLE ===== */
.hero-subtitle strong {
    color: #D4AF37;
}

/* ===== STICKY WA: appare solo dopo scroll ===== */
.sticky-wa-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.sticky-wa-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== RESPONSIVE MOBILE overrides ===== */
@media (max-width: 768px) {

    /* Mostra freccia scroll down */
    .hero-scroll-down {
        display: block;
    }

    /* Portfolio CTA: colonna su mobile */
    .portfolio-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-cta-text h4 {
        font-size: 1.2rem;
    }

    .portfolio-cta-actions {
        width: 100%;
        justify-content: center;
    }

    .portfolio-cta-btn {
        flex: 1;
        text-align: center;
        padding: 13px 16px;
    }
}

/* ===== FINAL POLISH � tablet e mobile ===== */

/* Tab service: font e padding per schermi medi */
@media (max-width: 992px) {
    .tab-service-link {
        letter-spacing: 1px;
    }
    .tab-service-link i {
    }
}

/* Smartphone (<= 768px) � gi� definito sopra, qui raffiniamo il prima/dopo */
@media (max-width: 768px) {

    /* Tab pulsanti compatti */
    .tab-service-link {
        letter-spacing: 0.4px;
        border-radius: 8px !important;
    }
    .tab-service-link i {
    }

    /* Sezione servizi: spazio ridotto */
    .service-wrapper {
        padding: 0;
    }

    /* Nav tabs gap ridotto */
    #serviceTabs {
        gap: 8px !important;
    }

    /* Heading margins su mobile */
    .heading h2 {
        margin-bottom: 6px;
    }

    /* Sezione Chi Siamo: solo colonna testo */
    .feature.design {
        margin-bottom: 20px;
    }
}

/* Schermi piccoli (<= 480px) */
@media (max-width: 480px) {

    /* Prima/Dopo ancora pi� compatto */
    .before-after-container {
        max-height: 52vw;  /* proporzionale alla larghezza, ottimo su 9:16 */
        margin: 0 auto;
        border-radius: 6px;
        width: 100%;
        max-width: 100%;
    }
    .before-after-container .after {
        max-height: 52vw;
    }
    .before-mask .before {
        max-height: 52vw;
    }

    /* Thumb slider pi grande per dita */
    .slider-thumb {
        width: 36px;
        height: 36px;
    }

    /* Tab ancora pi compatti su telefoni piccoli */
    .tab-service-link {
        letter-spacing: 0.3px;
    }
    .tab-service-link i {
    }

    /* Layout 2+1 per i tab servizi: Idraulica e Impianti sopra, Climatizzatori sotto a larghezza intera */
    #serviceTabs {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    #serviceTabs .nav-item {
        flex: 1 1 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
    }
    #serviceTabs .nav-item:last-child {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* Portfolio: 2 colonne su mobile piccolo */
    #portfolio-container .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Sticky WA compatto ma con label su schermi piccoli */
    .sticky-wa-btn {
        padding: 12px 16px;
        font-size: 1.3rem;
        border-radius: 50px !important;
    }
    .sticky-wa-label {
        font-size: 0.78rem;
    }
}


/* ============================================================
   DESKTOP LAYOUT IMPROVEMENTS  (>= 769px)
   Ispirazione: la composizione mobile — più respiro, gerarchia
   chiara, niente ammassato. Tutto via min-width, mobile intatto.
   ============================================================ */

@media (min-width: 769px) {

    /* ── HERO ──────────────────────────────────────────────── */
    /* Slider a 80vh: mostra subito un pezzo della sezione sotto */
    #main-slider,
    #main-slider .slides,
    #main-slider .slides > li {
        height: 82vh !important;
        min-height: 560px !important;
    }

    /* Slide label: più elegante su desktop */
    .slide-service-link {
        padding: 28px 60px;
        font-size: 2rem;
        letter-spacing: 2px;
        border-radius: 12px;
    }

    /* ── SEZIONI: SPAZIO UNIFORME ──────────────────────────── */
    section {
        padding: 50px 0;
    }

    /* ── SEZIONE SERVIZI E CHI SIAMO (avvicinati ma non attaccati) ──────────── */
    #service {
        padding-top: 20px; /* spostato 20px più in alto */
        padding-bottom: 20px !important; /* ridato un po' di respiro sotto i pulsanti */
    }

    #service + section {
        padding-top: 30px !important; /* spaziatura bilanciata per il Chi Siamo */
        padding-bottom: 0px !important; /* Chi Siamo attaccato a Come Lavoriamo */
    }

    #serviceLinks {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 20px !important;
    }

    .tab-service-link {
        flex: 0 1 auto;
        min-width: 220px;
        max-width: 320px;
        height: 70px;
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        border-radius: 12px !important;
    }

    /* ── CHI SIAMO ─────────────────────────────────────────── */
    /* Unifica la versione desktop con la stessa prontezza della mobile */
    .feature.design .d-none.d-md-block p {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .feature.design .d-none.d-md-block ul li {
        font-size: 1rem;
        padding: 3px 0;
    }

    /* Logo Chi Siamo: ben centrato verticalmente */
    .feature-media {
        justify-content: center;
        padding: 0;
    }

    /* ── PORTFOLIO ─────────────────────────────────────────── */
    /* 3 colonne su desktop, un po' più di respiro */
    #portfolio-container .mix {
        padding: 12px;
    }

    /* Prima/Dopo: altezza confortevole */
    .before-after-container,
    .before-after-container .after,
    .before-mask .before {
        max-height: 55vh;
    }

    /* ── FILTRI PORTFOLIO ──────────────────────────────────── */
    .filter-btn {
        font-size: 16px;
        padding: 8px 28px;
        border-radius: 6px;
    }
    
    .filters {
        margin-bottom: 50px !important; /* Più spazio tra filtri e griglia lavori */
    }

    #work {
        padding-bottom: 10px !important; /* Meno spazio vuoto sotto la griglia lavori */
    }

    /* ── COME LAVORIAMO & FAQ ──────────────────────────────── */
    #how-we-work {
        padding-top: 0px !important; /* Si attacca al Chi Siamo */
        padding-bottom: 30px;
        margin-top: -40px !important; /* Lo alza ancora un pelo verso l'alto */
    }
    
    #faq {
        padding: 30px 0;
    }

    #how-we-work .contact-circle {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 20px !important;
    }

    #how-we-work .contact-circle i {
        font-size: 32px !important;
    }

    #how-we-work h5 {
        font-size: 1.3rem; /* Sottotitoli più grandi */
        margin-bottom: 12px;
    }

    #how-we-work p {
        font-size: 1.05rem; /* Testo più grande */
        line-height: 1.6;
        padding: 0 15px; /* Evita che il testo tocchi i bordi */
    }

    /* ── TESTIMONIALS ──────────────────────────────────────── */
    /* Hover-overlay sempre visibile su desktop (non solo centro active) */
    #testimonials .testimonial .testimonial-text-overlay {
        opacity: 0;
        pointer-events: none;
    }

    #testimonials .testimonial:hover .testimonial-text-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* ── CONTATTACI ────────────────────────────────────────── */
    #contactUs {
        padding: 50px 0;
    }

    .contact-form-wrapper {
        max-width: 700px;
        margin: 0 auto;
        padding: 40px 48px;
    }

    /* Bottoni chiamata + WA affiancati su desktop */
    #contactUs .d-sm-flex {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px;
    }

    #contactUs .btn-lg {
        width: auto !important;
        min-width: 220px;
    }

    /* ── PORTFOLIO CTA BANNER ──────────────────────────────── */
    .portfolio-cta-inner {
        flex-direction: row;
        text-align: left;
    }

    .portfolio-cta-text h4 {
        font-size: 1.5rem;
    }

    /* ── STICKY WA ─────────────────────────────────────────── */
    /* Mostrato anche su desktop dopo scroll */
    .sticky-wa-btn {
        display: flex;
        bottom: 32px;
        right: 32px;
        font-size: 1.3rem;
        padding: 14px 22px;
    }

    /* ── NAVBAR ────────────────────────────────────────────── */
    .navbar-brand img {
        height: 72px;
    }

    /* ── HEADING ───────────────────────────────────────────── */
    .heading h2 {
        font-size: 38px;
        letter-spacing: 1.5px;
    }

    /* ── FOOTER ────────────────────────────────────────────── */
    footer {
        padding: 40px 0 12px;
    }

    .logo_footer {
        max-width: 260px;
        margin-top: -60px;
    }
}

/* ── WIDE DESKTOP (>= 1200px): ancora più spazio ─────────── */
@media (min-width: 1200px) {

    section {
        padding: 70px 0;
    }

    #main-slider,
    #main-slider .slides,
    #main-slider .slides > li {
        height: 88vh !important;
    }

    .slide-service-link {
        padding: 32px 80px;
        font-size: 2.4rem;
    }

    .tab-service-link {
        min-width: 260px;
        font-size: 1.2rem;
        height: 76px;
    }

    .contact-form-wrapper {
        padding: 48px 56px;
    }

    .before-after-container,
    .before-after-container .after,
    .before-mask .before {
        max-height: 65vh;
    }

    .heading h2 {
        font-size: 42px;
    }
}

/* Correzioni spaziature mobile per Portfolio e FAQ */
@media (max-width: 768px) {
    #work {
        padding-bottom: 0px !important;
    }
    #portfolio-scroll-wrapper {
        padding-bottom: 10px !important;
    }
    #faq {
        padding-top: 10px !important;
    }
    .row.mt-5.pt-3.border-top.pb-5 {
        margin-top: 20px !important;
        padding-top: 10px !important;
    }
}

