@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Syncopate:wght@400;700&display=swap');

/* ==========================================================================
   CSS VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    --color-bg-pure-black: #000000;
    --color-bg-deep-slate: #0a0a0a; /* Scurito per contrasto geometrico */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.5);
    
    /* Nuova Palette Pantone Official */
    --color-primary-bronze: #A26D4D; /* Pantone 876 C */
    --color-accent-brick: #954338; /* Pantone 18-1350 TPX Burnt Brick */
    --color-text-offwhite: #F6F4F0; /* Pantone 876 C Light */
    
    /* Backward compatibility per variabili esistenti */
    --color-accent-bronze: var(--color-primary-bronze);
    
    /* Nuovi Font Geometrici e Tecnici */
    --font-serif: 'Syncopate', sans-serif; /* Per i titoli giganti e loghi */
    --font-sans: 'Rajdhani', sans-serif; /* Per i testi puliti e UI */
    
    --border-radius-pill: 50px;
    --border-radius-subtle: 0px; /* Squadrato per estetica futuristica */
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Più rigida e veloce */
}

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

html {
    scroll-behavior: initial; /* Managed by Lenis */
}

body {
    background-color: var(--color-bg-pure-black);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 15px; /* Scalato giù per ridurre l'ingombro globale */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1400px; /* Ridotto da 1600px per compattare */
    margin: 0 auto;
    padding: 0 5vw;
}

.section {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   GEOMETRIC DIVIDERS & BRAND ASSETS
   ========================================================================== */
.geometric-divider {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-primary-bronze),
        var(--color-primary-bronze) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.3;
    margin: 2rem 0;
}

.geometric-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-accent-brick) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   SMART NAVIGATION (Analogue Style)
   ========================================================================== */
.smart-nav {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

.smart-nav.hidden {
    transform: translateY(-150%);
    opacity: 0;
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-pill);
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
    transition: color var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-accent-bronze);
}

.nav-logo {
    color: var(--color-text-primary);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   ANTIGRAVITY & GSAP MOTION LOGIC
   ========================================================================== */
.antigravity-element {
    /* Base state before GSAP takes over */
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity, filter;
}

/* SplitType utility class to hide lines before they animate up */
.line {
    overflow: hidden;
}
.word {
    will-change: transform, opacity;
}

/* Magnetic utility */
.magnetic {
    display: inline-block;
    will-change: transform;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.video-container canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Stronger dimming to make huge text pop */
}

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    /* Vignettatura Radiale (Grigio scurissimo al centro -> Nero ai bordi) */
    background: radial-gradient(circle at center, #151515 0%, #000000 85%) !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Rimuoviamo il vecchio gradient overlay piatto per mantenere la vignettatura pulita */
    background: transparent;
    z-index: 2;
}

/* Livello Nascosto con Logo RAMATE (Dietro al video) */
.hero-logo-back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5); /* Inizialmente piccolo e nascosto */
    z-index: 1; /* Dietro al canvas (z-index: 2) */
    opacity: 0;
    width: clamp(200px, 40vw, 500px); /* Grandezza del logo */
    height: auto;
    filter: drop-shadow(0 0 30px rgba(162, 109, 77, 0.5)); /* Bagliore bronzo */
}

.hero-logo-back img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-logo-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.hero-logo-socials a {
    color: var(--color-primary-bronze);
    font-size: 1.2rem; /* Will be scaled by 1.5x from the parent animation */
    text-decoration: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(162, 109, 77, 0.3);
}

.hero-logo-socials a:hover {
    background-color: var(--color-primary-bronze);
    color: var(--color-bg-pure-black);
    transform: translateY(-3px);
}

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    position: relative;
}

/* When visible via GSAP, monumental is explicitly positioned */
.monumental {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 10vw, 10rem); /* Reduced Massive size */
    font-weight: 700; /* Syncopate looks better bold */
    letter-spacing: 0.25em; /* More technical letter spacing */
    color: var(--color-text-primary);
    line-height: 1;
    text-align: center;
    margin: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    /* Note: GSAP will handle the translation natively using xPercent/yPercent */
    white-space: nowrap;
    text-transform: uppercase;
}

/* HUD Geometrico Centrale */
.hero-hud-container {
    position: relative;
    width: 600px;
    height: 600px;
    z-index: 10;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: scale(1);
}

/* Responsività del container geometrico */
@media (max-width: 768px) {
    .hero-hud-container {
        transform: scale(0.6);
    }
}
@media (max-width: 480px) {
    .hero-hud-container {
        transform: scale(0.45);
    }
}

.hero-hud-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hud-line {
    stroke: var(--color-primary-bronze);
    stroke-width: 1.5px;
    stroke-linecap: round;
    opacity: 0.6;
    stroke-dasharray: 4 25; /* Raggi sconnessi e frammentati */
    transition: opacity 0.4s ease, stroke-width 0.4s ease;
    animation: dataStream 10s linear infinite;
}

@keyframes dataStream {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 290; } /* Animazione flusso continuo */
}

/* Effetto Hover (Aggiunto via JS o CSS genitore se usassimo :has) */
.hud-container.hover-insta .line-insta,
.hud-container.hover-insta .line-insta-fb,
.hud-container.hover-insta .line-tk-insta { opacity: 1; stroke-width: 3px; animation: none; }

.hud-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80px;
    z-index: 5;
    filter: drop-shadow(0 0 20px rgba(162, 109, 77, 0.4));
    pointer-events: none;
}

.hud-social-node {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(162, 109, 77, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.hud-social-node svg {
    fill: #fff;
    width: 20px;
    height: 20px;
    transition: fill 0.4s ease;
}

.hud-social-node:hover {
    background: rgba(162, 109, 77, 0.2);
    border-color: var(--color-primary-bronze);
    box-shadow: 0 0 30px rgba(162, 109, 77, 0.6), inset 0 0 10px rgba(162, 109, 77, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.hud-social-node:hover svg {
    fill: var(--color-primary-bronze);
}


@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
    }
    .monumental, .hero-center-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 60vw; /* Appropriate size for mobile */
    }
    .monumental.is-visible {
        transform: none;
    }
    .hero-side-text {
        text-align: center !important;
        max-width: none;
    }
}

/* ==========================================================================
   2. PHILOSOPHY SECTION
   ========================================================================== */
.philosophy-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 0; /* Ridotto da 20vh */
}

.philosophy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bronze-line {
    width: 2px;
    height: 120px;
    background-color: var(--color-accent-bronze);
    margin: 0 auto 8vh;
}

.philosophy-text {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 2.2rem); /* Ridotto per non essere ingombrante */
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-text-primary);
    max-width: 1000px;
    margin: 0 auto 1rem;
}

/* ==========================================================================
   3. SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 10vh 0; /* Ridotto da 20vh */
    background-color: var(--color-bg-pure-black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6rem;
    }
}

.service-card {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.service-number {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.service-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: var(--border-radius-subtle);
    background-color: var(--color-bg-deep-slate); /* Fallback colore in attesa di img */
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    filter: brightness(0.8) grayscale(20%);
    will-change: transform, filter;
}

.service-card:hover .service-img-wrapper .css-shape-container {
    transform: scale(1.05);
}

/* CSS 3D Shapes Fallback */
.css-shape-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, var(--color-bg-deep-slate), var(--color-bg-pure-black));
    overflow: hidden;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. Strategy: Glowing Node/Connections */
.shape-strategy {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 0 40px var(--color-primary-bronze), inset 0 0 20px var(--color-primary-bronze);
    position: relative;
    animation: pulseGlow 4s infinite alternate;
}
.shape-strategy::before, .shape-strategy::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(162,109,77,0.5); /* Bronze dashed */
    border-radius: 50%;
    animation: spinRotate 15s linear infinite;
}
.shape-strategy::before { width: 120px; height: 120px; }
.shape-strategy::after { width: 180px; height: 180px; animation-direction: reverse; animation-duration: 20s; }

/* 2. Web: Isometric Grid */
.shape-web {
    width: 120px;
    height: 120px;
    background-image: 
        linear-gradient(rgba(162,109,77,0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(162,109,77,0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotateX(60deg) rotateZ(45deg);
    transform-style: preserve-3d;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.8);
    animation: floatIso 6s ease-in-out infinite alternate;
}

/* 3. 3D: Morphing Blob */
.shape-3d {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary-bronze), var(--color-accent-brick));
    animation: morphBlob 8s ease-in-out infinite;
    box-shadow: inset 10px 10px 30px rgba(0,0,0,0.5), 0 0 40px rgba(162,109,77,0.3);
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: hue-rotate(0deg); }
    100% { transform: scale(1.2); filter: hue-rotate(10deg); }
}
@keyframes spinRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes floatIso {
    0% { transform: rotateX(60deg) rotateZ(45deg) translateZ(-10px); }
    100% { transform: rotateX(60deg) rotateZ(45deg) translateZ(20px); }
}
@keyframes morphBlob {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: rotate(120deg); }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: rotate(240deg); }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(360deg); }
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2vw, 1.8rem); /* Ridotto */
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    transition: color var(--transition-smooth);
}

.service-card p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.service-card:hover h3 {
    color: var(--color-accent-bronze);
}

/* ==========================================================================
   4. PORTFOLIO SECTION (Bento Grid)
   ========================================================================== */
.portfolio-section {
    padding: 5vh 0 15vh; /* Ridotto da 10vh 0 25vh */
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 300px; /* Ridotto da 400px */
    gap: 2rem;
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: 350px; /* Ridotto da 450px */
    }
    
    .item-1 {
        grid-column: span 8;
        grid-row: span 2;
    }
    .item-2 {
        grid-column: span 4;
        grid-row: span 1;
    }
    .item-3 {
        grid-column: span 4;
        grid-row: span 1;
    }
    .item-4 {
        grid-column: span 6;
        grid-row: span 1;
    }
    .item-5 {
        grid-column: span 6;
        grid-row: span 1;
    }
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-subtle);
    background-color: var(--color-bg-deep-slate);
    cursor: pointer;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Resized to be fully visible */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(205, 127, 50, 0);
    transition: background-color var(--transition-smooth);
    z-index: 1;
}

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

.bento-item:hover .hover-overlay {
    background-color: rgba(205, 127, 50, 0.3);
}

/* ==========================================================================
   5. FOOTER & CONTACT SECTION
   ========================================================================== */
.footer-section {
    padding: 15vh 0 10vh;
    background-color: var(--color-bg-deep-slate);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem); /* Reduced size */
    font-weight: 300;
    margin-bottom: 4rem;
}

.contact-form {
    width: 100%;
    margin-bottom: 5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.contact-form input {
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.contact-form input:focus {
    outline: none;
    border-bottom-color: var(--color-accent-bronze);
}

.contact-form input::placeholder {
    color: var(--color-text-secondary);
}

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    margin-top: 2rem;
    background-color: var(--color-accent-bronze);
    color: var(--color-bg-pure-black);
    border: none;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: transform 0.4s ease, background-color 0.4s ease;
    will-change: transform;
}

.submit-btn:hover {
    transform: translateY(-4px);
    background-color: #e09245;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: color var(--transition-smooth);
}

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

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */
.monumental-mission {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 6rem); /* Reduced size */
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    line-height: 1.1;
    text-align: center;
}

/* ==========================================================================
   WORK PAGE STYLES
   ========================================================================== */
.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10vh; /* Ampio spazio come richiesto */
    padding: 20vh 0;
}

@media (min-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15vh 8vw;
    }
    
    /* Layout asimmetrico/sfalsato stile agenzia d'élite */
    .work-grid .work-item:nth-child(even) {
        margin-top: 25vh; 
    }
}

.work-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Proporzione elegante per foto architettoniche */
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--border-radius-subtle);
}

.work-item img {
    width: 100%;
    /* Scale up the image to allow room for parallax movement */
    height: 130%;
    object-fit: cover;
    /* GSAP takes over transform, so we only transition filter */
    transition: filter 0.8s ease;
    will-change: transform, filter;
}

.work-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    width: 90%;
    pointer-events: none; /* Permette all'hover di non bloccarsi sul testo */
}

.work-info h3 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-accent-bronze);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.work-info p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.work-item:hover img {
    /* In JS we'll handle the scale alongside parallax, but if we do it in CSS it clashes with GSAP parallax Y translations. So we only darken it here. */
    filter: brightness(0.25); /* Scurisce l'immagine per far risaltare il testo */
}

.work-item:hover .work-info {
    opacity: 1;
    transform: translate(-50%, -50%); /* Sottile animazione verso l'alto */
}

/* ==========================================================================
   GLOBAL ADDITIONS (CURSOR, PRELOADER, FORMS)
   ========================================================================== */

/* Hide default cursor on desktop */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, select, input {
        cursor: none; /* Let the custom cursor handle hover states */
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent-bronze);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform; /* Hardware acceleration */
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: difference; /* Creates a nice inverse effect */
}
.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(205, 127, 50, 0.2); /* Bronze tint */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-pure-black);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(205, 127, 50, 0.3); /* Bronze transparent */
    border-top: 3px solid var(--color-accent-bronze);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Budget Select in Form */
.budget-select {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    border-radius: 0; /* Remove default iOS rounding */
    appearance: none; /* Remove default arrow */
}
.budget-select:focus {
    border-bottom-color: var(--color-accent-bronze);
}
.budget-select option {
    background-color: var(--color-bg-pure-black);
    color: var(--color-text-primary);
}

/* ==========================================================================
   RE-VIEW PAGE STYLES
   ========================================================================== */

/* Background specific for RE-VIEW Hero */
.review-hero {
    position: relative;
    background-image: url('assets/lavinia5.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}
.review-hero .container {
    position: relative;
    z-index: 3;
}

/* Intro Video */
.intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2; /* Sits above the background image but below text */
}

/* Typewriter Title */
.typewriter-title {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 300;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

/* Cinical Description */
.review-description {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
}

/* 3D Gallery */
.tilt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10vh;
    padding: 15vh 0;
}
@media (min-width: 768px) {
    .tilt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10vh 5vw;
    }
}
.tilt-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    perspective: 1000px; /* 3D perspective */
}
.tilt-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Resized to be fully visible */
    transform-style: preserve-3d;
    will-change: transform;
    border-radius: var(--border-radius-subtle);
}

/* ==========================================================================
   ABOUT PAGE STYLES (NEW)
   ========================================================================== */

/* 1. Cinematic Intro Overlay */
.about-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-pure-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000; /* Sotto il preloader, ma sopra tutto il resto */
}

.intro-logo {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--color-accent-bronze);
    letter-spacing: 0.2em;
    font-weight: 400;
    /* Inizialmente non visibile per evitare flash prima di GSAP */
    opacity: 0;
}

/* 2. Cinematic Hero */
.about-cinematic-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-bg-pure-black);
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Zoom iniziale che GSAP andrà a ridurre */
    transform: scale(1.2); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-content-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payoff-text {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--color-text-primary);
    text-transform: uppercase;
    text-align: center;
    /* Setup per l'animazione di letter-spacing */
    letter-spacing: 0.5em; 
    opacity: 0;
}

/* 3. Profiles Core */
.profiles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20vh; /* Ampio spazio tra un profilo e l'altro */
}

.profile-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .profile-card {
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
    }
    
    .layout-left .profile-image-col {
        grid-column: 1 / 6;
        grid-row: 1;
    }
    .layout-left .profile-text-col {
        grid-column: 7 / 12;
        grid-row: 1;
    }
    
    .layout-right .profile-image-col {
        grid-column: 8 / 13;
        grid-row: 1;
    }
    .layout-right .profile-text-col {
        grid-column: 2 / 7;
        grid-row: 1;
    }
}

.profile-image-col {
    position: relative;
}

.profile-image-col .tilt-container {
    aspect-ratio: 3/4; /* Rapporto elegante per i ritratti */
    border-radius: 0; 
    overflow: hidden;
    background-color: #e5e5e5; /* Colore cornice Polaroid */
    padding: 15px 15px 60px 15px; /* Spazio per sembrare una stampa */
    box-shadow: 0 25px 50px rgba(0,0,0,0.8); /* Ombra per profondità su sfondo nero */
}

.profile-image-col .tilt-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    /* Rimuoviamo scale(1.1) in modo che stia dentro la cornice senza debordare male nel padding */
}

/* Background Large Text */
.bg-large-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-family: var(--font-serif);
    font-size: clamp(20rem, 40vw, 45rem); /* Fatti ancora più grandi */
    color: var(--color-accent-bronze);
    opacity: 0.15;
    filter: blur(4px); /* Blur ridotto e opacità aumentata */
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    font-weight: 300;
    white-space: nowrap;
}

.profile-text-col {
    display: flex;
    flex-direction: column;
}

.profile-role {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-accent-bronze);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.profile-name {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    line-height: 1;
}

.profile-desc {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* 4. Closure Section */
.closure-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-pure-black);
    overflow: hidden;
}

.closure-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Clip path iniziale che verrà allargato da GSAP */
    clip-path: inset(20% 10% 20% 10%); 
}

.closure-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.closure-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.closure-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
}

.closure-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}

/* 5. Mission e Vision */
.mission-vision-section {
    position: relative;
    padding: 25vh 0;
    background-color: var(--color-bg-pure-black);
    overflow: hidden; /* prevents horizontal scroll when blocks slide in */
}

.mv-svg-container,
.profiles-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.mv-animated-svg,
.profiles-animated-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

#mv-path,
#profiles-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.mv-grid {
    display: flex;
    flex-direction: column;
    gap: 20vh;
    position: relative;
    z-index: 1;
}

.mv-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 1024px) {
    .mission-block {
        align-items: flex-start;
        padding-right: 15%;
    }
    
    .vision-block {
        align-items: flex-end;
        text-align: right;
        padding-left: 15%;
    }
}

.outline-text {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 8vw, 8rem);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-accent-bronze);
    text-stroke: 1.5px var(--color-accent-bronze);
    transition: color 0.5s ease;
    cursor: default;
    line-height: 1.1;
    margin-bottom: 2rem;
    white-space: nowrap;
}

.outline-text:hover {
    color: var(--color-accent-bronze);
}

.blur-focus-text {
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 300;
    max-width: 800px;
    /* initial state per GSAP */
    filter: blur(10px);
    opacity: 0;
}

/* ==========================================================================
   GLOBAL AMBIENT EFFECTS (WOW EFFECT)
   ========================================================================== */

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(205, 127, 50, 0.15) 0%, rgba(0,0,0,0) 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(10, 35, 66, 0.3) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(205, 127, 50, 0.08) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* ==========================================================================
   HOME PAGE: NEW SECTIONS (TICKER & CTA)
   ========================================================================== */

/* SERVICE TICKER */
.service-ticker-section {
    padding: 2rem 0;
    background-color: var(--color-bg-pure-black);
    border-top: 1px solid rgba(205, 127, 50, 0.2);
    border-bottom: 1px solid rgba(205, 127, 50, 0.2);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scrollTicker 20s linear infinite;
    will-change: transform;
}

.ticker-text {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-accent-bronze);
    white-space: nowrap;
    padding-right: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* FINAL CTA */
.final-cta-section {
    padding: 15vh 0;
    background-color: #0a0a0a; /* Grigio scurissimo per staccare dal pure black */
    border-top: 1px solid var(--color-accent-bronze);
    text-align: center;
    position: relative;
    z-index: 10;
}

.final-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.final-cta-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--color-text-primary);
    font-weight: 300;
    margin-bottom: 1rem;
}

/* ==========================================================================
   MOBILE OPTIMIZATION (< 768px)
   ========================================================================== */

/* Mobile Menu Overlay Styles (Applies everywhere, hidden by default) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    mix-blend-mode: normal; /* Modificato da difference per supportare il glassmorphism */
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(162, 109, 77, 0.15); /* Filo sottile bronzo */
}

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

.mobile-menu-overlay .nav-link {
    font-size: 3.5rem;
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    color: var(--color-primary-bronze);
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.mobile-menu-overlay .nav-link:active {
    color: #fff;
}

.hamburger-btn {
    display: none;
}

@media (max-width: 768px) {
    /* Ensure images resize adapting to the grid without breaking it */
    .bento-grid img, 
    .services-grid img, 
    .profiles-wrapper img, 
    .mv-grid img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .bento-item, .service-card {
        min-width: 0;
    }

    /* Navigation / Hamburger */
    .nav-pill .nav-link {
        display: none !important;
    }
    
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        min-height: 44px;
    }
    
    .hamburger-btn span {
        width: 30px;
        height: 2px;
        background-color: var(--color-primary-bronze);
        transition: 0.3s;
    }
    
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Center Logo when links are hidden */
    .nav-pill {
        justify-content: space-between;
        padding: 0 1rem;
    }

    /* Typography Adjustments */
    .bg-large-text {
        font-size: 10rem !important; /* reduce from clamp */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .monumental {
        font-size: 18vw !important; /* Scaled cleanly for mobile */
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        white-space: normal !important;
    }
    
    .monumental-mission {
        font-size: 13vw !important; /* Smaller to fit long text */
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .outline-text {
        font-size: 14vw !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
    }

    .ticker-text {
        font-size: 1.5rem !important;
    }

    .final-cta-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }

    /* UX Touch Targets */
    .submit-btn, .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    /* Hero Canvas (Adapt to mobile screen) */
    #hero-canvas {
        display: block !important;
        object-fit: contain !important; /* Adatta il video senza tagliare */
    }
    
    /* Spacing adjustments for mobile */
    .section, .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .hero-section {
        padding: 0 !important;
    }

    /* Mobile Bento Grid & Work Items */
    .bento-grid {
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
    }
    .bento-item, .work-item {
        width: 100% !important;
        min-height: auto !important;
    }
    .bento-item .hover-overlay {
        position: relative !important;
        opacity: 1 !important;
        background: transparent !important;
        height: auto !important;
        padding: 1rem 0 !important;
        pointer-events: auto !important;
    }
    .bento-item .hover-overlay h3 {
        color: var(--color-text-primary) !important;
    }
    .bento-item img, .work-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        aspect-ratio: 16/9;
    }

    /* Footer adjustments */
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Animation Throttle */
    .hud-line {
        animation-duration: 20s !important;
        opacity: 0.3 !important;
    }
    /* Hero Text Centering */
    .hero-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    
    .hero-side-text.right, .hero-side-text.left {
        text-align: center !important;
        margin: 1rem auto 0 auto !important;
    }

    /* About background images */
    .hero-bg-image, .closure-image {
        object-fit: contain !important;
    }

    /* Stack Profiles: Name & Role -> Photo -> Text */
    .profiles-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 6rem !important;
    }
    
    .profile-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .profile-text-col {
        display: contents !important; /* Makes its children part of profile-card flex */
    }

    .profile-role {
        order: 1;
        margin-bottom: 0 !important;
    }

    .profile-name {
        order: 2;
        margin-bottom: 0.5rem !important;
    }

    .profile-image-col {
        order: 3;
        width: 100%;
        margin-bottom: 1rem;
    }

    .profile-desc {
        order: 4;
    }
}

/* ==========================================================================
   5. CONTACT PAGE (The Atelier Form)
   ========================================================================== */
.contact-body {
    background-color: var(--color-bg-pure-black);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    height: 100vh; /* No scroll */
}

/* Bronze Glow Centered */
.centered-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(162, 109, 77, 0.15) 0%, rgba(0,0,0,0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.contact-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.contact-container {
    width: 100%;
    height: 100%;
    max-width: 1000px;
    padding: 120px 5vw 40px 5vw; /* Spazio per nav in alto e per chiudere sotto */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.contact-header {
    width: 100%;
    text-align: center;
}

.contact-title {
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--color-text-primary);
    line-height: 1.1;
    font-style: normal;
    margin-bottom: 1rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
    gap: 3rem;
    align-items: center;
}

.contact-form-wrapper {
    position: relative;
    width: 100%;
}

.atelier-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Gap ridotto per compattare */
    width: 100%;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(162, 109, 77, 0.3); /* Bronze line */
    color: var(--color-text-primary);
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    font-size: 1.5rem;
    padding: 15px 0 5px 0;
    outline: none;
    transition: border-color 0.4s ease;
    resize: none;
    position: relative;
    z-index: 2;
}

/* Etichette fluttuanti */
.form-group label {
    position: absolute;
    left: 0;
    top: 15px;
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5); /* 50% opacity */
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Quando l'input è in focus o contiene del testo (intercettato dal placeholder vuoto) */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.9rem;
    color: var(--color-primary-bronze);
    opacity: 1;
}

.form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-bronze);
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.error-glow {
    border-bottom-color: var(--color-primary-bronze) !important;
    box-shadow: 0 5px 15px rgba(162, 109, 77, 0.3) !important;
    transition: all 0.3s ease;
}


/* Submit Button */
.submit-btn {
    margin-top: 1rem;
    margin-bottom: 3rem; /* Molto staccato dal footer */
    width: 100%;
    max-width: 350px; /* Più piccolo e centrato */
    align-self: center; /* Centra il bottone nel form flex column */
    background: transparent;
    border: 1px solid var(--color-primary-bronze);
    color: var(--color-primary-bronze);
    padding: 1rem; /* Padding ridotto */
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    font-size: 1.2rem; /* Font più piccolo */
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: var(--border-radius-subtle);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--color-primary-bronze);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.submit-btn:hover::before {
    transform: translateY(0);
}

.submit-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.submit-btn:hover span {
    color: var(--color-bg-pure-black);
    font-weight: 600;
}

/* Success Message */
.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.success-message.hidden {
    display: none;
}

.success-message i {
    font-size: 3rem;
    color: var(--color-primary-bronze);
    margin-bottom: 1.5rem;
}

.success-message h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
}

/* Contact Info Footer */
.contact-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 3rem;
    width: 100%;
    padding-top: 2rem;
    opacity: 0.7;
}

.info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.info-subtitle {
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary-bronze);
    font-style: italic;
}

.info-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.info-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.info-link {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: var(--color-primary-bronze);
}

.contact-socials {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(162, 109, 77, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-bronze);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary-bronze);
    color: var(--color-bg-pure-black);
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-container {
        padding-top: 90px; /* Space for nav */
        padding-bottom: 20px;
    }
    
    .contact-body {
        height: auto; /* Allow scroll on mobile because screens are small */
        min-height: 100vh;
    }
    
    .contact-hero-section {
        height: auto;
        min-height: 100vh;
    }
    
    .contact-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .contact-footer {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1rem;
    }
}

/* ==========================================================================
   6. CUSCINI DI BONTÀ CONCEPT
   ========================================================================== */
.cuscini-bonta-body {
    background-color: var(--color-bg-pure-black);
    color: var(--color-text-primary);
    transition: background-color 1.5s ease;
}

.cuscini-title {
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--color-primary-bronze);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* Lettere pronte per l'animazione SplitType */
.cuscini-title .char {
    opacity: 0;
    transform: translateY(50px);
}

.glow-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(162, 109, 77, 0.25);
    transition: box-shadow 0.5s ease;
}

.glow-image:hover {
    box-shadow: 0 0 60px rgba(162, 109, 77, 0.5);
}

.cuscini-img-wrapper {
    width: 100%;
    will-change: transform;
}

.back-link {
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary-bronze);
    text-decoration: none;
    letter-spacing: 0.1em;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border: 1px solid transparent;
}

.back-link:hover {
    color: var(--color-bg-pure-black);
    background-color: var(--color-primary-bronze);
    border-radius: var(--border-radius-subtle);
}

.concept-label {
    display: inline-block;
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    font-size: 0.9rem;
    color: var(--color-primary-bronze);
    border: 1px solid var(--color-primary-bronze);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   7. BRANDANI CONCEPT: LUCIO & LOLA
   ========================================================================== */

/* Cursore Illuminante Effetto Torcia */
.cursor-light-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(162, 109, 77, 0.4) 0%, rgba(162, 109, 77, 0.1) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9998; /* Sotto il custom-cursor normale ma sopra lo sfondo */
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: screen;
}

/* Blueprint Grid Background */
.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(162, 109, 77, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(162, 109, 77, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    will-change: opacity;
}

.brandani-title {
    font-size: clamp(4rem, 8vw, 8rem);
    color: var(--color-primary-bronze);
    line-height: 1;
    margin-bottom: 0;
}

/* SplitType Setup for Brandani Title */
.brandani-title .char {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.phase-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-primary-bronze);
    text-align: center;
    border-bottom: 1px solid rgba(162, 109, 77, 0.3);
    padding-bottom: 1rem;
}

/* ==========================================================================
   8. MUSICOFFEE CONCEPT
   ========================================================================== */

/* Colori Base */
:root {
    --musicoffee-crema: #f5e6d3;
    --musicoffee-marrone: #4a2c11;
}

.musicoffee-body {
    background-color: var(--color-bg-pure-black);
    color: var(--musicoffee-crema);
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    overflow-x: hidden;
}

.musicoffee-title {
    font-size: clamp(4rem, 10vw, 9rem);
    color: var(--musicoffee-crema);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.musicoffee-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--musicoffee-marrone);
    font-weight: 300;
}

.musicoffee-concept {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 3rem auto 0;
    line-height: 1.6;
    color: rgba(245, 230, 211, 0.8);
}

.musicoffee-phase-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--musicoffee-marrone);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(74, 44, 17, 0.5);
    padding-bottom: 1rem;
}

/* Sound Waves Intro */
.sound-waves-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-pure-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.wave {
    width: 8px;
    height: 10px;
    background-color: var(--musicoffee-marrone);
    border-radius: 4px;
}

/* Guitar String Hover Effect */
@keyframes vibrateString {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.guitar-hover {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.guitar-hover:hover {
    animation: vibrateString 0.15s ease-in-out;
    transform: scale(1.03);
    filter: brightness(1.1) contrast(1.1);
}

.musicoffee-disclaimer {
    font-size: 1.1rem;
    opacity: 0.5;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.musicoffee-back-link {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--musicoffee-marrone);
    border-radius: 30px;
    text-decoration: none;
    color: var(--musicoffee-crema);
    font-family: 'EFFORT', 'Cormorant Garamond', var(--font-serif);
    transition: all 0.3s ease;
}

.musicoffee-back-link:hover {
    background-color: var(--musicoffee-marrone);
    color: var(--color-bg-pure-black);
}

/* ==========================================================================
   9. VESPA SEVENTY CONCEPT
   ========================================================================== */

.vespa-back-link:hover {
    background-color: #c0c0c0;
    color: #000 !important;
}

/* Starry Background for Parallax */
.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: 1;
    opacity: 0.6;
}

/* Showroom Horizontal Scroll */
.showroom-gallery::-webkit-scrollbar {
    display: none; /* Nasconde scrollbar */
}
.showroom-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Moon Easter Egg Cursor */
.moon-easter-egg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
    display: none; /* Appare solo dopo aver digitato MOON */
}
.moon-easter-egg.active {
    display: block;
}
.vespa-silhouette {
    position: absolute;
    font-size: 2rem;
    transform: translate(-50%, -50%);
    will-change: transform;
    animation: floatVespa 2s ease-in-out infinite;
    text-shadow: 0 0 10px #c0c0c0;
}
@keyframes floatVespa {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -10px; }
}

/* X-Ray Handle Active State */
.xray-container:active .xray-slider {
    cursor: grabbing;
}
