:root {
    /* Palette Base Ufficiale */
    --color-primary: #5A4329;      /* Marrone Classico del Logo */
    --color-primary-dark: #3B2A18; /* Marrone Scuro */
    --color-secondary: #CBBCAE;    /* Taupe/Sabbia della linea */
    
    /* Sfondi & Superfici */
    --color-bg: #FCFBF9;           /* Bianco Panna caldissimo */
    --color-bg-alt: #F9F7F4;       /* Ecrù leggero per sezioni alterne */
    --color-white: #FFFFFF;
    
    /* Testi */
    --color-text: #3B2A18;         /* Marrone Scuro per contrasto morbido */
    --color-text-light: #7B6B59;   /* Marrone caldo medio per i paragrafi */
    
    /* Tipografia */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    
    /* Antigravity Design Tokens */
    --transition-smooth: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s ease;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --shadow-soft: 0 20px 40px rgba(59, 42, 24, 0.05); /* Diffused elegant shadow */
    --shadow-float: 0 40px 80px rgba(59, 42, 24, 0.1);
}

/* ================== GLOBAL RESET ================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    perspective: 1200px; /* Base 3D space */
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; color: var(--color-text); margin-bottom: 1.2rem; line-height: 1.3; }
h1 { font-size: 4rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1.5rem; color: var(--color-text-light); }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
img { max-width: 100%; height: auto; display: block; }
.text-center { text-align: center; }

/* ================== BUTTONS ================== */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(90, 67, 41, 0.15);
    will-change: transform;
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: perspective(1000px) translateY(-4px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(90, 67, 41, 0.25);
}
.w-100 { width: 100%; }

/* ================== NAVBAR ================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 24px 0;
    z-index: 1000; transition: var(--transition-smooth); background: transparent;
}
.navbar.scrolled {
    background: rgba(252, 251, 249, 0.85); /* Accentuated Glassmorphism */
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding: 15px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.nav-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.logo a { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 500; color: var(--color-text); text-transform: uppercase; letter-spacing: 2px; display: flex; flex-direction: column; align-items: flex-start; }
.logo-subtitle { font-family: var(--font-accent); font-style: italic; font-size: 0.95rem; color: var(--color-primary); margin-top: -6px; letter-spacing: 0; font-weight: 400; text-transform: none; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 36px; }
.nav-links li a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-light); }
.nav-links li a:hover { color: var(--color-primary); transform: translateY(-2px); display: inline-block; }
.btn-prenota { background-color: var(--color-text); color: var(--color-white) !important; padding: 10px 24px; border-radius: 40px; }
.btn-prenota:hover { background-color: var(--color-primary); transform: perspective(800px) translateY(-3px) translateZ(10px); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* ================== LAYOUT & SECTIONS ================== */
.section { padding: 140px 24px; overflow: hidden; }
.container { max-width: 1240px; margin: 0 auto; }
.bg-light { background-color: var(--color-bg-alt); }
.section-subtitle { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 12px; }
.split-layout { display: flex; align-items: center; gap: 80px; }
.split-layout > * { flex: 1; }

/* ================== HERO SECTION ================== */
.hero {
    height: 100vh; min-height: 700px; background-size: cover; background-position: center 30%;
    position: relative; display: flex; align-items: center; padding: 0 24px;
    background-attachment: fixed; /* Intro Paralax focus */
    overflow: hidden;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(105deg, rgba(252, 251, 249, 0.92) 0%, rgba(252, 251, 249, 0.45) 60%, transparent 100%);
}
.hero-content {
    position: relative; max-width: 650px; margin-left: max(0px, calc((100vw - 1240px) / 2));
    will-change: transform, opacity;
}

/* ================== GLASS & IMAGES (Antigravity Rules) ================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 12px;
    will-change: transform;
}
.image-wrapper { overflow: hidden; transform-style: preserve-3d; }
.portrait-img {
    width: 85%; max-height: 500px; object-fit: cover; margin: 0 auto; display: block;
    border-radius: calc(var(--border-radius-lg) - 8px);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.image-wrapper:hover .portrait-img { transform: scale(1.05) translateZ(20px); }

/* ================== SERVICES CARDS ================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; margin-top: 60px; perspective: 1200px; }
.service-card {
    background: var(--color-white);
    padding: 48px 36px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: left;
    border: 1px solid rgba(255,255,255,0.8);
    transition: var(--transition-smooth);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}
.service-card:hover {
    transform: perspective(1000px) rotateX(6deg) rotateY(-4deg) translateY(-8px);
    box-shadow: var(--shadow-float);
}
.service-card h3 { transition: transform 0.4s; }
.service-card:hover h3 { transform: translateZ(20px); }

.service-icon { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 24px; box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.icon-placeholder { width: 80px; height: 80px; background: var(--color-bg-alt); color: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 24px; }

/* ================== CONTACT FORM ================== */
.form-wrapper { padding: 48px; background: rgba(255, 255, 255, 0.65); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 500; font-size: 0.95rem; color: var(--color-text); }
.form-group input, .form-group textarea { width: 100%; padding: 16px 20px; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--border-radius); font-family: inherit; font-size: 1rem; background: rgba(255,255,255,0.9); transition: var(--transition-smooth); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(90, 67, 41, 0.12); transform: translateY(-2px); }
.form-status { margin-top: 15px; font-weight: 500; }
.form-status.success { color: var(--color-primary); }
.form-status.error { color: #d32f2f; }

.privacy-wrapper { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; text-align: left; }
.privacy-wrapper input[type="checkbox"] { flex-shrink: 0; width: 22px; height: 22px; cursor: pointer; accent-color: var(--color-primary); }
.privacy-wrapper label { margin-bottom: 0; font-weight: 400; line-height: 1.5; color: var(--color-text); }
.privacy-wrapper a { text-decoration: underline; color: var(--color-primary); font-weight: 500; }

/* ================== ANIMATIONS ================== */
.footer { background-color: var(--color-text); color: var(--color-white); padding: 80px 24px; }
.footer p { color: rgba(255,255,255,0.7); margin-bottom: 6px; font-size: 0.9rem;}
.footer-logo { color: var(--color-white); margin-bottom: 16px; font-family: var(--font-heading); }

/* ================== RESPONSIVE ================== */
@media (max-width: 968px) {
    h1 { font-size: 3rem; } h2 { font-size: 2.2rem; }
    .split-layout { flex-direction: column; gap: 40px; }
    .hero-content { margin-left: 0; max-width: 100%; }
    .hero-overlay { background: rgba(252, 251, 249, 0.88); }
    .nav-links { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: var(--color-bg); flex-direction: column; padding: 20px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; text-align: center; gap: 20px; }
    .hamburger { display: block; cursor: pointer; }
    .form-wrapper { padding: 32px 20px; }
}
