/* ============================================
   MODERN LUXURY DESIGN FOR L'ANTICO PORTONE
   ============================================ */

/* COLOR PALETTE & DESIGN TOKENS */
:root {
    /* Primary Colors - Luxury & Elegance */
    --primary-dark: #1a3a1a;       /* Deep forest green */
    --primary: #2b7a2b;             /* Accent green */
    --primary-light: #4a9d4a;       /* Light green */
    
    /* Neutrals - Premium Feel */
    --gold: #d4af37;                /* Subtle gold accent */
    --cream: #faf8f3;               /* Warm cream */
    --light-gray: #f5f3f0;          /* Off-white */
    --medium-gray: #8b8680;         /* Muted taupe */
    --dark-gray: #3d3d3d;           /* Deep gray */
    
    /* Secondary Colors */
    --accent-warm: #c8904c;         /* Warm bronze */
    --accent-cool: #6b9d9d;         /* Cool teal */
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing & Sizes */
    --maxw: 1200px;
    --spacing-unit: 1rem;
    --border-radius: 8px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    color: var(--dark-gray);
    background: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

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

/* ============================================
   CONTAINER & GRID UTILITIES
   ============================================ */

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid.two {
    grid-template-columns: 1fr 1fr;
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.grid.four {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid.two { grid-template-columns: 1fr; }
    .grid.three { grid-template-columns: repeat(2, 1fr); }
    .grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .grid.three { grid-template-columns: 1fr; }
    .grid.four { grid-template-columns: 1fr; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.site-header.hero-light {
    background: rgba(255, 255, 255, 0);
    box-shadow: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    max-width: var(--maxw);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-header.hero-light .logo {
    color: #fff;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
    transition: color 0.3s ease;
}

.site-header.hero-light nav a {
    color: rgba(255, 255, 255, 0.95);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.site-header.hero-light .menu-toggle {
    color: #fff;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-width: none;
    }

    nav.active {
        transform: translateX(0);
    }

    nav a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--light-gray);
        width: 100%;
    }

    nav a::after {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: #fff;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.btn.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
}

.btn.btn-light:hover {
    background: #fff;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Background color utilities */
.bg-white { background: #fff; }
.bg-cream { background: var(--cream); }
.bg-light-gray { background: var(--light-gray); }

/* ============================================
   CARDS & FEATURED CONTENT
   ============================================ */

.card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.card-text {
    color: var(--medium-gray);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    nav {
        gap: 0;
    }

    nav a {
        margin: 0;
    }
}

/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */

.floating-contacts {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #1fb354;
}

.phone-btn {
    background: var(--primary);
}

.phone-btn:hover {
    background: var(--primary-dark);
}

.email-btn {
    background: #d4af37;
    color: var(--primary-dark);
}

.email-btn:hover {
    background: #b8960e;
}

@media (max-width: 768px) {
    .floating-contacts {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .contact-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip:focus {
    top: 0;
}
