/* =========================================
   1. RESET & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --forest: #2D5016;
    --forest-light: #4A7C2E;
    --earth: #8B5E3C;
    --earth-light: #A67B5B;
    --sand: #D4A373;
    --sand-light: #E6C9A8;
    --cream: #FAF9F6;
    --beige: #F5F1E8;
    --dark: #2C241B;
    --dark-light: #4A3F35;
    --white: #FFFFFF;
    --leaf: #6B8E23;
    --terra: #C65D3B;
    --shadow: rgba(44, 36, 27, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.5s ease;
    will-change: opacity;
}
.loader-logo img.preloader-img {
    max-width: 150px; /* Regola la larghezza massima del logo */
    height: auto;     /* Mantiene le proporzioni */
    display: block;
    margin: 0 auto;   /* Centra l'immagine se necessario */
}

.loader-logo {
    max-width: 150px;
    height: auto;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--forest);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulseLogo 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
/* Solo barra navigazione — non il <header class="hero"> della home */
nav.site-nav,
#navbar.site-nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.15);
    transition: var(--transition);
}

header.hero {
    position: relative;
    width: 100%;
    background: transparent;
    border: none;
    z-index: 1;
}

nav.navbar {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--forest);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo-img {
    height: 80px; /* Regola l'altezza in base alle tue preferenze */
    width: auto;
}

/* Nav template (id navbar) */
nav.site-nav,
#navbar.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    transition: var(--transition);
}

#navbar.site-nav.scrolled {
    box-shadow: 0 4px 30px var(--shadow);
    background: rgba(250, 249, 246, 0.98);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:not(.cta-nav):not(.btn-auth)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-light);
    transition: width 0.3s ease;
}

.nav-links a:not(.cta-nav):not(.btn-auth):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--forest);
}

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 27, 0.4);
    z-index: 99999;
}

.menu-overlay.show {
    display: block;
}

.logo-footer::before {
    content: none;
}

.logo-footer {
    color: var(--sand-light) !important;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: rgba(250, 249, 246, 0.85);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--sand-light);
}

/* Pagine interne (prenota, login, area clienti) */
body.page-inner {
    background: var(--cream);
    color: var(--dark);
}

body.page-inner main {
    padding-top: 110px;
    padding-bottom: 4rem;
    min-height: 70vh;
}

.page-inner-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(212, 163, 115, 0.2);
    box-shadow: 0 20px 50px var(--shadow);
}

.page-inner-card h1,
.page-inner-card h2 {
    font-family: 'Playfair Display', serif;
    color: var(--forest);
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-inner-card input,
.page-inner-card select,
.page-inner-card textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(45, 80, 22, 0.2);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.page-inner-card input:focus,
.page-inner-card select:focus {
    outline: 3px solid rgba(45, 80, 22, 0.2);
    border-color: var(--forest);
}

.btn-forest {
    display: inline-block;
    background: var(--forest);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--forest);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-forest:hover {
    background: var(--forest-light);
    transform: translateY(-2px);
}

.alert-error {
    background: rgba(198, 93, 59, 0.1);
    color: var(--terra);
    border: 1px solid var(--terra);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(45, 80, 22, 0.1);
    color: var(--forest);
    border: 1px solid var(--forest-light);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(212, 163, 115, 0.15);
}

.contact-info-card li {
    list-style: none;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-card i {
    color: var(--forest);
    width: 24px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--cream);
        flex-direction: column;
        padding: 2rem;
        gap: 1.2rem;
        box-shadow: 0 10px 30px var(--shadow);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

.logo:hover {
    color: var(--forest-light);
}

.nav-list {
    display: flex;
    list-style: none !important;
    gap: 2.2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none !important;
    color: var(--dark) !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-light);
    transition: width 0.3s ease;
}

.nav-list li a:hover {
    color: var(--forest) !important;
}

.nav-list li a:hover::after {
    width: 100%;
}

/* CTA & Auth buttons */
.nav-list .btn-auth,
.cta-nav {
    background: var(--forest) !important;
    color: var(--white) !important;
    padding: 0.7rem 1.8rem !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    border: none !important;
}

.nav-list .btn-auth::after,
.cta-nav::after {
    display: none !important;
}

.nav-list .btn-auth:hover,
.cta-nav:hover {
    background: var(--forest-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.2) !important;
}

/* Profilo Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    background: var(--forest-light) !important;
    color: var(--white) !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}

.dropdown .dropbtn:hover {
    background: var(--forest) !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(44, 36, 27, 0.15);
    z-index: 110000;
    border: 1px solid rgba(212, 163, 115, 0.2);
    border-radius: 12px;
    margin-top: 12px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown-content.show {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--dark) !important;
    padding: 12px 20px;
    text-decoration: none !important;
    display: block;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(212, 163, 115, 0.1);
    transition: background 0.3s, color 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--beige);
    color: var(--forest) !important;
}

/* Hamburger mobile */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 100001 !important;
    position: relative;
    background: none;
    border: none;
}

.hamburger-menu .bar {
    width: 28px;
    height: 3px;
    background: var(--forest);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

#menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(44, 36, 27, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    z-index: 99998;
}

#menu-overlay.show {
    display: block;
}

@media screen and (max-width: 900px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-list {
        position: fixed;
        right: -100%;
        top: 0;
        width: 300px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        gap: 2rem;
        z-index: 99999;
        box-shadow: -10px 0 40px rgba(44, 36, 27, 0.15);
        padding: 2rem;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li a {
        font-size: 1rem;
    }

    .nav-list .dropbtn, 
    .nav-list .btn-auth {
        font-size: 0.9rem !important;
        padding: 10px 22px !important;
    }
}

/* =========================================
   3. HERO SECTION
   ========================================= */
main {
    padding-top: 90px;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 50%, #E8F5E9 100%);
    overflow: hidden;
    padding: 4rem 2rem;
    width: 100%;
    margin-bottom: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 142, 35, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 10s ease-in-out infinite reverse;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.03); }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--forest);
    font-style: italic;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--dark-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
}

.btn {
    background: var(--forest);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid var(--forest);
    display: inline-block;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

.btn:hover,
.btn-primary:hover {
    background: var(--forest-light);
    border-color: var(--forest-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(45, 80, 22, 0.25);
}

.btn-primary {
    background: var(--forest);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--forest);
    display: inline-block;
    transition: var(--transition);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

#services .services-grid-home {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--forest);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--forest);
    transition: var(--transition);
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--forest);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-install {
    background: transparent;
    color: var(--earth);
    border: 2px solid var(--earth);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

.btn-install:hover {
    background: var(--earth);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 94, 60, 0.2);
}

.hero-visual {
    position: relative;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(44, 36, 27, 0.15);
    aspect-ratio: 4/5;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 0.8rem 1.4rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge.vegan {
    top: 10%;
    left: -8%;
    border-left: 4px solid var(--leaf);
}

.floating-badge.organic {
    bottom: 15%;
    right: -5%;
    border-left: 4px solid var(--earth);
    animation-delay: 1s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--earth);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .floating-badge.vegan { left: 0; }
    .floating-badge.organic { right: 0; }
}

/* =========================================
   4. SECTIONS & LAYOUT SYSTEM
   ========================================= */
section {
    padding: 6rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--dark) !important;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.section-title span {
    color: var(--forest);
    font-style: italic;
}

.section-subtitle,
.page-subtitle {
    color: var(--dark-light);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), var(--sand));
    margin: 1.2rem auto;
    border-radius: 3px;
}

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.status-open {
    color: var(--forest);
    border: 1px solid var(--forest);
    background: rgba(74, 124, 46, 0.08);
}

.status-closed {
    color: var(--terra);
    border: 1px solid var(--terra);
    background: rgba(198, 93, 59, 0.08);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* =========================================
   5. PHILOSOPHY SECTION
   ========================================= */
.philosophy {
    background: linear-gradient(to bottom, var(--cream), var(--beige));
    position: relative;
    overflow: hidden;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.philosophy-image {
    position: relative;
    width: 100%;
}

.philosophy-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 25px 50px var(--shadow);
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.experience-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--forest);
    color: var(--white);
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(45, 80, 22, 0.3);
}

.experience-box .years {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-box .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.philosophy-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark) !important;
    font-family: 'Playfair Display', serif;
    text-align: left;
}

.philosophy-content > p {
    color: var(--dark-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    text-align: left;
}

.features-list li::before {
    content: '✓';
    width: 30px;
    height: 30px;
    background: rgba(45, 80, 22, 0.08);
    color: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media screen and (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .philosophy-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .experience-box {
        right: 10px;
    }
}

/* =========================================
   6. CARDS & SERVICE GRID
   ========================================= */
.card-container,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
    margin-top: 2rem;
}

.card,
.service-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(212, 163, 115, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 10px 30px rgba(44, 36, 27, 0.04);
}

.card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--forest), var(--sand));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(44, 36, 27, 0.1);
    border-color: rgba(212, 163, 115, 0.3);
}

.card:hover::before,
.service-card:hover::before {
    transform: scaleX(1);
}

/* Stile per Card con Immagine wrapper (es. Index o Chi Siamo) */
.card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.card img,
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover img {
    transform: scale(1.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card h3,
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-align: left;
    padding: 0;
}

.card p,
.service-card p {
    color: var(--dark-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
    opacity: 1;
    padding: 0;
}

.service-price {
    color: var(--forest);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    margin-top: auto;
}

.services-action-wrapper,
.btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 3.5rem;
}

/* =========================================
   7. STATS SECTION
   ========================================= */
.stats {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    color: var(--sand-light) !important;
}

.stat-item p {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--white);
    opacity: 0.9;
}

@media screen and (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   8. GALLERY / OASI
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 80, 22, 0.8) 0%, transparent 80%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }
    
    .gallery-item.wide {
        grid-column: span 2;
    }
}

@media screen and (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
    
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}
/* =========================================
   8. GALLERY / OASI (MOSAICO MULTI-CAROSELLO)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--shadow);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* --- Struttura Carosello Interno --- */
.carousel-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Effetto dissolvenza morbida */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Manteniamo l'effetto zoom originale al passaggio del mouse */
.gallery-item:hover .carousel-slide.active img {
    transform: scale(1.08);
}

/* L'overlay originale sale sopra le slide */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 80, 22, 0.8) 0%, transparent 80%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3; /* Sopra le slide */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Responsività originale garantita */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }
    .gallery-item.wide {
        grid-column: span 2;
    }
}

@media screen and (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}
/* =========================================
   9. TEAM SECTION
   ========================================= */
.team {
    background-color: var(--beige);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    width: 100%;
    margin-top: 2rem;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    border: 1px solid rgba(212, 163, 115, 0.15);
    box-shadow: 0 10px 30px rgba(44, 36, 27, 0.04);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(44, 36, 27, 0.1);
    border-color: rgba(212, 163, 115, 0.3);
}

.team-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--sand-light);
    padding: 4px;
    background: var(--white);
    transition: transform 0.4s ease;
}

.team-card:hover .team-img {
    transform: scale(1.04);
}

.no-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--forest);
    margin: 0 auto 1.5rem;
    border: 4px solid var(--sand-light);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.team-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.team-role {
    color: var(--forest);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--dark-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================================
   10. TESTIMONIALS
   ========================================= */
.testimonials {
    background: var(--white);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.testimonial-card {
    background: var(--cream);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(212, 163, 115, 0.15);
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--sand);
    opacity: 0.25;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.stars {
    color: var(--sand);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-style: italic;
    text-align: left;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-info h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--earth);
}

/* =========================================
   11. BOOKING CTA
   ========================================= */
.booking-cta {
    background: linear-gradient(135deg, var(--earth) 0%, var(--earth-light) 100%);
    color: var(--white);
    text-align: center;
    border-radius: 40px;
    padding: 5rem 3rem;
    margin: 4rem auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.booking-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.booking-cta h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--white) !important;
}

.booking-cta p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--earth);
    padding: 1.1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: 2px solid var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* =========================================
   12. FOOTER
   ========================================= */
footer {
    background: var(--dark);
    color: var(--cream);
    padding: 5rem 2rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    width: 100%;
}

.footer-brand .logo {
    color: var(--sand-light);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.footer-brand p {
    color: rgba(250, 249, 246, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(250, 249, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--forest-light);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--sand-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: left;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
    text-align: left;
}

.footer-column ul li a {
    color: rgba(250, 249, 246, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-column ul li a:hover {
    color: var(--sand-light);
}

.footer-contact p {
    color: rgba(250, 249, 246, 0.7);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
}

.footer-contact p i {
    color: var(--sand-light);
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 249, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(250, 249, 246, 0.5);
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
}

/* =========================================
   13. BOOKING WIZARD & FORMS
   ========================================= */
.booking-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
}

.booking-card {
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(212, 163, 115, 0.15);
    box-shadow: 0 20px 50px rgba(44, 36, 27, 0.08);
}

.page-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: var(--forest);
    margin-bottom: 2.5rem;
    font-size: 2.4rem;
    font-weight: 700;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3.5rem;
    padding: 0 1.5rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--beige);
    z-index: 1;
}

.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--sand);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
}

.step-dot.active {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.25);
}

.step-box {
    display: none;
}

.step-box.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.step-box h3 {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--beige);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.step-box h3 i {
    color: var(--forest);
}

/* Griglie interne agli step */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.item-sel {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 163, 115, 0.15);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.item-sel:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow);
    border-color: var(--forest-light);
}

.item-sel.selected {
    border-color: var(--forest);
    background: rgba(74, 124, 46, 0.05);
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.08);
}

.item-sel strong {
    font-size: 1.05rem;
    color: var(--dark);
    display: block;
    margin-bottom: 0.5rem;
}

.item-sel span {
    font-size: 0.85rem;
    color: var(--dark-light);
}

.item-sel .price {
    font-family: 'Playfair Display', serif;
    color: var(--forest);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-top: 0.5rem;
}

/* Orari slots */
.slot-btn {
    border: 1px solid var(--sand);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
    font-size: 0.9rem;
}

.slot-btn:hover {
    background: var(--beige);
    border-color: var(--forest-light);
}

.slot-btn.selected {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.2);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    gap: 1rem;
}

.btn-next, .btn-prev {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition);
}

.btn-next {
    background: var(--forest);
    color: var(--white);
    border: 2px solid var(--forest);
}

.btn-next:hover {
    background: var(--forest-light);
    border-color: var(--forest-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 80, 22, 0.15);
}

.btn-prev {
    background: var(--beige);
    color: var(--dark-light);
    border: 2px solid var(--beige);
}

.btn-prev:hover {
    background: rgba(44, 36, 27, 0.05);
}

/* Input moduli */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="tel"], 
input[type="date"],
select, 
textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--cream);
    border: 1px solid rgba(212, 163, 115, 0.3);
    border-radius: 12px;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--forest);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.08);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: sepia(1) saturate(5) hue-rotate(330deg); /* Colora l'icona in marrone/terra */
}

/* Box riepilogo finale */
#final-recap {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--cream);
    border-radius: 20px;
    border: 1px solid rgba(212, 163, 115, 0.2);
}

#final-recap h4 {
    color: var(--forest);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

#final-recap ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#final-recap li {
    font-size: 0.95rem;
    color: var(--dark-light);
}

.welcome-user-box {
    margin-bottom: 2rem;
    background: rgba(74, 124, 46, 0.05);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px dashed var(--forest-light);
}

.welcome-user-box h4 {
    margin: 0;
    color: var(--forest);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

/* Flatpickr inline customization */
.flatpickr-calendar {
    box-shadow: none !important;
    border: 1px solid rgba(212, 163, 115, 0.2) !important;
    border-radius: 20px !important;
    background: var(--cream) !important;
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 auto 1.5rem !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay {
    background: var(--forest) !important;
    border-color: var(--forest) !important;
    color: var(--white) !important;
}

/* Forza il colore base dei numeri a usare la variabile del tema */
.flatpickr-day {
    color: var(--dark) !important;
}

/* Sistema anche i giorni della settimana (Lun, Mar, ecc.) e l'anno */
span.flatpickr-weekday,
.flatpickr-current-month input.cur-year {
    color: var(--dark) !important;
}

/* Rendi i giorni disabilitati (es. passati) meno evidenti in entrambi i temi */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: var(--dark-light) !important;
    opacity: 0.5;
}
/* Contact box layout */
.contact-box {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(212, 163, 115, 0.15);
    max-width: 700px;
    margin: 2rem auto;
    box-shadow: 0 15px 40px rgba(44, 36, 27, 0.05);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--beige);
    padding-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info-list i {
    color: var(--forest);
    font-size: 1.3rem;
    width: 25px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-info-list strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--dark);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-info-list a {
    color: var(--dark-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-list a:hover {
    color: var(--forest);
}

/* =========================================
   14. ANIMATIONS & REVEALS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   15. ACCESSIBILITY & UTILITIES
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus-visible, 
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--forest);
    outline-offset: 2px;
}

/* =========================================
   15. TEMA MARRONE SCURO (DARK MODE)
   ========================================= */

/* =========================================
   15. TEMA MARRONE SCURO (DARK MODE)
   ========================================= */

.theme-brown {
    /* Sovrascriviamo le variabili principali con tonalità marrone/crema scuro */
    --cream: #3E2723;        /* Diventa lo sfondo principale (Marrone scuro) */
    --beige: #2D1A17;        /* Diventa lo sfondo secondario (Marrone ancora più scuro) */
    --white: #4E342E;        /* Diventa lo sfondo delle Card/Schede per farle staccare dal fondo */
    
    --dark: #F5F5F5;         /* Il testo principale diventa chiaro */
    --dark-light: #D7CCC8;   /* Il testo secondario diventa un crema morbido */
    --shadow: rgba(0, 0, 0, 0.4); /* Ombre scure adatte allo sfondo scuro */

    /* AGGIUNTA: Schiariamo il verde bosco per dare contrasto su tutti i tasti e testi */
    --forest: #81B655;       /* Un verde brillante e leggibile sul marrone scuro */
    --forest-light: #A3D17B; /* Un verde salvia ancora più chiaro per l'effetto hover */
}

/* Correzione per la Navbar: avendo un colore fisso in RGBA all'inizio del file, 
   dobbiamo aggiornarlo specificatamente per il tema marrone */
.theme-brown nav.site-nav,
.theme-brown #navbar.site-nav,
.theme-brown #navbar.site-nav.scrolled {
    background: rgba(45, 26, 23, 0.95);
    border-bottom: 1px solid rgba(212, 163, 115, 0.1);
}

/* Correzione per la sezione Hero: cambiamo la sfumatura per non mostrare il verde chiaro originario */
.theme-brown .hero {
    background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
}

/* Correzione per i link dei menu su mobile quando il menu è attivo */
@media screen and (max-width: 900px) {
    .theme-brown .nav-list {
        background: var(--beige);
    }
}

/* =========================================
   16. STILE DEL BOTTONE CAMBIO TEMA
   ========================================= */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--forest);
    color: var(--dark) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px !important;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: var(--transition) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle-btn:hover {
    background: var(--forest);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}
/* Di base (Tema Chiaro), mostra la luna e nascondi il sole */
.theme-toggle-btn .icon-sun {
    display: none;
}
.theme-toggle-btn .icon-moon {
    display: inline-block;
}

/* Quando il body ha la classe .theme-brown (Tema Scuro), inverti le icone */
body.theme-brown .theme-toggle-btn .icon-sun {
    display: inline-block;
    color: #FFB74D; /* Un bel colore giallo/arancio caldo per il sole che stacca sul marrone */
}
body.theme-brown .theme-toggle-btn .icon-moon {
    display: none;
}

/* Stile base per allineare le icone al testo */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.theme-toggle-btn .theme-icon {
    vertical-align: middle;
    transition: transform 0.3s ease;
}
.theme-toggle-btn:hover .theme-icon {
    transform: scale(1.15); /* Il sole o la luna si ingrandiscono leggermente al passaggio del mouse */
}

/* =========================================
   17. ECCEZIONE FOOTER (RESTA SEMPRE NERO)
   ========================================= */
/* Resettiamo le variabili solo all'interno del footer per ripristinare il tema scuro originale */
body.theme-brown footer, 
body.theme-brown .site-footer {
    --cream: #121212;        /* Torna allo sfondo nero/scuro originale del tuo footer */
    --white: #1a1a1a;        /* Eventuali card interne al footer tornano scure */
    --dark: #FFFFFF;         /* Il testo principale nel footer resta bianco pulito */
    --dark-light: #A0A0A0;   /* Il testo secondario/link nel footer resta grigio chiaro */
    
    /* Se avevi impostato dei colori fissi (hardcoded) nel footer originale, 
       li ripristiniamo qui per sicurezza */
    background-color: #121212 !important; 
    color: #FFFFFF !important;
}

/* Proteggiamo anche i link e le icone del footer nel tema marrone */
body.theme-brown footer a,
body.theme-brown .site-footer a {
    color: #A0A0A0 !important;
}

body.theme-brown footer a:hover,
body.theme-brown .site-footer a:hover {
    color: #FFFFFF !important; /* Il link si illumina di bianco al passaggio del mouse */
}
/* Trasforma il logo nel verde scuro (#2D5016) sul tema chiaro */
.logo-img {
    filter: brightness(0) saturate(100%) invert(26%) sepia(35%) saturate(995%) hue-rotate(53deg) brightness(94%) contrast(92%);
}

/* Lascia il logo nel suo oro originale sul tema scuro (marrone) */
body.theme-brown .logo-img {
    filter: none; 
}