:root {
    --burgundy: #4A0E0E;
    --burgundy-light: #5E1212;
    --gold: #C5A059;
    --gold-dark: #A68545;
    --cream: #FDFBF7;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #666666;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-slow: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(74, 14, 14, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, transform 0.1s ease-out;
}

#cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.2);
    backdrop-filter: blur(2px);
}

#cursor-follower.hovered {
    width: 0;
    height: 0;
    opacity: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo, .signature p, .footer-logo {
    font-family: 'Playfair Display', serif;
}

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

.section {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-cream { background-color: var(--cream); }
.bg-burgundy { background-color: var(--burgundy); }

.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold);
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    position: relative;
}

p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    border-radius: 0; /* Premium sharp edges */
    cursor: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
    margin-left: 20px;
}

.btn-outline:hover {
    border-color: var(--white);
    background-color: var(--white);
    color: var(--burgundy);
}

.btn-full {
    width: 100%;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 35px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header.scrolled {
    background-color: var(--burgundy);
    padding: 20px 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

header.scrolled .logo a {
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--white);
}

.nav-links a:hover {
    color: var(--gold);
}

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

/* Hero Scroll Sequence */
#hero-scroll-container {
    height: 300vh; /* creates scroll space */
    position: relative;
    background: var(--black);
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('https://images.unsplash.com/photo-1624715636409-6c1b6bc4fe9a?q=80&w=2064&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

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

.hero-content-1, .hero-content-2 {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    will-change: transform, opacity;
}

.hero-content-1 h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}
.hero-content-1 h1 span {
    color: var(--gold);
    font-style: italic;
}
.hero-content-1 p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-content-2 {
    opacity: 0;
    transform: translateY(50px);
    text-align: center;
}

.hero-content-2 h2 {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 0;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Chi Siamo */
.premium-frame {
    position: relative;
    padding: 20px;
}

.premium-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 2px solid var(--gold);
    z-index: -1;
}

.premium-frame img {
    width: 100%;
    display: block;
    box-shadow: var(--shadow);
}

.signature {
    margin-top: 40px;
}

.signature p {
    font-size: 2rem;
    color: var(--burgundy);
    margin-bottom: 0;
}

.signature span {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 1px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition-slow);
    text-align: left;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.service-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 120%; /* Extra height for parallax */
    position: absolute;
    top: -10%;
    left: 0;
    will-change: transform;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center;
}

.service-card:hover .service-img img {
    transform: scale(1.08);
}

.service-info {
    padding: 40px 30px;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--burgundy);
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.service-link .arrow {
    display: inline-block;
    transition: var(--transition);
}

.service-link:hover .arrow {
    transform: translateX(10px);
}

/* Testimonianze */
.testimonial-slider {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    opacity: 0.3;
    transition: var(--transition);
}

.testimonial-card.active {
    opacity: 1;
}

.stars {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--black);
    margin-bottom: 30px;
    line-height: 1.8;
}

.author strong {
    display: block;
    font-size: 1.2rem;
    color: var(--burgundy);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.slider-btn {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 20px;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.slider-dots {
    display: flex;
}

.dot {
    width: 8px;
    height: 8px;
    background: #DDD;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--gold);
    width: 25px;
    border-radius: 10px;
}

/* Direct Contact Section (Editorial Brutalism / Luxury Minimal) */
.direct-contact-section {
    padding: 120px 0;
    background-color: var(--burgundy);
    color: var(--white);
    text-align: center;
}

.contact-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.contact-subheadline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.massive-phone-wrap {
    margin: 60px 0;
}

.massive-phone {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--burgundy);
    background-color: var(--gold);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    display: inline-block;
    padding: 30px 60px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
    position: relative;
    letter-spacing: -1px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.massive-phone::after {
    /* No underline effect anymore since it's a box */
    display: none;
}

.massive-phone:hover {
    color: var(--burgundy);
    background-color: #e0b04a; /* Slightly darker gold */
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.phone-prefix {
    font-size: 0.5em;
    vertical-align: super;
    opacity: 0.8;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.contact-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--gold);
}

.divider-dot {
    color: var(--gold);
}

.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--white);
}

.footer-logo {
    font-size: 2.5rem;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.footer-divider {
    height: 1px;
    background: #EEE;
    margin: 40px 0;
}

.copyright {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Animations */
.reveal-text, .reveal-card, .reveal-image {
    opacity: 0;
    will-change: transform, opacity, filter;
}

.reveal-text {
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-card {
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-image {
    transform: scale(0.95);
    filter: blur(5px);
    transition: opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1), transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), filter 1.5s ease;
}

.reveal-text.active, .reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Mobile Responsive */
@media (max-width: 992px) {
    #hero h1 { font-size: 3.5rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 50px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    #hero h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .services-grid { grid-template-columns: 1fr; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
        margin-left: 20px;
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--white);
        transition: var(--transition);
    }

    header.scrolled .menu-toggle span {
        background-color: var(--white);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        color: var(--black);
        font-size: 1.2rem;
        font-weight: 600;
    }

    .nav-cta {
        display: none;
    }

    .contact-form-wrapper { padding: 30px; }
    .form-row { grid-template-columns: 1fr; }
}

.no-scroll {
    overflow: hidden;
}

/* Pinned Services Sequence */
#services-scroll-container {
    height: 400vh; /* 3 services = 300vh + 100vh for natural flow */
    position: relative;
    background: var(--black);
}

.services-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    color: var(--white);
}

.services-header {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.service-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    will-change: opacity, transform;
}

.service-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(15,10,10,0.9) 0%, rgba(15,10,10,0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 10%;
    max-width: 600px;
    z-index: 2;
    transform: translateY(30px);
}

.slide-content h3 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.slide-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 700px;
    background: var(--white);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 60px;
    color: var(--black);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--burgundy);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    outline: none;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-content .subtitle {
    display: block;
    margin-bottom: 10px;
}

.modal-content h2 {
    color: var(--burgundy);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.modal-body ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--gray);
}

.modal-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}
