/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FDFDFD;
    color: #080808;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Dark Mode */
body.dark {
    background-color: #000000;
    color: #FDFDFD;
}

/* ============================================
   NAVBAR
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

body.dark nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-img {
    width: 4rem;
    height: 4rem;
}

.nav-text {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #080808;
}

body.dark .nav-text {
    color: #FDFDFD;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    font-size: 0.625rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links a,
.nav-links button {
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
}

.nav-links a:hover {
    text-decoration: line-through;
}

/* Stile aggiornato per il bottone del tema (Icona) */
.nav-links button {
    opacity: 1; /* Rimosso l'opacity 0.4 per rendere l'icona chiara */
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.nav-links button:hover {
    transform: scale(1.1); /* Leggero zoom all'hover invece dell'opacity */
}

/* Gestione delle icone SVG nel bottone */
.theme-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

/* Logica Dark/Light mode per le icone */
.icon-moon {
    display: block;
}
.icon-sun {
    display: none;
}

body.dark .icon-moon {
    display: none;
}
body.dark .icon-sun {
    display: block;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
}

.hero-content {
    padding: 8rem 1.5rem 3rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 12vw;
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title-bold {
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    opacity: 0.5;
    max-width: 32rem;
    line-height: 1.75;
    border-left: none;
    padding-left: 0;
    margin: 0 auto;
}

body.dark .hero-subtitle {
    border-left-color: rgba(253, 253, 253, 0.2);
}

.hero-image {
    height: 50vh;
}

.hero-image-frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scroll-indicator {
    display: none;
    width: 1px;
    height: 100px;
    background: currentColor;
    position: absolute;
    right: 40px;
    bottom: 0;
    opacity: 0.2;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 6rem 1.5rem;
    background-color: #0a0a0a;
}

body.dark .services {
    background-color: #000000;
}

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 9px;
    font-weight: bold;
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 1rem;
    color: #FDFDFD;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: -0.05em;
    color: #FDFDFD;
}

.method .section-header h2 {
    color: #FDFDFD;
}

body.dark .method .section-header h2 {
    color: #FDFDFD;
}

.method .section-label {
    color: #FDFDFD;
}

body.dark .method .section-label {
    color: #FDFDFD;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.service-card {
    padding: 2rem;
    background-color: #111111;
    border: 1px solid rgba(253, 253, 253, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background-color: #151515;
    transform: translateY(-8px);
}

.service-icon {
    margin-bottom: 2rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
    opacity: 0.6;
}

.service-icon svg {
    width: 3rem;
    height: 3rem;
    color: #FDFDFD;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: #FDFDFD;
}

.service-card p {
    font-size: 0.75rem;
    opacity: 0.5;
    line-height: 1.75;
    color: #FDFDFD;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 6rem 1.5rem;
    background-color: #FDFDFD;
}

body.dark .about {
    background-color: #000000;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-frame {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3);
    transition: filter 0.6s ease;
}

.about-image-frame:hover img {
    filter: grayscale(0);
}

.about-content {
    max-width: 700px;
}

.about-header {
    margin-bottom: 3rem;
}

.about-header .section-label {
    color: #080808;
}

body.dark .about-header .section-label {
    color: #FDFDFD;
}

.about-header h2 {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: -0.05em;
    color: #080808;
}

body.dark .about-header h2 {
    color: #FDFDFD;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.7;
    color: #080808;
}

body.dark .about-text p {
    color: #FDFDFD;
}

.about-intro {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.85;
    line-height: 1.6;
}

.about-quote {
    font-style: italic;
    font-size: 1.125rem;
    opacity: 0.5;
    padding-left: 2rem;
    border-left: 2px solid rgba(8, 8, 8, 0.2);
    margin: 1rem 0;
}

body.dark .about-quote {
    border-left-color: rgba(253, 253, 253, 0.2);
}

/* ============================================
   METHOD SECTION
   ============================================ */
.method {
    padding: 6rem 1.5rem;
    background-color: #0a0a0a;
    color: #FDFDFD;
}

body.dark .method {
    background-color: #000000;
    color: #FDFDFD;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
}

.method-wrapper {
    position: relative;
}

.method-line {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(253, 253, 253, 0.1);
    transform: translateY(-50%);
}

body.dark .method-line {
    background: rgba(253, 253, 253, 0.1);
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
}

.method-step {
    text-align: center;
}

.method-number {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDFDFD 0%, #E8E8E8 100%);
    border: 1px solid rgba(253, 253, 253, 0.3);
    box-shadow: 0 4px 12px rgba(253, 253, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.method-number::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.method-step:hover .method-number::before {
    opacity: 1;
}

body.dark .method-number {
    background: linear-gradient(135deg, #FDFDFD 0%, #D0D0D0 100%);
    border-color: rgba(253, 253, 253, 0.3);
    box-shadow: 0 4px 12px rgba(253, 253, 253, 0.15);
}

.method-number span {
    font-size: 1.5rem;
    font-weight: 200;
    color: #080808;
    position: relative;
    z-index: 1;
}

body.dark .method-number span {
    color: #080808;
}

.method-step h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.method-step p {
    font-size: 0.75rem;
    opacity: 0.5;
    line-height: 1.75;
}

/* ============================================
   WORK SECTION
   ============================================ */
.work {
    padding: 6rem 1.5rem;
    background-color: #FDFDFD;
}

body.dark .work {
    background-color: #000000;
}

.container-xl {
    max-width: 1800px;
    margin: 0 auto;
}

.work-header {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 5rem;
    text-align: center;
}

.work-header .section-label {
    color: #080808;
}

body.dark .work-header .section-label {
    color: #FDFDFD;
}

.work-header h2 {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: -0.05em;
    color: #080808;
}

body.dark .work-header h2 {
    color: #FDFDFD;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.work-item {
    cursor: pointer;
}

.zoom-frame {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    aspect-ratio: 16/10;
    margin-bottom: 2.5rem;
}

.zoom-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FDFDFD;
    transition: transform 2s cubic-bezier(0.2, 1, 0.3, 1);
}

body.dark .zoom-frame img {
    background: #1a1a1a;
}

.zoom-frame:hover img {
    transform: scale(1.05);
}

.work-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.work-info h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: #080808;
}

body.dark .work-info h3 {
    color: #FDFDFD;
}

.work-info span {
    font-size: 9px;
    font-weight: bold;
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #080808;
    white-space: nowrap;
}

body.dark .work-info span {
    color: #FDFDFD;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 10rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #080808;
    color: #FDFDFD;
    transition: all 1s ease;
}

body.dark .contact {
    background-color: #000000;
    color: #FDFDFD;
}

.contact-content {
    max-width: 56rem;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    /* Flex per centrare contenuto figlio */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact .section-header {
    margin-bottom: 4rem;
}

.contact .section-label {
    color: #FDFDFD;
    opacity: 0.3;
}

body.dark .contact .section-label {
    color: #FDFDFD;
}

.contact .section-header h2 {
    color: #FDFDFD;
}

body.dark .contact .section-header h2 {
    color: #FDFDFD;
}

.contact-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8em;
    opacity: 0.4;
    margin-bottom: 5rem;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(253, 253, 253, 0.05);
    border: 1px solid rgba(253, 253, 253, 0.1);
    border-radius: 4px;
    color: #FDFDFD;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(253, 253, 253, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(253, 253, 253, 0.08);
    border-color: rgba(253, 253, 253, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    padding: 1rem 2.5rem;
    background: #FDFDFD;
    color: #080808;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.form-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.form-submit:hover {
    background: #E8E8E8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 253, 253, 0.2);
}

.form-submit:hover svg {
    transform: translateX(4px);
}

.contact-divider {
    position: relative;
    margin: 4rem 0 3rem;
    text-align: center;
    width: 100%;
}

.contact-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(253, 253, 253, 0.1);
}

.contact-divider span {
    position: relative;
    display: inline-block;
    padding: 0 1.5rem;
    background: #080808;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.4;
}

body.dark .contact-divider span {
    background: #000000;
}

/* FIX CENTRATURA EMAIL */
.contact-email {
    font-size: clamp(1.25rem, 4vw, 3.5rem);
    font-weight: 200;
    line-height: 1.0;
    letter-spacing: 0;
    color: inherit;
    text-decoration: none;
    display: block;
    width: fit-content;
    margin-inline: auto; /* Centratura moderna */
    text-align: center;
    transition: transform 0.3s ease;
    max-width: 100%;
}

.contact-email:hover {
    transform: scale(0.95);
}

.social-links {
    margin-top: 8rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.4;
}

.social-links a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 3rem;
    text-align: center;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.3;
    background-color: #080808;
    color: #FDFDFD;
}

body.dark footer {
    background-color: #000000;
    color: #FDFDFD;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #FDFDFD;
    border: 1px solid rgba(8, 8, 8, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: scale(0);
}

body.dark .whatsapp-btn {
    background: rgba(253, 253, 253, 0.1);
    border-color: rgba(253, 253, 253, 0.2);
    box-shadow: 0 4px 12px rgba(253, 253, 253, 0.1);
}

.whatsapp-btn.show {
    opacity: 1;
    transform: scale(1);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    color: #080808;
}

body.dark .whatsapp-btn svg {
    color: #FDFDFD;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

body.dark .whatsapp-btn:hover {
    box-shadow: 0 6px 16px rgba(253, 253, 253, 0.2);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(8, 8, 8, 0.8);
    border: 1px solid rgba(253, 253, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: scale(0);
}

body.dark .back-to-top {
    background: rgba(253, 253, 253, 0.1);
    border-color: rgba(253, 253, 253, 0.2);
}

.back-to-top.show {
    opacity: 1;
    transform: scale(1);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: #FDFDFD;
}

body.dark .back-to-top svg {
    color: #FDFDFD;
}

.back-to-top:hover {
    transform: scale(1.1);
    background: rgba(8, 8, 8, 1);
}

body.dark .back-to-top:hover {
    background: rgba(253, 253, 253, 0.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.section-fade {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.section-fade.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 640px) {
    nav {
        padding: 1.5rem;
    }
    
    .logo-img {
        width: 6rem;
        height: 6rem;
    }
    
    .nav-links {
        gap: 3rem;
    }
    
    .hero-content {
        padding: 5rem 2rem;
        text-align: left;
    }
    
    .hero h1 {
        font-size: 12vw;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        border-left: 1px solid rgba(8, 8, 8, 0.2);
        padding-left: 2rem;
        margin: 0;
    }
    
    body.dark .hero-subtitle {
        border-left-color: rgba(253, 253, 253, 0.2);
    }
    
    .hero-image {
        height: 70vh;
    }
    
    .services,
    .about,
    .method,
    .work {
        padding: 10rem 2rem;
    }
    
    .section-header h2,
    .work-header h2,
    .about-header h2 {
        font-size: 4.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        padding: 3rem;
    }
    
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
    
    .contact-email {
        font-size: clamp(2rem, 5vw, 4rem);
    }
    
    .social-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 1.5rem;
    }
    
    .hero-content {
        grid-column: span 7;
        padding: 5rem;
        text-align: left;
    }
    
    .hero h1 {
        font-size: 10vw;
        margin-bottom: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-image {
        grid-column: span 5;
        height: 100vh;
    }
    
    .scroll-indicator {
        display: block;
    }
    
    .services,
    .about,
    .method,
    .work {
        padding: 10rem 5rem;
    }
    
    .about-grid {
        gap: 6rem;
    }
    
    .about-image-frame {
        max-width: 600px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .method-line {
        display: block;
    }
    
    .method-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-email {
        font-size: clamp(3rem, 6vw, 5rem);
    }
}

@media (min-width: 1280px) {
    .contact-email {
        font-size: clamp(3.5rem, 7vw, 6rem);
    }
}

@media (min-width: 1536px) {
    .contact-email {
        font-size: clamp(4rem, 8vw, 7rem);
    }
}
/* --- DESIGN HAMBURGER (Base) --- */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    padding: 5px;
}

.m-line {
    background-color: currentColor;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- MOBILE ONLY (< 1024px) --- */
@media (max-width: 1023px) {
    /* 1. Nascondi i link testuali nella barra */
    .nav-links > a { display: none !important; }

    /* 2. Mostra e colora i controlli (Sempre Visibili) */
    .nav-mobile-wrapper {
        display: flex !important;
        align-items: center;
        gap: 1.2rem;
    }

    /* 3. Colore Fisso: Ignora lo scroll del desktop */
    #theme-btn, #menu-toggle {
        color: #080808 !important; /* Nero su Light Mode */
        mix-blend-mode: normal !important;
    }
    
    body.dark #theme-btn, 
    body.dark #menu-toggle {
        color: #FDFDFD !important; /* Bianco su Dark Mode */
    }

    /* 4. Hamburger Design Minimal Moderno */
    #menu-toggle { display: flex !important; }
    .line-1 { width: 28px; height: 1.5px; }
    .line-2 { width: 18px; height: 1.5px; }

    /* 5. Animazione X */
    #menu-toggle.active .line-1 { transform: translateY(4px) rotate(45deg); width: 28px; }
    #menu-toggle.active .line-2 { transform: translateY(-4.5px) rotate(-45deg); width: 28px; }

    /* 6. Overlay Menu (Appare al click) */
    #nav-menu.active {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #FDFDFD !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    body.dark #nav-menu.active { background: #000000 !important; }

    #nav-menu.active a {
        display: block !important;
        font-size: 2.2rem;
        font-weight: 200;
        letter-spacing: 3px;
        margin: 1.2rem 0;
        color: inherit !important;
    }

    /* Posiziona Lunetta e X in alto a destra quando aperto */
    #nav-menu.active .nav-mobile-wrapper {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    #nav-menu.active a {
        color: #080808 !important; /* Nero Ross Developer */
        mix-blend-mode: normal !important; /* Rimuove interferenze di trasparenza */
    }

    /* In Dark Mode (quando il body ha classe .dark), il testo torna bianco */
    body.dark #nav-menu.active a {
        color: #FDFDFD !important;
    }
}