* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Canela';
    src: url('fonts/Canela-Thin-Trial.otf') format('truetype');
    /* Fallback per browser vecchi */
    font-weight: 200;
    font-style: normal;
    font-display: swap;
    /* Mostra un font di sistema finché questo non è caricato */
}

@font-face {
    font-family: 'Canela';
    src: url('fonts/Canela-Regular-Trial.otf') format('truetype');
    /* Fallback per browser vecchi */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    /* Mostra un font di sistema finché questo non è caricato */
}

@font-face {
    font-family: 'Canela';
    src: url('fonts/Canela-Bold-Trial.otf') format('truetype');
    /* Fallback per browser vecchi */
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    /* Mostra un font di sistema finché questo non è caricato */
}

.none-on-desktop {
    display: none;
}

hr {
    margin: 50px 0;
    opacity: 0.5;
    border: solid #fff 1px;
    border-bottom: 0;
}

:root {
    --spacing: 0.25rem;
    --verde: #14342f
}

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
    /* font-family: "Arapey", serif; */
    /* font-family: 'Georgia', serif; */
    color: #ffffff;
    line-height: 1.6;
    background: #1a1a1a;
}

body::-webkit-scrollbar {
    /* display: none; */
}

::-webkit-scrollbar {
    display: none;
}



section {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* scroll-snap-align: start;  <-- RIMOSSO: confligge con Lenis */
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero p {
    color: #1a1a1a;
    position: absolute;
    bottom: 20px;
    z-index: 999;
}

.hero-sticky-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1002;
    -webkit-mask-image: url('10.svg');
    mask-image: url('10.svg');
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background: radial-gradient(circle, #071815 0%, #041510 100% 100%);
}

.white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    /* Centra orizzontalmente */
    align-items: center;
    /* Centra verticalmente */
}

/* .black-overlay {
    position: absolute;
    z-index: 1001;
    height: 200vh;
    inset: 0;
    background-color: #5a0404;
    mask-image: linear-gradient(black, black),
        radial-gradient(circle, yellow 25%, transparent 40%);
    mask-size: 100% 50%, 100%;
    mask-position: 0 100%, center;
    mask-repeat: no-repeat, no-repeat;
} */
.wrap-black-overlay {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.black-overlay {
    position: absolute;
    z-index: 1001;
    height: 800vh;
    width: 200%;
    inset: 0;
    background: #1a1a1a;
    mask-image: radial-gradient(circle, #532323 20%, transparent 40%);
    left: -50%;
    transform: scaleX(1.5);
    mask-position: 0px 100dvh;
    mask-repeat: no-repeat;
}

.details-section h2 {
    width: 100%;
    /* color: red; */
}

@keyframes slideMask {
    0% {
        -webkit-mask-position: 0% 150%;
        mask-position: 0% 150%;
    }

    100% {
        -webkit-mask-position: 0% -50%;
        mask-position: 0% -50%;
    }
}

.anniversary-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 80%;
    max-width: 600px;
    opacity: 0;
    z-index: 1001;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform-origin: center center;
}

.hero-sticky-content .scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);

}

.anniversary-info,
.slogan {
    flex-direction: column;
    text-align: center;
}


.nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    /* border: 1px solid; */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    opacity: .5;
    transition: all .5s;
    align-items: center;
}

.nav-is-hovered {
    opacity: 1 !important;
    background-color: #1a1a1a;
}

.nav>.dieci>img {
    filter: brightness(0) invert(1);
    width: 70px;
    cursor: pointer;
}

.nav>.lang>span {
    font-size: 1em;
    text-transform: uppercase;
    font-family: "Canela", serif;
    padding: 0 5px;
    cursor: pointer;
}

.lang-is-active {
    color: var(--verde);
}

.anniversary-info h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 300;
}


.anniversary-info p {
    max-width: 800px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.video-section {
    position: relative;
    background: #000;
    height: 300vh;
    display: block;
}

.video-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
    overflow: hidden;
}

.scroll-frame {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    z-index: 5;
    pointer-events: none;
    opacity: 1;
}

section {
    position: relative;
}

.split-section-1 {
    display: grid;
    /* grid-template-columns: 2fr 1fr; */
    min-height: 100vh;
    align-items: center;
    position: relative;
    padding: 5%;
    grid-auto-flow: column;
    margin-top: -70%;
    z-index: 999;
}

.fabrics-title,
.fabrics-title-video {
    font-family: "Pinyon Script", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 3em;
    text-align: center;
    line-height: 1.3;
}

.fabrics-title-video {
    position: absolute;
    font-size: 5em;
}

.fabric-description {
    font-family: "Canela", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
    text-align: justify;
}


.fabrics-title-column {
    /* font-family: "Pinyon Script", cursive; */
    font-family: "Canela", serif;

    text-align: left;
    font-size: 3em;
    font-weight: 100;
    line-height: normal;

}

/* .split-section-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 100vh;
    align-items: center;
    position: relative;
    padding: 5%;
} */

.split-left-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vmin;
    /* padding: 2vmin; */
    padding: 0 10%;
    align-items: start;
}

.split-left-1> :nth-child(2) {
    margin-top: 50%;
}

.split-left-1> :nth-child(3) {
    margin-top: 100%;
}

.photo-col {
    display: flex;
    flex-direction: column;
    gap: 2vmin;
    justify-content: center;
}

.photo-col-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .photo-frame {
    width: 100%;

    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
} */

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    transition: 2s;
}

/* .photo-frame img:hover {
    transition: 2s;
    transform: scale(1.05);
} */

/* .split-left-1{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    align-content: center;
} */
/* .split-left-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    align-content: center;
} */

.photo-col {
    display: flex;
    flex-direction: column;
    gap: 3em;
    justify-content: center;
}

.photo-col-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
}

.split-right h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.split-right p {
    max-width: 600px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.split-section-1.split-reverse {
    grid-template-columns: 1fr 1fr;
}

.split-section-1.split-reverse .split-left-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
}

.split-section-1.split-reverse .split-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vmin;
}

.split-section-1.split-reverse .photo-frame {
    width: 100%;
    height: 100%;
    max-height: none;
}

.split-section-1.split-reverse .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-frame {
    width: 100%;
    /* aspect-ratio: 3/4; */
    overflow: hidden;
    /* border: 2px solid #fff; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    /* max-height: 35vh; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .photo-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
} */

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* .photo-frame:hover img {
    transform: scale(1.1);
} */

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





.explore i {
    display: block;
}

.explore span {
    font-family: "Canela", serif;
    display: block;
    font-size: 1.5em;
    text-transform: uppercase;
}




.photo-2 {
    transform: none;
}

.photo-3 {
    transform: none;
}


.values {
    background: #1a1a1a;
    color: #fff;
    flex-direction: column;
    text-align: center;
}

.values h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: 300;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
}

.value-item {
    padding: 30px;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 300;
}


.cta {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
    flex-direction: column;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta p {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    padding: 15px 50px;
    font-size: 1.1rem;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.3s;
}

.btn:hover {
    background: #fff;
    color: #1a1a1a;
}

footer {
    background: #1a1a1a;
    color: #666;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 3px;
    opacity: 0.7;
    /* animation: bounce 2s infinite; */
    z-index: 2;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.video-instruction {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
    text-align: center;
    z-index: 20;
}

/* .gradient-text {
    background: linear-gradient(45deg, #ffffff 0%, #f5f5dc 25%, #ffffff 50%, #f5f5dc 75%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
} */

.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
}

.modal-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-img.visible {
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #f5f5dc;
}

.photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
}

.modal-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid #fff;
    display: block;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.8s ease, transform 0.3s ease;
}

.modal-img.visible {
    opacity: 1;
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #f5f5dc;
}

.horizontal-scroll-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5% 0;
    overflow: hidden;
}

.horizontal-scroll-section h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.horizontal-scroll-container {
    display: flex;
    gap: 20px;
    padding: 20px 5%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.h-scroll-photo {
    flex: 0 0 auto;
    width: 250px;
    height: 300px;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.h-scroll-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.scroll-indicator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing) * 4);
    color: #fff;
}

.mouse-body {
    position: relative;
    height: calc(var(--spacing) * 10);
    width: calc(var(--spacing) * 6);
    border-radius: calc(infinity * 1px);
    border-style: solid;
    border-width: 2px;
    border-color: currentcolor;
}

.mouse-wheel {
    position: absolute;
    top: calc(var(--spacing) * 2);
    left: calc(1 / 2 * 100%);
    height: calc(var(--spacing) * 2);
    width: calc(var(--spacing) * 1);
    --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
    border-radius: calc(infinity * 1px);
    background-color: currentcolor;
    animation: scroll-wheel 2s infinite;

}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* Anniversary Text Section */
.anniversary-text-section {
    flex-direction: column;
    text-align: center;
    min-height: 200vh;
    display: flex;
    /* margin-top: 100%; */
    /* overflow-y: scroll; */
    /* border: 1px solid; */
    justify-content: center;
    /* margin-top: -50%; */
    font-family: "Canela", serif;

}

.anniversary-text-content {
    will-change: transform;
    /* Ottimizza le prestazioni */
    font-size: 3rem;
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1.8;
    width: 50%;
    position: fixed;
    /* border: 1px solid; */
    height: 100vh;
    justify-content: center;
    display: flex;
    top: 0;
    align-items: center;
    flex-direction: column;
    transform: scale(1.2);
    /* opacity: 0; */

}

.anniversary-text-content h2 {
    width: 50%;
    font-size: 1.3em;
    line-height: 1.4;
}

.anniversary-text-content p {
    width: 70%;
    font-size: 1.1em;
    line-height: 1.4;
}

.cimosa-bd {
    margin-bottom: 70px;
    transform: scale(1);
}

.cimosa-lp {
    margin-top: 70px;
    transform: scale(1) rotate(2deg);
}

.riflesso-loop {
    /* Sfondo di base (Color Panna) */
    background-color: #ffffcd;
    /* Colore panna */

    /* Gradiente inclinato a 45 gradi */
    background-image: linear-gradient(90deg,
            rgba(255, 253, 208, 0) 25%,
            rgba(255, 255, 255, 0.7) 50%,
            /* rgba(255, 253, 208, 0) 75% */
        );

    /* Dimensione maggiorata per permettere lo scorrimento diagonale */
    background-size: 250% 250%;
    background-repeat: no-repeat;

    /* Animazione fluida */
    animation: shimmer 4s infinite ease-in-out;

}

/* Definizione del movimento */
@keyframes shimmer {
    0% {
        background-position: 200% 200%;
    }

    100% {
        background-position: -100% -100%;
    }
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Loader */
/* .loader-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
} */

/* .loader-section.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-content .gradient-text {
    font-size: 1.2rem;
    margin-top: 20px;
} */

/* .loader-svg {
    width: 200px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
} */

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-content {
    background-color: #111;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #333;
}

.product-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.product-modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.product-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.product-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.product-photos img:hover {
    opacity: 0.8;
}

.product-photos img.active {
    border-color: #fff;
}

.product-modal .modal-close,
.product-modal-content .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    z-index: 10;
}



/* 
.diamond-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
}


.diamond-container {
    position: relative;
    width: 64px;
    height: 64px;
    animation: diamond-rotate 12s linear infinite;
}


.diamond {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    /* border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    animation: diamond-pulse 2s ease-in-out infinite; 
}


.d1 {
    background-color: #fff0d9;
    top: 3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    /* animation-delay: 0s; 
}

.d2 {
    left: 3px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    animation-delay: 0.2s;
    background-color: #002c40;
}

.d3 {
    right: 3px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    animation-delay: 0.4s;
    background-color: #113f36;
}

.d4 {
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    animation-delay: 0.6s;
    background-color: #391d16;
}




@keyframes diamond-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7) rotate(45deg);
    }
}


@keyframes diamond-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
*/
.neon {
    filter: drop-shadow(0 0 0.5rem #fff0d9) drop-shadow(0 0 1rem #fff0d9) drop-shadow(0 0 1.5rem #fff0d9) drop-shadow(0 0 2.5rem #d400ff) drop-shadow(0 0 4rem #d400ff) drop-shadow(0 0 5.5rem #d400ff) drop-shadow(0 0 6rem #d400ff) drop-shadow(0 0 9.5rem #d400ff);
    animation: pulsazione-neon 2s ease-in-out infinite alternate;

}

@keyframes pulsazione-neon {
    from {
        filter: drop-shadow(0 0 1rem #fff0d9) drop-shadow(0 0 3.5rem #113f36);
    }

    to {
        filter: drop-shadow(0 0 0.5rem #113f36) drop-shadow(0 0 1.5rem #113f36) drop-shadow(0 0 2rem #113f36) drop-shadow(0 0 3rem #113f36);
    }
}




/* ------------------------------------------- */

.loader-wrapper {
    position: fixed;
    inset: 0;
    /* Rimosso sfondo bianco - ora è trasparente */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    /* Permette di cliccare ciò che sta sotto se necessario */
    background: #1a1a1a;
}

.loader-wrapper img {
    position: absolute;
    z-index: 1002;
}

.svg-container {
    position: relative;
    /* Usa vw per la larghezza rispetto allo schermo */
    width: 70vw;
    /* Imposta un limite massimo per schermi giganti */
    max-width: 900px;
    /* Assicura che sia centrato orizzontalmente se il flex non bastasse */
    margin: 0 auto;
    transform: rotate(90deg);
}

.loader-svg {
    width: 100%;
    height: auto;
    /* overflow visible evita che il tratto da 1px venga tagliato sui bordi */
    overflow: visible;
    transform: rotate(-90deg);
}

.loader-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.1);
    /* Traccia di fondo quasi invisibile */
    stroke-width: 1;
}

.loader-progress {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1;
    /* Perimetro per 198x98: (198+98)*2 = 592 */
    stroke-dasharray: 996;
    stroke-dashoffset: 996;
    transition: stroke-dashoffset 0.3s linear;
    /* Movimento lineare e pulito */
}

#loader-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-size: 1rem;
    color: #333;
    display: none;
}


/* ----------------- */

.loader-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: #1a1a1a;
    /* O il colore che preferisci */
    transition: opacity 0.5s ease-out;
}

.line-container {
    width: 70vw;
    /* La larghezza della tua linea */
    max-width: 800px;
    position: relative;
    margin-top: 60px;

}

.loader-svg-line {
    width: 100%;
    height: 10px;
    /* Altezza del contenitore SVG */
    overflow: visible;
}

.line-bg {
    stroke: rgba(255, 255, 255, 0.1);
    /* Colore binario di fondo */
    stroke-width: 1;
}

.line-progress {
    stroke: #ffffff;
    /* Colore della linea che avanza */
    stroke-width: 1;
    stroke-linecap: square;

    /* Il perimetro qui è semplicemente la lunghezza della linea: 400 */
    stroke-dasharray: 400;
    stroke-dashoffset: 400;

    transition: stroke-dashoffset 0.3s linear;
}

#loader-text {
    margin-top: 10px;
    font-family: sans-serif;
    font-size: 0.8rem;
    color: #ffffff;
    text-align: center;
}

.explore {
    background-color: #e0e0e0;
    height: 100%;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.esplora {
    height: 100px;
    background: #e0e0e0;
    display: flex;
    transition: all 0.5s;
    flex-direction: column;
}

/* .esplora i{
    transition: all;
} */
.esplora :hover {
    /* border: 1px solid #fff; */
    background: var(--verde);
    color: #fff;
    text-align: right;
}

.explore i,
.explore span {
    transition: transform 0.3s ease;
}

.explore:hover i,
.explore:hover span {
    transform: translateX(10px);
}

/* MODAL EXPLORE */

.pinyon {
    font-family: "Pinyon Script", cursive;

}


.page-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.page-end>.logo>img {
    width: 60%;
    height: 60%;
}

.url-page-end>* {
    display: block;
}

.url-page-end a {
    font-family: "Canela", serif;
    color: #fff;
    text-decoration: none;
    margin-top: 10px;
}

.url-page-end span {
    color: #ffffff87;

}

.url-page-end p {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 0px;
    display: block;
    text-align: center;
    width: 100%;
    font-family: "Canela", serif;
    color: #ffffff87;
    font-size: 0.8em;

}

.explore-modal {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    color: #1a1a1a;
    /* opacity: 0;
    visibility: hidden; */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
    /* background-color: #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 6000;
    overflow-x: scroll;
    width: 100dvw;
    height: 90dvh;
    display: grid;
    overflow-y: hidden;
    overflow-x: auto;
    color: #1a1a1a; */
}

.explore-container {
    display: grid;
    /* Crea 6 colonne, ognuna larga esattamente la viewport (dvw) */
    grid-template-columns: repeat(6, 50dvw);

    /* Forza il contenitore a essere largo 600dvw */
    /* width: 600dvw; */

    /* Elimina lo spazio tra le griglie */
    gap: 0;

    /* Gestione dello scroll */
    overflow-x: auto;
    overflow-y: hidden;

    /* Importante per evitare che il contenuto vada a capo */
    white-space: nowrap;
}

.col {
    /* width: 50dvw; */
    height: 90vh;
    display: grid;
    /* border: 1px solid red; */
    grid-auto-flow: row;
    /* overflow: hidden; */
    /* O l'altezza che desideri */
    align-items: center;
    font-family: "Canela", serif;
    position: relative;

}


/* COLONNA1 */
.col1 {
    z-index: 6;
    padding: 50px;
}

.col1>.row1>img {
    width: 66%;
    /* margin-top: 20px;
    margin-left: 20px; */
}

.col1>.row2>img {
    width: 66%;
}

.col1>.row3>.explore-name-fabric {
    text-transform: uppercase;
    font-weight: 600;
}

.col1>.row3>.explore-description-fabric {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 66%;
    max-width: 100%;
    /* Fondamentale: impedisce che il div esca dallo schermo su mobile */
    min-width: 0;
}





/* COLONNA2 */
.col2 {
    z-index: 5;
}

.col2 img {
    transform: translateX(-25dvw);
    height: 100dvh;
    /* width: 100%; */
}





/* COLONNA3 */
.col3 {
    z-index: 4;
    display: grid;
    width: calc(15dvw);
}

.col3 img {
    height: 50dvh;
}

.col3>.row2 {
    padding: 50px 0;
    width: 60%;
}

.col3>.row2>.explore-name-fabric {
    font-weight: 600;
    font-size: 5em;
    text-align: right;
}

.col3>.row2>.explore-description-fabric {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
    /* Fondamentale: impedisce che il div esca dallo schermo su mobile */
    min-width: 0;
    font-size: 1.2em;
    text-align: right;
}


/* COLONNA 4 */
.col4 {
    z-index: 3;
    display: grid;

}

.col4>.row2 img {
    transform: translateX(-5%);
    height: 40dvh;
}

.col4>.row1>.explore-name-fabric {
    font-weight: 600;
    font-size: 5em;
    text-align: right;
}

.col4>.row1>.explore-description-fabric {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 1.2em;
    text-align: right;
}


/* COLONNA5 */

.col5 {
    z-index: 2;
    overflow: hidden;
}

.col5 img {
    transform: translateX(-10dvw);
    height: 100dvh;
    /* width: 100%; */
}


/* COLONNA6 */

.col6 {
    z-index: 1;
    display: grid;
    grid-auto-flow: row;
    align-items: center;
    align-content: stretch;
    text-align: center;


}

.col6>.row2 img {
    height: 50dvh;
}

.col6>.row1>.explore-name-fabric {
    font-weight: 600;
    font-size: 5em;
    /* text-align: right; */
}

.col6>.row1>.explore-description-fabric {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 1.2em;
    /* text-align: right; */
}

.col6>.row1 {
    padding: 40px;
    box-sizing: content-box;
}


.col6>.explore-modal-foulard {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;
}

/* FINE MODAL EXPLORE */



/* ///////////////////RESPONSIVE////////////////// */

@media (max-width: 768px) {

    .none-on-desktop {
        display: block;
    }

    .split-left-1 {
        grid-template-columns: 1fr;
        /* height: 100vh; */
    }

    section .hero h1 {
        font-size: 3rem;
    }

    .values-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .anniversary-svg {
        width: 90%;
        max-width: 400px;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 0.8rem;
    }

    .video-instruction {
        bottom: 40px;
        font-size: 0.8rem;
    }

    /* .split-section-1 {
        grid-template-columns: 1fr;
    }

    .split-left-1 {
        height: 400px;
    }
 */
    .photo-frame {
        /* aspect-ratio: auto; */
        /* width: 120px;
        height: 160px; */
    }

    .split-right-1 h2 {
        font-size: 2rem;
    }

    .split-left-1> :nth-child(2) {
        margin: 0;
    }

    .product-photos {
        grid-template-columns: 1fr;
    }

    .product-photos img {
        height: 150px;
    }

    /* Tipografia globale
    .anniversary-info h2,
    .anniversary-text-content h2,
    .values h2,
    .gallery h2,
    .cta h2,
    .horizontal-scroll-section h2,
    .split-right h2 {
        font-size: 1.8rem;
    } */

    .anniversary-info p,
    .anniversary-text-content p,
    .cta p {
        font-size: 1.05rem;
    }

    .split-right p {
        font-size: 1rem;
    }

    /* Hero */
    .hero p {
        bottom: 20px;
        font-size: 0.85rem;
        padding: 0 16px;
        text-align: center;
    }


    .nav>.dieci>img {
        width: 50px;
    }

    .nav>.lang>span {
        font-size: 0.7em;
    }


    .cimosa-bd {
        transform: scale(0.3);
    }

    .cimosa-lp {
        transform: scale(0.3) rotate(2deg);

    }

    .anniversary-svg {
        width: 90%;
        max-width: 400px;
    }

    .scroll-indicator {
        bottom: 30px;
        font-size: 0.8rem;
    }

    .video-instruction {
        bottom: 40px;
        font-size: 0.8rem;
    }

    /* Split sections — impila verticalmente */
    .split-section-1,
    .split-section-2,
    .split-section-1.split-reverse {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        min-height: auto;
        gap: 30px;
        margin-top: -70vh;
    }

    /* Su mobile il testo va sempre sopra le foto */
    .split-section-2 .split-right {
        order: -1;
    }

    .split-right {
        padding: 0;
    }

    .split-section-1.split-reverse .split-left {
        padding: 0;
    }

    /* Griglia foto */
    .split-left,
    .split-left-2 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
        height: auto;
    }

    .photo-frame {
        aspect-ratio: unset;
        width: 100%;
        height: auto;
    }

    .split-section-1.split-reverse .split-right {
        padding: 0;
        max-height: 50vh;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 20px;
    }

    .value-item {
        padding: 20px;
    }

    .value-item h3 {
        font-size: 1.2rem;
    }

    /* Gallery */
    .gallery {
        padding: 50px 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Horizontal scroll */
    .horizontal-scroll-section {
        padding: 40px 0;
    }

    .h-scroll-photo {
        width: 180px;
        height: 220px;
    }

    /* CTA */
    .cta {
        padding: 60px 20px;
    }

    .btn {
        padding: 12px 36px;
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    /* Product modal */
    .product-modal-content {
        padding: 24px 16px;
        width: 95%;
        max-height: 85vh;
    }

    .product-modal-content h2 {
        font-size: 1.5rem;
    }

    .product-photos {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-photos img {
        height: 130px;
    }

    /* Loader */
    .svg-container {
        width: 85vw;
    }

    .line-container {
        width: 85vw;
        margin-top: 40px;
    }

    /* Modal foto */
    .modal-close {
        font-size: 2rem;
        top: -36px;
    }

    .anniversary-text-content {
        line-height: 2em;
        font-size: 1em;
        width: 90%;
    }

    .anniversary-text-content p {
        margin-top: 5%;
        line-height: 1.5em;
    }

    .anniversary-text-content h2 {
        line-height: 2.rem;
    }

    .fabrics-title-video {
        font-size: 3em;
        text-shadow: 2px 2px 5px #000,
            0 0 20px #000,
            0 0 30px #000;
        width: 80%;
        line-height: 1.2em;
    }

    .fabrics-title-column {
        font-size: 2em;
    }

    .fabric-description {
        font-size: 1.1em;
    }

    /* ------------------------- */
    /* MODAL EXPLORE */
    .explore-container {
        grid-template-columns: repeat(6, 100dvw);
    }

    .col {
        box-sizing: border-box;
    }

    .col1,
    .col2,
    .col3,
    .col4,
    .col5,
    .col6 {
        width: 100dvw;
    }

    .col1 {
        text-align: center;
    }

    .col1>.row3>.explore-description-fabric {
        width: auto;
    }

    .col2 {
        overflow: hidden;
        width: 120dvw;
    }

    .col2 img {
        height: 100dvh;
        width: auto;
    }

    .col3 {
        justify-items: center;
    }


    .col4 {
        justify-items: center;
        overflow: hidden;
    }

    .col4>div {
        padding: 10%;
        box-sizing: content-box;
    }

    .col4>.row2 {
        height: calc(100dvh * 0.5);
    }

    .col4>.row2>img {
        height: 100dvh;
    }


    .col5 img {
        transform: translateX(-30dvw);
    }

    .col6>.row1>.explore-name-fabric {
        /* font-weight: 600;
        font-size: 5em; */
        text-align: right;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        /* width: 50%; */
    }

    .col6>.row1>.explore-description-fabric {
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        text-align: justify;
        /* width: 50%; */
    }

    .col6>.row2 {
        max-width: 100dvw;
    }

    .col6>.row3>div {
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        /* width: 50%; */
        padding: 0 50px;
        text-align: justify;
    }

    .split-section-1>.split-left-1>div:nth-child(2) {
        display: none;
    }

    .gallery-on-mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        overflow-x: scroll;
    }


    .page-end {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .page-end>.logo>img {
        width: 50%;
        height: 50%;
    }

    .url-page-end>* {
        display: block;
    }

    .url-page-end a {
    }

    .url-page-end span {
        color: #ffffff87;

    }

    .url-page-end p {
        position: absolute;

    }

    .animate-gallery {
        animation: bounce-hint 1.5s ease-in-out 1;
        /* Esegue 3 volte poi si ferma */
    }

    @keyframes bounce-hint {

        0%,
        100% {
            margin-left: 0;
        }

        80% {
            /* Sposta leggermente a sinistra per suggerire il movimento */
            margin-left: -100px;
        }
    }
}

.cimosa-bd {
    margin-bottom: 50px;
}

.cimosa-lp {
    margin-top: 50px;
}