﻿/* ===================================================================
                VARIABILI CSS E CONFIGURAZIONE BASE
                =================================================================== */

:root {
    /* Colori principali */
    --main-blue: #0172E0;
    --main-gray: #F5F5F7;
    --main-gray50: rgba(255, 255, 255, 0.2);
    --main-lightgray: #F0F0F0;
    --main-middlegray: #777;
    --main-darkgray: #232323;
    --main-white: #FFFFFF;
    --main-white60: rgba(255, 255, 255, 0.6);
    --main-black: #000000;
    --main-pink: #f3cbcb;
    --main-yellow: #fec400;
    --main-green: #0E772D;
    --main-orange: #FF9012;
    --main-red: #B40030;
    /* Layout e spaziature */
    --base-padding: 0 100px 0 100px;
    --base-fontweight: 500;
    --base-lh: 18px;
    --triangle-size-normal: 4px;
    --triangle-size-large: 12px;
}

/* ===================================================================
                FONT FACES - AILERON FAMILY
=================================================================== */

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-UltraLight.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-UltraLightItalic.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-UltraLightItalic.woff2') format('woff2');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-SemiBold.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-SemiBoldItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-BoldItalic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-HeavyItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-BlackItalic.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
}

/* ===================================================================
                RESET E STILI BASE
=================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Aileron';
    font-weight: var(--base-fontweight);
}

html {
    font-size: 18px; /* 1rem = 18px */
    line-height: 1rem;
}

body {
    font-family: 'Aileron';
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================================================
                TIPOGRAFIA
=================================================================== */

h1 {
    font-size: 4rem;
    line-height: 4rem;
}

h2 {
    font-size: 3rem;
    line-height: 3.5rem;
}

h3 {
    font-size: 2rem;
    line-height: 2.5rem;
}

h4 {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 300;
}

strong {
    font-weight: 500;
}



.color-green {
    color: var(--main-green);
}

.color-white {
    color: var(--main-white);
}

.color-black {
    color: var(--main-black);
}

.color-blue {
    color: var(--main-blue);
}


.bg-orange {
    background-color: var(--main-orange);
}

.bg-blue {
    background-color: var(--main-blue);
}

.bg-pink {
    background-color: var(--main-pink);
}

.bg-yellow {
    background-color: var(--main-yellow);
}


/* ===================================================================
                ELEMENTI BASE
=================================================================== */

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

button {
    border: none;
    cursor: pointer;
    background-color: transparent;
}

.discover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.8rem 1.5rem;
    background-color: var(--main-black);
    color: var(--main-white);
    font-size: 1rem;
    font-family: sans-serif;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.discover_disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.8rem 1.5rem;
    background-color: var(--main-darkgray);
    color: var(--main-white);
    font-size: 1rem;
    font-family: sans-serif;
    border: none;
    cursor: not-allowed;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.discover_inverted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.8rem 1.5rem;
    background-color: var(--main-white);
    color: var(--main-black);
    font-size: 1rem;
    font-family: sans-serif;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.asLink {
    color: var(--main-blue);
    cursor:pointer;
}


/* ===================================================================
                HEADER E STRUTTURA PRINCIPALE
=================================================================== */
.header {
    height: 160px;
    background-color: var(--main-gray);
    width: 100%;
    position: relative;
}

.header-container {
    width: 1920px;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--main-gray);
    overflow-x: clip;
}



/* ===================================================================
                LOGO SECTION
=================================================================== */

.logo-section {
    width: 125px;
    height: 161px;
    display: flex;
    background-color: var(--main-black);
    margin-left: 60px;
}

.logo-img {
    width: 125px;
    height: 161px;
    z-index: 10000;
    position: relative;
}

/* ===================================================================
                MENU SECTION E NAVBAR
=================================================================== */

.menu-section {
    flex: 1;
    height: 100%;
    position: relative;
    margin-right: 60px;
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2000;
    position: relative;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===================================================================
                STRUTTURA RIGHE NAVBAR
=================================================================== */

/* Riga base */
.nav-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Riga superiore - servizi e social */
.nav-row-top {
    background-color: var(--main-gray);
    height: 50px;
    display: flex;
}

    .nav-row-top .services {
        flex: 1;
        text-align: center;
        font-size: 0.7rem;
        align-content: center;
    }

        .nav-row-top .services > div {
            display: inline-flex;
            align-items: center;
            margin-left: 30px;
        }


        .nav-row-top .services .service .top-bar-icon {
            display: inline-block;
        }

        .nav-row-top .services .service .top-bar-icon-desc {
            margin-left: 10px;
            font-size: 0.7rem;
            display: inline-block;
        }

    .nav-row-top .social {
        flex: 0 0 auto;
        white-space: nowrap;
        align-content: center;
        display: flex;
    }


        .nav-row-top .social a {
            margin-left: 10px;
            display: inline-block;
        }


.nav-row-middle {
    background-color: var(--main-gray);
    right:-10px;
}

.nav-row-bottom {
    background-color: var(--main-gray);
    justify-content: flex-start;
}

/* ===================================================================
                MENU PRINCIPALE
=================================================================== */

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    justify-content: flex-start;
    padding: 0 0 0 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0 0 0 20px;
    text-decoration: none;
    color: var(--main-black);
    transition: color 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    height: 60px;
    font-weight: var(--base-fontweight);
    position: relative;
}

    .nav-link:hover {
        color: var(--main-blue);
    }

.nav-spacer {
    flex: 1;
}

/* ===================================================================
                FRECCE E ICONE
=================================================================== */

.arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    fill: var(--main-black);
}

.nav-link:hover .arrow {
    fill: var(--main-blue);
}

.arrow.up {
    transform: rotate(180deg);
}

/* Icone SVG */
.icon-svg {
    width: 30px;
    height: 30px;
    fill: var(--main-black);
    transition: fill 0.3s ease;
    margin-top: 12px;
}

.nav-link:hover .icon-svg {
    fill: var(--main-blue);
}

/* ===================================================================
                ICONE TOPBAR
=================================================================== */

.top-bar-icon {
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease;
    display: inline-block;
}

.top-bar-icon-1 {
    background-image: url('/assets/img/ico-quotation-black.svg');
}

.top-bar-icon-2 {
    background-image: url('/assets/img/ico-montaggio-black.svg');
}

.top-bar-icon-3 {
    background-image: url('/assets/img/ico-madeinitaly-black.svg');
}

.top-bar-icon-4 {
    background-image: url('/assets/img/ico-design-black.svg');
}

.top-bar-icon-5 {
    background-image: url('/assets/img/ico-delivery-black.svg');
}

.top-bar-icon-social-1 {
    background-image: url('/assets/img/ico-social-facebook-black.svg');
}

    .top-bar-icon-social-1:hover {
        background-image: url('/assets/img/ico-social-facebook-blue.svg');
    }

.top-bar-icon-social-2 {
    background-image: url('/assets/img/ico-social-youtube-black.svg');
}

    .top-bar-icon-social-2:hover {
        background-image: url('/assets/img/ico-social-youtube-blue.svg');
    }

.top-bar-icon-social-3 {
    background-image: url('/assets/img/ico-social-pinterest-black.svg');
}

    .top-bar-icon-social-3:hover {
        background-image: url('/assets/img/ico-social-pinterest-blue.svg');
    }

.top-bar-icon-social-4 {
    background-image: url('/assets/img/ico-social-instagram-black.svg');
}

    .top-bar-icon-social-4:hover {
        background-image: url('/assets/img/ico-social-instagram-blue.svg');
    }

.top-bar-icon-social-5 {
    background-image: url('/assets/img/ico-social-linkedin-black.svg');
}

    .top-bar-icon-social-5:hover {
        background-image: url('/assets/img/ico-social-linkedin-blue.svg');
    }

/* ===================================================================
                MENU HAMBURGER (MOBILE)
=================================================================== */

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2001;
    position: absolute;
    top: 60%;
    right: 20px;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
}

    .hamburger img {
        width: 65px;
        height: 65px;
        object-fit: contain;
        transition: filter 0.3s ease;
    }

    .hamburger.active {
        width: 50px;
        height: 50px;
    }

        .hamburger.active img {
            width: 45px;
            height: 45px;
        }

/* ===================================================================
                SOTTOMENU DESKTOP
=================================================================== */

.submenu {
    position: fixed;
    top: 160px;
    left: 0;
    right: 0;
    background-color: var(--main-gray);
    height: auto;
    min-height: 200px;
    max-height: calc(100vh - 160px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    z-index: -1;
    padding: 0 182px 60px 218px;
    overflow-y: auto;
    max-width: 1920px;
    margin: 0 auto;
}

.nav-item.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu .submenu-close {
    position: absolute;
    z-index: 3000;
    top: 10px;
    right: 150px;
    cursor: pointer;
}





/* ===================================================================
                CONTENUTO SOTTOMENU
=================================================================== */
.elenco-voci {
    font-size: 3rem;
    line-height: 3rem;
    font-weight: var(--base-fontweight);
    padding-top: 60px
}

    .elenco-voci li {
        margin-bottom: 10px;
    }

    .elenco-voci a {
        color: var(--main-black);
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .elenco-voci a:hover {
            color: var(--main-blue);
        }

.flex-container {
    display: flex;
    flex-wrap: wrap;
    padding-top: 60px;
}

    .flex-container ul {
        display: contents;
    }

    .flex-container li {
        flex: 1 1 calc(25% - 15px);
        min-width: 200px;
        max-width: calc(25% - 15px);
        padding: 20px 40px 20px 40px;
    }

        .flex-container li a {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

            .flex-container li a img:first-child {
                height: 35px;
            }

            .flex-container li a span {
                color: var(--main-black);
                flex: 1;
                padding-left: 10px;
            }

            .flex-container li a img:last-child {
                height: 25px;
            }

.submenu-bottom {
    padding-top: 60px;
}

/* ===================================================================
                LINEE PRODOTTO
=================================================================== */

.go-to-lines {
    padding: 20px;
}

    .go-to-lines div {
        font-size: 3rem;
        font-weight: var(--base-fontweight);
        padding: 40px 20px 40px 0;
        display: inline-block;
    }

.go-to-products button img {
    width: 60px;
}

.lines-list {
    display: flex;
    gap: 40px;
}

    .lines-list > div {
        display: inline-block;
        padding-top: 1.5rem;
        margin: initial;
    }

        .lines-list > div > span {
            display: block;
            color: black;
            font-size: 1rem;
            margin-bottom: 0.5em;
            font-weight: var(--base-fontweight);
        }

        .lines-list > div ul li {
            margin-right: 40px;
            position: relative;
            font-weight: var(--base-fontweight);
            min-width: fit-content;
        }

            .lines-list > div ul li a {
                font-size: 3rem;
                line-height: 3.5rem;
                font-weight: var(--base-fontweight);
                color: var(--main-white);
                transition: all 0.3s ease;
            }

                .lines-list > div ul li a:hover {
                    color: var(--main-black);
                }

/* ===================================================================
                RICERCA
=================================================================== */

.submenu-cerca {
    padding-top: 60px;
}

    .submenu-cerca div form {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .submenu-cerca input[type=search] {
        flex: 1;
        min-width: 200px;
        height: 75px;
        border: none;
        outline: none;
        background: transparent;
        font-size: 3rem;
        color: var(--main-black);
        cursor: text;
        padding: 0 10px;
    }

        .submenu-cerca input[type=search]::placeholder {
            color: var(--main-black);
        }

    .submenu-cerca button {
        min-height: 40px;
        min-width: 120px;
        padding: 1rem;
        text-align: center;
        background-color: var(--main-black);
        color: var(--main-white);
        font-size: 1rem;
        border: none;
        cursor: pointer;
        white-space: nowrap;
        transition: background-color 0.3s ease;
    }


/* ===================================================================
                LOGIN UTENTE
=================================================================== */

.user-logged-name {
    padding-top: 5px;
}

#user-login {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    position: relative;
    top: 0;
    left: 0;
    z-index: -1;
    max-width: 1920px;
}

    #user-login * {
        display: block;
    }

    #user-login label:first-child {
        font-size: 3rem;
        line-height: 3rem;
        color: var(--main-black);
    }

    #user-login label:nth-child(2) {
        font-size: 1rem;
        color: var(--main-black);
    }

    #user-login input[type=text],
    #user-login input[type=password] {
        min-width: 500px;
        padding: 10px;
        border: 1px solid black;
        outline: none;
        background: transparent;
        font-size: 1rem;
        color: var(--main-black) !important;
        display: block;
        margin: 20px auto;
    }

    #user-login input::placeholder {
        color: var(--main-black) !important;
        font-size: 0.8rem;
    }

    #user-login button {
        margin: 0 auto;
        margin-bottom: 35px;
    }

    #user-login > div > div {
        display: inline-flex;
    }

    #user-login a {
        color: var(--main-blue);
        font-size: 1rem;
    }

.submenu:has(#user-login) {
    background-color: unset !important;
}

.cart-counter {
    position: absolute;
    font-size: 0.6rem;
    left: 30px;
}

.wishlist-counter {
    position: absolute;
    font-size: 0.6rem;
    width: 30px;
    margin-left: 50%;
    left: 3px;
    top: 23px;
}


/* ===================================================================
                BREADCRUMB
=================================================================== */
.breadcumb {
    display: flex;
    height: 30px;
    align-content: center;
    padding: 0 40px 0 50px;
}

    .breadcumb ul {
        display: flex;
    }

        .breadcumb ul li {
            font-size: 0.7rem;
            font-weight: var(--base-fontweight);
        }

            .breadcumb ul li a {
                color: var(--main-black);
                transition: all 0.3s ease;
            }

            .breadcumb ul li:hover a {
                color: var(--main-blue);
                transition: all 0.3s ease;
            }

            .breadcumb ul li:not(:last-child)::after {
                content: "";
                display: inline-block;
                margin-left: 15px;
                margin-right: 15px;
                vertical-align: middle;
                border-top: var(--triangle-size-normal) solid transparent;
                border-bottom: var(--triangle-size-normal) solid transparent;
                border-left: var(--triangle-size-normal) solid var(--main-blue) !important;
            }

            .breadcumb ul li:last-child {
                color: var(--main-blue);
                cursor: default;
            }

/* ===================================================================
                TEMA SFONDO BLU
=================================================================== */

.blue-background {
    background: var(--main-blue);
    transition: background 0.3s ease;
}

/* Stili per opzioni lingua */
.language-option:hover {
    border-color: var(--main-blue) !important;
    background-color: var(--main-white) !important;
    transform: translateY(-2px);
}

.language-option.selected {
    border-color: var(--main-blue) !important;
    background-color: var(--main-white) !important;
}

/* ===================================================================
                TEMA BLU - STILI DESKTOP (min-width: 1280px)
=================================================================== */

@media (min-width: 1280px) {
    .blue-background .nav-link {
        color: var(--main-white) !important;
    }

        .blue-background .nav-link:hover {
            color: var(--main-black) !important;
        }

    .blue-background .arrow {
        fill: var(--main-white) !important;
    }

    .blue-background .nav-link:hover .arrow {
        fill: var(--main-black) !important;
    }

    .blue-background .icon-svg {
        fill: var(--main-white) !important;
    }

    .blue-background .nav-link:hover .icon-svg {
        fill: var(--main-black) !important;
    }

    /* Stili per testo e icone social in nav-row-top */
    .blue-background .nav-row-top {
        color: white !important;
    }

        .blue-background .nav-row-top div {
            color: white !important;
        }

    /* Icone bianche su sfondo blu */
    .blue-background .top-bar-icon-1 {
        background-image: url('/assets/img/ico-quotation-white.svg') !important;
    }

    .blue-background .top-bar-icon-2 {
        background-image: url('/assets/img/ico-montaggio-white.svg') !important;
    }

    .blue-background .top-bar-icon-3 {
        background-image: url('/assets/img/ico-madeinitaly-white.svg') !important;
    }

    .blue-background .top-bar-icon-4 {
        background-image: url('/assets/img/ico-design-white.svg') !important;
    }

    .blue-background .top-bar-icon-5 {
        background-image: url('/assets/img/ico-delivery-white.svg') !important;
    }

    .blue-background .top-bar-icon-social-1 {
        background-image: url('/assets/img/ico-social-facebook-white.svg') !important;
    }

        .blue-background .top-bar-icon-social-1:hover {
            background-image: url('/assets/img/ico-social-facebook-black.svg') !important;
        }

    .blue-background .top-bar-icon-social-2 {
        background-image: url('/assets/img/ico-social-youtube-white.svg') !important;
    }

        .blue-background .top-bar-icon-social-2:hover {
            background-image: url('/assets/img/ico-social-youtube-black.svg') !important;
        }

    .blue-background .top-bar-icon-social-3 {
        background-image: url('/assets/img/ico-social-pinterest-white.svg') !important;
    }

        .blue-background .top-bar-icon-social-3:hover {
            background-image: url('/assets/img/ico-social-pinterest-black.svg') !important;
        }

    .blue-background .top-bar-icon-social-4 {
        background-image: url('/assets/img/ico-social-instagram-white.svg') !important;
    }

        .blue-background .top-bar-icon-social-4:hover {
            background-image: url('/assets/img/ico-social-instagram-black.svg') !important;
        }

    .blue-background .top-bar-icon-social-5 {
        background-image: url('/assets/img/ico-social-linkedin-white.svg') !important;
    }

        .blue-background .top-bar-icon-social-5:hover {
            background-image: url('/assets/img/ico-social-linkedin-black.svg') !important;
        }

    .blue-background .nav-row-bottom a {
        color: white;
    }

        .blue-background .nav-row-bottom a:hover {
            color: black;
        }

    .blue-background .breadcumb ul li:not(:last-child)::after {
        border-left: var(--triangle-size-normal) solid var(--main-white) !important;
    }

    .blue-background .breadcumb ul li:last-child {
        color: var(--main-black);
        cursor: default;
    }
}


/* ===================================================================

                STILE LIGHTBOX

=================================================================== */

.trigger-lightbox {
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .lightbox-overlay.show {
        display: flex;
        opacity: 1;
        visibility: visible;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

.lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
}

.lightbox-image-container {
    position: relative;
    line-height: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--main-gray);
}

#lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
}

    #lightbox-img[src$=".svg"] {
        width: 80vw;
        height: auto;
    }

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: var(--main-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s, transform 0.2s;
}

.lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
}

.lightbox-overlay.show .lightbox-footer {
    opacity: 1;
    transform: translateY(1px);
}

#lightbox-desc {
    margin: 0;
    padding-right: 20px;
}

    #lightbox-desc * {
        color: var(--main-white);
        font-size: 0.8rem;
        font-weight: 300;
        line-height: 1.2;
        text-align: left;
    }

    #lightbox-desc span {
        padding-bottom: 10px;
        display: block;
    }

        #lightbox-desc span strong {
            font-weight: bold;
        }




/* ===================================================================
                CONTENT
=================================================================== */

.content {
    flex: 1;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}





/* ===================================================================
                FOOTER
=================================================================== */


.footer {
    background-color: var(--main-black);
    color: var(--main-white);
    padding: 40px 20px;
    width: 100%;
    overflow-x: hidden;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-main-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--main-darkgray);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    min-width: 500px;
}


.contact-info {
    flex-basis: 200px;
    min-width: 200px;
    margin-left: 18px;
    margin-top: 50px;
}

    .contact-info * {
        color: var(--main-white);
    }

    .contact-info h3 {
        margin-bottom: 15px;
        font-size: 1rem;
    }

    .contact-info address {
        font-size: 0.8rem;
        line-height: 1rem;
        font-weight: 300;
        font-style: normal;
    }

    .contact-info a {
        text-decoration: none;
    }

        .contact-info a:hover {
            color: var(--main-blue);
        }

.footer-right-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 40px;
    min-width: 500px;
}

.newsletter-section {
    display: flex;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--main-darkgray);
    align-items: center;
}

    .newsletter-section .never-miss {
        min-width: 500px;
        margin: 0;
        white-space: nowrap;
        font-weight: 300;
        color: var(--main-blue);
        font-size: 2rem;
    }

.newsletter-form {
    display: flex;
    overflow: hidden;
    flex-grow: 1;
    flex-direction: column;
    max-width: 800px;
    margin-left: auto;
    gap:10px;
}

    .newsletter-form input[type="email"] {
        background-color: var(--main-darkgray);
        border: 1px solid #555;
        padding: 10px 15px;
        outline: none;
        flex-grow: 1;
        min-width: 200px;
        font-size: 1rem;
        color: var(--main-white60);
    }

    .newsletter-form select {
        background-color: var(--main-darkgray);
        border: 1px solid #555;
        padding: 10px 15px;
        outline: none;
        flex-grow: 1;
        min-width: 200px;
        font-size: 1rem;
        color: var(--main-white60);
    }

    .newsletter-form input[type="email"]::placeholder {
        color: var(--main-white60);
    }

    .newsletter-form input[type="email"]:focus {
        outline: 2px solid var(--main-blue);
        outline-offset: 2px;
    }

    .newsletter-form div {
        display: flex;
        flex-direction: row;
        gap:10px;
    }

        .newsletter-form div label {
            font-size: 0.8rem;
            font-weight: 300;
            padding-left: 20px;
        }

    .newsletter-form button {
        background-color: var(--main-blue);
        border: 1px var(--main-black);
        padding: 10px 20px;
        cursor: pointer;
        font-weight: bold;
        white-space: nowrap;
    }

        .newsletter-form button:disabled {
            background-color: var(--main-darkgray);
        }

        .newsletter-form button:hover:disabled {
            cursor: not-allowed;
        }

        .newsletter-form button:hover {
            color: var(--main-white);
        }

.footer-links-and-social {
    display: flex;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-self: flex-start;
    flex-shrink: 0;
    min-width: 500px;
}



.links-columns {
    display: flex;
    gap: 100px;
    flex-wrap: wrap;
    flex-grow: 1;
    max-width: 700px;
}

    .links-columns .column {
        flex-basis: 150px;
        flex-grow: 1;
        min-width: 120px;
    }

        .links-columns .column h4 {
            color: var(--main-white);
            font-weight: var(--base-fontweight);
            margin-bottom: 15px;
            font-size: 1.2em;
            white-space: nowrap;
        }

        .links-columns .column ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            .links-columns .column ul li a {
                color: var(--main-white);
                font-size: 0.8rem;
                text-decoration: none;
                transition: all 0.3s ease;
            }

                .links-columns .column ul li a:hover {
                    color: var(--main-blue);
                }

.payoff-logo {
    text-align: right;
    padding-top: 60px;
}

    .payoff-logo span {
        font-size: 7em;
        font-weight: bold;
        color: #fff;
        white-space: nowrap;
        font-weight: 400;
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
    gap: 15px;
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.6rem;
}

    .legal-links a {
        color: #bbb;
        text-decoration: none;
        transition: color 0.3s ease;
        white-space: nowrap;
    }

        .legal-links a:hover {
            color: var(--main-blue);
        }

.copyright {
    color: #bbb;
    margin: 0;
    text-align: right;
    flex-grow: 1;
    min-width: 250px;
    font-size: 0.6rem;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    min-width: unset;
}

    #scrollToTopBtn img {
        width: 70px;
    }


.footer-social {
    display: flex;
    justify-content: flex-start;
    min-height: 80px;
}

    .footer-social ul {
        display: flex;
    }

    .footer-social li {
        background-size: contain;
        background-repeat: no-repeat;
        position: relative;
        width: 30px;
        height: 30px;
        margin: 0 10px 0 10px;
        overflow: hidden;
    }

        .footer-social li a {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
        }

        .footer-social li::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 30px;
            height: 30px;
            opacity: 0;
            transition: opacity 0.3s ease;
            background-size: cover;
        }

        .footer-social li:hover::after {
            opacity: 1;
        }


        .footer-social li.social-facebook {
            background-image: url('/assets/img/ico-social-facebook-white.svg');
        }

            .footer-social li.social-facebook::after {
                background-image: url('/assets/img/ico-social-facebook-blue.svg');
            }



        .footer-social li.social-youtube {
            background-image: url('/assets/img/ico-social-youtube-white.svg');
        }

            .footer-social li.social-youtube::after {
                background-image: url('/assets/img/ico-social-youtube-blue.svg');
            }



        .footer-social li.social-pinterest {
            background-image: url('/assets/img/ico-social-pinterest-white.svg');
        }

            .footer-social li.social-pinterest::after {
                background-image: url('/assets/img/ico-social-pinterest-blue.svg');
            }



        .footer-social li.social-instagram {
            background-image: url('/assets/img/ico-social-instagram-white.svg');
        }

            .footer-social li.social-instagram::after {
                background-image: url('/assets/img/ico-social-instagram-blue.svg');
            }



        .footer-social li.social-linkedin {
            background-image: url('/assets/img/ico-social-linkedin-white.svg');
        }

            .footer-social li.social-linkedin::after {
                background-image: url('/assets/img/ico-social-linkedin-blue.svg');
            }







/* ===================================================================
        TOAST-MESSAGE-BOX
=================================================================== */
.toast-popup {
    position: fixed;
    top: 20px; /* MODIFICATO */
    right: 20px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-100%); /* MODIFICATO */
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

    .toast-popup.visible {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eeeeee;
}

.toast-title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.toast-close-btn {
    font-size: 1.5rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

    .toast-close-btn:hover {
        color: #000;
    }

.toast-body {
    padding: 16px;
    font-size: 0.95rem;
    color: #555;
    text-align: center;
}

.toast-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px 16px 12px;
    background-color: #f9f9f9;
}

.toast-action-btn {
    background-color: #e9e9e9;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

    .toast-action-btn:hover {
        background-color: #dcdcdc;
    }

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #e9e9e9;
}

    .toast-progress-bar span {
        display: block;
        height: 100%;
        width: 100%;
        background-color: #48a7e4;
        animation-name: progress-countdown;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
    }

@keyframes progress-countdown {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* --- NUOVE REGOLE PER STATO HEADER --- */

/* Stato: Success (Verde) */
.toast-popup.toast-state-success .toast-header {
    background-color: #d4edda;
    color: #155724;
    border-bottom-color: #c3e6cb;
}

    .toast-popup.toast-state-success .toast-header .toast-close-btn {
        color: #155724;
    }

/* Stato: Error (Rosso) */
.toast-popup.toast-state-error .toast-header {
    background-color: #f8d7da;
    color: #721c24;
    border-bottom-color: #f5c6cb;
}

    .toast-popup.toast-state-error .toast-header .toast-close-btn {
        color: #721c24;
    }

/* Stato: Info (Blu) */
.toast-popup.toast-state-info .toast-header {
    background-color: #d1ecf1;
    color: #0c5460;
    border-bottom-color: #bee5eb;
}

    .toast-popup.toast-state-info .toast-header .toast-close-btn {
        color: #0c5460;
    }

/* Stato: Alert (Giallo) */
.toast-popup.toast-state-alert .toast-header {
    background-color: #fff3cd;
    color: #856404;
    border-bottom-color: #ffeeba;
}

    .toast-popup.toast-state-alert .toast-header .toast-close-btn {
        color: #856404;
    }






/* ===================================================================
        RESPONSIVE - TABLET E MOBILE (max-width: 1279px)

=================================================================== */

@media (max-width: 1279px) {

    /* Header ridotto */
    .header {
        height: 120px !important;
    }

    .header-container {
        width: 100%;
    }

    /* Logo più piccolo */
    .logo-section {
        width: 100px !important;
        height: 120px !important;
        margin-left: 0 !important;
    }

        .logo-section img {
            height: 120px !important;
        }

    .menu-section {
        margin-right: 10px;
    }

    /* Navbar responsive */
    .nav-container {
        position: relative;
    }

    /* Mostra hamburger */
    .hamburger {
        display: flex;
    }

    /* Menu mobile */
    .nav-menu {
        position: absolute;
        top: 80px;
        /*left: -120px;*/
        right: 0;
        background-color: var(--main-white);
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1500;
        padding: 0;
        height: auto;
        width: 500px;
    }

        .nav-menu.active {
            max-height: 1500px !important;
        }

    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
        min-height:60px;
    }

    .nav-spacer {
        display: none;
    }

    .nav-link {
        justify-content: space-between;
        border-top: 1px solid #f0f0f0;
        padding: 10px 20px;
        font-size: 1.5rem;
    }

        .nav-link#user {
            justify-content: unset !important;
        }

    .arrow {
        width: 40px;
        height: 40px;
    }

    /* Sottomenu mobile */
    .submenu {
        position: static !important;
        height: auto;
        min-height: auto;
        max-height: none;
        background-color: var(--main-white);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
        padding: 0;
        z-index: auto;
        box-shadow: inset 0 -10px 15px -15px rgba(0, 0, 0, 0.2);
    }

        .submenu .submenu-close, #user-login .submenu-close {
            display: none;
        }


        .nav-item.active .submenu {
            max-height: 450px;
            overflow-y: scroll;
            padding-bottom:60px;
        }

    .flex-container {
        padding: 20px;
    }

        .flex-container li {
            padding: 20px 0px 20px 20px;
            min-width: 350px !important;
        }

            .flex-container li a div {
                font-size: 1.5rem;
            }

    .submenu-bottom {
        padding-top: unset !important;
    }


    .elenco-voci {
        font-size: 2rem !important;
        padding: 0 20px 0 30px;
    }

    /* Servizi nella topbar */
    .services div {
        margin-left: 10px !important;
    }

    .services .top-bar-icon-desc {
        display: none !important;
    }

    /* Linee prodotto mobile */
    .go-to-lines div {
        font-size: 2rem;
        line-height: 2rem;
        padding: unset !important;
    }

    .go-to-lines #expandSubmenu {
        margin-left: unset !important;
    }

    .go-to-products {
        background-color: var(--main-blue);
        padding: 20px 20px 0 20px;
        text-align: end;
    }

        .go-to-products img {
            width: 60px;
            height: 60px;
            cursor: pointer;
        }

    .lines-list {
        display: flex;
        gap: 0;
        background-color: var(--main-blue);
        padding: 0 20px 20px 20px;
    }

        .lines-list > div ul li {
            margin-right: 40px;
            font-weight: var(--base-fontweight);
            min-width: fit-content;
        }

            .lines-list > div ul li a {
                font-size: 2rem;
                line-height: 2rem;
                font-weight: var(--base-fontweight);
                color: var(--main-white);
                transition: all 0.3s ease;
            }

                .lines-list > div ul li a:hover {
                    color: var(--main-black);
                }

    /* Ricerca mobile */
    .submenu-cerca {
        padding-top: 40px;
    }

        .submenu-cerca input[type=search] {
            font-size: 2.5rem;
            height: 65px;
        }

            .submenu-cerca input[type=search]::placeholder {
                font-size: 2.5rem;
            }

        .submenu-cerca button {
            min-width: 100px;
            font-size: 0.9rem;
        }

    /* Nascondi breadcrumb */
    .breadcumb {
        display: none;
    }

    /* Login mobile */
    #user-login input[type="text"],
    #user-login input[type="password"] {
        min-width: unset !important;
    }

    /* Disabilita sfondo blu su mobile */
    .blue-background {
        background: unset !important;
    }


    /* Footer */
    .links-columns {
        gap: 30px !important;
    }

    .payoff-logo span {
        font-size: 4rem;
    }

    .newsletter-section {
        flex-direction: column;
        gap: 20px;
    }

        .newsletter-section .never-miss {
            min-width: unset;
            white-space: normal;
            font-size: 1.5rem;
        }

    .newsletter-form {
        margin-left: 0;
        width: 100%;
    }

    .footer-right-content {
        width: 100% !important;
        min-width: unset !important;
    }

    .copyright {
        text-align: unset !important;
    }

    .newsletter-form input[type="email"] {
        max-width: unset !important;
        width: 100%;
    }

    .wishlist-counter {
        margin-left: 0 !important;
        left: 27px;
        top: 23px;
    }
}


/* ===================================================================
        RESPONSIVE - TABLET E MOBILE (max-width: 1023px)
 =================================================================== */

@media (max-width: 1023px) {
    .services .service .service-desc {
        display: none !important;
    }

    .newsletter-form div:first-child {
        flex-direction: column;
    }
}



/* ===================================================================
                RESPONSIVE - MOBILE PICCOLO (max-width: 600px)
                =================================================================== */

@media (max-width: 600px) {
    .services {
        display: none;
    }

    .payoff-logo span {
        font-size: 3rem;
    }
}

/* ===================================================================
                RESPONSIVE - MOBILE PICCOLO (max-width: 480px)
=================================================================== */
@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }

        .newsletter-form input[type="email"] {
            min-width: unset;
        }

        .newsletter-form button {
            border-top: none;
        }

    .payoff-logo span {
        font-size: 2rem;
    }

    .submenu-cerca {
        padding-top: 20px;
    }

        .submenu-cerca input[type=search] {
            font-size: 1.5rem;
            height: 50px;
        }

            .submenu-cerca input[type=search]::placeholder {
                font-size: 1.5rem;
            }

        .submenu-cerca button {
            font-size: 1rem;
            padding: 12px;
        }
}

/* ===================================================================
        STILE PER BOTTONE LOGOUT COME LINK (Ippazio)
   =================================================================== */

.logout-form {
    display: inline;
}

/*
 * Stile per il bottone di logout, progettato per assomigliare
 * esattamente a un tag <a> all'interno di .elenco-voci pur essendo invece un button all'interno del form.
 */
.logout-link-style {
    /* 1. Reset completo degli stili di default di un bottone */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    text-align: left;
    color: var(--main-black);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    /* Applico lo stesso effetto hover dei link vicini */
    .logout-link-style:hover {
        color: var(--main-blue);
    }
