/* Villa Dorotea - CSS v3.0.0 - FORZATURA NAVIGAZIONE */
/* Sistema di navigazione dinamica con sezioni complete */

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

/* Prevenzione overflow orizzontale generale */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Miglioramenti per dispositivi mobili */
@media (max-width: 768px) {
    /* Assicurati che tutti gli elementi rispettino la larghezza del viewport */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevenzione overflow orizzontale su tutti gli elementi */
    html, body {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    /* Forza il container a utilizzare tutta la larghezza disponibile */
    .container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* Prevenzione problemi con elementi fixed */
    [style*="position: fixed"],
    [style*="position:fixed"] {
        max-width: 100vw !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Ottimizzazioni immagini per prevenire overflow */
    img {
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    /* Prevenzione overflow su elementi con width specifiche */
    [style*="width"],
    [style*="min-width"],
    [style*="max-width"] {
        box-sizing: border-box !important;
    }

    /* Assicurati che i form siano touch-friendly */
    input, textarea, select, button {
        min-height: 44px;
        font-size: 16px;
    }

    /* Correzione per elementi che potrebbero usare 100vw */
    [style*="100vw"],
    [style*="width:100vw"],
    [style*="width: 100vw"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Prevenzione overflow per altri elementi principali */
    .sections-container,
    .intro-images-video-section,
    .hero,
    .section {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
}

/* Regole specifiche per schermi molto piccoli */
@media (max-width: 480px) {
    .container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 360px) {
    .container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
}

:root {
    /* Palette Colori Elegant Sophisticated */
    --primary-color: #8B6F47; /* Warm brown */
    --secondary-color: #C4A484; /* Light brown/beige */
    --accent-color: #F5F0E8; /* Cream white */
    --background-color: #FFFEF7; /* Warm white */
    --text-color: #3A2F26; /* Dark brown */
    --text-light: #6B5A4A; /* Medium brown */
    --white: #FFFFFF;
    --light-gray: #F8F6F0;
    --border-color: #E8DCC6;
    --success-color: #A68B5B;
    --warm-beige: #F0E6D6;
    --gold-accent: #D4AF37;
    --bronze-accent: #CD7F32;

    /* Font */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-elegant: 'Crimson Text', serif;

    /* Dimensioni */
    --max-width: 1400px;
    --border-radius: 20px;
    --border-radius-small: 12px;
    --shadow: 0 20px 40px rgba(58, 47, 38, 0.08);
    --shadow-light: 0 10px 25px rgba(58, 47, 38, 0.04);
    --shadow-elegant: 0 8px 32px rgba(139, 111, 71, 0.12);

    /* Transizioni */
    --transition: all 0.3s ease;

}

/* Stili Base Elegant */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Onde decorative verticali laterali */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    width: calc(var(--wave-width) * 1.8);
    height: 100vh;
    z-index: -1;
    opacity: 0.18;
}

body::before {
    left: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    clip-path: polygon(0 0%, 100% 0%, 85% 100%, 0% 100%);
}

body::after {
    right: 0;
    background: linear-gradient(-45deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}



.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}


.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Header e Navigazione */
/* Header Elegant */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 254, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 220, 198, 0.3);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

/* Header visibile quando si scrolla */
.header.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}


.navbar {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 110px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: auto;
    max-width: 110px;
    object-fit: contain;
}

.logo-text h1 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.05em;
    margin: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* CTA Button in stile Apple - Design pulito e minimalista */
.nav-cta-buttons {
    display: flex;
    align-items: center;
}

.nav-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.nav-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.cta-icon .material-symbols-rounded {
    font-size: 18px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.cta-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ===========================================
   NUOVO HAMBURGER MENU APPLE STYLE
   =========================================== */

/* Hamburger Button Apple Style */
.apple-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.apple-hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #1d1d1f;
    margin: 2px 0;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.apple-hamburger.active .apple-hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.apple-hamburger.active .apple-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.apple-hamburger.active .apple-hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.apple-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.apple-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.apple-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #fafafa;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.apple-mobile-menu.active .apple-menu-content {
    transform: translateX(0);
}

/* Menu Header */
.apple-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.apple-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apple-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.apple-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.apple-menu-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.apple-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.apple-close-line {
    width: 16px;
    height: 2px;
    background-color: #1d1d1f;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-close-line:nth-child(1) {
    transform: translateY(2px) rotate(45deg);
}

.apple-close-line:nth-child(2) {
    transform: translateY(-2px) rotate(-45deg);
}

/* Menu Navigation */
.apple-menu-nav {
    flex: 1;
    padding: 32px 0;
    overflow-y: auto;
}

.apple-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apple-menu-item {
    margin: 0;
}

.apple-menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.apple-menu-link {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.apple-menu-link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-left-color: #8B6F47;
    color: #8B6F47;
}

.apple-menu-text {
    flex: 1;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

/* Menu Footer */
.apple-menu-footer {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.apple-menu-contact {
    text-align: center;
}

.apple-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #8B6F47;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.2);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.apple-contact-btn:hover {
    background: #7a5f3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.apple-contact-text {
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apple-hamburger {
        display: flex;
    }
    
    .apple-menu-content {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .apple-menu-content {
        width: 100%;
    }
    
    .apple-menu-header {
        padding: 16px 20px;
    }
    
    .apple-menu-link {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .apple-menu-footer {
        padding: 20px;
    }
}

/* Hero Section */
/* Hero Section Elegant */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 2rem; /* Padding aggiuntivo per transizione fluida */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
    transform: translateY(0);
    will-change: transform;
}

.hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-content {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 35px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 85%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
    z-index: 3;
    min-height: 70px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-slide-content h3 {
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: 0.02em;
}

.hero-slide-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Navigazione all'interno del box bianco - FORZATURA TOTALE */
.hero-slide-content .hero-navigation {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    height: auto !important;
    min-height: 40px !important;
}

/* Override per mobile - due colonne */
@media (max-width: 768px) {
    .hero-slide-content .hero-navigation {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 480px) {
    .hero-slide-content .hero-navigation {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex-wrap: nowrap !important;
    }
}

/* Forzatura aggiuntiva per tutti i link */
.hero-slide-content .hero-navigation a {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 11 !important;
}

.hero-nav-link {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-color) !important;
    background: rgba(139, 111, 71, 0.15) !important;
    border: 1px solid rgba(139, 111, 71, 0.3) !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-nav-link:hover {
    background: rgba(139, 111, 71, 0.2);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.hero-nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hero Slide Overlay - Contenuto centrale sull'immagine */
.hero-slide-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.hero-slide-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-slide-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    opacity: 0.95;
}

/* CTA Button Apple Style */
.hero-cta-btn {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.2);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: none;
}

.hero-cta-btn:hover {
    background: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.3);
}

.hero-cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.4);
}

.hero-cta-btn::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;
}

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

/* FORZATURA TOTALE PER NAVIGAZIONE HERO - REGOLA FINALE */
.hero-slide[data-section] .hero-slide-content .hero-navigation {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 50px !important;
    background: transparent !important;
}

/* Override mobile per regola finale */
@media (max-width: 768px) {
    .hero-slide[data-section] .hero-slide-content .hero-navigation {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 480px) {
    .hero-slide[data-section] .hero-slide-content .hero-navigation {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex-wrap: nowrap !important;
    }
}

.hero-slide[data-section] .hero-slide-content .hero-navigation a {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #8B6F47 !important;
    background: rgba(139, 111, 71, 0.2) !important;
    border: 1px solid rgba(139, 111, 71, 0.4) !important;
    padding: 8px 16px !important;
    margin: 2px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Responsive per overlay hero */
@media (max-width: 768px) {
    .hero-slide-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-slide-subtitle {
        font-size: clamp(1rem, 2vw, 1.2rem);
        margin-bottom: 2.5rem;
    }
    
    .hero-cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Sezioni dinamiche - Mostra tutte le sezioni di default */
.section:not(.intro-images-video-section) {
    display: block;
}

/* Container per le sezioni con flexbox per riordinamento */
.sections-container {
    display: flex;
    flex-direction: column;
}

/* Ordine di default delle sezioni */
#chi-siamo { order: 1; }
#la-villa { order: 2; }
#servizi { order: 3; }
#attivita { order: 4; }
#footer { order: 5; }

/* Sezioni dinamiche - Evidenziazione della sezione selezionata */
.dynamic-section {
    position: relative;
    animation: highlightSection 0.6s ease-out;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-left: -20px;
    background: linear-gradient(90deg, rgba(139, 111, 71, 0.05) 0%, transparent 100%);
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

@keyframes highlightSection {
    from {
        opacity: 0.8;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay rimosso per mostrare le immagini originali */

/* Controlli carosello */
.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(6px);
    transition: background .2s ease, transform .2s ease;
}

.hero-control:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.05); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }


@media (max-width: 768px) {
    .hero-control { width: 38px; height: 38px; }
    
    .hero-slide-content {
        padding: 20px 25px;
        max-width: 90%;
        bottom: 145px;
    }
    
    .hero-slide-content h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .hero-slide-content p {
        font-size: 1rem;
    }
    
    .hero-navigation {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
        margin-bottom: 15px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: nowrap !important;
    }
    
    .hero-nav-link {
        padding: 6px 12px;
        font-size: 0.75rem;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-slide-content {
        padding: 15px 20px;
        max-width: 95%;
        bottom: 125px;
    }
    
    .hero-navigation {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px;
        margin-bottom: 12px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: nowrap !important;
    }
    
    .hero-nav-link {
        padding: 5px 10px;
        font-size: 0.7rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .hero-slide-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .hero-slide-content p {
        font-size: 0.9rem;
    }
}

/* Viewport molto grandi */
@media (min-width: 1400px) {
    .hero-slide-content {
        bottom: 150px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}


.hero-text h1 {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: center;
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sections Elegant */
.section {
    padding: 6rem 0;
}

/* Container duplicato rimosso - gestito sopra */

/* Esperienza Section */
.esperienza-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.esperienza-text {
    padding-right: 2rem;
}

.esperienza-text h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.esperienza-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Text Container con effetto espansione */
.text-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 254, 247, 0.8) 0%, rgba(245, 240, 232, 0.4) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid rgba(232, 220, 198, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(58, 47, 38, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

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

.text-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(58, 47, 38, 0.1);
    border-color: rgba(139, 111, 71, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-content.collapsed {
    max-height: 8em !important; /* Mostra circa metà del testo */
    overflow: hidden !important;
    background: rgba(255, 0, 0, 0.1); /* Debug: sfondo rosso per vedere se si applica */
}

.text-content.expanded {
    max-height: none;
}

/* Overlay per effetto fade */
.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4em;
    background: linear-gradient(transparent, var(--background-color));
    pointer-events: none;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeGradient 2s ease-in-out infinite alternate;
}

@keyframes fadeGradient {
    0% {
        background: linear-gradient(transparent, var(--background-color));
    }
    100% {
        background: linear-gradient(transparent, rgba(255, 254, 247, 0.8));
    }
}

.text-overlay.hidden {
    opacity: 0;
}

/* Pulsante Leggi di più */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 111, 71, 0.1), transparent);
    transition: left 0.5s ease;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.25);
}

.read-more-btn:active {
    transform: translateY(0);
}

.read-more-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.2);
}

.read-more-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.read-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

.read-more-btn .btn-text {
    transition: all 0.3s ease;
}

.read-more-btn.expanded .btn-text::after {
    content: ' meno';
}

/* Responsive design per il pulsante */
@media (max-width: 768px) {
    .text-container {
        padding: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .read-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }
    
    .text-content.collapsed {
        max-height: 6em; /* Meno altezza su mobile */
    }
    
    .text-overlay {
        height: 3em; /* Overlay più piccolo su mobile */
    }
}

@media (max-width: 480px) {
    .text-container {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .read-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .btn-icon svg {
        width: 14px;
        height: 14px;
    }
}

.esperienza-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-elegant);
}

.esperienza-story {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.story-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-elegant);
}


/* Story Subtitle */
.story-subtitle {
    text-align: center;
    margin: 40px 0 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

/* Contact Section */
.contact-section {
    margin: 80px 0 60px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.8s forwards;
}

.contact-section-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-section-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 111, 71, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-box:hover::before {
    opacity: 1;
}


.contact-box-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.contact-box-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.contact-box-availability {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.4;
    opacity: 0.8;
}

.contact-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-box-btn .material-symbols-rounded {
    font-size: 18px;
}

.contact-box-btn .btn-text {
    transition: all 0.3s ease;
}

.contact-box-btn-phone {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-box-btn-phone:hover {
    background: linear-gradient(135deg, #128C7E, #0F7A6B);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.contact-box-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-box-btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #0F7A6B);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.story-subtitle h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-color);
    margin: 0;
    position: relative;
    display: inline-block;
    transition: all 0.6s ease;
    letter-spacing: -0.02em;
}

.story-subtitle h3::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 1px;
    transition: transform 0.8s ease;
}

.story-subtitle h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    transition: transform 0.8s ease 0.3s;
}

.story-subtitle:hover h3::before,
.story-subtitle:hover h3::after {
    transform: translateX(-50%) scaleX(1);
}

.story-subtitle:hover h3 {
    transform: translateY(-3px);
    color: var(--bronze-accent);
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Story Content with Wave Connection */
.esperienza-story {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease-out 1s forwards;
}

/* Camere Section */
.camere-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.camere-text h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.camere-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Villa Gallery - Nuovo Carosello */
.villa-gallery {
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #000;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

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

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

.gallery-slide:hover img {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-slide:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.gallery-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-nav .material-symbols-rounded {
    font-size: 24px;
    color: var(--accent-color);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active,
.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.btn-elegant {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.2);
}

.btn-elegant:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.3);
}

/* Servizi Section */
.servizi-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.servizi-header h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.servizi-header p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.servizi-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

/* Nuovi stili per la sezione valori ridisegnata */
.motto-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.1), rgba(196, 164, 132, 0.15));
    padding: 20px 30px;
    border-radius: 50px;
    border: 1px solid rgba(139, 111, 71, 0.2);
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.motto-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.15);
}

.motto-quote {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 300;
    line-height: 1;
}

.motto-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-color);
    font-weight: 500;
    font-style: italic;
}

.valori-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.valore-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 111, 71, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.valore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.valore-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.valore-card:hover::before {
    opacity: 1;
}

.valore-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.15), rgba(196, 164, 132, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(139, 111, 71, 0.3);
}

.valore-icon .material-symbols-rounded {
    font-size: 36px;
    color: #8B6F47;
    font-weight: 500;
}

.valore-card:hover .valore-icon {
    background: linear-gradient(135deg, #8B6F47, #C4A484);
    transform: scale(1.1);
    border-color: #8B6F47;
}

.valore-card:hover .valore-icon .material-symbols-rounded {
    color: #ffffff;
}

.valore-card h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.valore-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.valori-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.08), rgba(196, 164, 132, 0.15));
    border-radius: 20px;
    border: 2px solid rgba(139, 111, 71, 0.2);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.1);
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.valori-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #8B6F47, #A67C52);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.4);
    border: 2px solid #8B6F47;
}

.valori-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.5);
    background: linear-gradient(135deg, #A67C52, #8B6F47);
    border-color: #A67C52;
}

.valori-btn .material-symbols-rounded {
    font-size: 20px;
}

.valori-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.valori-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Sostenibilità Section */
.sostenibilita-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sostenibilita-text h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.sostenibilita-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sostenibilita-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sostenibilita-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-elegant);
}

/* Contatti Section */
.contatti-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contatti-text h2 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contatti-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    line-height: 1.6;
    max-height: 0;
    overflow: visible;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    width: 100%;
}

.hero-text-expanded.show {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-link {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.expand-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    transform: translateX(2px);
}

.expand-link::after {
    content: '↓';
    margin-left: 5px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-link.expanded {
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapse-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: block;
}

.hero-text-expanded.show .collapse-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.collapse-link span {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapse-link span:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background: rgba(139, 69, 19, 0.05);
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.feature i {
    font-size: 1.2rem;
}

/* Dimensionamento coerente per Material Symbols */
.material-symbols-rounded {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    font-size: 1.4rem;
    line-height: 1;
    vertical-align: middle;
}

/* Colori personalizzati per le icone della hero section */
.hero-features .feature:nth-child(1) i {
    color: #e74c3c; /* Rosso caldo per l'assistenza medica */
}

.hero-features .feature:nth-child(2) i {
    color: #8B7355; /* Marrone caldo per l'ambiente familiare */
}

.hero-features .feature:nth-child(3) i {
    color: #27ae60; /* Verde per la natura e vita all'aperto */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Pulsanti */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-success {
    background: #25D366;
    color: var(--white);
}

.btn-success:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-large {
    font-size: 1.1rem;
    padding: 20px 40px;
}

/* Filosofia Section */
.filosofia {
    background: var(--white);
    position: relative;
}



.filosofia-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.filosofia-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.filosofia-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* spaziatura adeguata per i post-it */
    margin-top: 40px;
}

.value {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 18px 26px;
    background: #FFF3C4; /* giallo carta post-it */
    border-radius: 10px;
    border: 1px solid #E8D08C;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 10px 20px rgba(90, 74, 58, 0.08), 0 3px 8px rgba(90, 74, 58, 0.06);
}

.value:hover {
    transform: translateY(-4px) rotate(0deg);
    box-shadow: 0 16px 30px rgba(90, 74, 58, 0.14), 0 6px 14px rgba(90, 74, 58, 0.10);
}

.value i {
    font-size: 1.8rem;
    color: #C98A00; /* oro caldo su giallo */
    flex-shrink: 0;
}

.value::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 70px;
    height: 16px;
    background: rgba(234, 215, 195, 0.6); /* nastro trasparente */
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.value::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 16px solid rgba(255, 255, 255, 0.7); /* angolo piegato chiaro */
    border-left: 16px solid transparent;
}

.value-content h4 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.value-content p {
    color: var(--text-light);
    line-height: 1.4;
    font-size: 0.95rem;
    margin: 0;
}

/* leggere rotazioni alternate per effetto post-it */
.value:nth-child(1) { transform: rotate(-1.2deg); }
.value:nth-child(2) { transform: rotate(0.6deg); }
.value:nth-child(3) { transform: rotate(-0.3deg); }

/* Struttura Section */
.struttura {
    background: var(--accent-color);
    position: relative;
}



.struttura-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.struttura-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.struttura-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.struttura-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.struttura-info {
    padding: 30px;
}

.struttura-info h3 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.struttura-info p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Servizi Section */
.servizi {
    background: var(--white);
    position: relative;
}



.servizi-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.servizi-category {
    background: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
}

.servizi-category h3 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.servizi-category h3 i {
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.servizi-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Aggiornato da 20px a 15px */
}

.servizio-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px; /* Aggiornato da 15px a 12px 15px */
    background: var(--white);
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    font-size: 0.95rem; /* Aggiunto per consistenza */
}

.servizio-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.servizio-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 20px;
}

.servizio-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* Ottimizzazione spazi per TUTTE le sezioni servizi */
.servizio-item span {
    line-height: 1.4; /* Migliore leggibilità con testo più compatto */
}

/* Media query per mobile - spazi ancora più compatti */
@media (max-width: 768px) {
    .servizi-list {
        gap: 12px; /* Ancora più compatto su mobile */
    }
    
    .servizio-item {
        padding: 10px 12px; /* Padding ridotto su mobile */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .servizi-list {
        gap: 10px; /* Massima compattezza su schermi piccoli */
    }
    
    .servizio-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .servizio-item span {
        line-height: 1.3;
    }
}

/* Servizi Extra - Design creativo con stile appunti/tele */
.servizi-extra {
    background: var(--accent-color);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.servizi-extra-header {
    text-align: center;
    margin-bottom: 50px;
}

.servizi-extra-header h3 {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.servizi-extra-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout griglia creativa per i servizi extra */
.servizi-extra .extra-services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: start;
}

.servizi-extra .extra-item {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 20px 40px 20px 40px;
    padding: 30px 20px;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.servizi-extra .extra-item:nth-child(odd) { transform: rotate(-1deg); }
.servizi-extra .extra-item:nth-child(even) { transform: rotate(1deg); }

.servizi-extra .extra-item:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.servizi-extra .extra-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D2B48C 0%, #F5DEB3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(210, 180, 140, 0.3);
}

.servizi-extra .extra-icon i { color: var(--white); font-size: 1.6rem; }

.servizi-extra .extra-content h4 {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    margin-bottom: 8px;
}

.servizi-extra .extra-content p {
    color: var(--text-light);
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    line-height: 1.4;
}

/* Attività Section */
.attivita {
    background: var(--light-gray);
    position: relative;
    padding: 80px 0;
}

.attivita-header {
    text-align: center;
    margin-bottom: 60px;
}

.attivita-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.attivita-header p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sezione Attività Principali */
.attivita-main-content {
    margin-bottom: 80px;
}

.attivita-text-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.attivita-text-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.attivita-text-section > p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.attivita-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.highlight-item {
    text-align: left;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(139, 115, 85, 0.08);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.12);
}

.highlight-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.highlight-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}


/* CTA Section - Apple Style */
.attivita-cta {
    background: #f8f9fa;
    padding: 4rem 2rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.attivita-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.2), transparent);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 3rem;
    font-weight: 400;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 200px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #8b7355;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.button-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.button-icon span {
    font-size: 20px;
    color: #8b7355;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.button-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.2;
}

.button-subtitle {
    font-size: 0.875rem;
    color: #86868b;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0.125rem;
}

.cta-button-primary:hover .button-icon span {
    color: #6b5b47;
}

.cta-button-secondary:hover .button-icon span {
    color: #25d366;
}

.giornata-tipo h3,
.laboratori h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}

.timeline-time {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 70px;
    margin-left: 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    padding: 12px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: 30px;
    border-radius: 35px 25px 30px 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: relative;
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
}

/* Effetto nuvoletta con decorazioni */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.8;
}

.timeline-content::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 25px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
}

.timeline-content:hover {
    transform: translateY(-5px) rotate(-0.3deg);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.timeline-content h4 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.timeline-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Laboratori Grid */
.laboratori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.laboratorio-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.laboratorio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.laboratorio-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.laboratorio-item h4 {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.laboratorio-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contatti Section */
.contatti {
    background: var(--white);
    position: relative;
}


.contatti-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contatti-info-left {
    height: fit-content;
}

.contatti-info-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: fit-content;
}

.contatti-info h3,
.contatti-info-left h3,
.contatti-info-right h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contatti-info > p,
.contatti-info-left > p,
.contatti-info-right > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-description {
    text-align: center;
    margin-top: 20px;
}

.contact-description p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.contatti-bottom-section {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.contatti-bottom-section h3 {
    margin-top: 20px;
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
    min-width: 25px;
}

.contact-item h4 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.5;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    background: var(--accent-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    height: fit-content;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-section h4 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-buttons .btn {
    width: 100%;
    text-align: center;
}

/* Form di Contatto */
.contact-form-container {
    background: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(181, 201, 215, 0.1);
}

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

.checkbox-group {
    margin: 30px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Footer */
/* Footer */
/* Footer Elegant */
.footer {
    background: var(--background-color);
    color: var(--text-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo .logo-icon {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo .logo-svg {
    width: 100%;
    height: auto;
    max-width: 120px;
    object-fit: contain;
}

.footer-logo .logo-text h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.05em;
}

.footer-logo .logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    letter-spacing: 0.1em;
}

.footer-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon span {
    font-size: 2.5rem;
    color: var(--gold-accent);
}

.contact-text {
    font-size: 0.7rem;
}

.contact-label {
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.contact-link {
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.contact-address {
    color: var(--text-light);
    font-size: 0.65rem;
    line-height: 1.3;
    font-weight: 500;
    user-select: none;
}

/* Responsive Elegant */

/* Tablet and Mobile Header */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav-container {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-actions {
        display: none; /* Nascondi completamente su mobile dato che abbiamo la sticky bar */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }

    .nav-logo {
        order: 1;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        background: var(--accent-color) !important;
        background-color: var(--accent-color) !important;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
    }


    .nav-menu a {
        color: var(--text-color);
        padding: 1rem 2rem;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        max-width: 300px;
        text-align: center;
        transition: var(--transition);
        border-radius: 8px;
        margin: 0.25rem 0;
    }

    .nav-menu a:hover {
        background: rgba(139, 111, 71, 0.1);
        color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(139, 111, 71, 0.15);
    }

    /* CTA Button Mobile */
    .nav-cta-buttons {
        order: 2;
        display: flex;
    }

    .nav-cta-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .cta-text {
        display: block; /* Mostra il testo anche su mobile */
    }

    .cta-icon {
        width: 16px;
        height: 16px;
    }

    .cta-icon .material-symbols-rounded {
        font-size: 16px;
    }

    .nav-actions {
        order: 2;
        gap: 0.3rem;
    }

    .nav-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text p {
        font-size: 0.65rem;
    }
}

/* CTA Button per schermi molto piccoli */
@media (max-width: 480px) {
    .nav-cta-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        border-radius: 18px;
    }

    .cta-icon {
        width: 14px;
        height: 14px;
    }

    .cta-icon .material-symbols-rounded {
        font-size: 14px;
    }
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
        color: var(--white);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-description p {
        font-size: 1rem;
        color: var(--white);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }


    .hero-cta {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-width: 140px;
    }
}

/* Sections Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .esperienza-content,
    .sostenibilita-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .esperienza-text,
    .sostenibilita-text {
        padding-right: 0;
    }

    .esperienza-text h2,
    .camere-text h2,
    .servizi-header h2,
    .sostenibilita-text h2,
    .contatti-text h2 {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .esperienza-story {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .sostenibilita-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Attività Section Mobile */
    .attivita-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlight-item {
        padding: 1.5rem;
    }


    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: flex-start;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }


    /* Story Subtitle Mobile */
    .story-subtitle {
        margin: 30px 0 40px;
    }

    /* Contact Section Mobile */
    .contact-section {
        margin: 60px 0 40px;
    }

    .contact-section-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .contact-section-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        margin-bottom: 2rem;
        padding: 0 20px;
    }

    .contact-boxes {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        padding: 0 20px;
    }

    .contact-box {
        padding: 24px 20px;
        border-radius: 12px;
    }


    .contact-box-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .contact-box-description {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .contact-box-availability {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .contact-box-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .contact-box-btn .material-symbols-rounded {
        font-size: 16px;
    }

    .story-subtitle h3 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .valori-content {
        text-align: center;
    }

    /* Valori Section Mobile */
    .valori-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .valore-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .valore-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .valore-icon .material-symbols-rounded {
        font-size: 28px;
    }

    .valore-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .valore-card p {
        font-size: 0.9rem;
    }

    .valori-cta {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }

    .cta-text {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .valori-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .motto-highlight {
        padding: 15px 20px;
        margin: 1.5rem 0;
    }

    .motto-quote {
        font-size: 1.5rem;
    }

    .motto-text {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
    }
}

/* Valori Section - Mobile molto piccolo */
@media (max-width: 480px) {
    .valori-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .valore-card {
        padding: 1.2rem;
    }
    
    .valore-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .valore-icon .material-symbols-rounded {
        font-size: 24px;
    }
    
    .valore-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .valore-card p {
        font-size: 0.85rem;
    }
}

/* Villa Gallery Mobile */
@media (max-width: 768px) {
    .villa-gallery {
        margin: 3rem 0;
        max-width: 95%;
    }
    
    .gallery-container {
        border-radius: 16px;
    }
    
    .gallery-slides {
        height: 350px;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav .material-symbols-rounded {
        font-size: 20px;
    }
    
    .gallery-prev {
        left: 15px;
    }
    
    .gallery-next {
        right: 15px;
    }
    
    .gallery-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .villa-gallery {
        margin: 2rem 0;
        max-width: 100%;
    }
    
    .gallery-container {
        border-radius: 12px;
    }
    
    .gallery-slides {
        height: 280px;
    }
    
    .gallery-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
    }
    
    .gallery-nav .material-symbols-rounded {
        font-size: 18px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .gallery-dot {
        width: 8px;
        height: 8px;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contacts {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-item {
        gap: 0.3rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon span {
        font-size: 2rem;
    }

    .contact-text {
        font-size: 0.65rem;
    }

    .contact-address {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .footer-contacts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.6rem;
    }

    .footer-logo {
        gap: 1rem;
    }

    .footer-logo .logo-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 12px;
    }
}

@media (max-width: 360px) {
    .footer-content {
        padding: 0 10px;
    }
}

.footer-section {
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-secondary);
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section h3 {
    font-size: 1.4rem;
}

.footer-section h4 {
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.5;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.2);
    padding-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Ottimizzazione mobile per footer-bottom */
@media (max-width: 768px) {
    .footer-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 360px) {
    .footer-bottom {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.footer-bottom p {
    opacity: 0.8;
        font-size: 0.9rem;
    }

/* Footer Legal Links */
.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: rgba(245, 230, 211, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-link:hover {
    color: var(--white);
    background-color: rgba(245, 230, 211, 0.1);
    transform: translateY(-1px);
}

    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-link {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

/* =============================================
   SISTEMA RESPONSIVE COMPLETO E STRUTTURATO
   ============================================= */

/* Breakpoint Definitions:
   - xs: 0-575px (Mobile piccolo)
   - sm: 576-767px (Mobile grande)
   - md: 768-991px (Tablet)
   - lg: 992-1199px (Desktop piccolo)
   - xl: 1200-1439px (Desktop medio)
   - xxl: 1440px+ (Desktop grande)
*/

/* =============================================
   DESKTOP GRANDE (1440px+)
   ============================================= */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .section {
        padding: 100px 0;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .filosofia-values {
        gap: 50px;
    }

    .struttura-grid,
    .laboratori-grid {
        gap: 50px;
    }

    .servizi-categories {
        gap: 50px;
    }

    .servizi-extra .extra-services-container {
        gap: 45px;
    }


    /* Footer Desktop Grande */
    .footer-content {
        padding: 0 40px;
    }
}

/* =============================================
   DESKTOP MEDIO (1200-1439px)
   ============================================= */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .section {
        padding: 90px 0;
    }

    .hero {
        padding: 120px 0 90px;
    }

    /* Footer Desktop Medio */
    .footer-content {
        padding: 0 30px;
    }
}

/* =============================================
   DESKTOP PICCOLO (992-1199px)
   ============================================= */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 1100px;
        padding: 0 25px;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

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

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 110px 0 80px;
    }

    .filosofia-values {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .struttura-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .servizi-extra .extra-services-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .laboratori-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    /* Footer Desktop Piccolo */
    .footer-content {
        padding: 0 25px;
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

/* =============================================
   TABLET (768-991px)
   ============================================= */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 900px;
        padding: 0 25px;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 100px 0 70px;
        min-height: 90vh;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text {
        order: 2;
        text-align: center;
    }
    
    .hero-image {
        order: 1;
    }

    .filosofia-values {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .struttura-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .servizi-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .servizi-extra .extra-services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .laboratori-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .timeline {
        padding-left: 0;
        max-width: 100%;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        position: relative;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -15px;
        transform: translateX(-50%);
        width: 30px;
        height: 30px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border-radius: 50%;
        border: 4px solid var(--white);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .timeline-time {
        margin-left: 0;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--primary-color);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
        padding: 15px 25px;
        border-radius: 25px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
        display: inline-block;
        margin: 0 auto 15px auto;
    }

    .contact-form-container {
        padding: 35px;
}

    /* Footer Tablet */
    .footer-content {
        padding: 0 25px;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer {
        padding: 45px 0 20px;
    }
}

/* =============================================
   MOBILE GRANDE (576-767px)
   ============================================= */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    /* Mobile Navigation */
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-logo h2 {
        font-size: 1.6rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--accent-color) !important;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow);
        padding: 120px 20px 40px;
        gap: 30px;
        overflow-y: auto;
        z-index: 999;
    }


    .nav-cta {
        margin-top: 20px !important;
        padding: 15px 30px !important;
        font-size: 1.1rem !important;
    }


    /* Hero Section Mobile Ottimizzato */
    .hero {
        min-height: 100vh;
        padding: 100px 0 60px;
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 500px;
    }

    .hero-text h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
        line-height: 1.1;
        margin-bottom: 20px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.1rem);
        line-height: 1.5;
        margin-bottom: 25px;
        text-align: center;
        padding: 0 10px;
    }

    .hero-text-expanded {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.5;
        text-align: center;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
        width: 100%;
    }

    .feature {
        flex: 0 0 auto;
        min-width: 120px;
        font-size: 0.9rem;
        padding: 10px 15px;
        text-align: center;
        background: var(--white);
        border-radius: var(--border-radius-small);
        box-shadow: var(--shadow-light);
        border: 1px solid var(--border-color);
    }

    .feature i {
        font-size: 1.1rem;
        margin-bottom: 5px;
        display: block;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .hero-image {
        order: 1;
        flex-shrink: 0;
        margin-bottom: 20px;
    }

    .hero-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        object-fit: cover;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filosofia-values {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
        margin: 0 auto;
    }

    .value {
        padding: 20px 15px;
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .value i {
        font-size: 2.2rem;
        margin-bottom: 12px;
        display: block;
    }

    .value h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .value p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .struttura-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .struttura-item img {
        height: 220px;
    }

    .struttura-info {
        padding: 25px;
    }

    .servizi-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servizi-category {
        padding: 30px 25px;
    }

    .servizi-category h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .servizio-item {
        padding: 12px 15px;
        gap: 12px;
    }

    .servizio-item i {
        font-size: 1.1rem;
    }

    .servizio-item span {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .servizi-extra .extra-services-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .servizi-extra {
        padding: 40px 20px;
        margin-top: 30px;
    }

    /* Riduci le rotazioni su mobile per migliore leggibilità */
    .servizi-extra .extra-item:nth-child(odd) { transform: rotate(-0.5deg); }
    .servizi-extra .extra-item:nth-child(even) { transform: rotate(0.5deg); }

    .servizi-extra .extra-item:hover {
        transform: translateY(-3px) rotate(0deg);
    }

    .servizi-extra-header {
        margin-bottom: 40px;
    }

    .servizi-extra-header h3 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        margin-bottom: 12px;
    }

    .servizi-extra-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    .extra-item {
        padding: 20px 15px;
        gap: 12px;
        height: 170px;
        min-height: 170px;
        margin-bottom: 15px;
    }

    .extra-icon {
        width: 50px;
        height: 50px;
        min-height: 50px;
        min-width: 50px;
    }

    .extra-icon i {
        font-size: 1.4rem;
    }

    .extra-content h4 {
        font-size: clamp(1rem, 2.2vw, 1.15rem);
        margin-bottom: 6px;
    }

    .extra-content p {
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
        line-height: 1.3;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .extra-item.extra-hidden.show {
        height: 170px;
        min-height: 170px;
        padding: 20px 15px;
    }

    .extra-controls {
        padding-top: 25px;
    }

    .extra-expand-btn,
    .extra-collapse-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .laboratori-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .laboratorio-item {
        padding: 25px 20px;
    }

    .laboratorio-item i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .laboratorio-item h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .laboratorio-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Sezione Contatti Responsive */
    .contatti-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .contatti-info-left {
        width: 100%;
        max-width: 500px;
    }

    .contatti-info-right {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    .contatti-info h3,
    .contatti-info-left h3,
    .contatti-info-right h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .contatti-info > p,
    .contatti-info-left > p,
    .contatti-info-right > p {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .contact-details {
        margin-bottom: 30px;
    }

    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 20px 15px;
        margin-bottom: 20px;
        background: var(--light-gray);
        border-radius: var(--border-radius-small);
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-item i {
        font-size: 1.8rem;
        margin-top: 0;
        color: var(--secondary-color);
    }

    .contact-item h4 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .contact-item p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .contact-item a {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-color);
        text-decoration: none;
        transition: var(--transition);
    }

    .contact-item a:hover {
        color: var(--secondary-color);
    }

    .cta-section {
        padding: 30px 20px;
        margin-top: 20px;
        min-height: auto;
        height: auto;
        background: var(--accent-color);
        border-radius: var(--border-radius);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-section h4 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .contact-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .contact-buttons .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 0.95rem;
        text-align: center;
    }

    .contatti-bottom-section {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        text-align: center;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .contatti-bottom-section h3 {
        margin-top: 15px;
        font-size: 1.3rem;
    }

    .contact-description p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Form Contatti Responsive */
    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-form h3 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }

    .checkbox-container {
        gap: 10px;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .checkmark {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }

    /* Timeline Mobile Ottimizzata */
    .timeline-item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 35px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
        padding: 22px;
        border-radius: 18px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        position: relative;
    }

    .timeline-item::after {
        width: 25px;
        height: 25px;
        bottom: -12px;
    }

    .timeline-time {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-color);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
        padding: 12px 20px;
        border-radius: 20px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
        display: inline-block;
        margin: 0 auto 15px auto;
    }

    .timeline-content {
        background: transparent;
        padding: 0;
        box-shadow: none;
        text-align: center;
    }

    .timeline-content h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--primary-color);
        font-weight: 600;
    }

    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--text-light);
    }
}

/* =============================================
   MOBILE PICCOLO (0-575px)
   ============================================= */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }

    /* Sezioni */
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 45px;
    }


    .giornata-tipo h3,
    .laboratori h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .filosofia-values {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 350px;
        margin: 0 auto;
    }

    .struttura-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servizi-categories {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .servizi-extra .extra-services-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .laboratori-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
        padding: 0 10px;
    }

    /* Hero Section Mobile Piccolo */
    .hero {
        min-height: 90vh;
        padding: 90px 0 50px;
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text {
        order: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 18px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.05rem);
        line-height: 1.5;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 5px;
    }

    .hero-text-expanded {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        line-height: 1.5;
        text-align: center;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-features {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 25px;
        width: 100%;
    }

    .feature {
        width: 100%;
        max-width: 220px;
        font-size: 0.9rem;
        padding: 12px 15px;
        text-align: center;
        background: var(--white);
        border-radius: var(--border-radius-small);
        box-shadow: var(--shadow-light);
        border: 1px solid var(--border-color);
    }

    .feature i {
        font-size: 1.2rem;
        margin-bottom: 8px;
        display: block;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .hero-image {
        order: 1;
        flex-shrink: 0;
        margin-bottom: 15px;
    }

    .hero-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        object-fit: cover;
    }

    /* Tipografia e Pulsanti */
    .btn {
        padding: 12px 20px;
        font-size: clamp(0.85rem, 3vw, 0.9rem);
        gap: 8px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: clamp(0.95rem, 3.5vw, 1rem);
    }

    /* Filosofia */
    .filosofia-text p {
        font-size: clamp(0.95rem, 3.2vw, 1rem);
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .value {
        padding: 20px 15px;
    }

    .value i {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .value h4 {
        font-size: clamp(1.05rem, 3.5vw, 1.15rem);
        margin-bottom: 10px;
    }

    .value p {
        font-size: clamp(0.85rem, 2.8vw, 0.9rem);
        line-height: 1.5;
    }

    /* Servizi Extra Ottimizzati */
    .servizi-extra {
        padding: 30px 15px;
        margin-top: 25px;
    }

    .servizi-extra .extra-services-container {
        gap: 20px;
    }

    .servizi-extra .extra-item {
        padding: 20px 15px;
        gap: 12px;
    }

    /* Riduci ulteriormente le rotazioni su schermi piccoli */
    .servizi-extra .extra-item:nth-child(odd) { transform: rotate(-0.3deg); }
    .servizi-extra .extra-item:nth-child(even) { transform: rotate(0.3deg); }

    .servizi-extra .extra-item:hover {
        transform: translateY(-2px) rotate(0deg);
    }

    .servizi-extra-header {
        margin-bottom: 35px;
    }

    .servizi-extra-header h3 {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
        margin-bottom: 10px;
    }

    .servizi-extra-subtitle {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        padding: 0 10px;
    }

    .extra-item {
        height: 140px;
        padding: 16px 12px;
        gap: 10px;
        margin-bottom: 12px;
    }

    .extra-icon {
        width: 40px;
        height: 40px;
    }

    .extra-icon i {
        font-size: 1.2rem;
    }

    .extra-content h4 {
        font-size: clamp(0.95rem, 3.2vw, 1.05rem);
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .extra-content p {
        font-size: clamp(0.75rem, 2.5vw, 0.8rem);
        line-height: 1.2;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .extra-item.extra-hidden.show {
        height: 140px;
        padding: 16px 12px;
    }

    .extra-controls {
        padding-top: 20px;
    }

    .extra-expand-btn,
    .extra-collapse-btn {
        padding: 10px 20px;
        font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    }

    /* Form e Contatti Ottimizzati */
    .contact-form-container,
    .cta-section {
        padding: 25px 15px;
    }

    .cta-section h4 {
        font-size: clamp(1.3rem, 4.5vw, 1.5rem);
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: clamp(0.85rem, 2.8vw, 0.9rem);
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: clamp(0.85rem, 2.8vw, 0.9rem);
    }

    .form-group textarea {
        min-height: 90px;
    }

    .checkbox-container {
        font-size: clamp(0.8rem, 2.5vw, 0.85rem);
        gap: 8px;
    }

    .checkmark {
        width: 16px;
        height: 16px;
    }

    /* Timeline Mobile Ottimizzata */
    .timeline-item {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 30px;
        padding: 20px 18px;
        border-radius: 16px;
    }

    .timeline-item::after {
        width: 22px;
        height: 22px;
        bottom: -11px;
    }

    .timeline-time {
        font-size: clamp(1.1rem, 3.5vw, 1.2rem);
        padding: 10px 18px;
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .timeline-content h4 {
        font-size: clamp(1.1rem, 3.2vw, 1.15rem);
        margin-bottom: 8px;
    }

    .timeline-content p {
        font-size: clamp(0.9rem, 2.5vw, 0.95rem);
        line-height: 1.4;
    }

    /* Footer Mobile Piccolo */
    .footer {
        padding: 35px 0 20px;
    }

    .footer-content {
        padding: 0 15px;
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-link {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* =============================================
   MOBILE MINI (0-359px)
   ============================================= */
@media (max-width: 359px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 40px 0;
    }

    /* Hero Section Mobile Mini */
    .hero {
        min-height: 85vh;
        padding: 80px 0 40px;
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .hero-text {
        order: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
        line-height: 1.1;
        margin-bottom: 15px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1rem);
        line-height: 1.4;
        margin-bottom: 18px;
        text-align: center;
        padding: 0 5px;
    }

    .hero-text-expanded {
        font-size: clamp(0.8rem, 4vw, 0.9rem);
        line-height: 1.4;
        text-align: center;
        padding: 0 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-features {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
    }

    .feature {
        width: 100%;
        max-width: 180px;
        font-size: 0.85rem;
        padding: 10px 12px;
        text-align: center;
        background: var(--white);
        border-radius: var(--border-radius-small);
        box-shadow: var(--shadow-light);
        border: 1px solid var(--border-color);
    }

    .feature i {
        font-size: 1.1rem;
        margin-bottom: 6px;
        display: block;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
    }

    .hero-image {
        order: 1;
        flex-shrink: 0;
        margin-bottom: 15px;
    }

    .hero-image img {
        width: 100%;
        max-width: 250px;
        height: auto;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        object-fit: cover;
    }

    .nav-menu {
        padding: 100px 15px 30px;
        gap: 25px;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 12px 15px;
        margin: 0 10px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .extra-item {
        height: 130px;
        padding: 14px 10px;
    }

    .extra-item.extra-hidden.show {
        height: 130px;
        padding: 14px 10px;
    }

    /* Design creativo ottimizzato per schermi molto piccoli */
    .servizi-extra .extra-services-container {
        gap: 15px;
    }

    .servizi-extra .extra-item {
        padding: 18px 12px;
        gap: 8px;
        transform: rotate(0deg) !important; /* Nessuna rotazione su schermi molto piccoli */
    }

    .servizi-extra .extra-item:hover {
        transform: translateY(-1px) rotate(0deg) !important;
    }

    .extra-icon {
        width: 35px;
        height: 35px;
    }

    .extra-icon i {
        font-size: 1.1rem;
    }

    .extra-content h4 {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: 4px;
    }

    .extra-content p {
        font-size: clamp(0.7rem, 2.8vw, 0.75rem);
        line-height: 1.1;
    }

    .btn {
        padding: 10px 16px;
        font-size: clamp(0.8rem, 3.2vw, 0.85rem);
        min-height: 44px; /* Touch target ottimizzato */
    }

    .btn-large {
        padding: 12px 24px;
        font-size: clamp(0.9rem, 3.8vw, 0.95rem);
        min-height: 48px;
    }


    .contact-item {
        padding: 15px 10px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        min-height: 44px; /* Touch target */
    }

    .form-group textarea {
        min-height: 100px;
    }

    /* Footer Mobile Mini */
    .footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        padding: 0 12px;
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section h4 {
        font-size: 0.95rem;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-link {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .footer-section p {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* =============================================
   OTTIMIZZAZIONI PER DISPOSITIVI TOUCH
   ============================================= */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-menu a,
    .contact-item a,
    .extra-expand-btn,
    .extra-collapse-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu a {
        padding: 15px 20px;
    }

    .servizio-item:hover,
    .struttura-item:hover,
    .laboratorio-item:hover,
    .value:hover,
    .extra-item:hover {
        transform: none;
    }

    .extra-item {
        min-height: 140px;
    }
}

/* =============================================
   ORIENTAMENTO LANDSCAPE SU MOBILE
   ============================================= */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 50px;
        min-height: 100vh;
    }

    .hero-content {
        gap: 30px;
    }

    .section {
        padding: 50px 0;
    }

    .nav-menu {
        padding: 80px 20px 30px;
    }

    .timeline-item {
        flex-direction: row;
        align-items: center;
        gap: 25px;
        text-align: left;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
        padding: 18px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        margin-bottom: 35px;
    }

    .timeline-time {
        min-width: 75px;
        text-align: center;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
        padding: 8px 12px;
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        font-size: 1rem;
        font-weight: 700;
    }

    .timeline-content {
        flex: 1;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
}

/* =============================================
   BREAKPOINT PERSONALIZZATI PER ELEMENTI SPECIFICI
   ============================================= */

/* Media Query per Tablet Portrait (768px - 900px) - STORICO */
@media (max-width: 900px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-features {
        justify-content: center;
        gap: 25px;
    }
    
    .filosofia-values {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .struttura-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .servizi-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .servizi-extra .extra-services-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    .laboratori-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form-container {
        padding: 35px;
    }
}

/* Media Query per Tablet Landscape e Desktop piccoli (900px - 1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
    .hero-text h1 {
        font-size: 3.2rem;
    }
    
    .filosofia-values {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .struttura-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    .servizi-extra .extra-services-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    .laboratori-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .navbar {
        padding: 8px 0;
    }

    .nav-container {
        padding: 0 10px;
    }

    .nav-logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 100px;
        height: 70px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
        line-height: 1.1;
    }

    .logo-text p {
        font-size: 0.65rem;
    }
    
    .nav-logo h2 {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--accent-color) !important;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow);
        padding: 120px 20px 40px;
        gap: 30px;
        overflow-y: auto;
        z-index: 999;
    }
    
    
    .nav-cta {
        margin-top: 20px !important;
        padding: 15px 30px !important;
        font-size: 1.1rem !important;
    }
    

    /* Sezioni */
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: clamp(1.8rem, 4vw, 2rem);
    }
    
    .hero {
        min-height: 100vh;
        padding: 100px 0 60px;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        gap: 50px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: clamp(2.2rem, 6vw, 2.8rem);
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .hero-text-expanded {
        font-size: clamp(0.95rem, 2.2vw, 1rem);
        line-height: 1.6;
    }
    
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .feature {
        gap: 10px;
        font-size: clamp(0.9rem, 2vw, 1rem);
        background: var(--white);
        padding: 12px 18px;
        border-radius: var(--border-radius-small);
        box-shadow: var(--shadow-light);
        border: 1px solid var(--border-color);
        min-width: 140px;
        justify-content: center;
    }
    
    .feature i {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .hero-image img {
        max-width: 400px;
        border-radius: var(--border-radius);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filosofia-values {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .value {
        padding: 25px 20px;
    }
    
    .value i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .value h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .struttura-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .struttura-item img {
        height: 220px;
    }
    
    .struttura-info {
        padding: 25px;
    }
    
    .servizi-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .servizi-category {
        padding: 30px 25px;
    }
    
    .servizi-category h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .servizio-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .servizio-item i {
        font-size: 1.1rem;
    }
    
    .servizio-item span {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .servizi-extra .extra-services-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .servizi-extra {
        padding: 40px 20px;
        margin-top: 30px;
    }

    /* Riduci le rotazioni su mobile per migliore leggibilità */
    .servizi-extra .extra-item:nth-child(odd) { transform: rotate(-0.5deg); }
    .servizi-extra .extra-item:nth-child(even) { transform: rotate(0.5deg); }

    .servizi-extra .extra-item:hover {
        transform: translateY(-3px) rotate(0deg);
    }
    
    .servizi-extra-header {
        margin-bottom: 40px;
    }
    
    .servizi-extra-header h3 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        margin-bottom: 12px;
    }
    
    .servizi-extra-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    
    .extra-item {
        padding: 20px 15px;
        gap: 12px;
        height: 170px;
        min-height: 170px;
        margin-bottom: 15px;
    }
    
    .extra-icon {
        width: 50px;
        height: 50px;
        min-height: 50px;
        min-width: 50px;
    }
    
    .extra-icon i {
        font-size: 1.4rem;
    }
    
    .extra-content h4 {
        font-size: clamp(1rem, 2.2vw, 1.15rem);
        margin-bottom: 6px;
    }
    
    .extra-content p {
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
        line-height: 1.3;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .extra-item.extra-hidden.show {
        height: 170px;
        min-height: 170px;
        padding: 20px 15px;
    }
    
    .extra-controls {
        padding-top: 25px;
    }
    
    .extra-expand-btn,
    .extra-collapse-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .laboratori-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .laboratorio-item {
        padding: 25px 20px;
    }
    
    .laboratorio-item i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .laboratorio-item h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .laboratorio-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Sezione Contatti Responsive */
    .contatti-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .contatti-info h3,
    .contatti-info-left h3,
    .contatti-info-right h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .contatti-info > p,
    .contatti-info-left > p,
    .contatti-info-right > p {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .contact-details {
        margin-bottom: 40px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .contact-item i {
        font-size: 1.8rem;
        margin-top: 0;
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .contact-item p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .contact-item a {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .cta-section {
        padding: 30px 20px;
        margin-top: 20px;
        min-height: auto;
        height: auto;
    }
    
    .cta-section h4 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-buttons .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .contatti-bottom-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .contatti-bottom-section h3 {
        margin-top: 15px;
    }
    
    /* Form Contatti Responsive */
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-form h3 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .checkbox-container {
        gap: 10px;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }
    
    
    .timeline-time {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-left: 0;
        margin-bottom: 8px;
        text-align: center;
        background: var(--accent-color);
        padding: 8px 15px;
        border-radius: var(--border-radius-small);
        display: inline-block;
    }
    
    .timeline-content {
        background: transparent;
        padding: 0;
        box-shadow: none;
        text-align: center;
    }
    
    .timeline-content h4 {
        font-size: 1.15rem;
        margin-bottom: 8px;
        color: var(--primary-color);
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        color: var(--text-light);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 6px 0;
    }

    .nav-container {
        padding: 0 8px;
    }

    .nav-logo {
        gap: 0.3rem;
    }

    .logo-icon {
        width: 85px;
        height: 60px;
    }

    .logo-text h1 {
        font-size: 1rem;
        line-height: 1;
    }

    .logo-text p {
        font-size: 0.6rem;
    }
    
    /* Sezioni */
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 45px;
    }
    
    .section-header h2 {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
        padding: 0 10px;
    }
    
    /* Hero Section */
    .hero {
        padding: 90px 0 50px;
        min-height: 85vh;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        line-height: 1.1;
        margin-bottom: 18px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.05rem);
        line-height: 1.5;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .hero-text-expanded {
        font-size: clamp(0.9rem, 3vw, 0.95rem);
        line-height: 1.5;
    }
    
    .hero-features {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .feature {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        padding: 10px 15px;
        min-width: 120px;
    }
    
    .feature i {
        font-size: 1rem;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .hero-image img {
        max-width: 350px;
    }
    
    /* Tipografia e Pulsanti */
    .btn {
        padding: 12px 20px;
        font-size: clamp(0.85rem, 3vw, 0.9rem);
        gap: 8px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: clamp(0.95rem, 3.5vw, 1rem);
    }
    
    /* Filosofia */
    .filosofia-text p {
        font-size: clamp(0.95rem, 3.2vw, 1rem);
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .value {
        padding: 20px 15px;
    }
    
    .value i {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .value h4 {
        font-size: clamp(1.05rem, 3.5vw, 1.15rem);
        margin-bottom: 10px;
    }
    
    .value p {
        font-size: clamp(0.85rem, 2.8vw, 0.9rem);
        line-height: 1.5;
    }
    
    /* Servizi Extra Ottimizzati */
    .servizi-extra {
        padding: 30px 15px;
        margin-top: 25px;
    }

    .servizi-extra .extra-services-container {
        gap: 20px;
    }

    .servizi-extra .extra-item {
        padding: 20px 15px;
        gap: 12px;
    }

    /* Riduci ulteriormente le rotazioni su schermi piccoli */
    .servizi-extra .extra-item:nth-child(odd) { transform: rotate(-0.3deg); }
    .servizi-extra .extra-item:nth-child(even) { transform: rotate(0.3deg); }

    .servizi-extra .extra-item:hover {
        transform: translateY(-2px) rotate(0deg);
    }
    
    .servizi-extra-header {
        margin-bottom: 35px;
    }
    
    .servizi-extra-header h3 {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
        margin-bottom: 10px;
    }
    
    .servizi-extra-subtitle {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        padding: 0 10px;
    }
    
    .extra-item {
        height: 140px;
        padding: 16px 12px;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .extra-icon {
        width: 40px;
        height: 40px;
    }
    
    .extra-icon i {
        font-size: 1.2rem;
    }
    
    .extra-content h4 {
        font-size: clamp(0.95rem, 3.2vw, 1.05rem);
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .extra-content p {
        font-size: clamp(0.75rem, 2.5vw, 0.8rem);
        line-height: 1.2;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .extra-item.extra-hidden.show {
        height: 140px;
        padding: 16px 12px;
    }
    
    .extra-controls {
        padding-top: 20px;
    }
    
    .extra-expand-btn,
    .extra-collapse-btn {
        padding: 10px 20px;
        font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    }
    
    /* Form e Contatti Ottimizzati */
    .contact-form-container,
    .cta-section {
        padding: 25px 15px;
    }
    
    .cta-section h4 {
        font-size: clamp(1.3rem, 4.5vw, 1.5rem);
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: clamp(0.85rem, 2.8vw, 0.9rem);
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: clamp(0.85rem, 2.8vw, 0.9rem);
    }
    
    .form-group textarea {
        min-height: 90px;
    }
    
    .checkbox-container {
        font-size: clamp(0.8rem, 2.5vw, 0.85rem);
        gap: 8px;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
    }
    
    /* Timeline Mobile Ottimizzata */
    .timeline-item {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 28px;
        padding: 18px 15px;
        border-radius: 14px;
    }

    .timeline-item::after {
        width: 20px;
        height: 20px;
        bottom: -10px;
    }

    .timeline-time {
        font-size: clamp(1rem, 3.5vw, 1.1rem);
        padding: 8px 15px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .timeline-content h4 {
        font-size: clamp(1rem, 3.2vw, 1.1rem);
        margin-bottom: 7px;
    }

    .timeline-content p {
        font-size: clamp(0.85rem, 2.5vw, 0.9rem);
        line-height: 1.35;
    }

    /* Assicurati che tutti gli elementi siano touch-friendly */
    .btn {
        min-height: 48px;
        padding: 12px 24px;
    }

    .contact-buttons .btn {
        min-height: 50px;
    }

    /* Migliora la leggibilità su mobile piccolo */
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

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

/* Media Query per schermi molto piccoli (360px e sotto) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 40px 0;
    }


    .giornata-tipo h3,
    .laboratori h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .filosofia-values {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
        margin: 0 auto;
    }

    .struttura-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .servizi-categories {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }

    .servizi-extra .extra-services-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .laboratori-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: 80vh;
    }
    
    .hero-text h1 {
        font-size: clamp(1.6rem, 8vw, 2rem);
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1rem);
        padding: 0 5px;
        margin-bottom: 18px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .feature {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        padding: 8px 12px;
    }
    
    .nav-menu {
        padding: 100px 15px 30px;
        gap: 25px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 12px 15px;
        margin: 0 10px;
    }
    
    .section-header h2 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    
    .extra-item {
        height: 130px;
        padding: 14px 10px;
    }

    .extra-item.extra-hidden.show {
        height: 130px;
        padding: 14px 10px;
    }

    /* Design creativo ottimizzato per schermi molto piccoli */
    .servizi-extra .extra-services-container {
        gap: 15px;
    }

    .servizi-extra .extra-item {
        padding: 18px 12px;
        gap: 8px;
        transform: rotate(0deg) !important; /* Nessuna rotazione su schermi molto piccoli */
    }

    .servizi-extra .extra-item:hover {
        transform: translateY(-1px) rotate(0deg) !important;
    }
    
    .extra-icon {
        width: 35px;
        height: 35px;
    }
    
    .extra-icon i {
        font-size: 1.1rem;
    }
    
    .extra-content h4 {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: 4px;
    }
    
    .extra-content p {
        font-size: clamp(0.7rem, 2.8vw, 0.75rem);
        line-height: 1.1;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: clamp(0.8rem, 3.2vw, 0.85rem);
        min-height: 44px; /* Touch target ottimizzato */
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: clamp(0.9rem, 3.8vw, 0.95rem);
        min-height: 48px;
    }
    
    .timeline-item {
        padding: 16px 12px;
        margin-bottom: 25px;
        border-radius: 12px;
        gap: 14px;
    }

    .timeline-item::after {
        width: 18px;
        height: 18px;
        bottom: -9px;
    }

    .timeline-time {
        padding: 7px 12px;
        border-radius: 14px;
        margin-bottom: 8px;
    }

    .timeline-content h4 {
        margin-bottom: 6px;
    }

    .timeline-content p {
        line-height: 1.3;
    }

    .contact-item {
        padding: 15px 10px;
    }

    /* Assicurati che tutti gli elementi siano touch-friendly anche su schermi molto piccoli */
    .btn {
        min-height: 46px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-buttons .btn {
        min-height: 48px;
        font-size: 0.9rem;
    }

    /* Migliora ulteriormente la leggibilità su schermi molto piccoli */
    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        min-height: 44px; /* Touch target */
    }
    
    .form-group textarea {
        min-height: 100px;
    }
}

/* Mobile Sticky Bar Elegant */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8B6F47 0%, #A67C52 100%);
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    display: none; /* Nascondi su desktop per default */
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sticky-bar.show {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}


.mobile-sticky-bar .sticky-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mobile-sticky-bar .sticky-text {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

.mobile-sticky-bar .sticky-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #8B6F47;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.mobile-sticky-bar .sticky-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #6B5B47;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-sticky-bar .sticky-btn .material-symbols-rounded {
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Mostra sticky bar sempre su mobile */
    .mobile-sticky-bar {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .mobile-sticky-bar.show {
        opacity: 1;
        transform: translateY(0);
    }

    .header-top {
        display: none; /* Nascondi header top su mobile */
    }

    .nav-actions {
        display: none; /* Nascondi azioni header su mobile */
    }

    /* Mobile sticky bar responsive */
    .mobile-sticky-bar {
        padding: 0.75rem 1rem;
    }

    .mobile-sticky-bar .sticky-content {
        gap: 0.5rem;
        justify-content: center;
    }

    .mobile-sticky-bar .sticky-text {
        font-size: 0.85rem;
    }

    .mobile-sticky-bar .sticky-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.4rem;
        flex: 1;
        min-width: 140px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .mobile-sticky-bar {
        padding: 0.6rem 0.75rem;
    }

    .mobile-sticky-bar .sticky-content {
        gap: 0.4rem;
        justify-content: center;
    }

    .mobile-sticky-bar .sticky-text {
        font-size: 0.8rem;
    }

    .mobile-sticky-bar .sticky-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        gap: 0.3rem;
        min-width: 120px;
        max-width: 160px;
    }

    .mobile-sticky-bar .sticky-btn .material-symbols-rounded {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .mobile-sticky-bar {
        padding: 0.5rem;
    }

    .mobile-sticky-bar .sticky-content {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-sticky-bar .sticky-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        min-width: 180px;
        max-width: 100%;
        justify-content: center;
    }
}

/* Media Query per schermi grandi (1440px e sopra) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .section {
        padding: 100px 0;
    }
    
    .hero {
        padding: 140px 0 100px;
    }
    
    .filosofia-values {
        gap: 50px;
    }
    
    .struttura-grid,
    .laboratori-grid {
        gap: 50px;
    }
    
    .servizi-categories {
        gap: 50px;
    }
    
    .servizi-extra .extra-services-container {
        gap: 45px;
    }
    
}

/* Ottimizzazioni per touch device */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-menu a,
    .contact-item a,
    .extra-expand-btn,
    .extra-collapse-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 15px 20px;
    }
    
    .servizio-item:hover,
    .struttura-item:hover,
    .laboratorio-item:hover,
    .value:hover,
    .extra-item:hover {
        transform: none;
    }
    
    .extra-item {
        min-height: 140px;
    }
}

/* Media Query per orientamento landscape su mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 50px;
        min-height: 100vh;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .nav-menu {
        padding: 80px 20px 30px;
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: center;
        gap: 25px;
        text-align: left;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        margin-bottom: 40px;
    }

    .timeline-time {
        min-width: 80px;
        text-align: center;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
        padding: 10px 15px;
        border-radius: 15px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        font-size: 1.1rem;
        font-weight: 700;
    }

    .timeline-content {
        flex: 1;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInContact 0.8s ease 1s forwards;
}

/* Main Contact Button */
.contact-btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #20C55A 50%, #16A34A 100%);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.25), 0 4px 16px rgba(37, 211, 102, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.contact-btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 50%, transparent 70%);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.contact-btn-main:hover::before {
    transform: scale(1);
    opacity: 1;
}

.contact-btn-main i {
    font-size: 1.6rem;
    z-index: 1;
    position: relative;
    animation: phonePulse 2.5s infinite;
    transition: all 0.3s ease;
}

.contact-btn-main:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.35), 0 8px 20px rgba(37, 211, 102, 0.25);
    background: linear-gradient(135deg, #20C55A 0%, #16A34A 50%, #15803D 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-btn-main:hover i {
    transform: scale(1.1);
    animation-duration: 1.5s;
}

.contact-btn-main:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Menu Options */
.contact-btn-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-btn-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInOption 0.3s ease forwards;
}

.contact-option.animate-in {
    animation: slideInOption 0.3s ease forwards;
}

.contact-option:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.phone-option:hover {
    background: #f0f9ff;
    color: #0369a1;
}

.whatsapp-option:hover {
    background: #f0fdf4;
    color: #25D366;
}

.contact-option i {
    font-size: 1.2rem;
}

.phone-option i {
    color: #0369a1;
}

.whatsapp-option i {
    color: #25D366;
}

/* Tooltip */
.contact-btn-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(15px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(10px);
    min-width: 180px;
}

.contact-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--white);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.floating-contact-btn:hover .contact-btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
}

.contact-btn-tooltip span {
    font-weight: 700;
    color: #25D366;
    font-size: 1rem;
    display: block;
    margin-bottom: 6px;
    text-align: center;
}

.contact-info {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Pulse Animation Ring */
.floating-contact-btn::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid #25D366;
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Floating Button */
@media (max-width: 768px) {
    .floating-contact-btn {
        right: 20px;
        bottom: 20px;
    }
    
    .contact-btn-main {
        width: 60px;
        height: 60px;
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25), 0 4px 12px rgba(37, 211, 102, 0.15);
    }
    
    .contact-btn-main i {
        font-size: 1.4rem;
    }
    
    .contact-btn-menu {
        bottom: 75px;
        gap: 10px;
    }
    
    .contact-option {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    .contact-btn-tooltip {
        right: 65px;
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .contact-btn-tooltip span {
        font-size: 0.85rem;
    }
    
    .contact-info {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .floating-contact-btn {
        right: 15px;
        bottom: 15px;
    }
    
    .contact-btn-main {
        width: 56px;
        height: 56px;
    }
    
    .contact-btn-main i {
        font-size: 1.3rem;
    }
    
    .contact-btn-menu {
        bottom: 70px;
        gap: 8px;
    }
    
    .contact-option {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 110px;
    }
    
    /* Su mobile, nascondi il tooltip al hover e mostralo sempre per qualche secondo dopo il caricamento */
    .contact-btn-tooltip {
        opacity: 0;
        visibility: hidden;
    }
    
    .floating-contact-btn.show-tooltip .contact-btn-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
        animation: showTooltipMobile 4s ease forwards;
    }
}

@media (max-width: 360px) {
    .floating-contact-btn {
        right: 12px;
        bottom: 12px;
    }
    
    .contact-btn-main {
        width: 52px;
        height: 52px;
    }
    
    .contact-btn-main i {
        font-size: 1.2rem;
    }
    
    .contact-btn-menu {
        bottom: 65px;
    }
    
    .contact-option {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 100px;
    }
}

/* Accessibilità */
.contact-btn-main:focus,
.contact-option:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .contact-btn-main i,
    .floating-contact-btn::after {
        animation: none;
    }
    
    .floating-contact-btn {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-btn-main {
        border: 2px solid var(--text-color);
    }
    
    .contact-btn-tooltip {
        border: 2px solid var(--text-color);
    }
    
    .contact-option {
        border: 1px solid var(--text-color);
    }
}

/* Animazioni */
@keyframes fadeInContact {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes phonePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(2deg);
    }
    50% {
        transform: scale(1.08) rotate(0deg);
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
    }
}

@keyframes pulseRing {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    20% {
        opacity: 0.4;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes showTooltipMobile {
    0%, 20% {
        opacity: 1;
        visibility: visible;
    }
    80%, 100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideInOption {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header,
.hero-text,
.filosofia-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus per accessibilità */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===================== */
/* Nuova identità visiva */
/* ===================== */

:root {
    /* Palette aggiornata (più accogliente e calorosa) */
    --primary-color: #7A5533; /* Marrone caldo */
    --secondary-color: #C86F43; /* Terracotta */
    --accent-color: #F6EBDD; /* Beige crema */
    --background-color: #FFFAF4; /* Avorio caldo morbido */
    --text-color: #3F3328; /* Testo scuro ma caldo */
    --text-light: #6F5E51; /* Testo medio caldo */

    /* Geometrie leggermente più morbide ma distintive */
    --border-radius: 2px;
    --border-radius-small: 2px;
    --corner-cut: 12px; /* angoli tagliati più piccoli = più accoglienti */

    /* Ombre più diffuse e morbide */
    --shadow: 0 16px 36px rgba(63, 51, 40, 0.12);
    --shadow-light: 0 10px 22px rgba(63, 51, 40, 0.07);
}

/* Angoli tagliati riutilizzabili */
.cut-corners {
    /* taglia angolo in alto a destra e in basso a sinistra */
    clip-path: polygon(
        0% 0%,
        calc(100% - var(--corner-cut)) 0%,
        100% var(--corner-cut),
        100% 100%,
        var(--corner-cut) 100%,
        0% calc(100% - var(--corner-cut))
    );
}

.section {
    position: relative;
    background-clip: padding-box;
}

/* Hero più geometrica, con immagine a taglio */
.hero {
    background: radial-gradient(1200px 600px at 20% 10%, rgba(200,111,67,0.12), transparent 60%),
                linear-gradient(120deg, var(--background-color) 0%, var(--accent-color) 100%);
}

.hero-image img {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
    box-shadow: var(--shadow);
}


/* Card/box: applica angoli tagliati e bordi più grafici */
.struttura-item,
.servizi-category,
.servizio-item,
.laboratorio-item,
.timeline-content,
.contact-item,
.extra-item,
.cta-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.struttura-item,
.servizi-category,
.laboratorio-item,
.cta-section,
.extra-item {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, rgba(200,111,67,0.05) 100%);
}

/* Applica taglio angoli ai principali box */
.struttura-item,
.servizi-category,
.laboratorio-item,
.timeline-content,
.contact-item,
.extra-item,
.cta-section {
    clip-path: none;
}

/* Pulsanti trapezoidali */
.btn {
    position: relative;
    clip-path: none;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.22), transparent 40%);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.btn:hover::before { opacity: 1; }

/* Icone: contenitori squadrati con bordo e accento */
.feature i,
.servizi-category h3 i,
.servizio-item i,
.laboratorio-item i,
.extra-icon i,
.contact-item i,
.material-symbols-rounded {
    filter: drop-shadow(0 2px 0 rgba(63,52,41,0.08));
}

.extra-icon {
    border-radius: 8px;
    clip-path: none;
    background: linear-gradient(135deg, #D2B48C, #F5DEB3);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 15px rgba(210, 180, 140, 0.2);
}

/* Timeline più grafica: linea e nodi squadrati */
.timeline::before {
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        var(--secondary-color) 0 8px,
        transparent 8px 16px
    );
}

/* Navbar CTA più distintiva */
.nav-cta {
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* Footer con bordo superiore inclinato */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 28px;
    background: linear-gradient(135deg, transparent 0 48%, rgba(122,85,51,0.5) 48% 52%, transparent 52% 100%);
}

/* Mobile tweaks per i clip-path (angoli più piccoli) */
@media (max-width: 768px) {
    :root { --corner-cut: 10px; }
    .btn { clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
    .hero-image img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
}

/* =============================== */
/* Decorazioni floreali di sfondo  */
/* =============================== */

:root {
    --floral-primary: rgba(200, 111, 67, 0.12); /* terracotta tenue */
    --floral-secondary: rgba(122, 85, 51, 0.10); /* marrone caldo tenue */
}

/* SVG fiore stilizzato (petali morbidi) come data-URI */
/* Nota: usare currentColor per adattarsi alla palette */
.floral-bg::before,
.floral-bg::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 640px;
    height: 640px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
    filter: blur(0.5px);
}

/* Hero: fiore grande in alto a destra */
.hero.floral-bg::before {
    right: -140px;
    top: -120px;
    color: var(--floral-primary);
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'>\
  <g fill='currentColor'>\
    <circle cx='400' cy='240' r='120' opacity='0.28'/>\
    <circle cx='520' cy='360' r='120' opacity='0.24'/>\
    <circle cx='400' cy='480' r='120' opacity='0.22'/>\
    <circle cx='280' cy='360' r='120' opacity='0.26'/>\
    <circle cx='400' cy='360' r='110' opacity='0.18'/>\
    <circle cx='400' cy='360' r='40' opacity='0.35'/>\
    <ellipse cx='400' cy='360' rx='200' ry='40' opacity='0.08'/>\
  </g>\
</svg>");
}

/* Servizi: fiore semi-nascosto in basso a sinistra */
.servizi.floral-bg::after {
    left: -180px;
    bottom: -180px;
    color: var(--floral-secondary);
    opacity: 0.5;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'>\
  <g fill='currentColor'>\
    <circle cx='400' cy='200' r='110' opacity='0.26'/>\
    <circle cx='530' cy='330' r='110' opacity='0.22'/>\
    <circle cx='400' cy='460' r='110' opacity='0.20'/>\
    <circle cx='270' cy='330' r='110' opacity='0.24'/>\
    <circle cx='400' cy='330' r='95' opacity='0.16'/>\
    <circle cx='400' cy='330' r='36' opacity='0.30'/>\
  </g>\
</svg>");
}

/* Attività: fiore grande sfuocato sullo sfondo, alto a sinistra */
.attivita.floral-bg::before {
    left: -120px;
    top: -160px;
    width: 520px;
    height: 520px;
    color: var(--floral-primary);
    opacity: 0.45;
    filter: blur(1px);
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 700'>\
  <g fill='currentColor'>\
    <circle cx='350' cy='180' r='95' opacity='0.25'/>\
    <circle cx='450' cy='280' r='95' opacity='0.22'/>\
    <circle cx='350' cy='380' r='95' opacity='0.20'/>\
    <circle cx='250' cy='280' r='95' opacity='0.23'/>\
    <circle cx='350' cy='280' r='85' opacity='0.16'/>\
    <circle cx='350' cy='280' r='30' opacity='0.28'/>\
  </g>\
</svg>");
}

/* Applica la classe alle sezioni desiderate senza toccare l'HTML: */
/* Poiché non modifichiamo l'HTML, estendiamo tramite selezione diretta */
.hero { position: relative; }
.servizi { position: relative; }
.attivita { position: relative; }

/* Disattiva per default gli pseudo-elementi (poi vengono valorizzati sotto) */
.hero::before { content: none; }
.servizi::after { content: none; }
.attivita::before { content: none; }

/* Workaround: duplichiamo le regole puntando direttamente ai selettori reali */
.hero::before { content: ''; position: absolute; }
.servizi::after { content: ''; position: absolute; }
.attivita::before { content: ''; position: absolute; }

/* Copia delle proprietà effettive per i selettori reali */
.hero::before {
    pointer-events: none; z-index: 0; width: 640px; height: 640px; background-repeat: no-repeat; background-size: contain; opacity: 0.6; filter: blur(0.5px);
    right: -140px; top: -120px; color: var(--floral-primary);
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'>\
  <g fill='currentColor'>\
    <circle cx='400' cy='240' r='120' opacity='0.28'/>\
    <circle cx='520' cy='360' r='120' opacity='0.24'/>\
    <circle cx='400' cy='480' r='120' opacity='0.22'/>\
    <circle cx='280' cy='360' r='120' opacity='0.26'/>\
    <circle cx='400' cy='360' r='110' opacity='0.18'/>\
    <circle cx='400' cy='360' r='40' opacity='0.35'/>\
    <ellipse cx='400' cy='360' rx='200' ry='40' opacity='0.08'/>\
  </g>\
</svg>");
}



/* Mantieni il contenuto sopra ai fiori */
.section > .container,
.hero-content { position: relative; z-index: 1; }

/* Mobile: riduci dimensioni e opacità */
@media (max-width: 768px) {
    .hero::before { width: 420px; height: 420px; right: -120px; top: -100px; opacity: 0.45; }
}

/* =============================== */
/* Separatori ondulati tra sezioni */
/* =============================== */

/* Sezioni con separatori ondulati */
.hero { position: relative; }
.filosofia { position: relative; }
.struttura { position: relative; }
.servizi { position: relative; }
.attivita { position: relative; }

/* ===========================================
   SEZIONE PREZZI
   =========================================== */
.prezzi {
    background: var(--background-color);
    position: relative;
}

.prezzi-header {
    text-align: center;
    margin-bottom: 60px;
}

.prezzi-header h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.prezzi-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.prezzi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.prezzo-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--border-color);
}

.prezzo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elegant);
    border-color: var(--primary-color);
}

.prezzo-card-featured {
    border-color: var(--primary-color);
    border-width: 3px;
}

.prezzo-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.prezzo-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.prezzo-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.prezzo-card-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.prezzo-amount {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.prezzo-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.prezzo-periodo {
    font-size: 1rem;
    color: var(--text-light);
    display: block;
}

.prezzo-incluso h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.prezzo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prezzo-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.prezzo-list li:last-child {
    border-bottom: none;
}

.prezzo-list .material-symbols-rounded {
    color: var(--success-color);
    font-size: 1.3rem;
}

.prezzi-note {
    text-align: center;
    max-width: 700px;
    margin: 40px auto 0;
    padding: 25px;
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
    color: var(--text-light);
}

.prezzi-note strong {
    color: var(--primary-color);
}

/* ===========================================
   SEZIONE PERIODI
   =========================================== */
.periodi {
    background: var(--light-gray);
    position: relative;
}

.periodi-header {
    text-align: center;
    margin-bottom: 60px;
}

.periodi-header h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.periodi-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.periodi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.periodo-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--border-color);
}

.periodo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elegant);
    border-color: var(--primary-color);
}

.periodo-card-featured {
    border-color: var(--primary-color);
    border-width: 3px;
}

.periodo-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.periodo-icon {
    text-align: center;
    margin-bottom: 25px;
}

.periodo-icon .material-symbols-rounded {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.periodo-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.periodo-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
}

.periodo-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.periodo-features li {
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    padding-left: 25px;
    position: relative;
}

.periodo-features li:last-child {
    border-bottom: none;
}

.periodo-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.periodi-cta {
    text-align: center;
    margin-top: 50px;
}

.periodi-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.periodi-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.periodi-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
    background: var(--secondary-color);
}

.periodi-btn .material-symbols-rounded {
    font-size: 1.3rem;
}

/* ===========================================
   SEZIONE CONTATTI PREZZI
   =========================================== */
.contatti-prezzi {
    background: var(--background-color);
    position: relative;
}

.contatti-prezzi-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contatti-prezzi-text {
    text-align: center;
    margin-bottom: 50px;
}

.contatti-prezzi-text h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contatti-prezzi-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.contatti-prezzi-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contatti-prezzi-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: white;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    min-width: 250px;
}

.contatti-prezzi-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elegant);
    border-color: var(--primary-color);
}

.contatti-prezzi-option .material-symbols-rounded {
    font-size: 2rem;
    color: var(--primary-color);
}

.contatti-prezzi-option div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contatti-prezzi-option strong {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contatti-prezzi-option span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contatti-prezzi-form-container {
    margin-top: 50px;
}

.contatti-prezzi-form-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-elegant);
    border: 2px solid var(--border-color);
}

.contatti-prezzi-form-box h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 0.95rem;
}

.phone-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input[type="tel"],
.form-group input[type="text"] {
    padding: 15px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--background-color);
}

.form-group input[type="tel"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    margin-top: 10px;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
    background: var(--secondary-color);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn .material-symbols-rounded {
    font-size: 1.3rem;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius-small);
    text-align: center;
    font-size: 0.95rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===========================================
   CTA DISPONIBILITÀ
   =========================================== */
.availability-cta {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--warm-beige) 100%);
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--primary-color);
}

.availability-text {
    margin: 0 0 20px 0;
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.6;
}

.availability-text strong {
    color: var(--primary-color);
}

.availability-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.availability-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    white-space: nowrap;
}

.availability-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
    background: var(--secondary-color);
}

.availability-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.availability-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.availability-btn .material-symbols-rounded {
    font-size: 1.2rem;
}

/* Link inline per prezzi */
.inline-price-link,
.inline-cta-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.inline-price-link:hover,
.inline-cta-link:hover {
    border-bottom-color: var(--primary-color);
}

.inline-cta-link .material-symbols-rounded {
    font-size: 1rem;
    transition: var(--transition);
}

.inline-cta-link:hover .material-symbols-rounded {
    transform: translateX(3px);
}

/* Story CTA */
.story-cta {
    margin-top: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
    border-left: 3px solid var(--primary-color);
}

.story-cta p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
}

/* Valori CTA Buttons */
.valori-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.valori-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.valori-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Periodi CTA Buttons */
.periodi-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.periodi-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.periodi-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Attività CTA Button Price */
.cta-button-price {
    background: var(--warm-beige);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button-price:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .prezzi-header h2,
    .periodi-header h2,
    .contatti-prezzi-text h2 {
        font-size: 2rem;
    }

    .prezzi-grid,
    .periodi-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .prezzo-card,
    .periodo-card {
        padding: 30px 20px;
    }

    .prezzo-value {
        font-size: 2.5rem;
    }

    .contatti-prezzi-options {
        flex-direction: column;
    }

    .contatti-prezzi-option {
        width: 100%;
        min-width: auto;
    }

    .contatti-prezzi-form-box {
        padding: 35px 25px;
    }

    .availability-cta {
        text-align: center;
    }

    .availability-buttons {
        flex-direction: column;
        width: 100%;
    }

    .availability-btn {
        width: 100%;
        justify-content: center;
    }

    .valori-cta-buttons,
    .periodi-cta-buttons {
        flex-direction: column;
    }

    .valori-btn,
    .periodi-btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }
}


