:root {
    /* Colors */
    --primary: #4a6750;
    --primary-light: #5d8164;
    --primary-dark: #2d3c33;
    --secondary: #d3b499;
    --secondary-dark: #c9a78a;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #fdfcf7;
    --white: #ffffff;
    --accent: #cd853f;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Shadows */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p strong { color: var(--text-main); }

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white p, .text-white h2, .text-white .subtitle { color: var(--white); }
.opacity-70 { opacity: 0.7; }
.bg-light { background-color: var(--white); }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-sm { font-size: 0.875rem; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 103, 80, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 180, 153, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

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

.btn-block {
    display: block;
    width: 100%;
    padding: 15px;
}

.btn-whatsapp i,
.btn-outline-white i {
    width: 18px;
    height: 18px;
}

.subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 252, 247, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--primary);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    color: var(--white);
    font-weight: 400;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a:not(.btn)::after {
    background: var(--primary);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--primary);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(45, 60, 51, 0.97);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav ul li {
    margin-bottom: 30px;
}

.mobile-nav ul li a {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav ul li a:hover {
    color: var(--secondary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(42, 59, 46, 0.8), rgba(42, 59, 46, 0.6));
    z-index: -1;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 2rem;
}

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

/* =========================================
   SECTIONS COMMON
   ========================================= */
.section {
    padding: 100px 0;
}

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

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

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   SERVICES GRID
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 50px 35px 40px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.card-icon i {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.card-content h3 {
    margin-bottom: 15px;
}

.card-content p {
    font-size: 0.95rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-top: 15px;
    color: var(--secondary);
}

.link-arrow i {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--primary);
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* =========================================
   WHY CHOOSE SECTION
   ========================================= */
.why-choose {
    background-color: var(--bg-light);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-choose-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.why-choose-image img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.why-choose-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.why-choose-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* =========================================
   HELP SECTION (Come posso aiutarti)
   ========================================= */
.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.help-card {
    text-align: center;
    padding: 50px 30px;
    border-radius: 20px;
    background: var(--bg-light);
    transition: var(--transition);
}

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

.help-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.help-icon i {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.help-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.help-card p {
    font-size: 0.95rem;
}

/* =========================================
   ABOUT SECTION (Chi sono)
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: relative;
    border-radius: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--secondary);
}

.timeline-content {
    background: var(--bg-light);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.timeline-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    background: var(--bg-light);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 50px 40px;
    text-align: center;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 25px;
}

.testimonial-stars i {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    fill: var(--secondary);
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.testimonial-btn i {
    width: 20px;
    height: 20px;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.3;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
    text-align: left;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--secondary);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 30px 25px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-content {
    max-width: 650px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-content > p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   BLOG SECTION
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px 30px 30px;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.blog-card-content > p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.hero h1.slide-up { animation-delay: 0.2s; }
.hero .hero-buttons.slide-up { animation-delay: 0.4s; }

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .services-grid,
    .help-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-choose-content h2,
    .about-content h2 {
        font-size: 2rem;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .services-grid,
    .help-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

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

    .testimonial-card {
        padding: 30px 20px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -28px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    .container {
        width: 92%;
    }

    .service-card {
        padding: 35px 25px 30px;
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 18px 20px;
    }
}
