/* =========================
   FONT FACES
========================= */

@font-face {
    font-family: 'Mattone-Regular';
    src: url("../fonts/Mattone-Regular.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: 'Mattone-Bold';
    src: url("../fonts/Mattone-Bold.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: 'Mattone-Black';
    src: url("../fonts/Mattone-Black.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: 'Diatype';
    src: url("../fonts/ABCDiatypeVariable-Trial.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: 'MattoneVF';
    src: url("../fonts/MattoneVF.ttf") format("truetype");
    font-display: swap;
}

/* =========================
   GLOBAL STYLES
========================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}


/* =========================
   TYPOGRAPHY
========================= */

h1 {
    font-family: 'Mattone-Black';
    font-size: 80px;
    color: #DA410A;
    text-align: center;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
    line-height: 1.05;
}

h2 {
    font-family: 'Mattone-Black';
    font-size: 48px;
    color: #000000;
    text-align: left;
    width: 100%;
    line-height: 1.2;
}

h3 {
    font-family: 'Mattone-Black';
    font-size: 36px;
    color: #000000;
    text-align: center;
    width: 100%;
    line-height: 1.2;
    padding: 20px 0;
}

h5 {
    font-family: 'Diatype';
    font-size: 20px;
    font-variation-settings: 'wght' 700;
    color: #000000;
    text-align: left;
    width: 100%;
    line-height: 1.2;
}

p {
    font-family: 'Diatype';
    font-variation-settings: 'wght' 400;
    font-size: 18px;
    color: #000000;
    text-align: left;
    width: 100%;
    line-height: 1.2;
}

/* Typography - Mobile */
@media (max-width: 767.98px) {
    h1 {
        font-family: 'Mattone-Black';
        font-size: 35px;
        color: #DA410A;
        text-align: center;
        width: 100%;
        padding-top: 17px;
        padding-bottom: 17px;
        line-height: 1.05;
    }

    h2 {
        font-family: 'Mattone-Black';
        font-size: 16px;
        color: #000000;
        text-align: left;
        width: 100%;
        line-height: 1.2;
    }

    h3 {
        font-family: 'Mattone-Black';
        font-size: 20px;
        color: #000000;
        text-align: center;
        width: 100%;
        line-height: 1.2;
    }

    .card-body h3 {
        margin-bottom: 0;
    }

    h5 {
        font-family: 'Diatype';
        font-size: 16px;
        font-variation-settings: 'wght' 700;
        color: #000000;
        text-align: left;
        width: 100%;
        line-height: 1.2;
    }

    p {
        font-family: 'Diatype';
        font-variation-settings: 'wght' 400;
        font-size: 16px;
        color: #000000;
        text-align: left;
        width: 100%;
        line-height: 1.2;
    }

    b {
        font-family: 'Diatype';
        font-variation-settings: 'wght' 800;
        font-size: 14px;
        color: #000000;
        text-align: left;
        width: 100%;
        line-height: 1.2;
    }
}

/* =========================
   BUTTONS
========================= */

.bottone {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #053690;
    border-radius: 26px;
    padding: 0.2rem 2rem;
    margin: 0 auto;
    width: max-content;
}

.bottone a {
    font-family: 'Diatype';
    font-size: 26px;
    font-variation-settings: 'wght' 400;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: font-variation-settings 0.3s ease;
}

.bottone a:hover {
    font-variation-settings: 'wght' 750;
}

.bottone-all-stories {
    background-color: transparent !important;
    color: #000000;
    text-decoration: underline;
    font-size: 36px;
    font-family: 'MattoneVF';
    font-variation-settings: 'wght' 400;
    padding-top: 40px;
    padding-bottom: 30px;
    transition: font-variation-settings 0.3s ease;
}

.bottone-all-stories:hover {
    color: #DA410A;
    font-family: 'MattoneVF';
    font-variation-settings: 'wght' 800;
}

/* Buttons - Mobile */
@media (max-width: 767.98px) {
    .bottone {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #053690;
        border-radius: 26px;
        padding: 0.2rem 2rem;
        margin: 0 auto;
        width: max-content;
    }

    .bottone a {
        font-family: 'Diatype';
        font-size: 20px;
        color: #ffffff;
        text-decoration: none;
        text-align: center;
        display: inline-block;
    }

    .bottone-all-stories {
        max-width: 210px;
        font-size: 24px !important;
    }

    /* Contatti - mobile: reduce space between the form button and the footer */
    /* Ridotto per mobile per avvicinare il bottone al footer */
    body.contatti .bottone {
        margin-bottom: 50px; /* ridotto da 48px a 8px */
    }
}

/* =========================
   TAGS & LABELS
========================= */

.tags-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 15px;
}

.tag {
    border: 2px solid;
    border-radius: 26px;
    padding: 7px 16px;
    background-color: #ffffff;
    border-color: #DA410A;
    color: #DA410A;
    font-size: 22px;
    font-family: 'Diatype';
    font-weight: 400;
}

/* Tags - Mobile */
@media (max-width: 767.98px) {
    .tag {
        font-size: 16px;
    }

    .tag_home {
        font-size: 10px !important;
    }
}

.tag_home {
    position: absolute;
    top: 0px;
    left: 0px;
}

/* Posizioni tag diverse per ogni jeans*/

.swiper-slide[data-swiper-slide-index="0"] .tag_home:nth-child(n+1) {
    top: 20%;
    left: 55%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="0"] .tag_home:nth-child(n+2) {
    top: 35%;
    left: 25%;
    transform: rotate(20deg);
}

.swiper-slide[data-swiper-slide-index="0"] .tag_home:nth-child(n+3) {
    top: 55%;
    left: 20%;
    transform: rotate(5deg);
}

.swiper-slide[data-swiper-slide-index="0"] .tag_home:nth-child(n+4) {
    top: 65%;
    left: 55%;
    transform: rotate(-45deg);
}



.swiper-slide[data-swiper-slide-index="1"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 20%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="1"] .tag_home:nth-child(n+2) {
    top: 15%;
    left: 60%;
    transform: rotate(25deg);
}

.swiper-slide[data-swiper-slide-index="1"] .tag_home:nth-child(n+3) {
    top: 50%;
    left: 55%;
    transform: rotate(0deg);
}

.swiper-slide[data-swiper-slide-index="1"] .tag_home:nth-child(n+4) {
    top: 70%;
    left: 25%;
    transform: rotate(45deg);
}



.swiper-slide[data-swiper-slide-index="2"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 20%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="2"] .tag_home:nth-child(n+2) {
    top: 15%;
    left: 60%;
    transform: rotate(25deg);
}

.swiper-slide[data-swiper-slide-index="2"] .tag_home:nth-child(n+3) {
    top: 65%;
    left: 55%;
    transform: rotate(-30deg);
}

.swiper-slide[data-swiper-slide-index="2"] .tag_home:nth-child(n+4) {
    top: 70%;
    left: 15%;
    transform: rotate(25deg);
}



.swiper-slide[data-swiper-slide-index="3"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 20%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="3"] .tag_home:nth-child(n+2) {
    top: 15%;
    left: 20%;
    transform: rotate(25deg);
}

.swiper-slide[data-swiper-slide-index="3"] .tag_home:nth-child(n+3) {
    top: 50%;
    left: 55%;
    transform: rotate(20deg);
}

.swiper-slide[data-swiper-slide-index="3"] .tag_home:nth-child(n+4) {
    top: 70%;
    left: 35%;
    transform: rotate(0deg);
}



.swiper-slide[data-swiper-slide-index="4"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 20%;
    transform: rotate(-10deg);
}

.swiper-slide[data-swiper-slide-index="4"] .tag_home:nth-child(n+2) {
    top: 15%;
    left: 45%;
    transform: rotate(25deg);
}

.swiper-slide[data-swiper-slide-index="4"] .tag_home:nth-child(n+3) {
    top: 60%;
    left: 55%;
    transform: rotate(-30deg);
}

.swiper-slide[data-swiper-slide-index="4"] .tag_home:nth-child(n+4) {
    top: 70%;
    left: 15%;
    transform: rotate(5deg);
}



.swiper-slide[data-swiper-slide-index="5"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 65%;
    transform: rotate(-6deg);
}

.swiper-slide[data-swiper-slide-index="5"] .tag_home:nth-child(n+2) {
    top: 25%;
    left: 20%;
    transform: rotate(25deg);
}

.swiper-slide[data-swiper-slide-index="5"] .tag_home:nth-child(n+3) {
    top: 60%;
    left: 55%;
    transform: rotate(30deg);
}

.swiper-slide[data-swiper-slide-index="5"] .tag_home:nth-child(n+4) {
    top: 55%;
    left: 15%;
    transform: rotate(25deg);
}



.swiper-slide[data-swiper-slide-index="6"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 20%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="6"] .tag_home:nth-child(n+2) {
    top: 20%;
    left: 60%;
    transform: rotate(-25deg);
}

.swiper-slide[data-swiper-slide-index="6"] .tag_home:nth-child(n+3) {
    top: 70%;
    left: 60%;
    transform: rotate(30deg);
}

.swiper-slide[data-swiper-slide-index="6"] .tag_home:nth-child(n+4) {
    top: 70%;
    left: 15%;
    transform: rotate(0deg);
}



.swiper-slide[data-swiper-slide-index="7"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 65%;
    transform: rotate(-6deg);
}

.swiper-slide[data-swiper-slide-index="7"] .tag_home:nth-child(n+2) {
    top: 25%;
    left: 20%;
    transform: rotate(25deg);
}

.swiper-slide[data-swiper-slide-index="7"] .tag_home:nth-child(n+3) {
    top: 60%;
    left: 55%;
    transform: rotate(30deg);
}

.swiper-slide[data-swiper-slide-index="7"] .tag_home:nth-child(n+4) {
    top: 55%;
    left: 15%;
    transform: rotate(25deg);
}



.swiper-slide[data-swiper-slide-index="8"] .tag_home:nth-child(n+1) {
    top: 40%;
    left: 15%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="8"] .tag_home:nth-child(n+2) {
    top: 25%;
    left: 55%;
    transform: rotate(-5deg);
}

.swiper-slide[data-swiper-slide-index="8"] .tag_home:nth-child(n+3) {
    top: 70%;
    left: 60%;
    transform: rotate(30deg);
}

.swiper-slide[data-swiper-slide-index="8"] .tag_home:nth-child(n+4) {
    top: 65%;
    left: 20%;
    transform: rotate(0deg);
}



.swiper-slide[data-swiper-slide-index="9"] .tag_home:nth-child(n+1) {
    top: 45%;
    left: 20%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="9"] .tag_home:nth-child(n+2) {
    top: 20%;
    left: 40%;
    transform: rotate(-25deg);
}

.swiper-slide[data-swiper-slide-index="9"] .tag_home:nth-child(n+3) {
    top: 70%;
    left: 60%;
    transform: rotate(30deg);
}

.swiper-slide[data-swiper-slide-index="9"] .tag_home:nth-child(n+4) {
    top: 60%;
    left: 10%;
    transform: rotate(0deg);
}



.swiper-slide[data-swiper-slide-index="10"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 20%;
    transform: rotate(15deg);
}

.swiper-slide[data-swiper-slide-index="10"] .tag_home:nth-child(n+2) {
    top: 20%;
    left: 60%;
    transform: rotate(-25deg);
}

.swiper-slide[data-swiper-slide-index="10"] .tag_home:nth-child(n+3) {
    top: 70%;
    left: 60%;
    transform: rotate(-30deg);
}

.swiper-slide[data-swiper-slide-index="10"] .tag_home:nth-child(n+4) {
    top: 55%;
    left: 15%;
    transform: rotate(0deg);
}


.swiper-slide[data-swiper-slide-index="11"] .tag_home:nth-child(n+1) {
    top: 25%;
    left: 20%;
    transform: rotate(15deg);
}

.swiper-slide[data-swiper-slide-index="11"] .tag_home:nth-child(n+2) {
    top: 37%;
    left: 60%;
    transform: rotate(-25deg);
}

.swiper-slide[data-swiper-slide-index="11"] .tag_home:nth-child(n+3) {
    top: 70%;
    left: 60%;
    transform: rotate(30deg);
}

.swiper-slide[data-swiper-slide-index="11"] .tag_home:nth-child(n+4) {
    top: 70%;
    left: 20%;
    transform: rotate(6deg);
}



.swiper-slide[data-swiper-slide-index="12"] .tag_home:nth-child(n+1) {
    top: 25%;
    left: 20%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="12"] .tag_home:nth-child(n+2) {
    top: 30%;
    left: 60%;
    transform: rotate(5deg);
}

.swiper-slide[data-swiper-slide-index="12"] .tag_home:nth-child(n+3) {
    top: 70%;
    left: 60%;
    transform: rotate(-20deg);
}

.swiper-slide[data-swiper-slide-index="12"] .tag_home:nth-child(n+4) {
    top: 55%;
    left: 10%;
    transform: rotate(30deg);
}



.swiper-slide[data-swiper-slide-index="13"] .tag_home:nth-child(n+1) {
    top: 15%;
    left: 20%;
    transform: rotate(-15deg);
}

.swiper-slide[data-swiper-slide-index="13"] .tag_home:nth-child(n+2) {
    top: 30%;
    left: 60%;
    transform: rotate(-25deg);
}

.swiper-slide[data-swiper-slide-index="13"] .tag_home:nth-child(n+3) {
    top: 70%;
    left: 60%;
    transform: rotate(30deg);
}

.swiper-slide[data-swiper-slide-index="13"] .tag_home:nth-child(n+4) {
    top: 70%;
    left: 15%;
    transform: rotate(0deg);
}



.swiper-slide[data-swiper-slide-index="14"] .tag_home:nth-child(n+1) {
    top: 35%;
    left: 20%;
    transform: rotate(15deg);
}

.swiper-slide[data-swiper-slide-index="14"] .tag_home:nth-child(n+2) {
    top: 20%;
    left: 60%;
    transform: rotate(25deg);
}

.swiper-slide[data-swiper-slide-index="14"] .tag_home:nth-child(n+3) {
    top: 70%;
    left: 60%;
    transform: rotate(-30deg);
}

.swiper-slide[data-swiper-slide-index="14"] .tag_home:nth-child(n+4) {
    top: 60%;
    left: 15%;
    transform: rotate(7deg);
}

/* Tags - Mobile */
@media (max-width: 767.98px) {
    .tag_home {
        font-size: 8px !important;
        padding: 4px 8px !important;
        border: 1px solid !important;
    }
}

/* =========================
   ANIMATIONS
========================= */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================
   NAVIGATION / NAVBAR
========================= */

.navbar {
    background-color: #D9D9D9;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
}

body:not(.home) .navbar.sticky {
    position: fixed;
    top: 0;
}

body:not(.home).sticky-navbar {
    padding-top: 160px;
}

.navbar-brand {
    font-family: "Mattone-Black";
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    display: block;
    max-height: 80px;
}

.navbar-brand img {
    display: block;
    max-height: 80px;
}

/* Logo Desktop/Mobile - Default */
.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

.navbar-nav .nav-link {
    font-family: 'Mattone-Regular';
    font-size: 14px;
    color: #000;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #DA410A;
}

.navbar-nav .nav-link.active {
    font-family: "Mattone-Bold";
    font-size: 14px;
    color: #000;
}

.navbar-nav .nav-link.active:hover {
    color: #DA410A;
}

/* Navbar - Homepage Dynamic */
body.home .navbar {
    position: fixed !important;
    background-color: transparent !important;
    padding-top: 40px;
    padding-bottom: 40px;
    transition: background-color 0.4s ease;
}

body.home .navbar .nav-link,
body.home .navbar .navbar-brand {
    color: #ffffff !important;
    transition: color 0.4s ease, padding 0.4s ease;
}

body.home .navbar .nav-link:hover {
    color: #DA410A !important;
}

body.home .navbar .nav-link.active:hover {
    color: #DA410A !important;
}

body.home .navbar-brand img {
    height: 120px;
    max-height: 120px;
    transition: all 0.4s ease;
}

body.home .navbar.scrolled {
    background-color: #D9D9D9 !important;
    padding-top: 40px;
    padding-bottom: 40px;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

body.home .navbar.scrolled .nav-link,
body.home .navbar.scrolled .navbar-brand {
    color: #000000 !important;
}

body.home .navbar.scrolled .nav-link:hover {
    color: #DA410A !important;
}

body.home .navbar.scrolled .nav-link.active:hover {
    color: #DA410A !important;
}

body.home .navbar.scrolled .navbar-brand img {
    height: 80px;
    max-height: 80px;
}

/* Navbar - Mobile */
@media (max-width: 767.98px) {

    .navbar {
        padding: 0 !important;
    }
    .navbar-brand {
        position: static !important;
        transform: none !important;
        margin: 8px auto 8px !important;
        display: block;
        text-align: center;
        max-height: 120px !important;
    }

    /* Logo Desktop - Mostrato di default */
    .logo-desktop {
        display: block;
    }

    /* Logo Mobile - Nascosto di default */
    .logo-mobile {
        display: none;
    }

    /* Quando il menu è aperto, mostra il logo mobile e nascondi il desktop */
    .navbar-collapse.show + .navbar-brand .logo-desktop {
        display: none;
    }

    .navbar-collapse.show + .navbar-brand .logo-mobile {
        display: block;
    }

    .navbar .navbar-expand-lg {
        padding: 0 !important;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: #053690;
        z-index: 1040;
        padding: 80px 20px 20px 20px;
        overflow-y: auto;
        display: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 50px;
    }

    .navbar-collapse.show {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: #053690;
        z-index: 1040;
        padding: 0px 20px 120px 20px;
        overflow-y: auto;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 50px;
    }

    .navbar-nav {
        display: contents;
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link {
        font-size: 24px;
        padding: 0;
        color: #ffffff !important;
        text-align: center;
        margin: 0;
        display: block;
    }

    .navbar-brand a {
        margin-top: 8px;
        margin-bottom: 8px;
    }
    body.home .navbar-collapse {
        background-color: #053690;
    }

    body.home .navbar {
        padding: 0 !important;
    }

    body.home .navbar-collapse .nav-link {
        color: #ffffff !important;
    }

    /* Keep nav links white when menu is open even during scroll on homepage */
    body.home .navbar.scrolled .navbar-collapse.show .nav-link {
        color: #ffffff !important;
    }

    body.home .navbar.scrolled {
        padding: 0 !important;
    }

    body.home .navbar.scrolled {
        background-color: #D9D9D9 !important;
    }

    /* Override active state in mobile - no bold styling */
    .navbar-collapse .navbar-nav .nav-link.active {
        font-family: 'Mattone-Regular' !important;
        font-size: 24px !important;
        color: #ffffff !important;
        font-weight: normal !important;
    }

    /* Hamburger menu button - in header when closed, fixed at bottom when open */
    .navbar-toggler {
        position: fixed;
        right: 27px;
        top: 27px;
        transform: none;
        z-index: 1050 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        transition: all 0.3s ease;
    }

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

    .navbar-collapse.show ~ .navbar-toggler {
        position: fixed !important;
        bottom: 30px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        background: transparent !important;
        border-color: transparent !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(5, 54, 144, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 30px;
        height: 30px;
        background-size: 30px 30px !important;
        background-repeat: no-repeat;
        background-position: center;
        transition: background-image 0.35s ease;
    }

    .navbar-collapse.show ~ .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e") !important;
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e") !important;
    }

    .navbar-collapse.show ~ .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e") !important;
    }

    /* Ensure nav links stay white in mobile menu */
    .navbar-nav .nav-link {
        color: #ffffff !important;
    }

    .navbar-nav .nav-link:hover {
        color: #DA410A !important;
    }

    /* Logo at bottom of menu - ONLY when menu is open */
    .navbar-brand {
        position: static !important;
        transform: none !important;
        margin: 0 auto 1rem;
        display: block;
        text-align: center;
    }

    .navbar-collapse.show ~ .navbar-brand {
        position: fixed !important;
        bottom: auto !important;
        top: 70% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1041 !important;
        width: auto !important;
        margin: 0 !important;
        display: block !important;
    }

    .navbar-brand img {
        max-width: 90px !important;
        max-height: 90px !important;
    }
}

/* =========================
   HOMEPAGE - BANNERS & HERO
========================= */

.video_home {
    width: 100%;
    max-height: 100vh;
    overflow: hidden;
}

.video_home video {
    width: 100%;
    height: auto;
    max-height: 100vh;
    display: block;
    object-fit: cover;
}

/* Video Desktop - Nascosto su mobile */
.video_home .video-desktop {
    display: block;
}

.video_home .video-mobile {
    display: none;
}

/* Media Query - Mobile */
@media (max-width: 768px) {
    .video_home {
        height: 100vh;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .video_home .video-desktop {
        display: none;
    }
    
    .video_home .video-mobile {
        display: block;
        height: 100vh;
        width: 100vw;
    }
}

.fascia_blu_home {
    background-color: #053690;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 120px;
}

.fascia_blu_home h2 {
    color: #fff;
}

.freccia_home {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0;
}

.freccia_home:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.banner_ultima_storia_testo {
    background-color: #DA410A;
    padding: 30px 50px 50px 50px;
}

.banner_ultima_storia_testo h3 {
    font-size: 64px;
    font-family: 'Mattone-Bold';
    text-align: left;
    color: #fff;
    margin-bottom: 0;
}

.banner_ultima_storia_testo p {
    color: #fff;
    padding-bottom: 30px;
}

.banner_ultima_storia_testo .citazione_ultima {
    font-family: 'Mattone-Regular';
    font-size: 25px;
    color: #fff;
}

.titolo_ultima_storia {
    padding: 20px 0;
    margin: 0;
}

.titolo_ultima_storia h3 {
    margin-bottom: 0;
}

.titolo_slider_jeans {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 40px;
}

.titolo_slider_jeans h3 {
    font-family: 'Mattone-Black';
    font-size: 36px;
    color: #000000;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.swiper-button-group {
    display: flex;
    gap: 8px;
    align-items: center;
    
}

.swiper-button-prev-title,
.swiper-button-next-title {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    padding: 0;
}

.swiper-button-prev-title::before,
.swiper-button-next-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border: solid #DA410A;
    border-width: 2px 2px 0 0;
    display: block;
}

.swiper-button-prev-title::before {
    transform: rotate(-135deg);
}

.swiper-button-next-title::before {
    transform: rotate(45deg);
}

.swiper-button-prev-title:hover,
.swiper-button-next-title:hover {
    background-color: #DA410A;
}

.swiper-button-prev-title:hover::before,
.swiper-button-next-title:hover::before {
    border-color: #fff;
}


.tag_home {
    border: 2px solid;
    border-radius: 26px;
    padding: 7px 16px;
    background-color: #ffffff;
    border-color: #DA410A;
    color: #DA410A;
    font-size: 15px;
    font-family: 'Diatype';
    font-variation-settings: 'wght' 400;
    display: inline-block;
    margin-top: 8px;
}

/* Homepage - Mobile */
@media (max-width: 767.98px) {
    .banner_ultima_storia_testo {
        padding-left: 0;
        padding-right: 0px;
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .banner_ultima_storia_testo h3 {
        font-size: 28px !important;
        font-family: 'Mattone-Bold';
        text-align: left;
        color: #fff;
    }

    .banner_ultima_storia_testo p {
        color: #fff;
        padding-bottom: 10px !important;
        font-size: 15px;
    }

    .banner_ultima_storia_testo .citazione_ultima {
        font-family: 'Mattone-Regular';
        font-size: 16px !important;
        color: #fff;
        margin: 0;
    }

    .fascia_blu_home {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .freccia_home {
        max-width: 80px;
        padding-top: 15px;
    }

    .card_tutta_larghezza img {
        max-height: 200px !important;
        width: 100%;
        object-fit: cover;
    }

    /* Mobile - Slider Jeans */
    .titolo_slider_jeans {
        flex-direction: column;
        gap: 20px;
        padding-top: 15px;
        padding-bottom: 30px;
    }

    .titolo_slider_jeans h3 {
        font-size: 20px;
        padding: 0;
    }

    .swiper-button-group {
        gap: 10px;
    }

    .swiper-button-prev-title,
    .swiper-button-next-title {
        width: 36px;
        height: 36px;
    }
}

/* =========================
   STORIES & CAROUSEL
========================= */

.overlay-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.overlay-card img {
    border-radius: 0;
}

.overlay-card .always-visible {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 1;
    color: #fff;
}

.overlay-card .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #DA410A;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.overlay-card:hover .overlay-content {
    opacity: 1;
}

.citazione-principale {
    text-align: center;
}

.card_tutta_larghezza {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 20px;
}

.card_tutta_larghezza h3 {
    font-size: 54px;
    font-family: 'Mattone-Bold';
    text-align: left;
    color: #fff;
    padding-left: 40px;
    padding-top: 30px;
    padding-bottom: 0;
}

.card_tutta_larghezza p {
    text-align: left;
    color: #fff;
    padding-left: 40px;
}

.card_tutta_larghezza .catalog-card-overlay .catalog-quote {
    font-size: 28px;
}

.card_tutta_larghezza a {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.card_tutta_larghezza img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.card_meta {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 20px;
}

.card_meta h3 {
    text-align: left;
    color: #fff;
    font-size: 54px;
    font-family: 'Mattone-Bold';
    padding-left: 40px;
    padding-top: 30px;
    padding-bottom: 0;
}

.card_meta p {
    text-align: left;
    color: #fff;
    padding-left: 40px;
}

.card_meta .catalog-card-overlay .catalog-quote {
    font-size: 22px;
}

.card_meta a {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.card_meta img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.card_terzo {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 20px;
}

.card_terzo h3 {
    text-align: left;
    color: #fff;
    font-size: 54px;
    font-family: 'Mattone-Bold';
    padding-left: 40px;
    padding-top: 30px;
    padding-bottom: 0;
}

.card_terzo p {
    text-align: left;
    color: #fff;
    padding-left: 40px;
}

.card_terzo a {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.card_terzo img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

/* Catalog Card Overlay Hover */
.catalog-card-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.catalog-card-link img {
    transition: opacity 0.3s ease;
}

.catalog-card-link:hover img {
    opacity: 0;
}

.catalog-card-link > div:first-of-type {
    z-index: 15;
    position: relative;
}

.catalog-card-overlay {
    background-color: #DA410A;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.catalog-card-link:hover .catalog-card-overlay {
    opacity: 1;
}

.catalog-card-overlay > div {
    margin-top: 50px;
}

.catalog-card-overlay .catalog-quote {
    color: #ffffff;
    text-align: left;
    font-family: 'Mattone-Regular';
    font-size: 18px;
    margin: 0;
    padding-left: 20px;
}

/* Cards - Mobile Equal Height */
@media (max-width: 767.98px) {
    .card_tutta_larghezza,
    .card_meta,
    .card_terzo {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .card_tutta_larghezza a,
    .card_meta a,
    .card_terzo a {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .card_tutta_larghezza img,
    .card_meta img,
    .card_terzo img {
        max-height: 250px !important;
        height: auto;
        flex-grow: 1;
    }

    .card_tutta_larghezza h3,
    .card_meta h3,
    .card_terzo h3 {
        font-size: 28px;
        padding-left: 20px;
        padding-top: 15px;
        padding-bottom: 5px;
    }

    .card_tutta_larghezza p,
    .card_meta p,
    .card_terzo p {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 15px;
        font-size: 14px;
    }

    .card_tutta_larghezza .catalog-card-overlay .catalog-quote,
    .card_meta .catalog-card-overlay .catalog-quote {
        font-size: 18px !important; 
    }

    .catalog-card-overlay > div {
        margin-top: 30px !important;
    }
}

/* Cards - Tablet (Intermediate breakpoint) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .card_tutta_larghezza h3,
    .card_meta h3,
    .card_terzo h3 {
        font-size: 40px;
        padding-left: 30px;
    }

    .card_tutta_larghezza p,
    .card_meta p,
    .card_terzo p {
        padding-left: 30px;
        font-size: 16px;
    }

    .card_tutta_larghezza .catalog-card-overlay .catalog-quote,
    .card_meta .catalog-card-overlay .catalog-quote {
        font-size: 16px;
        padding-left: 20px;
    }

    .catalog-card-overlay .catalog-quote {
        font-size: 16px;
    }

    .card_terzo h3 {
        font-size: 32px;
        padding-left: 24px;
    }

    .card_terzo p {
        font-size: 14px;
        padding-left: 24px;
    }
}

/* Carousel Styles */
.stories-carousel {
    width: 100%;
    padding-bottom: 20px;
}

.carousel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 40px;
    width: fit-content;
    margin: 0 auto;
}

.carousel-header h3 {
    margin: 0;
    text-align: center;
}

.carousel-desktop {
    display: block;
}

.carousel-mobile {
    display: none;
}

.story-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-image {
    width: 100%;
    height: 315px;
    overflow: hidden;
    margin-bottom: 0;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: background-color 0.3s ease;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #DA410A;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    z-index: 2;
}

.story-overlay p {
    color: #fff;
    font-family: 'Mattone-Regular';
    font-size: 18px;
    text-align: left;
    margin: 0;
    line-height: 1.4;
}

.story-overlay .overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-overlay.has-overlay-image {
    background-color: transparent;
    padding: 0;
}

.story-caption {
    position: absolute;
    top: 15px;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 0px 15px 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
}

.story-caption strong {
    font-family: 'Mattone-Bold';
    font-size: 28px;
    color: #fff;
    margin: 0;
}

.story-caption span {
    font-family: 'Mattone-Regular';
    font-size: 15px;
    color: #fff;
    margin: 0;
}

.story-info {
    display: flex;
    flex-direction: column;
}

.story-info strong {
    font-family: 'Mattone-Bold';
    font-size: 18px;
    color: #000;
    margin-bottom: 5px;
}

.story-info span {
    font-family: 'Diatype';
    font-size: 14px;
    color: #666;
}

.carousel-header .carousel-control-prev-icon,
.carousel-header .carousel-control-next-icon {
    filter: invert(1);
    width: 24px;
    height: 24px;
    background-size: contain;
}

.carousel-header .carousel-control-prev,
.carousel-header .carousel-control-next {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    opacity: 1;
    transition: opacity 0.3s ease, filter 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.carousel-header .carousel-control-prev:hover,
.carousel-header .carousel-control-next:hover {
    opacity: 0.7;
}

/* Hover effects */
@media (hover: hover) {
    .story-card:hover .story-image {
        background-color: #DA410A;
    }

    .story-card:hover .story-image img {
        opacity: 0;
    }

    .story-card:hover .story-overlay {
        opacity: 1;
    }
}

/* Swiper Jeans - Hide overlay background */
.swiper-jeans .jeans-story-overlay {
    background-color: transparent !important;
    padding: 0 !important;
}

/* Carousel - Mobile */
@media (max-width: 991.98px) {
    .carousel-desktop {
        display: none;
    }

    .carousel-mobile {
        display: block;
    }

    .stories-carousel .carousel-item {
        padding: 15px 0;
    }
}

@media (max-width: 767.98px) {
    .stories-carousel {
        padding: 40px 0;
        padding-bottom: 0;
    }

    .carousel-header {
        margin-bottom: 30px;
        gap: 15px;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .carousel-header h3 {
        font-size: 20px;
        margin: 0 !important;
        line-height: 1.2;
        text-align: center;
        width: auto !important;
        padding: 0 !important;
    }

    .carousel-header .carousel-control-prev.position-static,
    .carousel-header .carousel-control-next.position-static {
        position: static !important;
        width: auto;
        height: auto;
        background: none !important;
        border: none;
        opacity: 1;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: filter 0.3s ease;
    }

    .carousel-header .carousel-control-prev.position-static:hover,
    .carousel-header .carousel-control-next.position-static:hover {
        opacity: 0.7;
    }

    .carousel-header .carousel-control-prev-icon,
    .carousel-header .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 100% 100%;
    }

    .story-info strong {
        font-size: 14px;
    }

    .story-info span {
        font-size: 12px;
    }

    .stories-carousel .carousel-item .col-md-4:nth-child(2),
    .stories-carousel .carousel-item .col-md-4:nth-child(3) {
        display: none;
    }

    .stories-carousel .carousel-item .col-md-4:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================
   GLOSSARIO
========================= */

.descrizione_glossario p {
    font-family: 'Diatype';
    font-variation-settings: 'wght' 400;
    font-size: 25px;
    color: #000000;
    text-align: left;
    width: 100%;
    line-height: 1.2;
    padding-bottom: 20px;
}

.icone img {
    width: 100px;
    height: 100px;
    padding-bottom: 10px;
    margin-left: -20px;
}


.vocabolo_glossario p {
    font-family: 'Diatype';
    font-variation-settings: 'wght' 800 !important;
    font-size: 18px;
    color: #000000;
    text-align: left;
    width: 100%;
    line-height: 1.2;
}

.vocabolo_definizione {
    padding-bottom: 10px;
}

/* Glossario - Mobile */
@media (max-width: 767.98px) {
    .descrizione_glossario p {
        font-size: 18px !important;
        margin: 0;
    }
}

/* =========================
   ABOUT & PAGES
========================= */

.video_about {
    max-height: calc(100vh - 140px);
    overflow: hidden;
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.video_about video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Video Desktop - Nascosto su mobile */
.video_about .video-desktop {
    display: block;
}

.video_about .video-mobile-about {
    display: none;
}

/* Media Query - Mobile */
@media (max-width: 768px) {
    .video_about .video-desktop {
        display: none;
    }
    
    .video_about .video-mobile-about {
        display: block;
        height: auto;
    }
}

.pagina_about img {
    width: auto;
    max-height: 400px;
    object-fit: cover;
    padding: 0;
}

.pagina_about p {
    padding-bottom: 10px;
    padding-top: 10px;
}

.striscia_tasto {
    background-color: #DA410A;
    max-width: 100%;
    padding-top: 0;
}

.testo_invito h3 {
    color: #fff;
}

.redazione h5 {
    font-size: 32px;
    font-family: 'Mattone-Black';
    margin-bottom: 0;
    padding-top: 45px;
    padding-bottom: 10px;
}

.redazione p {
    margin-bottom: 0;
    padding: 0;
}

/* Redazione - Mobile */
@media (max-width: 767.98px) {
    .redazione h5 {
        font-size: 25px;
        padding-bottom: 10px;
    }
}

/* =========================
   COVER - STORY HEADER
========================= */

.cover {
    position: relative;
}

.cover .cover-image {
    height: 90vh;
    width: 100%;
}

.cover .cover-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.cover .cover-info {
    width: 100%;
    position: absolute;
    z-index: 1;
    right: 0px;
    bottom: 0px;
    padding-bottom: 45px;
}

.cover .cover-info .cover-info-container p {
    color: #fff;
    text-align: right;
    margin-bottom: 0px;
}

.cover .cover-info .cover-info-container p b {
    font-family: 'Mattone-Regular';
    font-size: 64px;
    line-height: 1.2;
}

/* Cover - Mobile */
@media (max-width: 767.98px) {
    .cover .cover-image {
        height: calc(100vh - 116px);
    }
    
    .cover .cover-info {
        padding-bottom: 25px;
        padding-right: 20px;
    }
    
    .cover .cover-info .cover-info-container p {
        color: #fff !important;
    }
    
    .cover .cover-info .cover-info-container p b {
        color: #fff !important;
        font-size: 35px;
        line-height: 1.2;
    }
}

/* =========================
   BLOCKS & CONTENT
========================= */

.block-video {
    margin-top: 20px;
    margin-bottom: 20px;
}

.block-testo_base p {
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.block-audio-wrapper {
    background-color: #D9D9D9;
    width: 100%;
    margin: 0;
    margin-bottom: 30px;
}

.block-audio h3 {
    color: #DA410A;
    text-align: center;
    margin: 0;
}

.block-audio__player {
    padding-bottom: 20px;
}

.block-qa {
    margin-top: 20px;
    margin-bottom: 20px;
}

.block-citazione {
    background-color: #053690;
    padding: 60px;
    margin: 30px 0px;
    text-align: center;
    font-family: 'Mattone-Regular';
    font-style: normal;
    font-size: 36px;
    color: #ffffff;
}

.block-citazione p {
    text-align: center;
    font-family: 'Mattone-Bold';
    font-style: normal;
    font-size: 36px;
    color: #ffffff;
    line-height: 42px;
    margin-bottom: 0;
}

.block-citazione * {
    color: #ffffff;
}

/* Block Citazione - Mobile */
@media (max-width: 767.98px) {
    .block-citazione {
        padding: 30px 20px;
        font-size: 17px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .block-citazione p {
        font-size: 17px;
        line-height: 1.4;
        margin-bottom: 0;
    }
}

.block-introduzione {
    text-align: center;
    font-family: 'Mattone-Regular';
    padding: 50px 0 20px 0;
}

.block-introduzione p {
    text-align: center;
    font-family: 'Mattone-Regular';
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
}

/* Block Introduzione - Mobile */
@media (max-width: 767.98px) {
    .block-introduzione {
        padding: 20px 15px;
    }

    .block-introduzione p {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 0;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.block-crediti {
    text-align: center;
    font-family: 'Diatype';
    padding: 0 0 20px 0;
}

.block-crediti p {
    color: #000;
    text-align: center;
    font-family: "ABC Diatype Variable Unlicensed Trial";
    font-size: 20px;
    font-style: normal;
    font-variation-settings: 'wght' 400;
    line-height: 35px;
}

/* Block Crediti - Mobile */
@media (max-width: 767.98px) {
    .block-crediti p {
        font-size: 17px;
        margin-bottom: 0px;
    }
}

.block-dettagli,
.block-ritratto,
.block-indossati,
.block-contesto,
.block-storiche,
.block-scontornate {
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    padding: 0px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.block-dettagli img,
.block-indossati img,
.block-contesto img,
.block-storiche img,
.block-scontornate img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%
}

.block-ritratto img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 75%;
}

/* Block Scontornate - Mobile */
@media (max-width: 767.98px) {
    .block-scontornate img {
        max-height: 80vh;
        width: auto;
    }

}

.layout img {
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (max-width: 767.98px) {
    .layout img {
        padding-top: 20px;
        padding-bottom: 20px;
    }

}
/* =========================
   VIDEO EMBED
========================= */

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background-color: #D9D9D9;
    width: 100%;
    margin: 0;
    margin-top: 80px;
}

/* Page-specific: Contatti - anchor footer to bottom while keeping visual gap */
body.contatti .site-content {
    padding-bottom: 80px; /* preserve the previous gap that was margin-top on the footer */
}

body.contatti .site-footer {
    margin-top: auto !important; /* push footer to bottom on contatti page */
}

/* Make the page wrapper grow so footer can be pushed to the bottom
   (only for contatti page). Do not change leader styles. */
body.contatti > .header_totale {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.site-footer .frase_privacy p {
    text-align: center;
    font-family: 'Mattone-Regular';
    font-size: 11px;
    color: #000000;
}

.site-footer .frase_privacy a {
    color: #000000;
}

/* Mobile-specific: reduce the bottom padding on contatti page so the gap
   between the "VAI AL FORM" button and the footer is smaller. */
@media (max-width: 767.98px) {
    body.contatti .site-content {
        padding-bottom: 12px; /* ridotto da 80px per mobile */
    }
}

.site-footer .frase_privacy a:hover {
    color: #DA410A;
    transition: color 0.3s ease;
}

.site-footer .footer-contatti p {
    font-family: 'Diatype';
    font-size: 14px;
    color: #000000;
    width: 100%;
    padding-top: 60px;
    padding-left: 130px;
}

.site-footer .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer .footer-logo img {
    max-width: 218px;
    height: auto;
    padding-top: 40px;
}

.footer-social {
    gap: 14px;
    padding-top: 67px;
}

.social-icon {
    max-width: 55px;
    height: 55px;
    object-fit: contain;
}

/* Footer - Tablet (transition zone fix) */
@media (min-width: 768px) and (max-width: 1049px) {
    .site-footer .footer-contatti p {
        padding-left: 0;
    }
}

/* Footer - Mobile */
@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 10px;
        margin-top: 30px;
    }

    .site-footer .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .site-footer .col-md {
        padding: 0 !important;
        text-align: center;
    }

    .site-footer .col-md:has(.footer-logo) {
        grid-column: 1 / -1;
        order: 1;
    }

    .site-footer .footer-logo {
        padding: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-footer .footer-logo img {
        padding-top: 0;
        max-width: 150px;
    }

    .site-footer .col-md:has(.footer-contatti) {
        order: 2;
    }

    .site-footer .footer-contatti {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-footer .footer-contatti p {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        margin: 0;
        font-size: 12px;
        width: auto;
    }

    .site-footer .col-md:has(.footer-social) {
        order: 2;
        justify-self: center;
    }

    .site-footer .footer-social {
        padding-top: 0;
        padding-bottom: 0 !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        justify-content: center;
        gap: 8px;
        display: flex;
        width: auto;
    }

    .social-icon {
        max-width: 40px;
        height: 40px;
    }

    .site-footer .frase_privacy {
        grid-column: 1 / -1;
        order: 3;
        padding: 10px 15px 15px 15px !important;
        width: 100%;
        margin: 0;
    }

    .site-footer .frase_privacy p {
        font-size: 9px;
    }
}

/* Next Story Block */
.next-story-block {
    margin-top: 90px;
    margin-bottom: 90px;
    text-align: center;
}

/* Next Story Block - Mobile */
@media (max-width: 767.98px) {
    .next-story-block .bottone a {
        font-size: 20px;
    }
}

