@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');
/* Nota: Google Fonts può essere importato qui o nel tag <head> dell'HTML. Per semplicità, assumo sia nell'HTML o lo si aggiungerà. */

/* -------------------------------------------------------------------------- */
/*                               Custom Properties                            */
/* -------------------------------------------------------------------------- */
:root {
    /* Palette Colori Yoga (Toni Calmi e Naturali) */
    --clr-primary-400-hsl: 160, 30%, 65%;
    /* Verde acqua tenue */
    --clr-primary-500-hsl: 160, 30%, 50%;
    /* Verde acqua medio */
    --clr-primary-600-hsl: 160, 35%, 40%;
    /* Verde acqua più scuro */

    --clr-secondary-300-hsl: 40, 40%, 88%;
    /* Beige/Crema chiaro */
    --clr-secondary-400-hsl: 40, 30%, 75%;
    /* Beige/Crema medio */

    --clr-accent-400-hsl: 25, 80%, 70%;
    /* Corallo tenue/Pesca */
    --clr-accent-500-hsl: 25, 80%, 60%;
    /* Corallo più intenso */

    --clr-neutral-900-hsl: 210, 15%, 25%;
    /* Grigio scuro per testo principale */
    --clr-neutral-700-hsl: 210, 10%, 45%;
    /* Grigio medio per testo secondario */
    --clr-neutral-200-hsl: 210, 20%, 95%;
    /* Grigio molto chiaro per sfondi sezioni */
    --clr-neutral-100-hsl: 0, 0%, 100%;
    /* Bianco */

    --clr-primary: hsl(var(--clr-primary-500-hsl));
    --clr-primary-light: hsl(var(--clr-primary-400-hsl));
    --clr-primary-dark: hsl(var(--clr-primary-600-hsl));
    --clr-secondary: hsl(var(--clr-secondary-400-hsl));
    --clr-secondary-light: hsl(var(--clr-secondary-300-hsl));
    --clr-accent: hsl(var(--clr-accent-400-hsl));
    --clr-accent-dark: hsl(var(--clr-accent-500-hsl));

    --clr-text: hsl(var(--clr-neutral-900-hsl));
    --clr-text-light: hsl(var(--clr-neutral-700-hsl));
    --clr-bg: hsl(var(--clr-neutral-100-hsl));
    --clr-bg-alt: hsl(var(--clr-neutral-200-hsl));
    --clr-white: hsl(var(--clr-neutral-100-hsl));
    --clr-border: hsl(var(--clr-primary-400-hsl), 0.3);

    /* Font */
    --font-family-sans: 'Open Sans', sans-serif;
    /* Per il corpo del testo */
    --font-family-serif-display: 'Montserrat', serif;
    /* Per i titoli, o un altro font display/serifato */

    /* Dimensioni Font Base */
    --fs-base: 1rem;
    /* 16px se il root è 16px */
    --fs-sm: 0.875rem;
    --fs-lg: 1.125rem;

    --fs-h1: 2.5rem;
    /* 40px */
    --fs-h2: 2rem;
    /* 32px */
    --fs-h3: 1.5rem;
    /* 24px */
    --fs-h4: 1.25rem;
    /* 20px */

    /* Spaziatura */
    --spacing-unit: 1rem;
    --spacing-xs: calc(var(--spacing-unit) * 0.5);
    /* 8px */
    --spacing-sm: var(--spacing-unit);
    /* 16px */
    --spacing-md: calc(var(--spacing-unit) * 1.5);
    /* 24px */
    --spacing-lg: calc(var(--spacing-unit) * 2);
    /* 32px */
    --spacing-xl: calc(var(--spacing-unit) * 3);
    /* 48px */
    --spacing-xxl: calc(var(--spacing-unit) * 4);
    /* 64px */

    /* Altro */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --container-width: 1140px;
    --container-padding: var(--spacing-md);
    --transition-base: all 0.3s ease-in-out;
    --box-shadow-light: 0 2px 10px hsla(var(--clr-neutral-900-hsl), 0.08);
    --box-shadow-medium: 0 5px 15px hsla(var(--clr-neutral-900-hsl), 0.12);
}

/* -------------------------------------------------------------------------- */
/*                                 CSS Reset                                  */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
}

ul,
ol {
    list-style: none;
}

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

a:hover {
    color: var(--clr-primary-dark);
}

/* -------------------------------------------------------------------------- */
/*                                 Base Styles                                */
/* -------------------------------------------------------------------------- */
body {
    font-family: var(--font-family-sans);
    font-size: var(--fs-base);
    color: var(--clr-text);
    background-color: var(--clr-bg);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-family-serif-display);
    color: var(--clr-primary-dark);
}

h1 {
    font-size: var(--fs-h1);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: var(--fs-h2);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: var(--fs-h4);
    margin-bottom: var(--spacing-xs);
    color: var(--clr-text);
}

section {
    padding: var(--spacing-xl) 0;
}

section:nth-child(even) {
    background-color: var(--clr-bg-alt);
}

/* -------------------------------------------------------------------------- */
/*                               Helper Classes                               */
/* -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.btn {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: var(--fs-sm);
}

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

.btn-primary:hover {
    background-color: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
}

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

.btn-secondary:hover {
    background-color: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
}

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

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

.section-intro {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--clr-text-light);
}

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

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* -------------------------------------------------------------------------- */
/*                              Component Styles                              */
/* -------------------------------------------------------------------------- */

/* Header & Navigation */
header {
    background-color: var(--clr-white);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid hsl(var(--clr-primary-400-hsl), 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow-light);
}

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

.logo {
    font-family: var(--font-family-serif-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--clr-primary-dark);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--clr-text);
    font-weight: 600;
    padding: var(--spacing-xs) 0;
    position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* For mobile */
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--clr-primary-dark);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--clr-primary-dark);
    left: 0;
    transition: var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hero Section */
.hero-section {
    background-color: var(--clr-bg-alt);
    padding: var(--spacing-xxl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-text h1 {
    font-size: calc(var(--fs-h1) * 1.2);
    color: var(--clr-primary-dark);
}

/* Larger H1 for hero */
.hero-text p {
    font-size: var(--fs-lg);
    color: var(--clr-text-light);
    margin-bottom: var(--spacing-lg);
}

.hero-text .btn {
    margin-right: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.hero-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
}

/* About Section (Chi Sono) */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
}

.about-text h3 {
    color: var(--clr-primary-dark);
}

.about-text h4 {
    color: var(--clr-accent);
    margin-top: var(--spacing-md);
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.course-card {
    background-color: var(--clr-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3 {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xs);
    color: var(--clr-primary-dark);
}

.course-card p {
    padding: 0 var(--spacing-md) var(--spacing-sm);
    color: var(--clr-text-light);
    flex-grow: 1;
    font-size: var(--fs-sm);
}

.course-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: right;
    font-weight: 600;
    color: var(--clr-accent);
    border-top: 1px solid hsl(var(--clr-primary-400-hsl), 0.15);
}

.course-link:hover {
    color: var(--clr-accent-dark);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-md);
}

.benefit-item img {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    object-fit: contain;
}

.benefit-item h4 {
    color: var(--clr-primary-dark);
    font-size: var(--fs-lg);
}

.benefit-item p {
    font-size: var(--fs-sm);
    color: var(--clr-text-light);
}

/* Schedule & Pricing Section */
.schedule-pricing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.schedule-info h3,
.pricing-info h3 {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.schedule-info ul {
    margin-bottom: var(--spacing-md);
}

.schedule-info li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px dashed hsl(var(--clr-primary-400-hsl), 0.2);
}

.schedule-info li:last-child {
    border-bottom: none;
}

.schedule-info strong {
    color: var(--clr-primary-dark);
}

.schedule-info p em {
    font-size: var(--fs-sm);
    color: var(--clr-text-light);
}

.pricing-option {
    background-color: var(--clr-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    margin-bottom: var(--spacing-md);
    text-align: center;
    border: 2px solid transparent;
}

.pricing-option.popular {
    border-color: var(--clr-accent);
    transform: scale(1.02);
}

.pricing-option h4 {
    color: var(--clr-primary-dark);
}

.price {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--clr-accent);
    margin: var(--spacing-sm) 0;
}

.price .savings {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--clr-text-light);
}

.pricing-option .btn {
    margin-top: var(--spacing-sm);
}

/* Testimonials Section */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background-color: var(--clr-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    object-fit: cover;
    border: 3px solid var(--clr-accent);
}

.testimonial-card blockquote p {
    font-style: italic;
    color: var(--clr-text-light);
    margin-bottom: var(--spacing-sm);
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--clr-primary-dark);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--clr-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid hsl(var(--clr-primary-400-hsl), 0.3);
    border-radius: var(--border-radius-sm);
    background-color: hsl(var(--clr-secondary-300-hsl), 0.5);
    transition: border-color 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px hsla(var(--clr-primary-500-hsl), 0.2);
}

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

.contact-info h3 {
    color: var(--clr-primary-dark);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
}

.contact-info p strong {
    color: var(--clr-text);
}

.contact-info a {
    color: var(--clr-accent);
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-links-contact {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links-contact img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-links-contact a:hover img {
    opacity: 1;
}

/* Footer Section */
.footer-section {
    background-color: hsl(var(--clr-neutral-900-hsl), 0.95);
    color: var(--clr-secondary-light);
    padding: var(--spacing-xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--clr-white);
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-lg);
}

.footer-section p,
.footer-section li {
    font-size: var(--fs-sm);
}

.footer-section a {
    color: var(--clr-secondary-light);
}

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

.footer-links-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-social-icons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.footer-social-icons img {
    width: 20px;
    height: 20px;
    filter: invert(80%) sepia(10%) saturate(200%) hue-rotate(180deg) brightness(100%) contrast(80%);
}

/* Tint to match text */
.footer-social-icons a:hover img {
    filter: invert(70%) sepia(50%) saturate(800%) hue-rotate(var(--clr-accent-400-hsl)) brightness(100%) contrast(100%);
}

/* Color on hover */

.footer-bottom {
    text-align: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid hsl(var(--clr-neutral-700-hsl), 0.3);
    font-size: var(--fs-sm);
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--clr-primary-light);
}

.footer-bottom a:hover {
    color: var(--clr-accent);
}

/* -------------------------------------------------------------------------- */
/*                              Responsive Design                             */
/* -------------------------------------------------------------------------- */

/* Tablet - max-width: 992px */
@media (max-width: 992px) {
    :root {
        --fs-h1: 2.2rem;
        --fs-h2: 1.8rem;
        --fs-base: 0.95rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }

    .hero-image img {
        margin: 0 auto;
    }

    .hero-text .btn {
        display: block;
        margin: var(--spacing-sm) auto;
        max-width: 250px;
    }

    .hero-text .btn:last-of-type {
        margin-bottom: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image img {
        margin: 0 auto var(--spacing-lg);
        max-width: 350px;
    }

    .schedule-pricing-content {
        grid-template-columns: 1fr;
    }

    .pricing-info {
        margin-top: var(--spacing-xl);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-top: var(--spacing-xl);
        text-align: center;
    }

    .contact-info .social-links-contact {
        justify-content: center;
    }
}

/* Mobile - max-width: 768px */
@media (max-width: 768px) {
    :root {
        --fs-h1: 1.8rem;
        --fs-h2: 1.5rem;
        --fs-h3: 1.25rem;
        --fs-base: 0.9rem;
        --container-padding: var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Start off-screen */
        width: min(70vw, 300px);
        height: 100vh;
        flex-direction: column;
        background-color: #fff;
        padding: var(--spacing-xxl) var(--spacing-lg);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        gap: var(--spacing-lg);
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: var(--fs-lg);
    }

    .nav-links a::after {
        background-color: var(--clr-primary);
    }

    /* Hamburger animation when active */
    .nav-toggle.active .hamburger {
        background-color: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

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

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

    .benefit-item {
        padding: var(--spacing-sm);
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links-column ul {
        padding-left: 0;
    }

    .footer-social-icons {
        justify-content: center;
    }
}