/* --- RESET E BASI --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ffffff;
    color: #111111;
    overflow-x: hidden;
}

/* --- HEADER / MENU DI NAVIGAZIONE --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

nav a {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

nav a:hover, nav a.active {
    opacity: 0.5;
}

.nav-separator {
    color: #ffffff;
    margin: 0 12px;
    font-size: 0.75rem;
    opacity: 0.4;
}

body.home-page .main-nav {
    display: none !important;
}

/* --- SPLIT SCREEN ESPOSITIVO (HOME) --- */
.split-container { 
    display: flex; 
    height: 100vh; 
    width: 100vw; 
    position: relative; 
    overflow: hidden;
    background-color: #000000;
}

.pane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pane-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: grayscale(30%);
    transition: opacity 0.8s ease, transform 1s ease, filter 0.8s ease;
}

.left .pane-bg {
    background-image: url('occhi-iperrealismo.jpg');
    background-position: 50% 45%;
}

.right .pane-bg {
    background-image: url('struttura-pochette-3d.jpg');
    background-position: 55% 15%;
}

.pane:hover {
    flex: 1.3;
}

.pane:hover .pane-bg {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.04);
}

.content { 
    text-align: center; 
    z-index: 10;
    transition: transform 0.6s ease;
}

.pane:hover .content {
    transform: translateY(-5px);
}

.category-num {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 4px;
    opacity: 0.6;
    color: #ffffff;
    margin-bottom: 12px;
}

.content h2 { 
    font-size: 2.2rem; 
    letter-spacing: 6px; 
    margin-bottom: 8px; 
    color: #ffffff;
    font-weight: 600;
}

.content p { 
    color: #ffffff; 
    font-size: 0.75rem; 
    letter-spacing: 3px; 
    opacity: 0.6;
    text-transform: uppercase;
}

/* --- SEZIONE ABOUT RIFINITA CON FONT CORMORANT GARAMOND --- */
.about-section {
    width: 100%;
    padding: 140px 20px 100px 20px;
    background-color: #ffffff;
    color: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: 0.8rem;
    letter-spacing: 8px;
    margin-bottom: 30px;
    opacity: 0.35;
    text-transform: uppercase;
    font-weight: 600;
}

.about-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.3rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    margin: 0 auto 35px auto;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    max-width: 780px;
}

.about-intro {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555555;
    margin: 0 auto 60px auto;
    font-weight: 300;
    max-width: 780px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    border-top: 1px solid #e5e5e5;
    padding-top: 50px;
    text-align: left;
}

.about-item h3 {
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #111111;
}

.about-item p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #555555;
    font-weight: 300;
}

/* --- PAGINE INTERNE --- */
body.inner-page header {
    mix-blend-mode: normal;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

body.inner-page header .logo a,
body.inner-page nav a,
body.inner-page .nav-separator {
    color: #111111;
}

.gallery-header, .contact-section {
    padding: 180px 20px 60px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-header .category-num, .contact-section .category-num {
    color: #111111;
    opacity: 0.4;
}

.gallery-header h1, .contact-section h1 {
    font-size: 2.5rem;
    letter-spacing: 6px;
    margin: 15px 0;
    font-weight: 600;
}

.gallery-subtitle, .contact-intro {
    font-size: 0.95rem;
    color: #666666;
    letter-spacing: 1px;
    font-weight: 300;
}

.gallery-grid, .design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 0 8% 120px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item img, .design-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img, .design-item:hover img {
    transform: scale(1.02);
}

.artwork-info {
    padding-top: 15px;
    text-align: left;
}

.artwork-info h3 {
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.artwork-info p {
    font-size: 0.75rem;
    color: #777777;
    margin-top: 4px;
}

/* --- MODULO COMMISSIONI --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 40px;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dddddd;
    background: #fafafa;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #111111;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background-color: #111111;
    color: #ffffff;
    border: none;
    font-size: 0.75rem;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #333333;
}

/* --- FOOTER COMPATTO CON BADGE INSTAGRAM --- */
footer.handcrafted-text {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
}

.footer-social {
    margin-bottom: 20px;
}

.instagram-badge {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #111111;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: #111111;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.instagram-badge:hover {
    background-color: #111111;
    color: #ffffff;
}

.footer-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #888888;
}

/* --- GESTIONE LOGO --- */
.desktop-text {
    display: none !important;
}

/* --- ICONA HAMBURGER (NASCOSTA SU DESKTOP) --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
}

.hamburger-lines span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #111111;
}

/* --- RESPONSIVO MOBILE (SOLO SOTTO I 768px) --- */
@media screen and (max-width: 768px) {
    header {
        position: relative !important;
        background-color: #ffffff !important;
        mix-blend-mode: normal !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 25px 15px !important;
        text-align: center;
        border-bottom: 1px solid #eeeeee;
    }

    body.home-page header {
        background-color: #000000 !important;
        border-bottom: 1px solid #333333;
    }

    body.home-page header nav a,
    body.home-page header .nav-separator {
        color: #ffffff !important;
    }

    .logo {
        margin-bottom: 12px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    nav a {
        font-size: 0.7rem !important;
        letter-spacing: 2px !important;
    }

    .nav-separator {
        margin: 0 8px !important;
    }

    body.home-page .mobile-logo {
        width: 170px !important;
        max-width: 60vw !important;
        height: auto !important;
    }

    body.inner-page .mobile-logo {
        width: 150px !important;
        max-width: 50vw !important;
        height: auto !important;
    }

    body.inner-page header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #eeeeee !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px !important;
        z-index: 1000;
    }

    body.inner-page .main-nav {
        display: none !important;
    }

    body.inner-page .mobile-menu-toggle {
        display: block !important;
    }

    body.inner-page .logo {
        margin-bottom: 0 !important;
        width: auto !important;
        justify-content: flex-start !important;
    }

    body.inner-page header .logo .desktop-text {
        display: none !important;
    }

    body.inner-page header .logo .mobile-logo {
        display: block !important;
        object-fit: contain !important;
    }

    .split-container { 
        flex-direction: column; 
        height: auto;
    }
    
    .pane {
        min-height: 50vh;
    }

    .about-section {
        padding: 90px 20px 70px 20px;
    }
    
    .about-tagline {
        font-size: 1.6rem;
    }
    
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 35px; 
    }
    
    .gallery-grid, .design-grid {
        grid-template-columns: 1fr !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        gap: 40px;
    }

    .gallery-item img, .design-item img {
        width: 100% !important;
        height: 380px !important;
        object-fit: cover !important;
        box-sizing: border-box;
        display: block;
    }

    /* --- TITOLI PAGINE INTERNE SU MOBILE --- */
    body.inner-page h1 {
        font-size: 2.0rem !important;
        letter-spacing: 3px !important;
        margin: 10px 0 !important;
    }
}