/*
Theme Name: Altalena Italy
Theme URI: https://altalenaitaly.com/
Author: Antigravity & Firas
Author URI: https://altalenaitaly.com/
Description: Custom luxury theme for Altalena Italy.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: altalena-theme
*/

/* ============================================================
   Altalena Italy — Haute Joaillerie
   style.css — Design System Luxury
   ============================================================ */

/* ── Custom Properties: Design Tokens Luxury ── */
:root {
    /* Palette */
    --black:         #030303;
    --black-rich:    #080808;
    --black-soft:    #111111;
    --gold:          #c9a96e;
    --gold-light:    #e8cfa1;
    --gold-dark:     #a07840;
    --ivory:         #f5f0e8;
    --white:         #ffffff;
    --muted:         rgba(245, 240, 232, 0.45);
    --muted-dark:    rgba(245, 240, 232, 0.20);

    /* Fonts */
    --font-serif:    'Cormorant Garamond', Georgia, serif;
    --font-sans:     'Jost', system-ui, sans-serif;

    /* Timing */
    --ease-luxury:   cubic-bezier(0.76, 0, 0.24, 1);
    --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
    --duration-md:   0.7s;
    --duration-lg:   1.2s;

    /* Layout heights */
    --top-bar-h:     36px;
    --nav-h:         76px;
    --header-h:      calc(var(--top-bar-h) + var(--nav-h));
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--black);
    color: var(--ivory);
    font-family: var(--font-sans);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ── Preloader ── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* sarà gestito da GSAP */
}

.preloader-inner {
    text-align: center;
}

.preloader-brand {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.5em;
    color: var(--gold);
    margin-bottom: 0.2rem;
    opacity: 0;
    transform: translateY(20px);
    line-height: 1;
}

.preloader-sub {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.7em;
    text-transform: uppercase;
    color: rgba(201, 169, 110, 0.55);
    margin-bottom: 2rem;
    opacity: 0;
}

.preloader-bar {
    width: 180px;
    height: 1px;
    background: rgba(201, 169, 110, 0.2);
    margin: 0 auto;
    overflow: hidden;
}

.preloader-fill {
    width: 0%;
    height: 100%;
    background: var(--gold);
    transition: width 0.05s linear;
}

/* ── Canvas 3D background ── */
#hero-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0; /* rivelato da GSAP */
}

/* ============================================================
   SITE HEADER (Top Bar + Navbar)
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    /* Start hidden — GSAP reveals it */
    transform: translateY(-100%);
    opacity: 0;
}

/* ── Top Bar ── */
.top-bar {
    width: 100%;
    height: var(--top-bar-h);
    background: rgba(201, 169, 110, 0.10);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-bar-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* ── Main Navbar ── */
.navbar {
    width: 100%;
    height: var(--nav-h);
    background: rgba(3, 3, 3, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(201, 169, 110, 0.07);
}

.nav-inner {
    max-width: 1680px;
    margin: 0 auto;
    height: 100%;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

/* ── Nav Left: Product Links ── */
.nav-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    position: relative;
    padding-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: color var(--duration-md) var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--duration-md) var(--ease-out);
}

.nav-link:hover            { color: var(--white); }
.nav-link:hover::after     { width: 100%; }

/* "New In" pulsing dot */
.nav-new-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Nav Center: SVG Logo ── */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: color var(--duration-md) var(--ease-out),
                opacity var(--duration-md) var(--ease-out);
}

.nav-logo:hover { color: var(--gold); }

.logo-svg {
    width: clamp(160px, 18vw, 240px);
    height: auto;
    display: block;
}

/* ── Nav Right: Lang + Utils ── */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-btn {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 2px 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--duration-md) var(--ease-out);
    line-height: 1;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--gold-light);
}

.lang-sep {
    color: rgba(201, 169, 110, 0.2);
    font-size: 0.55rem;
    line-height: 1;
    pointer-events: none;
}

/* Utility Icons */
.nav-utils {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.util-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-radius: 50%;
    position: relative;
    transition: color var(--duration-md) var(--ease-out),
                background var(--duration-md) var(--ease-out);
}

.util-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.util-btn--cart {
    /* Leggero bordo gold al hover */
}
.util-btn--cart:hover {
    color: var(--gold);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 15px;
    height: 15px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-sans);
    font-size: 0.5rem;
    font-weight: 500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0;   /* nascosto quando count = 0 */
    transition: opacity 0.3s ease;
}

.cart-count.visible { opacity: 1; }

/* Hamburger mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ivory);
    transition: transform var(--duration-md) var(--ease-out),
                opacity var(--duration-md) var(--ease-out);
}

/* ============================================================
   HERO — Slider Cinematografico
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    z-index: 1;
    /* Beige neutro: visibile durante il caricamento e nelle bande contain */
    background-color: #ede8de;
}

/* ── Slides Wrapper ── */
.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Singola Slide ── */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    /* Le slide vengono gestite interamente da GSAP */
    opacity: 0;
    clip-path: inset(0 100% 0 0);  /* inizio fuori destra */
    /* Beige di base: visibile nelle bande contain e durante le transizioni */
    background-color: #ede8de;
}

.slide.is-active {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
    pointer-events: auto;
    z-index: 2;
}

/* ── Slide Media (photo + overlay) ── */
.slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-bg {
    position: absolute;
    inset: 0;
    /*
     * CONTAIN: mostra la foto intera senza tagli.
     * Il background-color matcha il beige neutro delle foto "Unite senza scritta"
     * così le eventuali bande ai lati si fondono con lo sfondo della foto stessa.
     */
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #ede8de;
    transform: scale(1.15); /* Ken Burns iniziale zoom-out */
    transition: none;
}

/* Tutte le slide usano lo stesso beige neutro delle foto pulite */
.slide:nth-child(1) .slide-bg { background-color: #ede8de; background-position: center center; }
.slide:nth-child(2) .slide-bg { background-color: #eee9df; background-position: center center; }
.slide:nth-child(3) .slide-bg { background-color: #ede7dc; background-position: center center; }
.slide:nth-child(4) .slide-bg { background-color: #eee8de; background-position: center center; }
.slide:nth-child(5) .slide-bg { background-color: #ede8de; background-position: center center; }

.slide-overlay {
    position: absolute;
    inset: 0;
    /*
     * Gradiente sinistra → trasparente per leggibilità del testo.
     * Usando foto con sfondo chiaro, l'opacità è ridotta al minimo
     * per non schiacciare i colori naturali della foto.
     */
    background: linear-gradient(
        100deg,
        rgba(5, 4, 3, 0.55) 0%,
        rgba(5, 4, 3, 0.12) 42%,
        rgba(5, 4, 3, 0.00) 70%
    );
}

.slide-overlay.overlay-warm {
    /* Slide necklaces: gradiente da destra (testo a destra) */
    background: linear-gradient(
        260deg,
        rgba(10, 6, 0, 0.58) 0%,
        rgba(10, 6, 0, 0.12) 42%,
        rgba(10, 6, 0, 0.00) 70%
    );
}

.slide-overlay.overlay-cool {
    /* Slide bracelets: gradiente da destra (testo a destra) */
    background: linear-gradient(
        260deg,
        rgba(5, 4, 8, 0.55) 0%,
        rgba(5, 4, 8, 0.12) 42%,
        rgba(5, 4, 8, 0.00) 70%
    );
}

/* ── Slide Content (testo) ── */
.slide-content {
    position: relative;
    z-index: 2;
    padding: 0 8%;
    max-width: 680px;
    /* Ogni elemento inizia invisibile, GSAP anima l'ingresso */
}

/*
 * Pannello sfumato locale: garantisce leggibilità del testo
 * sulle foto a sfondo chiaro (beige/crema), senza coprire l'immagine.
 * La sfumatura parte da sinistra e si dissolve dopo 520px.
 */
.slide-content::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -8%;          /* allineato al padding del contenitore */
    width: 520px;
    height: 140%;
    background: linear-gradient(
        95deg,
        rgba(237, 232, 222, 0.82) 0%,
        rgba(237, 232, 222, 0.55) 55%,
        rgba(237, 232, 222, 0.00) 100%
    );
    pointer-events: none;
    z-index: -1;
    backdrop-filter: blur(0px); /* no blur, solo sfumatura */
}

/* Pannello per slide con testo a destra */
.slide-content--right::before {
    left: auto;
    right: -8%;
    background: linear-gradient(
        265deg,
        rgba(237, 232, 222, 0.82) 0%,
        rgba(237, 232, 222, 0.55) 55%,
        rgba(237, 232, 222, 0.00) 100%
    );
}

.slide-content--right {
    margin-left: auto;
    text-align: right;
}

.slide-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    /* Oro più scuro per leggibilità su sfondo chiaro */
    color: #7a5c10;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.slide-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.01em;
    /* Quasi-nero caldo: leggibilissimo su beige, rimane elegante */
    color: #1a1410;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.slide-title .word {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.slide-title .italic {
    font-style: italic;
    /* Oro caldo leggibile su sfondo chiaro */
    color: #9b7220;
}

.slide-desc {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    /* Grigio scuro caldo: leggibile su sfondo beige chiaro */
    color: rgba(30, 22, 12, 0.65);
    max-width: 480px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.slide-content--right .slide-desc {
    margin-left: auto;
}

/* ── Slide CTA ── */
.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    /* Testo scuro su sfondo chiaro, diventa chiaro su hover (sfondo gold) */
    color: #1a1410;
    padding: 14px 28px;
    border: 1px solid rgba(122, 92, 16, 0.50);
    position: relative;
    overflow: hidden;
    transition: color var(--duration-md) var(--ease-out),
                border-color var(--duration-md) var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
    background: rgba(237, 232, 222, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slide-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-102%);
    transition: transform var(--duration-md) var(--ease-luxury);
    z-index: -1;
}

.slide-cta:hover {
    color: var(--black);
    border-color: var(--gold);
}
.slide-cta:hover::before { transform: translateX(0); }

.slide-cta svg {
    transition: transform var(--duration-md) var(--ease-out);
    flex-shrink: 0;
}
.slide-cta:hover svg { transform: translateX(6px); }

/* ── Brand Overlay Centrale ── */
.hero-brand {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    /* Si mostra solo sul preloader, poi GSAP lo sposta in alto */
}

.brand-letters {
    display: flex;
    gap: 0.05em;
    font-family: var(--font-serif);
    font-size: clamp(5rem, 15vw, 13rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(201, 169, 110, 0.6);
    line-height: 1;
}

.brand-letters span {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(45deg);
    transform-origin: bottom center;
    backface-visibility: hidden;
}

.brand-tagline {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(15px);
}

/* ── Progress Bar ── */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(201, 169, 110, 0.12);
    z-index: 10;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    width: 0%;
    transition: width 0.1s linear;
    transform-origin: left;
}

/* ── Hero Controls ── */
.hero-controls {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    opacity: 0; /* rivelato da GSAP */
}

/* Counter */
.slide-counter {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.counter-current {
    font-size: 1.3rem;
    font-weight: 200;
    color: var(--gold);
    font-family: var(--font-serif);
    min-width: 2ch;
}

.counter-sep {
    color: rgba(201, 169, 110, 0.3);
}

/* Dots */
.slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 24px;
    height: 1px;
    background: var(--muted-dark);
    cursor: pointer;
    position: relative;
    transition: background var(--duration-md) var(--ease-out),
                width var(--duration-md) var(--ease-out);
}

.dot::after {
    content: '';
    position: absolute;
    inset: -6px 0;
    /* area cliccabile più larga */
}

.dot.active {
    width: 44px;
    background: var(--gold);
}

/* Arrows */
.slider-arrows {
    display: flex;
    gap: 0.75rem;
}

.arrow-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 169, 110, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ivory);
    transition: background var(--duration-md) var(--ease-out),
                border-color var(--duration-md) var(--ease-out),
                color var(--duration-md) var(--ease-out);
}

.arrow-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* ── Scroll Hint ── */
.scroll-hint {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0; /* rivelato da GSAP */
}

.scroll-hint-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--gold-dark) 40%, transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(0.85); }
}

.scroll-hint span {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    writing-mode: vertical-rl;
    font-weight: 300;
}

/* ============================================================
   MOBILE MENU — Overlay Fullscreen
   ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Chiuso: clip-path dal basso, opacity 0 */
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1),
                opacity 0.3s ease;
    will-change: clip-path;
}

/* Sfondo texture: griglia oro ultra-sottile */
.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 169, 110, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 110, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.mobile-menu.is-open {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 8% 60px;
    gap: 0;
}

/* Nav links nel menu mobile */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(245, 240, 232, 0.6);
    padding: 0.55rem 0;
    text-align: center;
    width: 100%;
    position: relative;
    /* Ogni link inizia invisibile, rivelato da JS stagger */
    opacity: 0;
    transform: translateY(30px);
    transition: color 0.4s ease,
                transform 0.4s ease,
                opacity 0.4s ease;
    border-bottom: 1px solid rgba(201, 169, 110, 0.07);
}

.mobile-link:first-child { border-top: 1px solid rgba(201, 169, 110, 0.07); }

.mobile-link:hover {
    color: var(--gold-light);
}

/* Freccia hover sui link */
.mobile-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    font-size: 0.8em;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Footer del menu mobile */
.mobile-menu-footer {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.mobile-menu.is-open .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-lang-btn {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 2px;
    transition: color 0.3s ease;
}
.mobile-lang-btn.active,
.mobile-lang-btn:hover { color: var(--gold-light); }

.mobile-menu-shipping {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(201, 169, 110, 0.3);
}

/* Animazione stagger link quando menu è aperto */
.mobile-menu.is-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.is-open .mobile-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-link:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-link:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.is-open .mobile-link:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.is-open .mobile-link:nth-child(5) { transition-delay: 0.43s; }
.mobile-menu.is-open .mobile-link:nth-child(6) { transition-delay: 0.50s; }

/* ── Hamburger animazione ── */
.nav-hamburger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    /* Navbar: riduce gap link */
    .nav-left { gap: 1.4rem; }
    .nav-link  { font-size: 0.68rem; letter-spacing: 0.1em; }

    /* Logo leggermente più piccolo */
    .logo-svg { width: clamp(140px, 14vw, 200px); }

    /* Utility: nascondi wishlist su tablet */
    #btnWishlist { display: none; }

    /* Hero content più stretto */
    .slide-content { max-width: 560px; }
    .slide-title   { font-size: clamp(2.2rem, 5vw, 4rem); }

    /* Brand overlay */
    .brand-letters { font-size: clamp(4rem, 10vw, 9rem); }
}

/* ============================================================
   RESPONSIVE — MOBILE LANDSCAPE + TABLET SMALL (max 900px)
   ============================================================ */
@media (max-width: 900px) {
    /* ── Navbar: hamburger mode ── */
    .nav-left      { display: none; }
    .lang-switcher { display: none; }
    .nav-hamburger { display: flex; }

    .nav-inner {
        grid-template-columns: 1fr auto 1fr;
    }

    /* Logo centrato su mobile */
    .logo-svg { width: clamp(130px, 40vw, 200px); }

    /* Hero: padding ridotto */
    .slide-content { padding: 0 6%; max-width: 100%; }
    .hero-controls { padding: 0 6%; }
    .scroll-hint   { display: none; }

    /* Hero text */
    .slide-eyebrow { font-size: 0.65rem; margin-bottom: 1rem; }
    .slide-title   { font-size: clamp(2rem, 6vw, 3.5rem); gap: 0.05em; }
    .slide-desc    { font-size: 0.9rem; max-width: 100%; }

    /* Brand: ridimensiona proporzionalmente */
    .brand-letters {
        font-size: clamp(2.8rem, 12vw, 6rem);
        letter-spacing: 0.15em;
        -webkit-text-stroke: 0.8px rgba(201, 169, 110, 0.5);
    }
    .brand-tagline { font-size: 0.55rem; letter-spacing: 0.45em; }

    /* Slide content right: torna a sinistra su mobile */
    .slide-content--right {
        margin-left: 0;
        text-align: left;
    }
    .slide-content--right .slide-desc { margin-left: 0; }

    /* Overlay adattato: stesso gradient lato sinistro */
    .slide-overlay.overlay-cool {
        background: linear-gradient(
            105deg,
            rgba(3, 3, 3, 0.75) 0%,
            rgba(3, 3, 3, 0.30) 50%,
            rgba(3, 3, 3, 0.05) 100%
        );
    }

    /* Preloader ridimensionato */
    .preloader-brand { font-size: clamp(2rem, 10vw, 3.5rem); }
}

/* ============================================================
   RESPONSIVE — MOBILE PORTRAIT (max 600px)
   ============================================================ */
@media (max-width: 600px) {
    /* Top bar: font size ridotto */
    .top-bar-text { font-size: 0.55rem; letter-spacing: 0.15em; }

    /* Navbar: altezze */
    :root {
        --top-bar-h: 32px;
        --nav-h: 64px;
    }

    /* Utility: solo carrello su mobile XS */
    #btnLogin    { display: none; }
    #btnWishlist { display: none; }

    /* Hero: fullscreen ottimizzato */
    .hero { min-height: 100svh; }
    .hero-section { padding: 0; }

    /* Slide content: padding inferiore per non sovrapporsi ai controlli */
    .slide-content {
        padding: 0 5%;
        padding-bottom: 7rem;
        justify-content: flex-end;
        display: flex;
        flex-direction: column;
    }
    .hero-section .slide-content {
        align-self: flex-end;
        margin-bottom: 5rem;
    }

    /* Font hero extra-small */
    .slide-eyebrow { font-size: 0.6rem; margin-bottom: 0.75rem; }
    .slide-title   { font-size: clamp(1.7rem, 8vw, 2.8rem); margin-bottom: 1rem; }
    .slide-desc    { font-size: 0.82rem; line-height: 1.6; margin-bottom: 1.5rem; }
    .slide-cta     { font-size: 0.72rem; padding: 12px 22px; }

    /* Brand overlay: ridotto, non taglia i bordi */
    .brand-letters {
        font-size: clamp(2rem, 14vw, 3.5rem);
        letter-spacing: 0.12em;
        gap: 0.02em;
        -webkit-text-stroke: 0.6px rgba(201, 169, 110, 0.45);
    }
    .hero-brand { justify-content: center; }

    /* Controlli slider: impilati verticalmente */
    .hero-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem;
        bottom: 1.5rem;
        padding: 0 5%;
        justify-content: space-between;
    }

    /* Nascondi counter su mobile molto piccolo */
    .slide-counter { display: none; }

    /* Arrow buttons più grandi (touch target 44px) */
    .arrow-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }

    /* Dots: più distanziati per facilità touch */
    .slider-dots { gap: 14px; }
    .dot         { width: 20px; }
    .dot.active  { width: 36px; }

    /* Scroll hint: nascondi su mobile */
    .scroll-hint { display: none; }

    /* Utility nav */
    .nav-utils { gap: 0; }
    .util-btn  { width: 40px; height: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE XS (max 380px)
   ============================================================ */
@media (max-width: 380px) {
    .slide-title  { font-size: clamp(1.5rem, 9vw, 2.2rem); }
    .brand-letters {
        font-size: clamp(1.8rem, 13vw, 3rem);
        letter-spacing: 0.08em;
    }
    .mobile-link  { font-size: clamp(1.6rem, 8vw, 2.2rem); }
}

/* ============================================================
   FOOTER — RESPONSIVE
   ============================================================ */
.site-footer {
    background: var(--black-rich);
    border-top: 1px solid rgba(201, 169, 110, 0.10);
    padding: 80px 6% 0;
    color: var(--muted);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
}

.footer-logo {
    color: rgba(245, 240, 232, 0.55);
    display: block;
    margin-bottom: 1.2rem;
    transition: color var(--duration-md) var(--ease-out);
}
.footer-logo:hover { color: var(--gold); }

.footer-logo-svg {
    width: clamp(100px, 14vw, 180px);
    height: auto;
    display: block;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    color: rgba(245, 240, 232, 0.3);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 169, 110, 0.18) 30%,
        rgba(201, 169, 110, 0.18) 70%,
        transparent
    );
    margin-bottom: 56px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto 60px;
}

.footer-col-title {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.6rem;
}

.footer-col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col-list a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(245, 240, 232, 0.38);
    transition: color var(--duration-md) var(--ease-out),
                padding-left var(--duration-md) var(--ease-out);
    display: inline-block;
    /* Touch target minimo */
    min-height: 36px;
    line-height: 36px;
}

.footer-col-list a:hover {
    color: var(--ivory);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(201, 169, 110, 0.06);
    padding: 24px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-copy {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: rgba(245, 240, 232, 0.22);
    font-family: var(--font-sans);
    font-weight: 300;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-link {
    color: rgba(245, 240, 232, 0.28);
    display: flex;
    align-items: center;
    /* Touch target 44px */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    transition: color var(--duration-md) var(--ease-out),
                transform var(--duration-md) var(--ease-out);
}

.social-link:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .site-footer  { padding: 60px 6% 0; }
    .footer-cols  {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-bottom: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-divider { margin-bottom: 40px; }
    .footer-top { margin-bottom: 32px; }
}

@media (max-width: 460px) {
    .site-footer { padding: 48px 5% 0; }
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin-bottom: 36px;
    }
    .footer-tagline { font-size: 0.8rem; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   (stili anche in style.css per funzionare su index.html)
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease;
    pointer-events: none;
    will-change: transform;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner.is-hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 5%;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text { flex: 1; min-width: 260px; }

.cookie-banner-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ivory);
    margin-bottom: 0.4rem;
}

.cookie-banner-desc {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.45);
}

.cookie-policy-link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.cookie-policy-link:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 11px 22px;
    border-radius: 2px;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    white-space: nowrap;
}

.cookie-btn--primary {
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
}
.cookie-btn--primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.cookie-btn--outline {
    background: transparent;
    color: rgba(245, 240, 232, 0.55);
    border: 1px solid rgba(201, 169, 110, 0.22);
}
.cookie-btn--outline:hover {
    color: var(--ivory);
    border-color: rgba(201, 169, 110, 0.5);
}

.cookie-btn--secondary {
    background: transparent;
    color: rgba(245, 240, 232, 0.3);
    border: 1px solid transparent;
}
.cookie-btn--secondary:hover {
    color: rgba(245, 240, 232, 0.6);
    border-color: rgba(245, 240, 232, 0.1);
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        padding: 20px 5% 24px;
    }
    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 13px;
    }
}

/* Accessibility focus-visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.shipping-card:focus-visible,
.payment-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* ============================================================
   ACCESSIBILITÀ - FOCUS VISIBILE
   ============================================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="checkbox"]:focus-visible,
[role="radio"]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.nav-link:focus-visible::after {
    width: 100% !important;
}

.util-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.dot:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.footer-col-list a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    padding-left: 6px;
}

/* Contrasto migliorato */
.order-row-label {
    color: rgba(245, 240, 232, 0.65) !important;
}

.order-row-value {
    color: rgba(245, 240, 232, 0.75) !important;
}

.billing-check-label {
    color: rgba(245, 240, 232, 0.75) !important;
}

.product-card-sub {
    color: rgba(245, 240, 232, 0.5) !important;
}

.payment-card-name {
    color: rgba(245, 240, 232, 0.65) !important;
}

.slide-desc {
    color: rgba(30, 22, 12, 0.8) !important;
}


/* ============================================================ 
   MERGED FROM POLICY.CSS 
   ============================================================ */
/* ============================================================
   policy.css — Stili per pagine legali (Cookie Policy, Privacy, ecc.)
   Altalena Italy — Haute Joaillerie
   ============================================================ */

/* ── Header visibile senza preloader ── */
.site-header--visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* ── Body per pagine policy: sfondo ricco, no overflow nascosto ── */
.policy-page {
    background-color: var(--black-rich);
}

/* ============================================================
   POLICY HERO (intestazione pagina)
   ============================================================ */
.policy-hero {
    padding-top: var(--header-h);
    background: var(--black);
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
    position: relative;
    overflow: hidden;
}

/* Decorazione geometrica sfondo */
.policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.policy-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 5% 64px;
    text-align: center;
    position: relative;
}

.policy-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.policy-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.policy-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* ============================================================
   POLICY CONTENT
   ============================================================ */
.policy-main {
    min-height: 100vh;
}

.policy-content {
    padding: 80px 0 100px;
}

.policy-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Lead paragraph */
.policy-lead {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.75;
    color: rgba(245, 240, 232, 0.75);
    margin-bottom: 0;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.10);
}

/* ── Sections ── */
.policy-section {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.07);
}

.policy-section:last-of-type {
    border-bottom: none;
}

/* Headings */
.policy-h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--ivory);
    margin-bottom: 1.4rem;
    position: relative;
    padding-left: 1.2rem;
}

/* Barra dorata a sinistra */
.policy-h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.1em;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    border-radius: 1px;
}

.policy-h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Paragraphs */
.policy-section p {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(245, 240, 232, 0.55);
    margin-bottom: 1rem;
}

/* Lists */
.policy-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.policy-list li {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(245, 240, 232, 0.52);
    padding-left: 1.4rem;
    position: relative;
}

.policy-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold-dark);
    font-size: 0.8rem;
}

/* Links */
.policy-section a,
.policy-lead a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.25);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.policy-section a:hover,
.policy-lead a:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

/* ── Cookie table ── */
.policy-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(201, 169, 110, 0.10);
    border-radius: 4px;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    font-family: var(--font-sans);
}

.policy-table thead tr {
    background: rgba(201, 169, 110, 0.06);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.policy-table th {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}

.policy-table td {
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.5);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.05);
    line-height: 1.5;
    vertical-align: top;
}

.policy-table tbody tr:last-child td {
    border-bottom: none;
}

.policy-table tbody tr:hover td {
    background: rgba(201, 169, 110, 0.025);
    color: rgba(245, 240, 232, 0.65);
}

.policy-table code {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--gold-light);
    background: rgba(201, 169, 110, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
}

/* ── Info card (dati titolare) ── */
.policy-card {
    background: rgba(201, 169, 110, 0.04);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-left: 2px solid var(--gold-dark);
    padding: 1.6rem 2rem;
    margin-top: 1.2rem;
}

.policy-card p {
    color: rgba(245, 240, 232, 0.6) !important;
    margin-bottom: 0 !important;
    line-height: 1.9 !important;
}

.policy-card strong {
    color: var(--ivory);
    font-weight: 500;
}

/* ── Back link ── */
.policy-back {
    padding-top: 3rem;
    display: flex;
    justify-content: flex-start;
}

.policy-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.policy-back-link svg {
    transition: transform 0.35s ease;
}

.policy-back-link:hover {
    color: var(--gold-light);
    border-color: rgba(201, 169, 110, 0.3);
}

.policy-back-link:hover svg {
    transform: translateX(-5px);
}

/* ── Active link nel footer (pagina corrente) ── */
.active-policy-link {
    color: var(--gold) !important;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    /* Glassmorphism con tonalità scura premium */
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    /* Ingresso da sotto */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease;
    pointer-events: none;
    will-change: transform;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner.is-hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 5%;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 260px;
}

.cookie-banner-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ivory);
    margin-bottom: 0.4rem;
}

.cookie-banner-desc {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.45);
}

.cookie-policy-link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.cookie-policy-link:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── Cookie Buttons ── */
.cookie-btn {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 11px 22px;
    border-radius: 2px;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    white-space: nowrap;
}

/* Accetta — pulsante principale, dorato */
.cookie-btn--primary {
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
}

.cookie-btn--primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* Outline — Preferenze */
.cookie-btn--outline {
    background: transparent;
    color: rgba(245, 240, 232, 0.55);
    border: 1px solid rgba(201, 169, 110, 0.22);
}

.cookie-btn--outline:hover {
    color: var(--ivory);
    border-color: rgba(201, 169, 110, 0.5);
}

/* Ghost — Rifiuta */
.cookie-btn--secondary {
    background: transparent;
    color: rgba(245, 240, 232, 0.3);
    border: 1px solid transparent;
}

.cookie-btn--secondary:hover {
    color: rgba(245, 240, 232, 0.6);
    border-color: rgba(245, 240, 232, 0.1);
}

/* ============================================================
   RESPONSIVE — POLICY PAGE
   ============================================================ */
@media (max-width: 900px) {
    .policy-hero-inner { padding: 60px 5% 48px; }
    .policy-h2         { font-size: 1.3rem; }
}

@media (max-width: 600px) {
    .policy-hero-inner  { padding: 48px 5% 36px; }
    .policy-title       { font-size: clamp(2rem, 8vw, 2.8rem); }
    .policy-content     { padding: 48px 0 70px; }
    .policy-h2          { font-size: 1.2rem; }
    .policy-lead        { font-size: 1rem; }
    .policy-section p   { font-size: 0.88rem; }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        padding: 20px 5% 24px;
    }
    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 13px;
    }
}

@media (max-width: 460px) {
    .policy-table-wrap  { font-size: 0.78rem; }
    .policy-card        { padding: 1.2rem 1.4rem; }
}


/* ============================================================
   CUSTOM MOBILE USABILITY & HOVER OPTIMIZATIONS
   ============================================================ */
/* Migliora la leggibilità e lo spazio su mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Testo più grande per gli occhi */
        line-height: 1.6;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Rende i bottoni "Aggiungi al carrello" più facili da cliccare */
    .single_add_to_cart_button, .button {
        width: 100% !important;
        padding: 15px !important;
        font-size: 18px !important;
        border-radius: 8px !important;
    }

    /* Ottimizza le immagini prodotto per non rallentare */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Effetto Hover pulito per la navigazione */
nav ul li a:hover {
    color: #8b5a2b; /* Il tuo colore marrone */
    text-decoration: underline;
}

/* ============================================================
   MAIN NAVIGATION UL/LI WRAPPER SUPPORT
   ============================================================ */
.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav li {
    margin: 0;
    padding: 0;
}
@media (max-width: 1100px) {
    .main-nav ul {
        gap: 1.4rem;
    }
}
