/* 
* Casa Famiglia Quercia - Hero Section Styles
* Mobile-first approach with responsive design
*/

:root {
    --color-primary: #005FB8;      /* Blu Intenso */
    --color-secondary: #E1ECF4;    /* Blu Chiaro Tenue */
    --color-accent: #F9A825;       /* Giallo Senape */
    --color-text: #0D1117;         /* Nero Intenso */
    --color-background: #FFFFFF;   /* Bianco Puro */
    --color-white: #FFFFFF;        /* Bianco Puro */
}

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    width: 100%;
}

body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #FFFFFF; /* Sfondo bianco puro */
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF !important;
    padding: 20px;
    box-sizing: border-box;
}

/* Versione desktop */
/* Hero background slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #FFFFFF;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #FFFFFF;
}

.hero-slide.is-active {
    opacity: 1;
    background-color: #FFFFFF;
}

/* Box del testo hero */
/* Hero halo title (no box, minimal obstruction) */
.hero-title-wrap { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    padding: 0 16px; 
}

/* Accessibility scrim behind title (non-intrusive) */
.hero-title-wrap::before {
    content: "";
    position: absolute;
    inset: -10vh -8vw -6vh -8vw;
    background: transparent;
    z-index: -1;
    pointer-events: none;
}

.hero-halo-title {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-align: center;
}

.hero-halo-title .title-top {
    font-size: clamp(16px, 3.2vw, 22px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

.hero-halo-title .title-main {
    font-family: "Merriweather", serif;
    font-weight: 800;
    font-size: clamp(42px, 8vw, 92px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 4px 14px rgba(0,0,0,0.5);
    position: relative;
}

.halo-line {
    display: block;
    width: min(60vw, 580px);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    filter: blur(0.5px);
    opacity: 0.85;
}

.hero-subcopy {
    margin-top: 14px;
    color: #ffffff;
    font-size: clamp(14px, 2.6vw, 18px);
    text-shadow: 0 4px 16px rgba(0,0,0,0.65);
}

/* Hero CTA (accessible high contrast) */
.hero-actions { margin-top: 20px; }
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 95, 184, 0.35), 0 2px 6px rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.65);
}
.hero-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.hero-cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* Effetto di riflesso satinato più evidente */
.hero-text-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    transform: rotate(15deg);
    pointer-events: none;
    z-index: -1;
    border-radius: 30px;
    animation: shine 6s infinite;
}

/* Animazione del riflesso */
@keyframes shine {
    0% { transform: translateX(-100%) rotate(15deg); }
    20% { transform: translateX(100%) rotate(15deg); }
    100% { transform: translateX(100%) rotate(15deg); }
}

/* Effetto al passaggio del mouse */
.hero-text-box:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25),
                0 10px 30px rgba(0, 0, 0, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.5),
                inset 0 -1px 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(25px) saturate(180%) brightness(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25));
}

/* Migliora la leggibilità del testo */
.hero-text-box h1, .hero-text-box p {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Migliora la leggibilità del testo */
.hero-text-box h1 { color: inherit; }

.hero-text-box .hero-subtitle {
    color: #1a2433;
    margin-top: 15px;
    font-size: 1.1em;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .hero-text-box {
        padding: 25px 20px;
        margin: 0 15px;
    }
}

/* Overlay per migliorare la leggibilità del testo */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .hero {
        margin-top: -60px;
    }
}

/* Container dello sfondo (ottimizzato per usare immagini invece di video) */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
}

/* Animazione leggera per simulare il movimento senza usare video pesanti */
.bg-animation {
    animation: subtle-zoom 30s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Hero video styles */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hide mobile video by default on desktop */
.mobile-video {
    display: none;
}

/* Show mobile video and hide desktop video on mobile */
@media screen and (max-width: 767px) {
    .mobile-video {
        display: block;
    }
    .desktop-video {
        display: none;
    }
}

/* Fallback per noscript */
.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay per migliorare la visibilità del contenuto sul video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Contenuto Hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    text-align: center;
    padding: 1rem;
}

/* Tipografia */
h1 {
    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;
}

/* Bottoni CTA */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

.btn-call {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.btn-call:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.2);
}

.btn-call i {
    margin-right: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-call:hover i {
    transform: rotate(-10deg);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-terra);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.1);
}

.btn-outline:hover::before {
    left: 0;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}


.location-highlight {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(245, 222, 179, 0.2);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.location-highlight strong {
    color: var(--color-3);
    font-weight: 600;
}

/* 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;
}

/* Stile per le icone di contatto */
.contact-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Stile per le icone nel footer */
.footer-contacts img {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* Stili per la sezione Mission/Chi Siamo */
.mission-section {
    padding: 80px 0;
    background-color: var(--color-background);
    color: var(--color-text);
}

.mission-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.mission-statement {
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 400;
    color: var(--color-3);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mission-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    margin-bottom: 20px;
}

.mission-icon img {
    width: 48px;
    height: 48px;
}

.mission-card h3 {
    margin-bottom: 15px;
    color: var(--color-3);
    font-size: 1.5rem;
}

.mission-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.mission-detail-section {
    background-color: var(--color-white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mission-detail-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--color-3);
    font-size: 1.4rem;
}

.small-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.detail-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
}

.detail-list li {
    margin-bottom: 16px;
    padding-left: 20px;
    padding-right: 10px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.detail-list li::before {
    content: "•";
    color: var(--color-2);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.mission-highlight {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-highlight h3 {
    margin-bottom: 20px;
    color: var(--color-3);
    font-size: 1.6rem;
}

.cost-highlight {
    margin: 30px 0;
    font-size: 1.2rem;
    color: var(--color-3);
}

.mission-cta {
    margin-top: 25px;
}

/* Stili per la CTA nella sezione Chi Siamo */
.about-cta {
    margin-top: 25px;
    width: 100%;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .about-cta {
        text-align: left;
    }
}

/* Stili generali per i bottoni */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(199, 106, 92, 0.3);
}

/* 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/hero-fallback.jpg');
        background-size: cover;
        background-position: center;
        z-index: 0;
    }
}

/* 
* Sezione Chi Siamo
* Crea un'atmosfera calda, accogliente e familiare
*/

/* Layout base e contenitore */
.about-section {
    background: linear-gradient(160deg, var(--color-background) 0%, var(--color-accent) 100%);
    padding: 80px 0; /* Aumentato padding verticale */
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sezione Chi Siamo */
.about-section {
    padding: 60px 0;
    background-color: var(--color-1);
    position: relative;
    overflow: hidden;
}

/* Contenitore flessibile per layout responsive */
.about-content {
    display: flex;
    flex-direction: column; /* Stacked su mobile */
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

/* Stili testo */
.about-text {
    text-align: center;
    padding: 0 15px;
}

.about-text h2 {
    font-family: "Merriweather", serif;
    color: var(--color-3);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-text p {
    font-family: "Open Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 400;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Stile citazione callout */
.quote-callout {
    background-color: var(--color-text);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    font-style: italic;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(85, 107, 47, 0.08);
    position: relative;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Immagine responsive */
.about-image {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 3/2;
}

.about-image img:hover {
    transform: scale(1.01); /* Leggero effetto hover */
}

/* Regole specifiche per prevenire l'overflow orizzontale */
.mission-sections {
    max-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.mission-detail-section h3 {
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.mission-detail-section h3 .small-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.mission-detail-section p, 
.mission-detail-section li,
.mission-card p {
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Evitare problemi con orari e testo */
.detail-list li strong {
    display: block;
    margin-bottom: 3px;
    color: var(--color-3);
}

@media screen and (max-width: 480px) {
    .mission-detail-section {
        padding: 20px 15px;
    }
    
    .detail-list li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
}

/* Media query per dispositivi molto piccoli */
@media screen and (max-width: 480px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .quote-callout {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    .about-cta .btn {
        display: block;
        width: 100%;
        padding: 12px;
        text-align: center;
        font-size: 0.95rem;
    }
}

/* Media query per tablet e desktop */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-text {
        padding: 0 20px;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
    }
}

@media screen and (min-width: 768px) {
    .about-section {
        padding: 100px 0; /* Padding verticale più grande su desktop */
    }
    
    .about-content {
        flex-direction: row; /* Layout a due colonne su desktop */
        align-items: center;
        gap: 3rem;
    }
    
    .about-text {
        flex: 6;
        padding-right: 2rem;
        max-width: 600px;
        text-align: left;
    }
    
    .about-image {
        flex: 5;
    }
    
    .about-text p {
        font-size: 1.15rem; /* Testo più grande su desktop */
        margin-bottom: 1.7rem;
    }
    
    .about-text h2 {
        font-size: 2.5rem; /* Titolo più grande su desktop */
        text-align: left;
    }
    
    .quote-callout {
        text-align: left;
        padding: 2rem;
        font-size: 1.1rem;
        margin: 2rem 0;
    }
}

@media screen and (min-width: 1024px) {
    .about-section {
        padding: 120px 0;
    }
    
    .about-text h2 {
        font-size: 2.8rem;
    }
    
    .about-text p {
        font-size: 1.2rem;
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Stili comuni per le intestazioni delle sezioni */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--color-3);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-family: "Merriweather", serif;
    line-height: 1.3;
}

.section-header p {
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Stili comuni per CTA */
.section-cta {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--color-text);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(85, 107, 47, 0.08);
    margin: 3rem auto;
    max-width: 800px;
}

.section-cta h3 {
    color: var(--color-3);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: "Merriweather", serif;
}

.section-cta p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--color-5) 0%, rgba(241, 210, 167, 0.2) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(85, 107, 47, 0.08);
}

/* Sezione Servizi */
.services-section {
    background-color: #E6F7FF;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.services-section .section-header h2 {
    color: var(--color-text); /* Colore scuro per il titolo */
}
.services-section .section-header p {
    color: #555; /* Grigio scuro per il paragrafo */
}

.services-group { margin-top: 2.5rem; }
.services-group-title {
    font-family: "Merriweather", serif;
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 1rem 0 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}
.services-grid--split { gap: 1.5rem 1.5rem; }

.service-card {
    background-color: #ffffff;
    padding: 26px 24px;
    border-radius: 16px;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
}
.service-card--modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

.service-card .service-icon {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
    color: var(--color-primary);
    background: #E6F2FF;
    border: 1px solid rgba(0,95,184,0.18);
    border-radius: 14px;
    padding: 12px;
    box-sizing: border-box;
}

.service-card h3 {
    color: #0d1b2a;
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-family: "Merriweather", serif;
}

.service-card p {
    color: #38434f;
    font-size: 1rem;
    line-height: 1.6;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 768px) {
    .services-section {
        padding: 0;
        margin: 0;
    }
    .services-cta {
        margin: 0;
        padding: 1rem;
    }
    .section-cta {
        margin: 0;
        padding: 1rem;
    }
    .services-grid {
        margin: 0;
        gap: 1rem;
    }
    .container {
        padding: 0;
    }
    .about-section {
        padding-bottom: 0;
    }
}

.services-section::before {
    display: none; /* Rimuove l'overlay */
}

/* Sezione Testimonianze */
.testimonials-section {
    background-color: #f5ead7;
    padding: 90px 0;
    position: relative;
}

.testimonials-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.testimonials-header h2 {
    font-family: "Merriweather", serif;
    color: #1d1d1f;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.testimonials-header p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px auto;
    max-width: 1200px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.quote-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.testimonial-card p {
    color: #1d1d1f;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
    font-weight: 400;
    flex-grow: 1;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-author {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
}

.testimonial-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-cta h3 {
    font-family: "Merriweather", serif;
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.testimonial-cta p {
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .testimonials-header h2 {
        font-size: 28px;
    }
    
    .testimonials-header p {
        font-size: 16px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-card p {
        font-size: 16px;
    }
}

/* Sezione Contatti */
.contact-section {
    background: var(--color-5);
    padding: 60px 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-content h2 {
    color: var(--color-3);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: "Merriweather", serif;
    line-height: 1.3;
}

.contact-intro {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-info {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.contact-text {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.4;
}

.contact-text strong {
    color: var(--color-text);
    font-weight: 600;
    margin-right: 0.25rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-link {
    color: var(--color-3);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-buttons .btn {
    flex: 1;
    max-width: 240px;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

@media (min-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 767px) {
    .contact-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2 {
    color: var(--color-3);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-family: "Merriweather", serif;
}

.contact-info p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.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: var(--color-3);
    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: #88B04B;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(85, 107, 47, 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: var(--color-3);
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* 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 per una galleria semplice e responsive 
*/

.gallery-section {
    padding: 70px 0;
    background-color: #f9f9f9;
    position: relative;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h2 {
    font-family: "Merriweather", serif;
    color: var(--color-3);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.gallery-header p {
    font-family: "Open Sans", sans-serif;
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.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: var(--color-text);
}

.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 */

/* 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: var(--color-text);
    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(85, 107, 47, 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;
    }
}

/* Stili per la sezione contatti in stile Apple */
.contact-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: #111111;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.section-header p {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
    color: #6e6e73;
    max-width: 700px;
    margin: 0 auto;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    flex: 1;
}

.contact-lead {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 40px;
    color: #1d1d1f;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.contact-list li strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d1d1f;
}

.contact-list li p {
    margin: 0;
    color: var(--color-text);
    font-size: 17px;
}

.contact-list li a {
    color: var(--color-3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-list li a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.contact-tagline {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 40px;
}

.contact-tagline p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #1d1d1f;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 160px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #0077ed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #25D366;
    color: white;
}

.btn-secondary:hover {
    background-color: #1ebf5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-photo {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.contact-photo-caption p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

@media screen and (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row;
    }
    
    .contact-info, .contact-photo {
        flex: 1;
    }
    
    .contact-photo {
        height: auto;
        min-height: 500px;
    }
}

@media screen and (max-width: 767px) {
    .section-header h2 {
        font-size: 32px;
    }
    
    .section-header p {
        font-size: 18px;
    }
    
    .contact-lead {
        font-size: 17px;
    }
    
    .contact-photo {
        height: 300px;
    }
}

/* Stili per il footer in stile Apple */
.site-footer {
    background-color: #f5f5f7;
    padding: 60px 0 30px;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.footer-brand p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 16px;
}

.footer-address {
    font-size: 14px;
    line-height: 1.5;
    color: #6e6e73;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-contacts li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contacts li a img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.footer-divider {
    height: 1px;
    background-color: #d2d2d7;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #6e6e73;
    margin: 0;
}

.footer-tagline p {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-brand {
        flex: 1;
        max-width: 300px;
    }
    
    .footer-nav {
        flex: 2;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Stili per le pagine legali (Privacy, Cookie, Termini) */
.legal-header {
    background-color: #f5f5f7;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-logo {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.legal-nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.legal-nav a:hover {
    color: #0077ed;
    text-decoration: underline;
}

.legal-content {
    padding: 60px 0;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1d1d1f;
}

.legal-updated {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d2d2d7;
}

.legal-updated p {
    color: #6e6e73;
    font-size: 14px;
    margin: 0;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.legal-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #1d1d1f;
}

.legal-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #1d1d1f;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
    color: var(--color-text);
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #0077ed;
    text-decoration: underline;
}

.legal-section ul, .legal-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section ul li, .legal-section ol li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--color-text);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.cookie-table th {
    background-color: #f5f5f7;
    color: #1d1d1f;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border: 1px solid #d2d2d7;
}

.cookie-table td {
    padding: 12px 15px;
    border: 1px solid #d2d2d7;
    color: var(--color-text);
}

.cookie-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.legal-footer {
    background-color: #f5f5f7;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #d2d2d7;
}

.legal-footer p {
    font-size: 12px;
    color: #6e6e73;
    margin-bottom: 15px;
}

.legal-footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-footer-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.legal-footer-nav a:hover {
    color: var(--color-primary);
}

.legal-footer-nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 40px 0;
    }
    
    .legal-content h1 {
        font-size: 28px;
    }
    
    .legal-section h2 {
        font-size: 22px;
    }
    
    .legal-section h3 {
        font-size: 18px;
    }
    
    .legal-section h4 {
        font-size: 16px;
    }
    
    .cookie-table {
        font-size: 14px;
    }
    
    .cookie-table th, .cookie-table td {
        padding: 8px 10px;
    }
}





.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #E6F7FF !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0;
}

.main-header.sidebar-open {
    height: 60px;
    padding-right: 300px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 1rem;
}

.logo-header {
    height: 60px;
    transition: var(--transition);
    margin-left: 20px;
}

.logo-header img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.sidebar-open .logo-header {
    height: 40px;
}

.menu-toggle {
    cursor: pointer;
    z-index: 1000;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.menu-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.menu-toggle:hover .menu-icon {
    transform: rotate(-90deg) scale(1.1);
}

.sidebar-open .menu-icon {
    transform: rotate(90deg);
}

.sidebar-open .menu-toggle:hover .menu-icon {
    transform: rotate(0deg) scale(1.1);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #E6F7FF !important;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.sidebar.open {
    right: 0;
}

.sidebar-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-top: 2rem;
    text-decoration: none;
    pointer-events: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-item {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--color-text);
    padding: 0.5rem 0;
    font-size: 1.1rem;
    position: relative;
}

.sidebar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.sidebar-item:hover::after {
    width: 100%;
}

.sidebar.open .sidebar-item {
    opacity: 1;
    transform: translateX(0);
}

.sidebar.open .sidebar-item:nth-child(1) { transition-delay: 0.1s; }
.sidebar.open .sidebar-item:nth-child(2) { transition-delay: 0.2s; }
.sidebar.open .sidebar-item:nth-child(3) { transition-delay: 0.3s; }
.sidebar.open .sidebar-item:nth-child(4) { transition-delay: 0.4s; }
.sidebar.open .sidebar-item:nth-child(5) { transition-delay: 0.5s; }

.theme-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
    stroke: var(--color-text);
}

/* Schedule Section */
.schedule-section .section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.schedule-section.animate .section-header {
    opacity: 1;
    transform: translateY(0);
}

.schedule-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

.schedule-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.schedule-time {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc((var(--delay, 0) * 0.1s) + 0.2s);
}

.schedule-content {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc((var(--delay, 0) * 0.1s) + 0.3s);
}

.schedule-item.animate .schedule-time,
.schedule-item.animate .schedule-content {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Gallery Animations */
.gallery-slide {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: calc(var(--gallery-delay, 0) * 0.15s);
}

.gallery-slide.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-slide.animate .gallery-caption {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.schedule-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.schedule-section h2 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.schedule-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.schedule-section p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.schedule-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.schedule-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent), var(--color-primary));
    opacity: 0.1;
}

.schedule-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.schedule-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-time {
    width: 140px;
    padding: 0.8rem 1rem;
    background-color: #E6F7FF;
    color: var(--color-primary);
    border: 1px solid rgba(0, 95, 184, 0.2);
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 95, 184, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0 30px;
}

.schedule-time:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 95, 184, 0.15);
    background-color: #d8f0ff;
}

.schedule-dot {
    width: 16px;
    height: 16px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--color-accent);
}

.schedule-content {
    width: 42%;
    background-color: #fff;
    padding: 1.8rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.schedule-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.schedule-content p {
    color: #555;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .schedule-container {
        max-width: 800px;
    }
    
    .schedule-content {
        width: 38%;
        padding: 1.5rem;
    }
    
    .schedule-time {
        margin: 0 20px;
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .schedule-container::before {
        left: 30px;
    }
    
    .schedule-item, 
    .schedule-item:nth-child(odd) {
        flex-direction: row;
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .schedule-time {
        width: 120px;
        margin: 0 15px;
        order: 1;
    }
    
    .schedule-content {
        width: calc(100% - 180px);
        margin: 0;
        order: 2;
    }
    
    .schedule-dot {
        left: 22px;
        transform: translateY(-50%);
    }
}

@media (max-width: 576px) {
    .schedule-item, 
    .schedule-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .schedule-time {
        margin: 0 0 15px 0;
        width: 140px;
        order: 1;
    }
    
    .schedule-content {
        width: 100%;
        order: 2;
        padding: 1.2rem;
    }
    
    .schedule-container::before {
        left: 15px;
    }
    
    .schedule-dot {
        left: 8px;
        top: 30px;
        transform: none;
    }
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes - Inizialmente nascosti */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.schedule-item,
.gallery-slide,
.schedule-time,
.schedule-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Classe che viene aggiunta quando l'elemento è visibile */
.fade-in-up.animate,
.fade-in-left.animate,
.fade-in-right.animate,
.schedule-item.animate,
.gallery-slide.animate,
.schedule-time.animate,
.schedule-content.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Specifiche per le diverse direzioni */
.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-left.animate {
    transform: translateX(0);
}

.fade-in-right.animate {
    transform: translateX(0);
}

/* Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* Animation for schedule items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.schedule-item:nth-child(1) { animation-delay: 0.1s; }
.schedule-item:nth-child(2) { animation-delay: 0.2s; }
.schedule-item:nth-child(3) { animation-delay: 0.3s; }
.schedule-item:nth-child(4) { animation-delay: 0.4s; }
.schedule-item:nth-child(5) { animation-delay: 0.5s; }
.schedule-item:nth-child(6) { animation-delay: 0.6s; }
.schedule-item:nth-child(7) { animation-delay: 0.7s; }
.schedule-item:nth-child(8) { animation-delay: 0.8s; }