/* --- VARIABLES --- */
:root {
    --primary-green: #6B8E6B; 
    --primary-green-dark: #3F5F3F; 
    --primary-green-light: #A8C0A8; 
    --primary-green-very-light: #D9E3D9; 
    
    --accent-brown: #A67C52; 
    --logo-light: #F5D0A9;

    --text-color: #2C3E2C; 
    --text-light: #6A7A66; 
    --bg-color: #F4F7F4; 
    --menu-bg: #DDE8DA; 
    --bg-light: #ffffff; 
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-handwriting: 'Dancing Script', cursive;
    
    --transition: all 0.5s ease-in-out;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-color); background-color: var(--bg-color); overflow-x: hidden; line-height: 1.7; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--text-color); line-height: 1.2; margin-bottom: 1rem; }
p { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.8; color: var(--text-color); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { width: 90%; max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.section-padding { padding: 6rem 0; position: relative; }
.lead-text { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.2rem; color: var(--primary-green); font-family: var(--font-heading); }
.max-w-700 { max-width: 700px; margin: 0 auto; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.w-100 { width: 100%; }

/* Utilities Desktop/Mobile */
.hide-desktop { display: none; }
@media (max-width: 1024px) {
    .hide-desktop { display: block; }
    .hide-mobile { display: none !important; }
}

/* --- ANIMAZIONI GENERALI --- */
.scroll-anim { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.scroll-anim.active { opacity: 1; transform: translateY(0); }

/* --- BOTTONI ELEGANTI --- */
.btn { display: inline-block; padding: 1rem 2.5rem; border-radius: 60px !important; font-weight: 600; font-family: var(--font-body); transition: var(--transition); cursor: pointer; text-align: center; border: none; font-size: 1rem; letter-spacing: 0.5px;}
.btn-primary, .btn-green { background-color: var(--accent-brown) !important; color: #fff !important; box-shadow: 0 5px 20px rgba(166, 124, 82, 0.3) !important; }
.btn-primary:hover, .btn-green:hover { transform: translateY(-4px); color: #fff !important; box-shadow: 0 10px 25px rgba(166, 124, 82, 0.5) !important; }
.btn-large { padding: 1.2rem 2.8rem; font-size: 1.1rem; }

.card .btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 0.8rem 1rem !important;
    line-height: 1.3;
    white-space: normal;
}

/* --- NAVBAR FISSA E VERDE --- */
.main-header { position: fixed; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 5%; z-index: 1010; pointer-events: auto; background-color: var(--primary-green) !important; box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important; border-radius: 0 0 30px 30px !important; }
.main-header.menu-open-header { background-color: transparent !important; box-shadow: none !important; }
.logo-container { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 50px; width: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #fff !important; transition: border-color 0.3s ease; background-color: #fff;}
.main-header.menu-open-header .nav-logo-img { border-color: var(--primary-green) !important; }

.navbar-brand-text { display: flex; flex-direction: column; justify-content: center; margin-left: 12px; }
.handwritten-name-nav { font-family: var(--font-handwriting); font-size: 1.8rem; color: var(--logo-light); line-height: 1; font-weight: 700; transition: color 0.3s ease;}
.sub-name-nav { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.9); line-height: 1; font-weight: 600; margin-top: 2px;}
.main-header.menu-open-header .handwritten-name-nav { color: var(--text-color); }
.main-header.menu-open-header .sub-name-nav { color: var(--text-light); }

/* Menu Desktop */
.desktop-menu { display: none; margin-left: auto; margin-right: 2rem;}
.desktop-menu ul { display: flex; gap: 2rem; list-style: none; margin: 0;}
.desktop-menu a { font-family: var(--font-body); font-weight: 600; color: #fff !important; font-size: 1.05rem; transition: color 0.3s ease; }
.desktop-menu a:hover { color: var(--logo-light) !important; }

/* Menu Mobile Toggle */
.menu-toggle { background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; z-index: 1011; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; margin-left: auto; }
.burger-line { width: 30px; height: 3px; background: #fff !important; border-radius: 2px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.menu-toggle.is-open .line-1 { transform: translateY(9px) rotate(45deg); background: var(--text-color) !important; }
.menu-toggle.is-open .line-2 { opacity: 0; transform: scale(0); }
.menu-toggle.is-open .line-3 { transform: translateY(-9px) rotate(-45deg); background: var(--text-color) !important; }

/* Overlay Menu Mobile */
.circular-menu-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--menu-bg); z-index: 1005; display: flex; align-items: center; justify-content: center; clip-path: circle(0px at calc(100% - 50px) 40px); transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1); pointer-events: none; }
.circular-menu-overlay.is-open { clip-path: circle(150vw at calc(100% - 50px) 40px); pointer-events: auto; }
.menu-content { text-align: center; opacity: 0; transition: opacity 0.3s ease; }
.circular-menu-overlay.is-open .menu-content { opacity: 1; transition-delay: 0.2s; }
.menu-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.menu-item { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--text-color); position: relative; display: inline-block; }
.menu-item:hover { color: var(--accent-brown); }

.menu-socials h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-color); margin-bottom: 1rem; font-family: var(--font-heading);}
.social-links { display: flex; justify-content: center; gap: 1.5rem; font-size: 2.2rem; }
.social-links a { color: var(--primary-green); }
.social-links a:hover { color: var(--accent-brown); transform: translateY(-3px); }

/* --- PARALLAX BLOBS SFONDO --- */
.parallax-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.3; } 
.blob-1 { width: 500px; height: 500px; top: -10%; left: -10%; background-color: var(--accent-brown); animation: floatBlob 12s ease-in-out infinite alternate; }
.blob-2 { width: 600px; height: 600px; bottom: -20%; right: -10%; background-color: var(--primary-green); animation: floatBlob 15s ease-in-out infinite alternate-reverse; }
@keyframes floatBlob { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.1); } }

/* --- HERO SECTION --- */
.hero-fullscreen {
    position: relative; margin: 0; width: 100%; min-height: 95vh; display: flex; align-items: center; justify-content: center;
    border-left: 12px solid var(--primary-green); border-right: 12px solid var(--primary-green); border-bottom: 12px solid var(--primary-green); border-top: none; border-radius: 0 0 50px 50px; 
    overflow: hidden; padding: 160px 5% 60px 5%; background-color: #111; 
}
.hero-fullscreen-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../img/lei2.jpeg'); background-size: cover; background-position: center; z-index: 1; opacity: 0.85; }
.hero-fullscreen-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%); z-index: 2; }
.hero-fullscreen-content { position: relative; z-index: 3; max-width: 650px; width: 100%; text-align: center; }

.hero-fullscreen-content .handwritten-name { color: var(--logo-light); text-shadow: 0 2px 15px rgba(0,0,0,0.8); }
.hero-fullscreen-content .sub-name { color: #fcf1e3; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero-fullscreen-content .main-heading-style { color: var(--logo-light); text-shadow: 0 2px 20px rgba(0,0,0,0.8); }
.hero-fullscreen-content .sub-heading-style { color: #fcf1e3; text-shadow: 0 2px 15px rgba(0,0,0,0.8); }
.hero-fullscreen-content .hero-paragraph-centered span { color: #fcf1e3; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero-fullscreen-content .hero-paragraph-centered i { color: var(--logo-light); text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-top: 6px; }

.handwritten-name { font-family: var(--font-handwriting); font-size: 3.5rem; font-weight: 400; margin-bottom: 0; line-height: 1; transform: rotate(-3deg);}
.sub-name { font-family: var(--font-body); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; }
.main-heading-style { font-family: var(--font-heading); font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 0.5rem;}
.sub-heading-style { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; margin-bottom: 2rem; }
.hero-paragraph-centered { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 2.5rem; line-height: 1.8; display: flex; flex-direction: row; align-items: flex-start; justify-content: center; gap: 12px; }
.hero-paragraph-centered i { font-size: 1.2rem; flex-shrink: 0; } 
.spacer-mobile { display: inline-block; margin-top: 0; }

/* --- CARDS HOME --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; margin-top: 3rem; }
.card { background: rgba(221, 232, 218, 0.4); border-radius: 40px; border: none; box-shadow: 0 0 60px 20px rgba(221, 232, 218, 0.5); transition: var(--transition); display: flex; flex-direction: column; padding: 2.5rem; }
.card:hover { transform: translateY(-8px); background: rgba(194, 143, 96, 0.1); box-shadow: 0 0 80px 25px rgba(194, 143, 96, 0.2); }
.card h3 { color: var(--primary-green-dark); font-size: 1.6rem; margin-bottom: 1rem; font-family: var(--font-heading); }
.card-image-wrapper img { width: 100%; border-radius: 30px; object-fit: cover; aspect-ratio: 1/1; margin-bottom: 1.5rem; border: none; box-shadow: 0 15px 35px rgba(0,0,0,0.06); }

/* --- TITOLI CATEGORIE LEZIONI --- */
.category-title { font-family: var(--font-heading); font-size: 3rem; color: var(--primary-green-dark); text-align: center; margin: 6rem 0 3rem 0; text-transform: uppercase; letter-spacing: 1px; }

/* --- CARDS LEZIONI --- */
.service-block { background: var(--bg-light) !important; padding: 3.5rem 4rem !important; border-radius: 30px !important; margin-bottom: 3rem !important; box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important; text-align: left !important; border: 2px solid var(--primary-green-light) !important; }
.service-block h2 { color: var(--primary-green-dark); font-size: 2.2rem; margin-bottom: 0.5rem; }
.service-subtitle { font-weight: 600; color: var(--text-color); margin-bottom: 1.5rem; font-size: 1.25rem; font-family: var(--font-heading);}
.service-list { margin: 1.5rem 0; padding-left: 1.5rem; }
.service-list li { margin-bottom: 0.8rem; position: relative; color: var(--text-color); font-family: var(--font-heading); font-size: 1.15rem;}
.service-list li::before { content: "•"; color: var(--accent-brown); position: absolute; left: -1.5rem; font-weight: bold; font-size: 1.2rem; }

.pricing-box { background: var(--bg-color) !important; padding: 1.5rem 2rem !important; border-radius: 20px !important; margin-top: 2rem !important; border: 1px solid var(--menu-bg) !important; box-shadow: none !important;}
.price-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1rem 0; }
.price-item:last-child { border-bottom: none; }
.price-item span:first-child { padding-right: 15px; line-height: 1.4; } 
.price-amount { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary-green-dark); }

/* --- IL MIO METODO --- */
.method-flex-container { display: flex; align-items: center; gap: 5rem; margin-top: 4rem; }
.method-text-content { flex: 1.2; text-align: left;}
.comfort-subtitle { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary-green-dark); margin-bottom: 1.5rem; display: block; line-height: 1.2;}
.method-img img, .about-image img { width: 100%; max-width: 500px; object-fit: cover; border-radius: 40px; border: 5px solid var(--primary-green); box-shadow: 0 20px 40px rgba(107, 142, 107, 0.2); animation: imageFloat 6s ease-in-out infinite alternate; }
@keyframes imageFloat { 0% { transform: translateY(0px); } 100% { transform: translateY(-15px); } }

/* --- MARQUEE INFINITO (VELOCITÀ REGOLATA E SINCRONIZZATA) --- */
.marquee-container { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; overflow: hidden; padding: 2.5rem 0; }
.marquee-track { display: flex; align-items: center; gap: 2rem; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }

/* Entrambe le righe hanno lo stesso numero di foto, quindi usiamo una sola velocità uguale per tutte! */
.track-reviews { animation: scroll-marquee 120s linear infinite; }
.track-reverse { animation-direction: reverse; }

@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 1rem)); } }
.review-img { width: 280px; height: auto; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); flex: 0 0 auto; object-fit: cover; display: block; border: 4px solid #fff;}

/* --- FORM VERDE --- */
.contact-form-green { background: var(--primary-green) !important; border-radius: 60px 10px 60px 60px !important; padding: 4rem 3rem !important; border: none !important; box-shadow: 0 0 80px 30px rgba(107, 142, 107, 0.35) !important; }
.contact-form-green label { color: #fff !important; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.5rem; display: block;}
.contact-form-green input, .contact-form-green textarea { background: #fff !important; border: none !important; border-radius: 15px !important; font-family: var(--font-heading); padding: 1rem; width: 100%; font-size: 1.1rem;}
.contact-form-green input:focus, .contact-form-green textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-brown) !important; }

/* --- COOKIE POPUP --- */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #fff; padding: 1.5rem 2.5rem; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 2px solid var(--accent-brown); z-index: 9999; display: none; flex-direction: column; align-items: center; text-align: center; gap: 1rem; width: 90%; max-width: 500px; animation: slideUpVibrate 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.cookie-banner.show { display: flex; }
.cookie-content p { font-size: 1rem; color: var(--text-color); margin-bottom: 0; line-height: 1.5;}
.cookie-content a { color: var(--accent-brown); text-decoration: underline; font-weight: 700; }
.cookie-banner .btn { padding: 0.8rem 2rem; font-size: 0.9rem; }
@keyframes slideUpVibrate { 0% { transform: translate(-50%, 100px); opacity: 0; } 40% { transform: translate(-50%, 0); opacity: 1; } 50% { transform: translate(-52%, 0); } 60% { transform: translate(-48%, 0); } 70% { transform: translate(-51%, 0); } 80% { transform: translate(-49%, 0); } 90% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, 0); } }

/* --- FOOTER --- */
footer { padding: 4rem 0; background-color: var(--primary-green); color: #fff; border-radius: 40px 40px 0 0; margin-top: 4rem;}
.footer-socials-list { display: flex; gap: 1.5rem; justify-content: center; font-size: 1.8rem; margin-top: 1.5rem; }
.footer-socials-list a:hover { color: var(--accent-brown) !important; transform: translateY(-3px); }
.footer-developer { margin-top: 2rem; font-size: 0.9rem; color: #EAF2E8; opacity: 0.8; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-family: var(--font-body);}
.footer-developer a:hover { color: var(--accent-brown) !important; }
.footer-cursive { font-family: var(--font-handwriting); font-size: 3rem; font-weight: 400; line-height: 1; color: var(--logo-light) !important; margin-bottom: 5px;}
.footer-sub { font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.9); margin-top: 0; margin-bottom: 0;}

/* --- RESPONSIVE DESKTOP --- */
@media (min-width: 992px) {
    .desktop-menu { display: block !important; } 
    .menu-toggle { display: none !important; }
    .circular-menu-overlay { display: none !important; }
    
    .hero-fullscreen { justify-content: flex-start; text-align: left; padding-left: 0; }
    .hero-fullscreen .container { max-width: 1600px; margin-left: 4vw; }
    .hero-fullscreen-content { text-align: left; margin-left: -30px; } 
    .hero-paragraph-centered { justify-content: flex-start; text-align: left; }
    
    .method .container { max-width: 1350px !important; } 
    .cards-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 2rem; }
    .card { padding: 2rem 1.5rem; }
    .card h3 { font-size: 1.4rem; }
}

@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

/* --- RESPONSIVE MOBILE E TABLET --- */
@media (max-width: 991px) {
    .hide-mobile { display: none !important; }
    .hide-desktop { display: block !important; }
    
    .hero-fullscreen { padding: 130px 15px 40px 15px; border-left: 8px solid var(--primary-green); border-right: 8px solid var(--primary-green); border-bottom: 8px solid var(--primary-green); border-radius: 0 0 30px 30px; text-align: center; justify-content: center; }
    .hero-fullscreen-content { text-align: center; margin-left: 0; }
    
    .brand-titles .handwritten-name { color: #E2EFE2 !important; text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important; }
    .brand-titles .sub-name { color: #FFFFFF !important; text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important; }
    
    .hero-fullscreen-content .main-heading-style { font-size: 2.8rem; }
    .hero-fullscreen-content .sub-heading-style { font-size: 1.4rem;}
    
    .spacer-mobile { display: block; margin-top: 180px; }
    .hero-fullscreen-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%); }
    
    .hero-paragraph-centered { text-align: left; align-items: flex-start; justify-content: center; }
    .method-flex-container { flex-direction: column; gap: 3rem; }
    .method-text-content { text-align: center; }
    
    .cards-grid { grid-template-columns: 1fr !important; }
    
    .menu-item { font-size: 2.5rem; } 
    .circular-menu-overlay { clip-path: circle(0px at calc(100% - 30px) 40px); }
    .circular-menu-overlay.is-open { clip-path: circle(150vh at calc(100% - 30px) 40px); }
    .section-padding { padding: 4rem 0; }
    .card { padding: 1.5rem; }
    .contact-form-green { padding: 2.5rem 1.5rem !important; border-radius: 40px 10px 40px 40px !important; }
    .service-block { padding: 2rem 1.5rem !important; } 
    .category-title { font-size: 2.2rem; margin: 4rem 0 2rem 0; }
}