/* ==========================================================================
   Base & Variables
   ========================================================================== */
   :root {
    /* Colors */
    --color-primary: #D4AF37; /* Gold/Bronze accent */
    --color-primary-dark: #B5952F;
    --color-bg-dark: #121212;
    --color-bg-light: #F8F9FA;
    --color-surface: #1E1E1E;
    --color-text-light: #F3F4F6;
    --color-text-muted: #9CA3AF;
    --color-text-dark: #1F2937;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --header-height: 110px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

.text-white {
    color: var(--color-text-light) !important;
}

.text-white-50 {
    color: var(--color-text-muted) !important;
}

.bg-light {
    background-color: #FFFFFF;
}

.highlight {
    color: var(--color-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 500;
    font-family: var(--font-heading);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: #000;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-normal);
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 80px; 
    filter: invert(1) brightness(100);
    transition: height 0.3s ease;
}

#header.scrolled .logo {
    height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-links li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-light);
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-subtitle {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.about-image-wrapper {
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.1);
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--color-primary);
    color: #000;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-description {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-text {
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.service-link {
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover {
    color: var(--color-primary-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
}

.contact-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 5px;
}

.contact-list h4 {
    margin-bottom: 5px;
    color: var(--color-text-light);
}

.contact-list p {
    color: var(--color-text-muted);
}

.contact-form-container {
    padding: 60px;
    background: #fff;
    color: var(--color-text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-dark);
    background-color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0A0A0A;
    color: var(--color-text-muted);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Micro-interactions
   ========================================================================== */
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.fade-in-up.visible, .fade-in-left.visible, .fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .about-container { grid-template-columns: 1fr; }
    .about-image-wrapper { order: -1; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, implement a mobile menu toggle here */
    }
    .header-actions .btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .stats { flex-direction: column; gap: 20px; }
    .contact-info, .contact-form-container { padding: 40px 20px; }
}

/* Modals Prima e Dopo */
.ba-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.ba-modal-content {
    background-color: #1A1A1A;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--color-primary);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeInModal 0.3s ease-out forwards;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.ba-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.ba-close:hover,
.ba-close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    user-select: none;
}
.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba-image-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Default starting position */
    height: 100%;
    overflow: hidden;
    border-right: 4px solid var(--color-primary);
}
.ba-image-before {
    width: 800px; /* Needs to match max-width to keep aspect ratio if needed, or we use vw/vh tricks. Actually, object-fit cover handles this if width is 100% of container. Wait, if wrapper is 50%, img width 100% of wrapper will squish it. Let's fix this in JS or CSS. */
    height: 100%;
    object-fit: cover;
}
/* Fix for ba-image-before so it doesn't squish when wrapper width changes: */
.ba-slider-container .ba-image-before-wrapper img {
    width: 100vw;
    max-width: 758px; /* 800px - padding */
    height: 100%;
    object-fit: cover;
}
@media (min-width: 840px) {
    .ba-slider-container .ba-image-before-wrapper img {
        width: 758px;
    }
}
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: transparent;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-handle-button {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    pointer-events: none; /* Let handle catch the drag */
}
.ba-label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 4px;
    font-weight: bold;
    z-index: 5;
    pointer-events: none;
    letter-spacing: 1px;
}
.ba-label-before {
    left: 20px;
}
.ba-label-after {
    right: 20px;
}

/* Splash Screen e Watermark */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
}
.splash-logo {
    width: 90%;
    max-width: 1000px;
    height: auto;
    filter: invert(1) brightness(100);
    animation: pulseLogo 2s infinite ease-in-out;
}
@keyframes pulseLogo {
    0% { transform: scale(0.98); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0.8; }
}

#watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05; /* Molto trasparente */
}
.watermark-logo {
    width: 90vw;
    max-width: 1200px;
    height: auto;
    filter: invert(1) brightness(100);
}
