/* --- STILI BASE --- */
:root {
    --bg-color: #F9F8F4;
    --text-color: #2C2C2C;
    --accent-color: #8C7B6C;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

img { 
    width: 100%; 
    display: block; 
    height: auto; 
}

/* --- NAVIGATION --- */
nav {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 90px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 4rem;
    background-color: var(--bg-color); 
    color: var(--text-color);
    border-bottom: 1px solid rgba(0,0,0,0.08); 
    z-index: 1000;
}

nav.scrolled { 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.logo { 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    z-index: 1002; 
}

/* Desktop Menu */
.nav-links { 
    display: flex; 
    align-items: center;
    gap: 2rem; 
}

.nav-links a { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-weight: 500; 
}

.nav-links a:hover { 
    color: var(--accent-color); 
}

/* Tasto Become a Retailer nel menù desktop */
.nav-links .btn-retailer {
    background-color: var(--accent-color); 
    color: white; 
    padding: 10px 20px; 
    border-radius: 2px; 
    font-weight: 500; 
    font-size: 0.75rem; 
    text-decoration: none; 
    transition: 0.3s;
}

/* Mobile Hamburger Icon (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1002;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px; 
    height: 2px; 
    background-color: var(--text-color); 
    transition: 0.3s;
}

/* Mobile Side Menu (Hidden by default) */
.mobile-nav {
    position: fixed; 
    top: 0; 
    left: -100%; 
    width: 80%; 
    max-width: 300px; 
    height: 100vh;
    background-color: white; 
    z-index: 1001;
    padding: 120px 40px;
    display: flex; 
    flex-direction: column; 
    gap: 2rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.4s ease-in-out;
}

.mobile-nav.active { 
    left: 0; 
}

.mobile-nav a { 
    font-family: var(--font-serif); 
    font-size: 1.5rem; 
    color: var(--text-color); 
}

.mobile-nav a.btn-retailer-mobile {
    color: var(--accent-color); 
    font-weight: 600;
}

/* Regola per nascondere la voce Journal dal menu mobile su tutte le pagine */
.mobile-nav a[href="journal.html"] {
    display: none !important;
}

/* Overlay scuro per quando il menu è aperto */
.menu-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5); 
    z-index: 1000;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.3s;
}

.menu-overlay.active { 
    opacity: 1; 
    pointer-events: all; 
}

/* Animation Hamburger to X */
.hamburger-menu.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO --- */
.hero { 
    height: calc(100vh - 90px); 
    width: 100%; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    margin-top: 90px; 
}

.hero-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: url('img/hero-bg.jpg') no-repeat center center/cover; 
    filter: brightness(0.85); 
    z-index: 1; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    color: white; 
    max-width: 800px; 
    padding: 0 20px; 
}

.hero h1 { 
    font-family: var(--font-serif); 
    font-size: 4.5rem; 
    font-weight: 300; 
    margin-bottom: 1rem; 
    line-height: 1.1; 
}

.hero p { 
    font-size: 1.1rem; 
    letter-spacing: 1px; 
    margin-bottom: 2.5rem; 
    font-weight: 300; 
}

.btn-main { 
    display: inline-block; 
    padding: 12px 35px; 
    background: transparent; 
    border: 1px solid white; 
    color: white; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.8rem; 
}

.btn-main:hover { 
    background: white; 
    color: var(--text-color); 
}

/* --- IDENTITY STRIP --- */
.identity-strip {
    background-color: #fff;
    padding: 2.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.identity-strip p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin: 0;
}

.identity-strip strong {
    font-family: var(--font-serif);
    text-transform: none;
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 600;
    font-style: italic;
}

/* --- INTRO EXPANDED --- */
.intro { 
    padding: 6rem 2rem 4rem; 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto; 
}

.intro h2 { 
    font-family: var(--font-serif); 
    font-size: 2.8rem; 
    margin-bottom: 1.5rem; 
    font-weight: 400; 
    color: var(--accent-color); 
}

.intro p { 
    margin-bottom: 1.5rem; 
    font-size: 1.05rem; 
    color: #555; 
}

/* --- VALUES SECTION --- */
.values-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    padding: 2rem 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.value-box { 
    text-align: center; 
    padding: 1rem; 
}

.value-box h3 { 
    font-family: var(--font-serif); 
    font-size: 1.6rem; 
    margin-bottom: 1rem; 
    color: var(--text-color); 
}

.value-box p { 
    font-size: 0.9rem; 
    color: #666; 
}

/* --- MASONRY GRID --- */
.gallery-section { 
    padding: 6rem 4rem; 
}

.section-title { 
    text-align: center; 
    font-family: var(--font-serif); 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
    color: var(--text-color); 
}

.masonry-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 2rem; 
    grid-auto-flow: dense; 
}

.grid-item { 
    position: relative; 
    overflow: hidden; 
    cursor: pointer; 
}

.grid-item.tall { 
    grid-row: span 2; 
}

.grid-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s ease; 
}

.grid-item:hover img { 
    transform: scale(1.05); 
}

.overlay { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 2rem; 
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); 
    color: white; 
    opacity: 0; 
    transition: opacity 0.4s ease; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
}

.grid-item:hover .overlay { 
    opacity: 1; 
}

.overlay h3 { 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    font-style: italic; 
}

/* --- EMOTIONAL QUOTE --- */
.quote-section { 
    background-color: #EFECE6; 
    padding: 6rem 2rem; 
    text-align: center; 
}

.quote-container { 
    max-width: 700px; 
    margin: 0 auto; 
}

.quote-text { 
    font-family: var(--font-serif); 
    font-size: 2rem; 
    font-style: italic; 
    color: var(--accent-color); 
    margin-bottom: 1rem; 
}

.quote-author { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

/* --- FOOTER --- */
footer { 
    background-color: #e8e4dc; 
    padding: 4rem 2rem; 
    text-align: center; 
}

.footer-logo { 
    font-family: var(--font-serif); 
    font-size: 1.5rem; 
    margin-bottom: 2rem; 
    display: block; 
}

.social-links a { 
    margin: 0 10px; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
}

.copyright { 
    margin-top: 3rem; 
    font-size: 0.75rem; 
    opacity: 0.6; 
}

/* --- RESPONSIVE MOBILE MEDIA QUERY --- */
@media (max-width: 768px) {
    nav { 
        padding: 0 1.5rem; 
        height: 70px; 
    }

    .logo { 
        font-size: 1.4rem; 
    }

    /* FORZA IL MENÙ DESKTOP A NASCONDERSI SU MOBILE */
    .nav-links { 
        display: none !important; 
    }

    .hamburger-menu { 
        display: flex; 
    }
    
    .hero { 
        margin-top: 70px; 
        height: calc(100vh - 70px); 
    }

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

    .identity-strip p { 
        font-size: 0.75rem; 
        letter-spacing: 2px; 
    }

    .identity-strip strong { 
        font-size: 1rem; 
    }
    
    .gallery-section, 
    .values-section { 
        padding: 3rem 1.5rem; 
    }

    .grid-item.tall { 
        grid-row: auto; 
    }
}