/* 
* Casa Famiglia Gramsci - Modern Design System
* Completely redesigned with contemporary aesthetics
*/

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette di colori unificata e moderna */
    --primary-color: #2C3E50;      /* Blu scuro elegante */
    --secondary-color: #D4A574;    /* Beige dorato caldo */
    --accent-color: #8B4513;       /* Marrone scuro */
    --neutral-100: #F8F9FA;        /* Grigio molto chiaro */
    --neutral-200: #E9ECEF;        /* Grigio chiaro */
    --neutral-300: #DEE2E6;        /* Grigio medio chiaro */
    --neutral-400: #CED4DA;        /* Grigio medio */
    --neutral-500: #6C757D;        /* Grigio */
    --neutral-600: #495057;        /* Grigio scuro */
    --neutral-700: #343A40;        /* Grigio molto scuro */
    --neutral-800: #212529;        /* Quasi nero */
    --neutral-900: #1A1D20;        /* Nero */
    
    /* Colori di sfondo */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-accent: #2C3E50;
    --bg-warm: #F5F1ED;            /* Sfondo caldo */
    
    /* Font families unificate */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-accent: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--neutral-800);
    overflow-x: hidden;
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw; /* Previene overflow orizzontale */
}

/* Hero section specific styles */
.hero {
    color: #FFFFFF;
}

.hero h1,
.hero h2 {
    color: #FFFFFF;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback per noscript */
.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay scuro per leggibilità */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Contenuto Hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    text-align: center;
    padding: 1rem;
}

/* Tipografia */
h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem; /* Mobile: 2.2rem */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.2rem; /* Mobile: 1.2rem */
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Bottone CTA */
.cta-button {
    display: inline-block;
    background-color: #D4A574;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.cta-button:hover, .cta-button:focus {
    background-color: #B8935A;
}

/* CTA sticky su mobile */
.cta-sticky {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

/* Media queries per responsive design */
@media screen and (min-width: 768px) {
    .hero-content {
        max-width: 80%;
    }
    
    h1 {
        font-size: 3.2rem; /* Desktop: 3.2rem */
    }
    
    h2 {
        font-size: 1.6rem; /* Desktop: 1.6rem */
    }
    
    /* Disattiva sticky CTA su desktop */
    .cta-sticky {
        position: static;
        transform: none;
        width: auto;
        box-shadow: none;
    }
}

/* Supporto per preferenze di riduzione movimento */
@media (prefers-reduced-motion: reduce) {
    #heroVideo {
        display: none;
    }
    
    /* Mostra l'immagine fallback quando il video è nascosto */
    .hero-video-container::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('images/Coazze - Casa Famiglia Gramsci/Spazi Comuni.avif');
        background-size: cover;
        background-position: center;
        z-index: 0;
    }
}

/* 
* Sezione Chi Siamo - Design Moderno
* Layout asimmetrico e tipografia elegante
*/

/* Layout base e contenitore */
.about-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #ffffff 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23f8f9fa" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box; /* Include padding nel calcolo della larghezza */
}

/* Contenitore flessibile per layout responsive */
.about-content {
    display: flex;
    flex-direction: column; /* Stacked su mobile */
    gap: 2rem;
}

/* Stili testo moderni */
.about-text h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: var(--radius-sm);
}

.about-text p {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--neutral-700);
    font-weight: 400;
}

/* Stile citazione callout moderno */
.quote-callout {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--neutral-100) 100%);
    border: none;
    border-left: 4px solid var(--secondary-color);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.6;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    color: var(--neutral-800);
}

.quote-callout::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    font-size: 4rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    line-height: 1;
}

/* Carosello elegante */
.about-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--neutral-100) 0%, #ffffff 100%);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.carousel-slide.active img {
    transform: scale(1.05);
}

/* Indicatori del carosello */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Media query per tablet e desktop */
@media screen and (min-width: 768px) {
    .about-section {
        padding: 80px 0; /* Padding verticale più grande su desktop */
    }
    
    .about-content {
        flex-direction: row; /* Layout a due colonne su desktop */
        align-items: center;
    }
    
    .about-text {
        flex: 1;
        padding-right: 2rem;
    }
    
    .about-carousel {
        flex: 1;
        height: 500px;
    }
    
    .about-text p {
        font-size: 1.2rem; /* Testo più grande su desktop */
    }
    
    .about-text h2 {
        font-size: 2.4rem; /* Titolo più grande su desktop */
    }
}

/* 
* Sezione Servizi Offerti - Nuovo Design con Card Sovrapposte
* Effetto libro che scorre con animazioni scroll
*/

/* Background elegante per la sezione */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0 60px;
    color: var(--neutral-800);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23f8f9fa" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

/* Contenitore con sfondo trasparente */
.services-section .container {
    position: relative;
    z-index: 1;
}

/* Intestazione moderna */
.services-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.services-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.services-header p {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-700);
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Carosello servizi */
.services-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem;
    height: 500px;
    padding: 0 3rem; /* Spazio per le frecce */
}

/* Container delle card */
.services-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Card individuali nel carosello */
.service-card-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    opacity: 0;
    transform: translateX(100px) rotateY(15deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--neutral-200);
    backdrop-filter: blur(10px);
    overflow: hidden;
    will-change: transform, opacity;
}

/* Card attiva (visibile) */
.service-card-carousel.active {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
    z-index: 10;
}

/* Card in arrivo (prossima) */
.service-card-carousel.next {
    opacity: 0.2;
    transform: translateX(30px) rotateY(5deg) scale(0.98);
    z-index: 5;
}

/* Card in partenza (precedente) */
.service-card-carousel.prev {
    opacity: 0.1;
    transform: translateX(-30px) rotateY(-5deg) scale(0.98);
    z-index: 1;
}

/* Nascondi completamente le card non attive */
.service-card-carousel:not(.active):not(.next):not(.prev) {
    opacity: 0;
    transform: translateX(100px) rotateY(15deg);
    z-index: 0;
}

/* Animazione di entrata per la prima card */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

.service-card-carousel.active {
    animation: cardEnter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Frecce di navigazione */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 2px solid var(--neutral-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

/* Contenuto della card */
.service-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

/* Wrapper per l'icona */
.service-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Icone servizi */
.service-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.service-card-stack.active .service-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Testo della card */
.service-text {
    text-align: center;
}

.service-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.service-text p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--neutral-700);
    max-width: 600px;
    margin: 0 auto;
}

/* Indicatori di progresso */
.services-progress {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--neutral-300);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
    border-color: var(--secondary-color);
}

.progress-dot:hover {
    background-color: var(--secondary-color);
    transform: scale(1.2);
    border-color: var(--primary-color);
}

/* CTA Section - Design moderno e elegante */
.services-cta {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-primary) 100%);
    padding: 4rem 2rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.services-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.services-cta > * {
    position: relative;
    z-index: 1;
}

.services-cta h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.services-cta p {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--neutral-700);
}

.location-highlight {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: var(--radius-md);
    display: inline-block;
}

.location-highlight strong {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Bottoni CTA - Design moderno e elegante */
.services-cta .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 450px;
    margin: 2rem auto 0;
    align-items: center; /* Centra i bottoni */
    width: 100%; /* Assicura che il container prenda tutta la larghezza disponibile */
}

.services-cta .btn-call {
    background: linear-gradient(135deg, var(--accent-color) 0%, #6B3410 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%; /* Larghezza uniforme */
    max-width: 300px; /* Larghezza massima per evitare che siano troppo larghi */
}

.services-cta .btn-call::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.services-cta .btn-call:hover::before {
    left: 100%;
}

.services-cta .btn-call:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.services-cta .btn-call i {
    font-size: 1.2rem;
}

.services-cta .btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.3px;
    width: 100%; /* Larghezza uniforme */
    max-width: 300px; /* Larghezza massima per evitare che siano troppo larghi */
}

.services-cta .btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.contact-info .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 400px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-call {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    padding: 18px 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    text-align: center;
    width: 100%;
    font-weight: 600;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn-call::before {
    content: '\f095'; /* Telefono FontAwesome */
    font-family: 'Font Awesome 5 Free';
    margin-right: 10px;
}

.btn-call::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    z-index: -1;
}

.btn-call:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
}

.btn-call:hover::after {
    animation: btn-shine 1.5s ease-in-out;
}

@keyframes btn-shine {
    100% {
        transform: translateX(100%);
    }
}

.btn-call:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
    transition: all 0.1s ease;
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 18px 24px;
    font-size: 1.1rem;
    position: relative;
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
    width: 100%;
    line-height: 1.3;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn-whatsapp::before {
    content: '\f232'; /* WhatsApp Icon FontAwesome */
    font-family: 'Font Awesome 5 Brands';
    margin-right: 10px;
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    z-index: -1;
}

.btn-whatsapp:hover {
    background-color: #1ebf5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover::after {
    animation: btn-shine 1.5s ease-in-out;
}

.btn-whatsapp:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
    transition: all 0.1s ease;
}

/* Rimosso selettore duplicato */

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-whatsapp:hover {
    background-color: #1ebf5a;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active::after {
    animation: ripple 0.6s ease-out;
}

.btn-whatsapp:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
    transition: all 0.1s ease;
}

/* CTA sticky su mobile */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    justify-content: center;
}

/* Media queries per responsive design */
@media screen and (min-width: 768px) {
    .services-section {
        padding: 100px 0 80px;
    }
    
    .services-carousel {
        height: 500px;
        max-width: 900px;
    }
    
    .service-card-carousel {
        padding: 3rem;
    }
    
    .service-text h3 {
        font-size: 2rem;
    }
    
    .service-text p {
        font-size: 1.2rem;
    }
    
    .services-cta .cta-buttons {
        flex-direction: row;
        max-width: 600px;
        gap: 1.5rem;
        align-items: center; /* Centra i bottoni anche su desktop */
    }
    
    .services-cta {
        padding: 4.5rem 3rem;
    }
    
    .services-cta h3 {
        font-size: 2.5rem;
    }
    
    .mobile-cta {
        display: none !important;
    }
}

@media screen and (min-width: 1024px) {
    .services-section {
        padding: 120px 0 100px;
    }
    
    .services-carousel {
        height: 550px;
        max-width: 1000px;
    }
    
    .service-card-carousel {
        padding: 3.5rem;
    }
    
    .service-text h3 {
        font-size: 2.2rem;
    }
    
    .service-text p {
        font-size: 1.25rem;
    }
    
    .services-cta {
        padding: 5rem 4rem;
    }
    
    .services-cta h3 {
        font-size: 2.8rem;
    }
    
    .services-cta p {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 767px) {
    .services-carousel {
        height: 500px;
        margin: 0 auto 3rem;
    }
    
    .service-card-carousel {
        padding: 2rem;
    }
    
    .service-text h3 {
        font-size: 1.5rem;
    }
    
    .service-text p {
        font-size: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .services-cta {
        padding: 3rem 1.5rem;
    }
    
    /* Assicurati che il carosello non abbia overflow su mobile */
    .services-carousel {
        margin: 0 auto 3rem;
        padding: 0 1rem; /* Aggiungi padding per le frecce */
    }
}

/* Media query per mobile - CTA sticky */
@media screen and (max-width: 767px) {
    .mobile-cta {
        display: flex;
    }
    
    body {
        padding-bottom: 60px; /* Spazio per la CTA sticky */
        overflow-x: hidden; /* Previene lo scroll orizzontale */
    }
    
    /* Assicurati che il carosello sia completamente responsive */
    .services-carousel {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 3rem;
        padding: 0 2rem; /* Spazio per le frecce su mobile */
    }
    
    .services-carousel-container {
        width: 100%;
    }
    
    /* Assicurati che le frecce siano visibili ma non causino overflow */
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
}

/* 
* Sezione Testimonianze - Dicono di noi
* Stile caldo, autentico ed emozionale
*/

.testimonials-section {
    background-color: #F3F8F3; /* Verde molto chiaro */
    padding: 70px 0 50px;
    position: relative;
}

/* Intestazione sezione */
.testimonials-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-header h2 {
    font-family: "Merriweather", serif;
    color: #556B2F;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.testimonials-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #88B04B;
    border-radius: 2px;
}

.testimonials-header p {
    font-family: "Open Sans", sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
}

/* Griglia testimonianze */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

/* Card testimonianze */
.testimonial-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Icona citazione */
.quote-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.2rem;
    opacity: 0.85;
}

/* Testo testimonianza */
.testimonial-card p {
    font-family: "Open Sans", sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Meta informazioni (autore e avatar) */
.testimonial-meta {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 2px solid rgba(136, 176, 75, 0.3);
    background-color: #eee; /* Placeholder color */
}

.testimonial-author {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* CTA Finale */
.testimonial-cta {
    background-color: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #88B04B, #556B2F);
    border-radius: 16px 16px 0 0;
}

.testimonial-cta h3 {
    font-family: "Merriweather", serif;
    color: #556B2F;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.testimonial-cta p {
    font-family: "Open Sans", sans-serif;
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1.8rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Media query per tablet */
@media screen and (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-header h2 {
        font-size: 2.4rem;
    }
    
    .testimonial-cta {
        padding: 3rem;
    }
}

/* Media query per desktop */
@media screen and (min-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 
* Sezione Contatti
* Layout elegante, accogliente e informativo
*/

.contact-section {
    background-color: #F8F4F0; /* Crema caldo */
    padding: 70px 0 60px;
    position: relative;
}

/* Wrapper contatti a due colonne */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Contenitore info contatti */
.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-family: "Merriweather", serif;
    color: #8B4513;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.contact-info p {
    font-family: "Open Sans", sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Lista contatti */
.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-list li {
    font-family: "Open Sans", sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.contact-list li a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex: 1;
    min-width: 0;
}

.contact-list li a:hover {
    color: #D4A574;
    text-decoration: underline;
}

.whatsapp-link {
    color: #25D366 !important;
    background-color: rgba(37, 211, 102, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background-color: rgba(37, 211, 102, 0.2);
    color: #1da851 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* Foto contatti */
.contact-photo {
    flex: 1;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.contact-photo img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.contact-photo:hover img {
    transform: scale(1.03);
}

.contact-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 20px;
    box-sizing: border-box;
}

.contact-photo-caption p {
    color: #fff;
    margin: 0;
    font-family: "Merriweather", serif;
    font-size: 1.2rem;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Modulo contatti opzionale (nascosto di default) */
.contact-form {
    display: none; /* Nascosto per impostazione predefinita */
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid rgba(85, 107, 47, 0.3);
    border-radius: 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #88B04B;
    box-shadow: 0 0 0 2px rgba(136, 176, 75, 0.2);
}

/* Footer Style */
.site-footer {
    background-color: #EAEAEA;
    padding: 60px 0 20px;
    color: #555;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-family: "Merriweather", serif;
    color: #8B4513;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.footer-info p {
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-col h4 {
    font-family: "Merriweather", serif;
    color: #8B4513;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

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

.footer-col ul li a {
    color: #555;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #D4A574;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.footer-bottom p {
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    color: #777;
}

.footer-credits a {
    color: #8B4513;
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* Media query per mobile - gestione email lunga */
@media screen and (max-width: 767px) {
    .contact-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-list li a {
        font-size: 0.95rem;
        line-height: 1.4;
        word-break: break-all;
    }
    
    .contact-info {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Media query per tablet e desktop */
@media screen and (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 4rem;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .whatsapp-text {
        display: inline-block;
    }
}

/* Pulsante WhatsApp Flottante */
.whatsapp-float {
    position: fixed;
    width: auto;
    height: auto;
    padding: 14px 22px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    background-color: #1ebf5a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px) scale(1.05);
}

.whatsapp-float:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.whatsapp-icon {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.whatsapp-text {
    display: none;
}

@media screen and (max-width: 480px) {
    .whatsapp-float {
        padding: 10px;
        border-radius: 50%;
        right: 20px;
        bottom: 20px;
    }
}

/* 
* Sezione Galleria Fotografica
* Stile unificato con il resto del sito
*/

.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23f8f9fa" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.gallery-section .container {
    position: relative;
    z-index: 1;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.gallery-header p {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--neutral-700);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 0;
    padding-bottom: 70%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}

/* Media query per tablet (2 colonne) */
@media screen and (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Media query per desktop (3 colonne) */
@media screen and (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .gallery-header h2 {
        font-size: 2.5rem;
    }
}

/* Fine della sezione galleria */

/* 
* Sezione Giornata Tipo - Timeline Interattiva
* Design moderno con step animati
*/

.daily-routine-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.daily-routine-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23f8f9fa" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.daily-routine-section .container {
    position: relative;
    z-index: 1;
}

/* Intestazione sezione */
.routine-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.routine-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.routine-header h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.routine-header p {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--neutral-700);
    line-height: 1.7;
}

/* Timeline container */
.routine-timeline {
    max-width: 900px;
    margin: 0 auto 3rem;
    position: relative;
}

/* Timeline step */
.timeline-step {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    opacity: 0.15;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    filter: grayscale(0.9) brightness(0.7);
    will-change: opacity, transform, filter;
}

.timeline-step.active {
    opacity: 1;
    transform: translateX(0);
    filter: grayscale(0);
}

.timeline-step.completed {
    opacity: 0.95;
    transform: translateX(0);
    filter: grayscale(0) brightness(1.05);
}

/* Step time */
.step-time {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--bg-warm);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--secondary-color);
    min-width: 120px;
    text-align: center;
    margin-right: 2rem;
    transition: all 0.3s ease;
}

.timeline-step.active .step-time {
    background: var(--secondary-color);
    color: var(--bg-primary);
    transform: scale(1.05);
}

/* Step content */
.step-content {
    flex: 1;
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neutral-300);
    transition: all 0.3s ease;
}

.timeline-step.active .step-content {
    box-shadow: var(--shadow-xl), 0 0 30px rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(212, 165, 116, 0.05) 100%);
}

.timeline-step.active .step-content::before {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

.timeline-step.completed .step-content {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 165, 116, 0.2);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(212, 165, 116, 0.03) 100%);
}

.timeline-step.completed .step-content::before {
    background: var(--accent-color);
}

.step-content h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.step-content p {
    font-family: var(--font-primary);
    color: var(--neutral-700);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Step indicator */
.step-indicator {
    position: relative;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neutral-300);
    border: 3px solid var(--bg-primary);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.timeline-step.active .step-dot {
    background: var(--secondary-color);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.3), 0 0 20px rgba(212, 165, 116, 0.6);
}

.timeline-step.completed .step-dot {
    background: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2), 0 0 15px rgba(212, 165, 116, 0.4);
}

.step-line {
    width: 2px;
    height: 60px;
    background: var(--neutral-300);
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.timeline-step.active .step-line {
    background: linear-gradient(180deg, var(--secondary-color), var(--neutral-300));
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

.timeline-step.completed .step-line {
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.2);
}

/* Ultimo step senza linea */
.timeline-step:last-child .step-line {
    display: none;
}

/* Controlli timeline */
.timeline-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.timeline-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--neutral-200);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.timeline-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.timeline-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.timeline-progress {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-warm);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--secondary-color);
}

.current-step {
    color: var(--secondary-color);
}

/* Media queries per timeline responsive */
@media screen and (max-width: 768px) {
    .daily-routine-section {
        padding: 60px 0;
    }
    
    .routine-header {
        margin-bottom: 3rem;
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 3rem;
        padding-left: 2rem;
    }
    
    .step-time {
        margin-right: 0;
        margin-bottom: 1rem;
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .step-content {
        padding: 1.2rem 1.5rem;
        width: 100%;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .step-indicator {
        position: absolute;
        left: 0;
        top: 0;
        margin-left: 0;
    }
    
    .step-dot {
        width: 16px;
        height: 16px;
    }
    
    .step-line {
        height: 80px;
    }
    
    .timeline-controls {
        gap: 1rem;
    }
    
    .timeline-btn {
        width: 40px;
        height: 40px;
    }
    
    .timeline-progress {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (min-width: 1024px) {
    .daily-routine-section {
        padding: 100px 0;
    }
    
    .routine-header {
        margin-bottom: 5rem;
    }
    
    .step-content {
        padding: 2rem 2.5rem;
    }
    
    .step-content h4 {
        font-size: 1.4rem;
    }
    
    .step-content p {
        font-size: 1.1rem;
    }
}

/* Lightbox per la galleria fotografica */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 10px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    padding: 10px 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    transition: 0.3s ease;
    z-index: 10;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0.7;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    opacity: 1;
    background-color: rgba(139, 69, 19, 0.8);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover, .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Assicurarsi che le immagini della galleria abbiano il cursore a puntatore */
.gallery-item {
    cursor: pointer;
}

/* Responsive per mobile */
@media screen and (max-width: 768px) {
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-close, .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
    }
}

/* 
* Sezione Contatti - Segue alla sezione FAQ 
*/

