:root {
    --text-primary: #000;
    --text-white: #fff;
    --font-lato: 'Lato', sans-serif;
    --font-libre: 'Libre Baskerville', serif;
}

html {
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-lato);
    color: var(--text-primary);
    background: #fff;
    overflow-x: hidden;
}

ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Mobile Arrow Animation */
@keyframes dispersion-reveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

.mobile-arrow-animation {
    animation: dispersion-reveal 2s ease-out forwards;
}
.lato-reg { font-family: var(--font-lato); font-weight: 400; }
.lato-500 { font-family: var(--font-lato); font-weight: 500; }
.libre-italic { font-family: var(--font-libre); font-style: italic; }
.libre-msg { font-family: var(--font-libre); font-weight: 400; }

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px; /* Reduced padding slightly */
    background: rgba(0, 0, 0, 0.7); /* Black glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: padding 0.3s ease;
}

.site-header.scrolled {
    padding: 10px 60px;
}

.header-logo {
    height: 60px; /* Adjust size as needed */
    width: auto;
    transition: height 0.3s ease;
    cursor: pointer;
}

.site-header.scrolled .header-logo {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text-white);
    font-family: var(--font-libre);
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Header Underline Rectangle */
.header-underline-rect {
    position: absolute;
    top: 120px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    height: 2px; /* Thickness of the rectangle/line */
    background-color: #fff; /* White to match text, or change color */
    z-index: 99;
    opacity: 0.5;
}

/* HERO SECTION - Exact Overlay & Text positioning simulation */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Image itself is fully opaque */
    z-index: 0;
}

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

/* HERO CONTENT WRAPPER */
.hero-content-wrapper {
    position: absolute;
    bottom: 15%; /* Keep original vertical position */
    left: 4.5%;  /* Start where the line was */
    width: 50%;
    max-width: 900px;
    z-index: 10;
    display: flex;
    align-items: stretch; /* Stretch line to match text height */
    gap: 30px; /* Space between line and text */
}

.hero-text-content {
    opacity: 0;
    animation: slideInLeft 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.vertical-line {
    width: 6px;
    background-color: #fff;
    opacity: 0;
    flex-shrink: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 2s;
}

.hero-text-content h1 {
    color: var(--text-white);
    font-size: 48px;
    line-height: 1.2;
    margin: 0;
}

/* Remove old separate styles */
/* .hero-content { ... } - REPLACED */
/* .hero-scroll-indicator { ... } - REMOVED */

/* Scroll Line - Decoration */
/* REMOVED OLD SELECTOR */

/* COMMON SECTION STYLES */
.intro-section, .production-intro, .service-section, .anniversary-section {
    position: relative;
    width: 100%;
    /* margin: 0 auto; Removed to allow full width/specific padding */
    padding: 80px 4.5%; /* Match left line of hero (4.5%) */
    scroll-margin-top: 120px; /* Offset for fixed header */
}

/* INTRO */
.intro-section {
    text-align: center;
    padding-top: 100px; /* Spacing from hero */
}

.section-title.libre-msg {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

.section-desc.lato-reg {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.4;
}

/* CATEGORIES ROW */
.categories-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.cat-pill-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Removed relative positioning as tooltip is no longer inside */
}

.central-location-info {
    text-align: center;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    height: 60px; /* Reserve space so it doesn't jump, or let it slide */
    pointer-events: none;
}

.central-location-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.central-location-info.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Removed .hover-info styles */

.pill-border {
    width: 160px;
    height: 58px;
    border: 1px solid #000;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pill-border:hover {
    background-color: #000;
    color: #fff;
}

.pill-text {
    font-family: var(--font-lato);
    font-size: 24px;
}

/* PRODUCTION */
.production-intro {
    text-align: center;
    padding-top: 100px;
}

.production-image {
    margin: 60px auto;
    max-width: 900px;
    opacity: 0; /* Hidden initially for animation */
}

.production-image.visible {
    animation: disperseInRight 1.5s ease-out forwards;
}

@keyframes disperseInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.production-subtext {
    margin-top: 60px;
}

.production-subtext p {
    font-size: 20px;
    margin-bottom: 20px;
}

.production-subtext .big-sub {
    font-size: 28px;
    line-height: 1.4;
}

/* SERVICE SECTIONS (Maison / StartUp) */
.service-section {
    margin-bottom: 100px;
}

.service-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    /* Simulate the specific widths */
}

/* Maison: Text Left (158px start), Img Right (944px start) */
.maison .service-container {
    flex-direction: row;
}

/* StartUp: Image Left, Text Right */
.startup .service-container {
    flex-direction: row; 
}
/* Let's be explicit with order */
.startup .service-img-col { order: 1; }
.startup .service-text-col { order: 2; }

.maison .service-text-col { order: 1; }
.maison .service-img-col { order: 2; }


.service-text-col {
    flex: 1;
    max-width: 630px; /* Matches 626px width in user HTML */
}

.service-img-col {
    flex: 1;
    max-width: 630px;
    display: flex;
    justify-content: center; /* Center the smaller image */
}

.service-img-col img {
    max-width: 400px; /* Reduced specific size */
    width: 100%;
    height: auto;
}

.service-title {
    font-size: 36px;
    margin-bottom: 30px;
}

.service-body {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 40px;
}

/* CTA BUTTON */
.cta-wrapper {
    position: relative;
    cursor: pointer;
    width: 240px; 
    height: 48px;
}

.cta-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #000;
    border-radius: 50px;
    top: 0; left: 0;
    transition: background-color 0.3s ease;
}

.cta-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-family: var(--font-lato);
    font-weight: 500;
    transition: color 0.3s ease;
}

.cta-wrapper:hover .cta-border {
    background-color: #000;
}

.cta-wrapper:hover .cta-text {
    color: #fff;
}

/* ANNIVERSARY */
.anniversary-section {
    padding-top: 100px;
    padding-bottom: 150px;
    position: relative;
}

/* The big outlined box */
.anniversary-border-box {
    position: relative;
    width: 65%; /* Approx 1060px / 1728 */
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.anniversary-border-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.anniversary-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.anniv-logo {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.anniv-logo img {
    height: 140px; /* Increased size */
    width: auto;
}

.big-anniv {
    font-size: 48px;
    margin-bottom: 40px;
}

.anniv-text-block {
    max-width: 900px;
    margin: 0 auto;
}

.anniv-text-block p {
    font-size: 20px;
    margin-bottom: 30px;
}

.anniv-text-block .quote {
    font-size: 24px;
}

.black-square-deco {
    width: 110px;
    height: 110px;
    background: #000;
    position: absolute;
    right: -55px; /* Half outside */
    bottom: -55px; /* Half outside */
    /* Adjust based on user coords: left 809, top 4775. Box is top 4397. 
       4775 - 4397 = 378px down inside a 553px box.
       809px left is roughly center-right.
    */
    /* Overriding simplistic "corner" placement to match visual description if possible, 
       but absolute creates trouble responsively. Let's center it at bottom for now. */
    left: 50%;
    transform: translateX(-50%);
    bottom: -55px;
}

/* FOOTER */
.site-footer {
    padding: 60px 40px 20px;
    background: #fff;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto 60px;
    gap: 40px;
}

.f-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    cursor: pointer;
    margin-left: 80px;
}

.small-head {
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase; /* Looks uppercase in screenshots usually */
}

.f-col p, .f-col a {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.f-col a:hover {
    color: #999;
}

.privacy-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #eee;
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: #666;
}


/* RESPONSIVE OVERRIDES */
@media (max-width: 1024px) {
    .hero-content {
        left: 5%;
        width: 80%;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }

    .service-container {
        flex-direction: column !important; /* Force stack */
        text-align: center;
    }

    .service-text-col, .service-img-col {
        max-width: 100%;
    }

    .cta-wrapper {
        margin: 0 auto; /* Center button */
    }

    .anniversary-border-box {
        width: 90%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 20px;
        background: rgba(0,0,0,0.8); /* readable on mobile */
    }
    
    .main-nav ul {
        gap: 15px;
        font-size: 12px;
    }
    
    .main-nav a { font-size: 12px; }

    .hero-content h1 {
        font-size: 28px;
    }

    .section-title.libre-msg {
        font-size: 28px;
    }

    .section-desc.lato-reg, .service-body, .production-subtext p {
        font-size: 18px;
    }

    .categories-row {
        flex-direction: column;
        align-items: center;
    }

    .footer-columns {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .anniversary-border-box {
        border: none; /* Remove box on tiny screens if tight */
        padding: 0;
    }
    
    .big-anniv { font-size: 32px; }
}

/* NON-MOBILE DEFAULT STYLE */
.mobile-layout {
    display: none;
}

/* MOBILE LAYOUT & RESPONSIVENESS (BREAKPOINT 1400px) */
@media (max-width: 1400px) {
    /* Hide ALL Desktop Elements */
    .desktop {
        display: none !important;
    }

    /* Show Mobile Layout */
    .mobile-layout {
        display: block !important;
        width: 100%;
        min-height: 100vh; /* Minimum height to cover screen */
        overflow-x: hidden;
        /* absolute positioning might cause scroll issues if body height is 0 */
        /* Changed to relative so it expands the body */
        position: relative; 
        top: 0;
        left: 0;
        background: white;
        z-index: 99999; 
    }
    
    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        background: white; /* Ensure body background doesn't interfere */
    }


    /* Reset some global styles that might interfere */
    .site-header, .hero-section, .intro-section, 
    .production-intro, .service-section, .anniversary-section, 
    .site-footer {
        display: none !important;
    }
    
    /* Container interno del design mobile */
    .mobile-design-container {
        position: relative;
        width: 393px; /* Larghezza originale del design */
        /* margin: 0 auto;  Removed to avoid conflict with center calculation */
        /* transform-origin handled inline or by JS */
        overflow: hidden;
    }
    
    /* Mobile Sidebar Menu */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #000;
        z-index: 999999;
        transition: right 0.3s ease;
        padding-top: 80px;
    }
    
    .mobile-sidebar.open {
        right: 0;
    }
    
    .mobile-sidebar-close {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 40px;
        cursor: pointer;
        font-weight: 300;
        line-height: 1;
    }
    
    .mobile-sidebar-nav {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }
    
    .mobile-sidebar-nav a {
        color: white;
        font-family: 'Libre Baskerville', serif;
        font-size: 18px;
        padding: 20px 0;
        text-decoration: none;
        border-bottom: 1px solid #333;
        transition: color 0.3s ease;
    }
    
    .mobile-sidebar-nav a:hover {
        color: #999;
    }
    
    .mobile-sidebar-logo {
        position: absolute;
        bottom: 60px;
        left: 0px;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-sidebar-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1);
        opacity: 1;
    }
    
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .mobile-sidebar-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Contact Button */
    .contact-button {
        width: 209px;
        height: 45px;
        left: 92px;
        top: 2462px;
        position: absolute;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .contact-button-border {
        width: 100%;
        height: 100%;
        border-radius: 50px;
        border: 1px black solid;
        position: absolute;
        transition: all 0.3s ease;
    }
    
    .contact-button-text {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: black;
        font-size: 20px;
        font-family: 'Lato', sans-serif;
        font-weight: 400;
        white-space: nowrap;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .contact-button:hover .contact-button-border {
        background: black;
    }
    
    .contact-button:hover .contact-button-text {
        color: white;
    }
    
    /* Mobile Fixed Header */
    .mobile-fixed-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 100000;
        pointer-events: none;
    }
    
    .mobile-header-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: black;
        pointer-events: auto;
    }
    
    .mobile-header-logo {
        position: absolute;
        width: 48px;
        height: 47.12px;
        left: 15px;
        top: 11px;
        cursor: pointer;
        pointer-events: auto;
    }
    
    .mobile-header-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .mobile-header-burger {
        position: absolute;
        width: 24px;
        height: 20.57px;
        right: 15px;
        top: 24px;
        cursor: pointer;
        pointer-events: auto;
    }
    
    .mobile-header-burger img {
        width: 100%;
        height: 100%;
        display: block;
    }
}
