/* --- 1. SETUP & VARIABILI LUXURY --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300&family=Inter:wght@300;400;700&display=swap');

:root {
    --bg: #F8F7F4;       /* Colore Seta: caldo e prestigioso */
    --text: #111111;     /* Nero Inchiostro */
    --accent: #9A8466;   /* Bronzo spazzolato */
    --line: rgba(0,0,0,0.06);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    /* TIPOGRAFIA ADATTIVA (Si ridimensiona da sola) */
    --fs-h1: clamp(2.5rem, 10vw, 7.5rem);
    --fs-h2: clamp(1.8rem, 6vw, 4rem);
    --fs-body: 16px; /* Ottimale per evitare zoom su iPhone */
    
    --header-h: 70px;
    --gutter: 20px; /* Margine laterale fisso per mobile */
}

/* --- 2. RESET PROFESSIONALE --- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

/* --- AGGIUNTE LUXURY REVOLUTION --- */

/* 1. PRELOADER (Il Sipario) */
#preloader {
    position: fixed; inset: 0; background-color: var(--text); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1); /* Movimento Sipario */
}
#preloader.finished { transform: translateY(-100%); } /* Si alza verso l'alto */

.loader-text {
    font-family: var(--font-serif); color: var(--bg); font-size: 2rem;
    overflow: hidden; /* Maschera per il testo che sale */
}
.loader-text span {
    display: block; transform: translateY(100%); 
    animation: textRise 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes textRise { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }

/* 2. CUSTOM CURSOR (Solo Desktop) */
@media (min-width: 1024px) {
    body { cursor: none; } /* Nasconde la freccia standard */
    
    .cursor-dot, .cursor-outline {
        position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
        border-radius: 50%; z-index: 5000; pointer-events: none;
        transition: transform 0.1s; /* Fluidità */
    }
    .cursor-dot { width: 8px; height: 8px; background-color: var(--text); }
    .cursor-outline { 
        width: 40px; height: 40px; border: 1px solid var(--text); 
        transition: width 0.3s, height 0.3s, background-color 0.3s;
    }

    /* Effetto Hover sui link */
    body.hovering .cursor-outline {
        width: 70px; height: 70px; 
        background-color: rgba(154, 132, 102, 0.2); /* Bronzo trasparente */
        border-color: transparent;
        backdrop-filter: blur(2px);
    }
}

/* 3. LENIS SMOOTH SCROLL (Necessario per l'effetto "Galleggiamento") */
html.lenis { height: auto; } 
.lenis.lenis-smooth { scroll-behavior: auto !important; } 
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; } 
.lenis.lenis-stopped { overflow: hidden; } 
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* 4. OVERLAPPING HERO (Stile Eidos) */
/* Modifica per la Hero Section della Home */
.hero-overlap-title {
    position: relative; z-index: 10; margin-top: -80px; mix-blend-mode: difference;
    color: #fff; /* Diventa leggibile sia su sfondo nero che bianco grazie al mix-blend */
    pointer-events: none;
}
@media (max-width: 768px) { .hero-overlap-title { margin-top: -40px; font-size: 3.5rem; } }


html, body {
    width: 100%;
    overflow-x: hidden; /* Impedisce al sito di "ballare" lateralmente */
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
}

/* --- 3. HEADER & NAVIGAZIONE (MOBILE-FIRST) --- */
#header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 var(--gutter); z-index: 2000;
    background: rgba(248, 247, 244, 0.85);
    backdrop-filter: blur(15px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#header.scrolled { height: 60px; border-bottom: 1px solid var(--line); }

.logo a { 
    font-size: 0.85rem; font-weight: 800; letter-spacing: 4px; 
    text-transform: uppercase; text-decoration: none; color: var(--text);
}

/* Menu Desktop (Nascosto di base) */
.desktop-nav { display: none; gap: 35px; }
.desktop-nav a { 
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; 
    text-decoration: none; opacity: 0.4; transition: 0.3s; color: black;
}
.desktop-nav a.active, .desktop-nav a:hover { opacity: 1; }

/* Hamburger (Sempre visibile su mobile) */
.hamburger { 
    width: 30px; height: 18px; display: flex; flex-direction: column; 
    justify-content: space-between; cursor: pointer; z-index: 3000; 
}
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--text); transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Overlay Mobile Nav */
.mobile-nav {
    position: fixed; inset: 0; background: var(--bg); z-index: 2500;
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; text-align: center; }
.mobile-nav a { font-family: var(--font-serif); font-size: 2.8rem; display: block; margin: 15px 0; text-decoration: none; color: black}

/* --- 4. LAYOUT & GRIGLIA EDITORIALE --- */
main { padding-top: var(--header-h); }
.container { width: 100%; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.section-pad { padding: 80px 0; }

/* La griglia che su desktop diventa sfalsata */
.editorial-grid { display: flex; flex-direction: column; gap: 40px; }

.card { width: 100%; margin-bottom: 20px; }
.card-img { width: 100%; aspect-ratio: 4/5; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card-img img { transform: scale(1.05); }

.card-info { margin-top: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.card-info h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; }
.card-info span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }

/* --- 5. COMPONENTI UNIFICATI (LUXURY BTN) --- */
.btn-luxury {
    display: block; width: 100%; text-align: center;
    background-color: var(--text); color: var(--bg);
    padding: 22px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px; border: none;
    transition: 0.4s; cursor: pointer; text-decoration: none;
}
.btn-luxury:hover { background-color: var(--accent); transform: translateY(-3px); }

.whatsapp-btn {
    position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px;
    background-color: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.whatsapp-btn svg { fill: var(--bg); width: 26px; height: 26px; }

/* --- 6. ADATTAMENTO TABLET & DESKTOP --- */
@media (min-width: 1024px) {
    :root { --gutter: 6vw; --header-h: 90px; }
    .hamburger { display: none; }
    .desktop-nav { display: flex; }
    
    .editorial-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 60px 30px; }
    .card { grid-column: span 5; }
    .card:nth-child(even) { grid-column: 8 / 13; margin-top: 180px; } /* Sfalsamento editoriale */
    
    .btn-luxury { width: auto; display: inline-block; padding: 20px 60px; }
}

/* --- 7. ANIMAZIONI & LIGHTBOX --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.lightbox {
    position: fixed; inset: 0; background: rgba(248, 247, 244, 0.98);
    z-index: 4000; display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; object-fit: contain; box-shadow: 0 50px 100px rgba(0,0,0,0.1); }
.close-lightbox { position: absolute; top: 30px; right: 30px; font-size: 40px; cursor: pointer; }

footer { padding: 60px var(--gutter); border-top: 1px solid var(--line); text-align: center; font-size: 0.7rem; opacity: 0.5; letter-spacing: 2px; text-transform: uppercase; }


/* --- 8. NEW YEAR 2026 MARQUEE (STRISCIA SCORREVOLE) --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--text); /* Sfondo Nero Inchiostro */
    color: var(--bg);              /* Testo Seta */
    padding: 15px 0;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid var(--accent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite; /* 25s = velocità elegante e lenta */
}

.marquee-item {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 25px; /* Spazio tra le frasi */
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.marquee-item span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--accent); /* Colore Bronzo per il pallino */
}

/* Animazione infinita */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Su mobile lo rendiamo un po' più piccolo */
@media (max-width: 768px) {
    .marquee-item { font-size: 1.1rem; margin-right: 40px; }
}


/* --- 7. HERO FULL SCREEN (IMMERSIVA) --- */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100dvh; /* Occupa sempre tutto lo schermo disponibile */
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Allinea il testo in basso */
    padding-bottom: 80px;  /* Spazio dal bordo inferiore */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Taglia i bordi per riempire senza deformare */
    object-position: center; /* Mantiene il centro della foto visibile */
    filter: brightness(0.85); /* Leggero scurimento per far leggere meglio il testo */
}

/* Sfumatura scura in basso per garantire che il testo bianco si legga sempre */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    width: 100%;
    color: #ffffff; /* Testo bianco puro */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Ombra leggera per contrasto */
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 12vw, 9rem); /* Gigante su desktop, giusto su mobile */
    line-height: 0.9;
    margin-bottom: 20px;
}

/* Su mobile, alziamo un po' il testo per non farlo coprire dai pulsanti del browser */
@media (max-width: 768px) {
    .hero-wrapper { padding-bottom: 120px; }
    .hero-bg img { object-position: center top; } /* Su mobile preferiamo la parte alta della foto */
}
