:root {
    --bs-modal-width: 1000px;
}

body,
h1,
h2,
h3,
h4,
h5,
p {
    font-family: "Zain", sans-serif;
}

.red {
    color: #924133;
}

.back-modal {
    background-color: #e3e3e3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.modal-dialog {
    width: 40%;
    max-width: 100%;
}



.wa {
    position: fixed;
    max-width: 80px;
    right: 1rem;
    bottom: 1rem;
    z-index: 100000;
}

.zain-extralight {
    font-family: "Zain", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.zain-light {
    font-family: "Zain", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.zain-regular {
    font-family: "Zain", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.zain-bold {
    font-family: "Zain", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.zain-extrabold {
    font-family: "Zain", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.zain-black {
    font-family: "Zain", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.navbar {
    background-color: #FFFFFF;
    border-radius: 0.3rem;
}

.navbar .megamenu {
    padding: 4rem;
    background-color: #fff;
    box-shadow: 0px 0px 5px 0px #1a1a1a3b;
    background-image: url(../img/back-menu.jpg);
    background-position: right;
    background-size: cover;
}

.navbar-collapse {
    flex-grow: unset;
    justify-content: center;
}

/* ============ desktop view ============ */
@media all and (min-width: 992px) {

    .navbar .has-megamenu {
        position: static !important;
    }

    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 70%;
        margin-top: 4px;
    }

}

/* ============ desktop view .end// ============ */

/* ============ mobile view ============ */
@media(max-width: 991px) {

    .navbar.fixed-top .navbar-collapse,
    .navbar.sticky-top .navbar-collapse {
        overflow-y: auto;
        max-height: 90vh;
        margin-top: 10px;
    }
}

.nav-link {
    display: block;
    font-size: calc(16px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
    text-decoration: none;
    font-weight: 500;
    color: #212121;
    margin-left: 2rem;
}

.nav-cont {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-top: 0.4rem;
}

.logo-nav {
    min-width: 160px;
    max-width: 160px;
}

.navbar-toggler {
    padding: 0px;

    background-color: transparent;
    border: 0px;
    border-radius: 0px;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 transparent;
}

.portam {
    color: #178057 !important;
    font-weight: 700;
}

.logo-portam {
    max-width: 40%;
    padding-top: 10%;
}

.sp-nav {
    padding: 0.5rem;
}

.tit-menu {
    display: block;
    font-size: calc(18px + (20 - 18) * ((100vw - 300px) / (1920 - 300)));
    text-decoration: none;
    font-weight: 700;
    color: #212121;
    margin-bottom: 0px;
    margin-top: 0.5rem;
}

.link-menu {
    display: block;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    text-decoration: none;
    font-weight: 500;
    color: #212121;
    margin-bottom: 0.3rem;
}

.sp-1txt {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.title-h1 {
    font-size: calc(18px + (64 - 18) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(18px + (54 - 18) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 200;
    text-transform: uppercase;
    padding-left: 2rem;
    color: #1A1A1A;
}

.sp-h1 {
    font-weight: 800;
    font-family: lora;
}

.title-h2 {
    font-size: calc(17px + (44 - 17) * ((100vw - 300px) / (1920 - 300)));
    font-family: lora;
    font-weight: 400;
    text-transform: uppercase;
    padding: 2rem;
    color: #fff;
}

.txt-h2 {
    font-size: calc(16px + (34 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 300;
    text-transform: uppercase;
    padding-left: 2rem;
}

.box-servizi {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
}

.nome-servizio {
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 300;
    letter-spacing: 0.2rem;
    color: #fff;
    text-transform: uppercase;
    transition-duration: 1s;

}

.title {
    font-size: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-family: lora;
    font-weight: 300;
    text-transform: uppercase;
    color: #151515;
}

.title-form {
    font-size: calc(16px + (34 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-family: lora;
    font-weight: 300;
    text-transform: uppercase;
    color: #151515;
    padding-bottom: 1rem;
}

.txt, .num {
    font-size: calc(16px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (30 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 300;
}

.num {
    padding-top: 1rem;
    font-size: calc(30px + (40 - 30) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 700;
}

.box-hov {
    margin-top: -8rem;
    background-color: #fff;
    border: 16px solid #fff;
}

.sez1:hover>div>div>p>a>span {
    background-color: #000;
    color: #fff;
    transition-duration: 1s;
}

.sez1>div>div>p>a>span {
    color: transparent;
    transition-duration: 1s;
}

.sez1:hover>h2 {
    color: #000;
    text-shadow: 0px 0px 0px #000;
    transition-duration: 1s;
}

.sez1>h2 {
    color: #fff;
    /*text-shadow: 0px 0px 10px #000;*/
    transition-duration: 1s;
}

.sez2:hover>div>div>p>a>span {
    background-color: #000;
    color: #fff;
    transition-duration: 1s;
}

.sez2>div>div>p>a>span {
    color: transparent;
    transition-duration: 1s;
}

.sez2:hover>h2 {
    color: #000;
    text-shadow: 0px 0px 0px #000;
    transition-duration: 1s;
}

.sez2>h2 {
    color: #fff;
    /*text-shadow: 0px 0px 10px #000;*/
    transition-duration: 1s;
}

.sez3:hover>div>div>p>a>span {
    background-color: #000;
    color: #fff;
    transition-duration: 1s;
}

.sez3>div>div>p>a>span {
    color: transparent;
    transition-duration: 1s;
}

.sez3:hover>h2 {
    color: #000;
    text-shadow: 0px 0px 0px #000;
    transition-duration: 1s;
}

.sez3>h2 {
    color: #fff;
    /*text-shadow: 0px 0px 10px #000;*/
    transition-duration: 1s;
}

/*----------------divisione-hover-----------------------------------*/
.sez1,
.sez2,
.sez3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    border: 1px solid #fff;
    filter: grayscale(70%);
    z-index: 100;
    transition: all .5s ease;
    position: relative;

}

.sez1 {
    background-image: url(../img/back/cucine.jpg);
}

.sez2 {
    background-image: url(../img/back/living.jpg);
}

.sez3 {
    background-image: url(../img/back/camere.jpg);
}


.sez1-tot,
.sez2-tot,
.sez3-tot {
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 1000;

}

.sez1-tot {
    background-image: url(../img/back/cucine1.jpg);
    transition: all .5s ease;
}

.sez2-tot {
    background-image: url(../img/back/living-2.jpg);
    transition: all .5s ease;
}

.sez3-tot {
    background-image: url(../img/back/camere-1.jpg);
    transition: all .5s ease;
}


.remove-background {
    background-image: none;
    transition: all .5s ease;
}


/*--------------------------------------fine-divisione-hover---------------------------*/
/*----------------------------------form-----------------------------------------------*/
.form-control {
    color: #151515;
    background-color: transparent;
    border: 1px solid #151515;
    border-radius: 0rem;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
}

.form-control:focus {
    color: #fff;
    background-color: #151515;
    border-color: #151515;
    outline: 0;
    box-shadow: 0 0 0 0;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
}

.form-control::placeholder {
    color: #777777;
    font-weight: 300;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
}

.sp-form {
    padding-top: 1rem
}

/*--------------------------------------fine-form--------------------------------------*/
.btn {
    padding: 0.7rem 2rem 0.4rem 2rem;
    border: 1px solid #151515;
    border-radius: 0px;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    color: #151515;
    margin-top: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
}
.red{
    background-color: #c53f2b;
    color: #fff;
    border: 0;
}

.btn:hover {
    padding: 0.7rem 2rem 0.4rem 2rem;
    border: 1px solid #151515;
    border-radius: 0px;
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    color: #fff;
    margin-bottom: 0px;
    font-weight: 400;
    text-transform: uppercase;
    background-color: #151515;
}



.back-su-misura {
    background-image: url(../img/su-misura.png);
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
}

.back-living {
    background-image: url(../img/living.png);
    background-size: 100%;
    background-position: right;
    background-repeat: no-repeat;
}

.back-form {
    background-image: url(../img/back-form.svg);
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
}

.box-eco {
    background-color: #E5E5E5;
    padding: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.box-white {
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-right: 4rem;
    padding-left: 4rem;
    background-color: rgba(255,255,255,0.50);
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.sp-img-sez {
    margin-top: 4rem;
}

.sp-title-pag {
    padding: 2rem;
}

.pos-pag {
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (20 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 200;
    text-transform: uppercase;
    color: #1A1A1A;
}

.title-h1-pag {
    font-size: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 200;
    text-transform: uppercase;
    color: #1A1A1A;
}

.sp-h1-pag {
    font-weight: 800;
    font-family: lora;
    font-size: calc(16px + (54 - 16) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(16px + (44 - 16) * ((100vw - 300px) / (1920 - 300)));
}

.sp-txt-pag {
    padding: 2rem;
}

.txt-pag {
    font-size: calc(18px + (24 - 18) * ((100vw - 300px) / (1920 - 300)));
    line-height: calc(18px + (30 - 18) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 300;
    text-align: justify;
}

.title-h3 {
    font-size: calc(16px + (24 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-family: lora;
    font-weight: 300;
    text-transform: uppercase;
    color: #1A1A1A;
}

.back-foto-dx {
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
}

.back-foto-sx {
    background-size: 100%;
    background-position: right;
    background-repeat: no-repeat;
}

.img-head-pag {
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    height: 80vh;
}

.logo-foot {
    max-width: 200px;
    min-width: 100px;
}

.tit-foot {
    font-size: calc(18px + (24 - 18) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 600;
    padding-top: 2rem;
}

.txt-foot {
    font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 400;
}

.dati {
    font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 400;
}

.mappa {
    height: 60vh;
    margin-bottom: 2rem;
    margin-top: 4rem;
    filter: grayscale(100%);
}

.underline>span {
    display: block;
    position: relative;
    padding: 0.1em 0;
}

/* Fade in */
.underline>span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 0.1em;
    background-color: #178057;
    opacity: 0;
    transition: opacity 300ms, transform 300ms;
}

.underline>span:hover::after,
.underline>span:focus::after {
    opacity: 1;
    transform: translate3d(0, 0.2em, 0);
}

/* Slide in */
.underline>span {
    overflow: hidden;
}

.underline>span::after {
    opacity 1;
    transform: translate3d(-100%, 0, 0);
}

.underline>span:hover::after,
.underline>span:focus::after {
    transform: translate3d(0, 0, 0);
}

.img-gallery {
    padding: 1rem;
    padding-top: 4rem;
}
.box-count{
    padding: 0.5em;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0px 0px 5px 0px #1a1a1a3b;
    background-color: #178057;
    border: 2px solid #d8d6d8;
}
.box-sconti{
    padding:0.5em;
    text-align: center;
    color:rgb(0, 0, 0);
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0px 0px 5px 0px #1a1a1a3b;
    background-color: #e5e5e5;
    border: 2px solid #d8d6d8;
}

.title-portamazione{
    line-height: 2.5rem;
    text-transform: uppercase;
}
.mini{
    font-size: 1.5rem;
}
.box-form-sez{
    padding-left:2vh;
    padding-right:2vh;
}
strong {
    font-weight: 800;
}

a {
    color: #212121;
    text-decoration: none;
}

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

.black {
    color: #151515;
}

@media only screen and (max-width: 1700px) {}

@media only screen and (max-width: 1200px) {}

@media only screen and (max-width: 840px) {
    .modal-dialog {
        width: 96%;
        max-width: 100%;
    }

    .wa {
        right: 0.2rem;
        bottom: 0.2rem;
        max-width: 60px;
    }

    .title-h1 {
        padding-left: 0rem;
    }

    .txt-h2 {
        padding-left: 0rem;
    }

    .box-eco {
        background-color: #E5E5E5;
        padding: 1.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .box-hov {
        margin-top: -1rem;
    }

    .box-white {
        padding-top: 2em;
        padding-bottom: 2rem;
        padding-right: 2rem;
        padding-left: 2rem;
        background-color: #fff;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .back-progettare {
        background-image: none;
        background-size: cover;
        background-position: right;
        background-repeat: no-repeat;
    }

    .back-porte {
        background-image: none;
        background-size: cover;
        background-position: left;
        background-repeat: no-repeat;
    }

    .sp-img-sez {
        margin-top: 1rem;
    }

    .img-gallery {
        padding: 1rem;
    }

    .sez1 {
        height: 50vh;
        animation-duration: 1s;

    }

    .sez2 {
        height: 50vh;
        animation-duration: 1s;
    }

    .sez3 {
        height: 50vh;
        animation-duration: 1s;
    }

    .title-h2 {
        padding: 2rem;
        padding-left: 1rem;

    }

    .box-servizi {
        position: absolute;
        bottom: 2rem;
        left: 0rem;
    }

    .sp-1txt {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding: 1.5rem;
    }


    .img-head-pag {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 50vh;
    }

    .sp-title-pag {
        padding: 0rem;
        padding-top: 2rem;
    }

    .sp-txt-pag {
        padding: 2rem;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .back-foto-dx {
        background-image: none;
        background-size: 0%;
        background-position: right;
        background-repeat: no-repeat;
    }

    .back-foto-sx {
        background-image: none;
        background-size: 0%;
        background-position: left;
        background-repeat: no-repeat;
    }

    .form-control {
        margin-bottom: 0.5rem;
    }

    .sp-form {
        padding-top: 0rem;
    }

    .nav-link {
        margin-left: 1rem;
    }

    .navbar .megamenu {
        padding: 2rem;
        background-color: #fff;
        box-shadow: 0px 0px 2px 0px #1a1a1a3b;
        background-image: none;
        background-position: right;
        background-size: cover;
    }

    .logo-nav {
        min-width: 100px;
        max-width: 100px;
    }

    .head-pm {
        background-position: right;
    }


    .sez1>div>div>p>a>span {
        background-color: #000;
        color: #fff;
        transition-duration: 1s;
    }



    .sez2>div>div>p>a>span {
        background-color: #000;
        color: #fff;
        transition-duration: 1s;
    }

    .sez3>div>div>p>a>span {
        background-color: #000;
        color: #fff;
        transition-duration: 1s;
    }

    .logo-portam {
        max-width: 80%;
        padding-top: 30%;
    }
}

.ombra {
        text-shadow: 2px 1px 2px #ffffff;
    }

body, h1, h2, h3, h4, h5, h6, p, a, button, .btn, input, textarea {
        font-family: 'Montserrat', sans-serif !important;
    }
    
    h1, h2, h3, .title, .title-h1, .title-h2 {
        font-weight: 600 !important;
    }

/* --- Scala Tipografica Stile Diotti --- */

/* Corpo del testo generale */
body, p, input, textarea {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

/* Titoli principali (H1) */
h1, .title-h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.75rem !important; /* Circa 44px su desktop */
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
}

/* Sezioni e Titoli secondari (H2) */
h2, .title-h2, .title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2rem !important; /* Circa 32px */
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* Sottotitoli e Box (H3) */
h3, .title-form, .tit-foot {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.35rem !important; /* Circa 22px */
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* Bottoni in stile design (maiuscoli e distanziati) */
.btn, button {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Testi footer e piccoli dettagli */
.txt-foot, .dati, small {
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* --- Ridimensionamento e stile per il menu di navigazione --- */
.navbar .nav-link, 
.navbar-nav .nav-link, 
header a {
    font-size: 13px !important;     /* Dimensione più compatta ed elegante */
    font-weight: 500 !important;    /* Spessore bilanciato */
    text-transform: uppercase;      /* Stile maiuscolo tipico dei siti di design */
    letter-spacing: 0.8px;          /* Leggera spaziatura tra le lettere */
}

/* --- Ingrandimento Icone nella Navbar (Desktop e Mobile) --- */

/* Ingrandisce tutte le icone della navbar sovrascrivendo fa-xs */
.sp-nav .navbar i,
.sp-nav .navbar i.fa-xs,
.sp-nav .nav-link i,
.sp-nav .nav-link i.fa-xs {
    font-size: 1.25rem !important; /* Dimensione aumentata (circa 20px) */
    vertical-align: middle;
}

/* Ingrandisce leggermente anche il pulsante Toggler (hamburger menu) su mobile */
.sp-nav .navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
}

/* Ottimizza lo spazio e il centraggio per i link con sole icone */
.sp-nav .nav-link.nav-cont,
.sp-nav .nav-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- INGRANDIMENTO FORZATOICONE NAVBAR --- */

/* 1. Icone Generiche nella barra (Telefono, Email, Whatsapp, Maps, Social) */
.sp-nav .navbar-nav .nav-link i,
.sp-nav .navbar .nav-link i,
.sp-nav a.nav-link i.fa-xs,
.sp-nav li.nav-item i.fa-xs {
    font-size: 20px !important; /* Dimensione visibilmente maggiorata */
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* 2. Icone Social (Facebook, Instagram, WhatsApp in alto a destra) */
.sp-nav .fa-facebook-f,
.sp-nav .fa-instagram,
.sp-nav .fa-whatsapp,
.sp-nav .fa-phone,
.sp-nav .fa-envelope,
.sp-nav .fa-map-marker-alt,
.sp-nav .fa-clock {
    font-size: 20px !important;
}

/* 3. Icona della freccetta orari (Caret Down) - Mantieni leggermente più piccola */
.sp-nav .fa-caret-down {
    font-size: 14px !important;
    margin-left: 3px !important;
}

/* --- Animazione Titoli Stile Diotti (Fade In Up) --- */

/* Stato INIZIALE per tutti i testi prima dello scroll */
h1, h2, h3, h4, p, .txt, .txt-pag, .gallery-title, span.text-uppercase, a.btn, .reveal-init {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Stato FINALE quando entrano nello schermo */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- GALLERY STILE DIOTTI.COM --- */

.diotti-gallery-card {
    position: relative;
    overflow: hidden;
    background-color: #f4f4f4;
}

.diotti-gallery-card .img-zoom-container {
    overflow: hidden;
    position: relative;
}

.diotti-gallery-card img {
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    display: block;
}

/* Effetto Zoom delicato al passaggio del mouse tipico dei siti di interior design */
.diotti-gallery-card:hover img {
    transform: scale(1.05);
    opacity: 0.92;
}

/* Adattamento per dispositivi mobili */
@media (max-width: 767.98px) {
    .diotti-gallery-card img {
        height: 220px;
    }
}

        /* Stili dedicati alla sezione Occasioni in linea con il Design System */
        .occasione-card {
            background-color: #FFFFFF;
            border: 1px solid #EAEAEA;
            border-radius: 2px;
            transition: box-shadow 0.3s ease;
        }
        .occasione-card:hover {
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
        }
        .occasioni-slider-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 2px;
        }
        .occasioni-main-slider .slick-slide {
            outline: none;
        }
        .occasioni-main-slider .slick-slide > div {
            display: block;
        }
        .main-photo-wrapper {
            position: relative;
            overflow: hidden;
            background-color: #F7F7F7;
            border-radius: 2px;
            aspect-ratio: 4 / 3;
        }
        .main-photo-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .main-photo-wrapper:hover img {
            transform: scale(1.02);
        }
        .zoom-hint-badge {
            position: absolute;
            bottom: 12px;
            right: 12px;
            background-color: rgba(17, 17, 17, 0.75);
            color: #FFFFFF;
            font-size: 10px;
            letter-spacing: 1px;
            text-transform: uppercase;
            padding: 6px 12px;
            border-radius: 20px;
            pointer-events: none;
        }
        .thumbs-grid {
            display: flex;
            gap: 10px;
            margin-top: 12px;
            flex-wrap: wrap;
        }
        .thumb-item {
            width: 74px;
            height: 58px;
            border: 1.5px solid transparent;
            border-radius: 2px;
            overflow: hidden;
            cursor: pointer;
            opacity: 0.65;
            transition: all 0.25s ease;
            background-color: #F5F5F5;
        }
        .thumb-item:hover,
        .thumb-item.active {
            opacity: 1;
            border-color: #111111;
        }
        .thumb-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .tech-specs-box {
            border-top: 1px solid #ECECEC;
            border-bottom: 1px solid #ECECEC;
            padding: 16px 0;
            margin: 20px 0;
        }
        .tech-specs-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .tech-specs-list li {
            font-size: 13.5px;
            line-height: 1.65;
            color: #555;
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
            gap: 12px;
        }
        .tech-specs-list li:last-child {
            margin-bottom: 0;
        }
        .tech-specs-list li strong {
            color: #111;
            font-weight: 600;
            min-width: 110px;
        }

        /* Box informativi dedicati all'interno della scheda prodotto */
        .detail-boxes-group {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 24px;
        }
        .detail-info-box {
            background-color: #FAFAFA;
            border: 1px solid #ECECEC;
            border-radius: 2px;
            padding: 16px 18px;
        }
        .detail-info-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #111111;
            margin: 0 0 8px 0;
        }
        .detail-info-text {
            font-size: 13.5px;
            line-height: 1.72;
            color: #555555;
            margin: 0;
        }
        .detail-info-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .detail-info-list li {
            font-size: 13.5px;
            line-height: 1.65;
            color: #555555;
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
            gap: 12px;
        }
        .detail-info-list li:last-child {
            margin-bottom: 0;
        }
        .detail-info-list li strong {
            color: #111111;
            font-weight: 600;
            min-width: 130px;
        }

        .price-box {
            display: flex;
            align-items: baseline;
            gap: 14px;
            flex-wrap: wrap;
        }
        .price-full {
            font-size: 15px;
            color: #888888;
            text-decoration: line-through;
            font-weight: 400;
        }
        .price-discounted {
            font-size: 1.75rem;
            color: #111111;
            font-weight: 600;
            letter-spacing: -0.5px;
        }
        .discount-badge {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            background-color: #111111;
            color: #FFFFFF;
            padding: 4px 10px;
            border-radius: 20px;
        }

/* Ferma lo scroll 50px più in basso rispetto al bordo superiore */
html {
    scroll-padding-top: 50px;
}

#contactSection,
[id] {
    scroll-margin-top: 50px;
}
