*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    -webkit-tap-highlight-color: transparent; /* Removes blue tap highlight */
}

* {
    box-sizing: border-box;
}

body {
    background-color: white;
}

body::-webkit-scrollbar {
    display: none;
}

::selection {
    background-color: black; /* Background color of the selected text */
    color: white; /* Color of the selected text */
}

/* For Webkit browsers (like Chrome and Safari) */
::-moz-selection {
    background-color: white; /* Background color for Firefox */
    color: white; /* Color of the selected text for Firefox */
}

.header{
    width: 100%;
    position: absolute;
    z-index:9999989;
    top: 0;
    left: 0;
}
.banner {
  background-size: cover;
  background-repeat: no-repeat;
  padding: 40px;
  position: absolute;
    top: 0;
    right: 0;
  width: 100%;

}

.logo{
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(105%)
}

nav{
    display: flex;
    padding: 28px 6%;
    justify-content: space-between;
    align-items: center
}
nav img{
    width: 150px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    margin-right: 20px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}
.nav-links ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: #fff;
    display: block;
    margin: auto;
    transition: 0.2s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 'vh' significa che prende tutta l'altezza dello schermo */
    overflow: hidden;
    background-color: #000; /* Nero di sicurezza se l'immagine carica lenta */
}

/* Regola fondamentale per fittare l'immagine */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Questa fa sì che l'immagine 'fitti' lo schermo senza deformarsi */
    display: block;
}

.hero-btn{

    margin-top:clamp(45px,5vw,70px);

    width:320px;

    height:72px;

    display:flex;
    align-items:center;
    align-self: center;
    justify-content:center;

    text-decoration:none;

    background:#fafaf7;
    color:#111;

    font-size:2rem;
    font-weight:700;
    letter-spacing:.08em;

    clip-path:polygon(
        7% 0,
        93% 0,
        100% 50%,
        93% 100%,
        7% 100%,
        0 50%
    );

    transition:.25s;
}

.hero-btn:hover{

    transform:scale(1.05);

    box-shadow:0 12px 28px rgba(0,0,0,.18);

}

.hero-meta{

    width:450px;
    margin-top: 70px;
    display:flex;
    justify-content:center;
    align-items:center;
    align-self: center;

    color: white;

    font-size:1.35rem;
    font-weight:300;
    letter-spacing:.30em;

}

.hero-content{

    position:absolute;

    left:12vw;
    top:52%;

    transform:translateY(-50%);

    width:clamp(320px,34vw,520px);

    display:flex;
    flex-direction:column;

    z-index:2;
}

.scritta-logo {
    max-width: 450px; /* Ingrandito (era 270px) */
    width:100%;
    height:auto;
    display:block;
    align-self: center;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark background */
    backdrop-filter: blur(2px); /* Apply blur effect */
    z-index: 999; /* Make sure it sits above other content but below the sidebar */
    display: none; /* Hidden by default */
}

.course {
    position: relative;
    width: 100%;
    margin: 0;
    text-align: left;
    padding-top: 6.67vw;
    background-size: 100% auto; 
    background-repeat: no-repeat;
    background-position:bottom;
    background-color: white;
}

.course h1 {
    font-size: 50px;
}

.course h2 {
    color: black;
    margin-left: 6vw;
    margin-right: 6vw;
    margin-top: 30px;
    font-size: 36px;
}

.course h3 {
    color: black;
    margin-left: 6vw;
    margin-top: 80px;
    font-size: 36px;
    letter-spacing: 15px;
}
.course h4 {
    color: black;
    margin-left: 6vw;
    margin-top: 400px;
    font-size: 36px;
    letter-spacing: 15px;
}

    .course h6 {
        margin-top: 25px;
        text-align: center;
        font-size: 3em;
        margin-bottom: 40px;
        color: #fff
    }

.course p {
    color: black;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
}

/* =========================
   SEZIONE IL BRAND
========================= */

.brand-showcase {
    width: 100%;
    padding: clamp(25px, 6vw, 110px) 0;
    background-color: #ffffff;
}

.brand-block {
    width: 100%;
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 58%)
        minmax(280px, 27%)
        minmax(120px, 15%);

    min-height: clamp(560px, 40vw, 820px);

    background-color: #fafaf7;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.16),
        0 -8px 28px rgba(0, 0, 0, 0.05);

    overflow: hidden;
}

/* Parte testuale */

.brand-text {
    display: flex;
    flex-direction: column;

    padding:
        clamp(55px, 6vw, 115px)
        clamp(35px, 7vw, 145px);

    background-color: #fafaf7;

    /*
    Sostituisci il file con il tuo motivo.
    Deve essere preferibilmente un PNG o SVG trasparente.
    */
    background-image: url("pattern-foglie.webp");
    background-repeat: repeat;
    
    background-size: auto 100%;
}

.brand-text h2 {
    margin: 0 0 clamp(45px, 6vw, 110px);

    color: #080808;

    font-size: clamp(30px, 2.2vw, 46px);
    font-weight: 400;
    line-height: 1.1;

    letter-spacing: 0.16em;
}

.brand-text p {
    max-width: 680px;
    margin: 0;

    color: #080808;

    font-size: clamp(17px, 1.35vw, 28px);
    font-weight: 400;
    line-height: 1.45;

    letter-spacing: 0.065em;
    text-align: left;
}

/* Fotografia centrale */

.brand-photo {
    min-width: 0;
    overflow: hidden;
}

.brand-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Fascia decorativa destra */

.brand-decoration {
    background-color: #b3a78b;
    background-image: var(--decoration-image);
    background-repeat: repeat;
    background-size: 200% auto;
    background-position: center;
}

.materials-section {
    display: grid;
    grid-template-columns: minmax(0, 62%) minmax(300px, 38%);
    align-items: center;
    gap: clamp(40px, 6vw, 100px);

    width: 100%;
    padding:
        clamp(70px, 8vw, 140px)
        clamp(35px, 8vw, 160px);

    background: #fff;
}

.materials-text {
    min-width: 0;
}

.materials-text h2 {
    margin: 0 0 clamp(25px, 3vw, 50px);

    color: #080808;
    font-size: clamp(30px, 2.2vw, 46px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.14em;
}

.materials-text p {
    max-width: 850px;
    margin: 0;

    color: #080808;
    font-size: clamp(17px, 1.25vw, 25px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.04em;
}

.materials-image {
    width: 100%;
    height: clamp(420px, 38vw, 650px);
    overflow: hidden;
}

.materials-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-aspect-ratio: 1) {
    .materials-section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 35px;
        padding: 60px 25px;
    }

    .materials-text h2 {
        margin-bottom: 25px;
        font-size: 22px;
        letter-spacing: 0.12em;
    }

    .materials-text p {
        font-size: 14px;
        line-height: 1.6;
        text-align: justify;
    }

    .materials-image {
        height: 350px;
    }
}

nav .material-symbols-outlined{
    display: none;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 5vw;
    margin-bottom: 5vw;
    overflow-x: hidden;
    overflow-y: visible;
}

.image-slider {
    display: flex;
    align-items: center;

    width: 100%;
    height: 720px;

    overflow-x: hidden;
    overflow-y: visible;

    position: relative;

    padding-left: 4vw;
    padding-right: 4vw;
    box-sizing: border-box;

    cursor: grab;
    user-select: none;
}

.image-slider.dragging {
    cursor: grabbing;
}

.image-container2 {
    display: flex;
    align-items: center;

    height: 100%;
    width: max-content;

    pointer-events: auto;
}

/* Card beige */
.gallery-card {
    height: 520px;
    width: 390px;

    background-color: #f4f2ef;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 4vw;

    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.18);

    flex: 0 0 auto;
    box-sizing: border-box;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform-origin: center center;
}

/* Spazio dopo ultima card rimosso */
.gallery-card:last-child {
    margin-right: 0;
}

/* Hover card */
.gallery-card:hover {
    transform: scale(1.06);
    box-shadow: 0 36px 70px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

/* PNG dentro la card */
.gallery-card img {
    max-height: 84%;
    max-width: 84%;

    width: auto;
    height: auto;

    object-fit: contain;
    border-radius: 0;

    user-select: none;
    -webkit-user-drag: none;

    filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.38));
}

/* Bottoni */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;
    padding: 0;

    border-radius: 50%;
    border: none;

    background-color: rgba(0, 0, 0, 0.55);
    color: white;

    cursor: pointer;
    font-size: 28px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 20;

    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.35);

    appearance: none;
    -webkit-appearance: none;
}

.scroll-btn:hover {
    background-color: rgba(0, 0, 0, 0.75);
}

.left-btn {
    left: 20px;
}

.right-btn {
    right: 20px;
}

/* Correzione sezione collezione */

.collection-section {
    position: relative;
    width: 100%;
    padding: 95px 0 0;
    background-color: #fff;
    overflow: hidden;
    box-shadow: inset 0 22px 30px -30px rgba(0, 0, 0, 0.6);
}

.collection-section h2 {
    margin: 0 6vw 55px;
    color: #111;
    font-size: clamp(28px, 2.2vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.13em;
}

.collection-section .slider-wrapper {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.collection-section .image-slider {
    width: 100%;
    height: auto;
    padding: 15px 4vw 160px;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: visible;
}

.collection-section .gallery-card {
    width: clamp(300px, 27vw, 410px);
    height: clamp(410px, 34vw, 540px);
    margin-right: 3vw;
}

/* Card alta 520px:
   15px di padding superiore + 260px = 275px */
.collection-section .scroll-btn {
    top: 275px;
    transform: translateY(-50%);
}

/* INTRO SUPPORTO */

.support-intro {
    width: 100%;
    padding: clamp(170px, 15vw, 230px) 7vw clamp(70px, 8vw, 110px);

    background-color: #fafaf7;
    background-image: url("pattern-foglie.webp");
    background-repeat: repeat;

    /* PATTERN PIÙ GRANDE */
    background-size: 420px auto;

    background-position: center top;

    text-align: center;
}

.support-intro-label {
    margin: 0 0 42px;

    font-size: clamp(13px, 1vw, 16px);
    font-weight: 500;
    letter-spacing: 0.20em;
    color: #332a29;
}

.support-intro h1 {
    margin: 0 0 32px;

    font-size: clamp(38px, 5vw, 70px);

    /* leggermente più grassetto */
    font-weight: 500;

    line-height: 1.1;
    letter-spacing: 0.10em;
    color: #332a29;
}

.support-intro p {
    max-width: 720px;
    margin: 0 auto;

    font-size: clamp(16px, 1.25vw, 20px);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.035em;
    color: #332a29;
}

        /* =====================================================
           CONTATTI
        ===================================================== */

        .support-contacts {
            width: 100%;

            padding:
                clamp(70px, 8vw, 120px)
                7vw;

            background-color: #ffffff;
        }

        .support-section-heading {
            max-width: 1100px;
            margin: 0 auto 55px;
        }

        .support-section-heading h2 {
            margin: 0 0 18px;

            font-size: clamp(28px, 3vw, 45px);
            font-weight: 400;

            line-height: 1.1;
            letter-spacing: 0.10em;

            color: #332a29;
        }

        .support-section-heading p {
            margin: 0;

            max-width: 700px;

            font-size: clamp(15px, 1.15vw, 18px);
            line-height: 1.7;

            letter-spacing: 0.035em;

            color: #332a29;
        }

        /* =====================================================
           CARDS CONTATTI
        ===================================================== */

        .support-contact-grid {
            width: 100%;
            max-width: 1100px;

            margin: 0 auto;

            display: grid;

            grid-template-columns:
                repeat(4, minmax(0, 1fr));

            gap: 25px;
        }

        .support-contact-card {
            min-height: 260px;

            padding: 40px 35px;

            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-between;

            background-color: #fafaf7;

            border: 1px solid rgba(51, 42, 41, 0.10);

            transition:
                transform 0.25s ease,
                box-shadow 0.25s ease;
        }

        .support-contact-card:hover {
            transform: translateY(-4px);

            box-shadow:
                0 15px 35px rgba(0, 0, 0, 0.10);
        }

        .support-contact-icon {
            width: 48px;
            height: 48px;

            display: flex;
            align-items: center;
            justify-content: left;

            font-size: 30px;

            color: #332a29;
        }

        .support-contact-card h3 {
            margin: 10px 0 10px;

            font-size: clamp(19px, 1.5vw, 24px);
            font-weight: 500;

            letter-spacing: 0.08em;

            color: #332a29;
        }

        .support-contact-card p {
            margin: 0 0 25px;

            font-size: clamp(14px, 1vw, 17px);
            line-height: 1.6;

            letter-spacing: 0.035em;

            color: #332a29;
        }

        .support-contact-link {
            color: #332a29;

            font-size: clamp(14px, 0.9vw, 15px);
            font-weight: 600;

            letter-spacing: 0.07em;

            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 6px;

            transition: opacity 0.25s ease;
        }

        .support-contact-link:hover {
            opacity: 0.55;
        }
/* =========================================
   SISTEMA CARD CON SFONDO OPZIONALE
   ========================================= */
/* 1. Contenitore principale della Card */
.support-contact-card {
    position: relative;
    overflow: hidden;
    background-color: #f7f7f5;
    padding: 40px;
    border-radius: 4px;
    
    /* Questa è la magia: crea un livello stagno. 
       Nulla uscirà fuori e lo z-index interno sarà perfetto */
    isolation: isolate; 
}

/* 2. Immagine di Sfondo */
.support-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1; 
    
    /* Lo z-index negativo (-1) spinge la foto dietro a tutto il testo, 
       ma grazie a "isolation: isolate" sul padre, non andrà mai dietro lo sfondo grigio della card */
    z-index: -1; 
    pointer-events: none;
}

/* 3. Contenuto della Card */

/* Stili di base per i testi interni (adattali come preferisci) */

@media (max-aspect-ratio: 1) {
    .collection-section {
        padding: 75px 0 45px;
    }

    .collection-section h2 {
        margin: 0 7vw 35px;
        font-size: 27px;
        letter-spacing: 0.08em;
    }

    .collection-section .slider-wrapper {
        margin: 0;
    }

    .collection-section .image-slider {
        height: auto;
        padding: 10px 7vw 80px;
        overflow-x: auto;
    }

    .collection-section .gallery-card {
        width: 270px;
        height: 370px;
        margin-right: 24px;
    }
    
    .support-contact-grid {
                grid-template-columns: 1fr;
            }

            .support-contact-card {
                min-height: 220px;
            }

             .support-intro {
                padding: 145px 25px 65px;

                /* anche su mobile il pattern rimane più grande */
                background-size: 440px auto;
            }

            .support-intro-label {
                margin-bottom: 32px;
            }

            .support-intro h1 {
                letter-spacing: 0.07em;
                font-weight: 500;
            }

            .support-intro p {
                line-height: 1.65;
            }

            .support-contacts {
                padding:
                    65px
                    25px
                    80px;
            }

            .support-section-heading {
                margin-bottom: 40px;
            }

            .support-contact-grid {
                gap: 18px;
            }

            .support-contact-card {
                min-height: 220px;
                padding: 30px 25px;
            }

}

/* Contenitore per affiancare il valore e il pulsante */
.product-detail-size-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 25px);
    flex-wrap: wrap; /* Mantiene la responsività su mobile */
}

/* Pulsante Guida alle Taglie (stesso stile di RICHIEDI DISPONIBILITÀ) */
.size-guide-btn {
    display: inline-block;
    background: transparent;
     border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer !important;
    color: #332a29;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    transition: opacity 0.25s ease;
}

.size-guide-btn:hover {
    opacity: 0.55;
}

/* Finestra popup */

.size-guide-modal {
    width: min(92vw, 850px);
    max-height: 92vh;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.size-guide-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.size-guide-modal-content {
    position: relative;
    padding: clamp(10px, 2vw, 20px);
    background: #fff;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.4);
}

.size-guide-modal img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 40px);
    object-fit: contain;
}

/* Titolo accessibile ma invisibile */

.size-guide-modal h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Pulsante X */

.size-guide-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);
    color: #332a29;

    font-size: 34px;
    line-height: 38px;

    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
    .size-guide-modal {
        width: 96vw;
        max-height: 94vh;
    }

    .size-guide-modal-content {
        padding: 7px;
    }

    .size-guide-modal img {
        max-height: calc(94vh - 14px);
    }

    .size-guide-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 30px;
        line-height: 34px;
    }
}

.footer {
    width: 100%;
    text-align: center;
    background-color: white; 
    color: gray; 
    padding: 20px 0; 
    position: relative; 
    bottom: 0; 
    z-index: 999999;
}

/* Freccia iniziale nella hero */

.hero {
    position: relative;
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;

    transform: translateX(-50%);

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;

    background-color: rgba(0, 0, 0, 0.28);
    color: #ffffff;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    cursor: pointer;
    z-index: 10;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.hero-scroll-indicator:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateX(-50%) scale(1.08);
}

.hero-scroll-indicator .material-symbols-outlined {
    display: block;

    margin: 0;

    font-size: 38px;
    font-weight: 200;

    animation: hero-arrow-movement 1.5s ease-in-out infinite;
}

/* Classe applicata quando si inizia a scorrere */

.hero-scroll-indicator.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(-12px);
}

@keyframes hero-arrow-movement {
    0%,
    100% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(6px);
    }
}

@media (max-aspect-ratio: 1) {
    .hero-scroll-indicator {
        bottom: 18px;

        width: 48px;
        height: 48px;
    }

    .hero-scroll-indicator .material-symbols-outlined {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-indicator,
    .hero-scroll-indicator .material-symbols-outlined {
        animation: none;
        scroll-behavior: auto;
    }
}

/* Initially, hide the hover image */

@media(max-aspect-ratio: 1) {
    .no-scroll {
    overflow: hidden;
    }
    
    .logo {
        width: 100px;
    }
    
    .close-btn {
        display: inline-block;
        color: black;
        font-size: 22px;
        cursor: pointer;
        position: absolute;
        top: 10px;
        left: 2px;
        z-index: 1000;
        display: none;
    }

    .open-btn {
        display: inline-block;
        position: absolute;
        top: 20px;
        right: 10px;
        color: black;
        font-size: 30px;
        cursor: pointer;
        z-index: 1;
    }

    .nav-links ul li {
        display: block;
        margin-left: 13px;
        margin-top: 25px;
        color: black;
    }

    .nav-links ul li a {
        color: black;
    }

    .nav-links {
        position: absolute;
        background: white;
        height: 100vh;
        width: 0;
        top: 0;
        right: 0;
        text-align: left;
        z-index: 2;
        padding-top: 40px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        transition: width 0.3s ease;
    }
    
    .nav-links ul li:hover::after{
    width: 0%;
}

    nav .material-symbols-outlined {
        display: block;
        margin: 5px;
        font-size: 30px;
        cursor: pointer;
    }
    .course {
    position: relative;
    margin: 0;
    text-align: left;
    padding-top: 6.67vw;
    padding-bottom: 0px !important;
    background-color: white;
    background-size: auto 100%; 
    height: auto;
    overflow: hidden;
    }

    .course h1 {
    font-size: 30px;
}
    .course h2 {
    margin-left: 10vw;
    margin-top: 25px;
    font-size: 2em;
    }
    .course p {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
    }

}

    .image-slider {
        height: 200px;
        overflow-x: scroll;
    }
    .slider-wrapper {
    margin: 4vw;
    margin-top: 8vw;
    margin-bottom: 15vw;
}
}

@media(min-aspect-ratio: 1/1) {
    .close-btn {
        display: none;
    }

    .nav-links {
        position: relative;
        background: none; 
        height: auto;
        width: auto; 
        padding-top: 0; 
        box-shadow: none; 
    }

    .open-btn {
        display: none;
    }
}

@media screen and (max-aspect-ratio: 1/1) {

    .hero-content {
        position: absolute;
        top: 0;
        left: 0;

        width: 100%;
        height: 50%; 
        
        /* Spinge il contenuto verso il basso, lontano da X e Menu */
        padding-top: 10vh; 
        box-sizing: border-box; 

        transform: none;
        margin: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        
        /* Crea uno spazio uniforme e pulito tra i 3 elementi */
        gap: 25px; 
    }

    .hero-content .scritta-logo {
        width: 72vw !important; /* Prende esattamente il 72% della larghezza viewport */
        max-width: 310px !important; /* Rimuove il blocco fisso in pixel */
        height: auto;
        margin: 0 auto;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    }

    .hero-content .hero-btn {
        margin: 0;
        
        display: flex;
        align-items: center;
        justify-content: center;

        /* Proporzioni allungate corrette (altezza fissa invece di aspect-ratio) */
        width: 60%;
        max-width: 260px;
        height: 48px;
        aspect-ratio: 4/1; 

        background: #fafaf7;
        color: #171525;
        text-decoration: none;

        font-size: clamp(13px, 10vw, 24px);
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1;

        /* Taglio sartoriale (esagono) */
        clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    }

    .hero-content .hero-meta {
        width: 100%;
        margin: 0; 
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-content .hero-meta span {
        margin: 0;
        padding: 0;
        color: #fff;
        text-align: center;
        font-size: clamp(12px, 3.5vw, 15px);
        line-height: 1.2;
        letter-spacing: 0.15em;
    }

    /* =====================================================
       ICONA MENU A DESTRA (Sfondo trasparente)
       ===================================================== */
    .open-btn {
        background: transparent !important;
        border: none !important; /* Elimina il bordo bianco residuo */
        outline: none !important;
        box-shadow: none !important;
        color: #ffffff !important;
        font-size: 36px;
        top: 20px;
        right: 15px;
    }
    
    /* =====================================================
       1. CENTRATURA FRECCE SULLE CARDS
       ===================================================== */
    .collection-section .scroll-btn {
        top: 42% !important; /* Centra le frecce sull'altezza reale delle card */
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    
    /* =====================================================
       RIMOZIONE BARRA DI SCORRIMENTO ORIZZONTALE
       ===================================================== */
    .image-slider {
        -ms-overflow-style: none;  /* Per IE e Edge */
        scrollbar-width: none;  /* Per Firefox */
    }

    .image-slider::-webkit-scrollbar {
        display: none; /* Per Chrome, Safari e Opera */
    }

    /* =====================================================
       3. SEZIONE "IL BRAND" (IMPILATO VERTICALMENTE)
       ===================================================== */
    .brand-block {
        display: flex !important;
        flex-direction: column !important; /* Trasforma il layout da affiancato a verticale */
        width: 100% !important;
        min-height: auto !important;
        grid-template-columns: none !important; /* Annulla la vecchia griglia desktop */
    }

    /* Blocco Testo (Sopra) */
    .brand-text {
        width: 100% !important;
        padding: 45px 25px !important;
        box-sizing: border-box;
        text-align: center; /* Centratura editoriale elegante */
    }

    .brand-text h2 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
        letter-spacing: 0.12em;
        text-align: left;
        margin: 0 25px;
    }

    .brand-text p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        max-width: 90%;
        margin: 0 25px;
        color: #444;
        text-align: justify !important;
        text-justify: inter-word; 
    }
    /* Foto Brand (In mezzo) */
    .brand-photo {
        width: 100% !important;
        height: 300px !important; /* Altezza ben proporzionata per lo schermo del telefono */
        max-height: none !important;
    }

    .brand-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Tessuto (In fondo) */
    .brand-decoration {
        width: 100% !important;
        height: 120px !important;
        background-repeat: repeat;
    background-size: 400px auto;
    }
    
    .brand-showcase {
    padding-bottom: 50px !important;
}
}
