/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-sage: #5F7D6D;
    --color-sage-dark: #3C5246;
    --color-sage-light: #EBF0EC;
    --color-beige: #F9F6F0;
    --color-beige-dark: #EFEBE0;
    --color-terracotta: #C8826D;
    --color-terracotta-hover: #B5715D;
    --color-gold: #D4AF37;
    --color-text: #2D3631;
    --color-text-light: #6A7570;
    --color-white: #FFFFFF;
    --color-black-overlay: rgba(45, 54, 49, 0.45);

    /* Fonts */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', sans-serif;

    /* Layout Variables */
    --header-height: 70px;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;

    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 15px 35px rgba(95, 125, 109, 0.08);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-beige);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

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

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

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: 8rem 0;
}

.bg-warm-light {
    background-color: var(--color-beige-dark);
}

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

.font-semibold {
    font-weight: 600;
}

.text-sage {
    color: var(--color-sage);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

/* Titles & Tag */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-terracotta);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: 3rem;
    color: var(--color-sage-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

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

.section-header {
    margin-bottom: 2rem;
}

.paragraph {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(95, 125, 109, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-sage);
    border-color: var(--color-sage);
}

.btn-secondary:hover {
    background-color: var(--color-sage);
    color: var(--color-white);
    border-color: var(--color-sage);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    font-weight: 600;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(249, 246, 240, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(95, 125, 109, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.015);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-container {
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-sage-dark);
}

.logo span {
    font-weight: 300;
    color: var(--color-terracotta);
}

/* Nav Menu Desktop */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-sage-dark);
    position: relative;
    padding: 0.5rem 0;
}

.main-header:not(.scrolled) .nav-menu a {
    color: var(--color-sage-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-terracotta);
    transition: var(--transition-smooth);
}

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

/* Hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 1010;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-sage-dark);
    transition: var(--transition-smooth);
}

.main-header.scrolled .hamburger .bar {
    background-color: var(--color-sage-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--color-beige);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
}

.hero-text {
    width: 45%;
    min-height: 100vh;
    padding: calc(var(--header-height) + 2rem) 4rem 3rem 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--color-beige);
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-terracotta);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-sage-dark);
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: none;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-sage-dark);
    line-height: 1.35;
    margin-bottom: 1.2rem;
    text-shadow: none;
    opacity: 1;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
    font-weight: 300;
}

/*
   IMMAGINE HERO CORRETTA:
   - niente object-fit: cover
   - niente taglio dell'immagine
   - la PNG trasparente resta visibile intera
*/
.hero-image-wrapper {
    width: 55%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    position: relative;
    background-color: var(--color-beige);
}

.hero-img {
    width: auto;
    height: calc(100vh - var(--header-height));
    max-width: 100%;
    max-height: calc(100vh - var(--header-height));
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

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

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

/* ==========================================================================
   CHI SIAMO SECTION
   ========================================================================== */
.chi-siamo-content {
    padding-right: 2rem;
}

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--color-sage-dark);
}

.feature-icon {
    color: var(--color-terracotta);
    font-size: 1.2rem;
}

.chi-siamo-image .image-wrapper {
    position: relative;
    padding: 1.5rem;
}

.chi-siamo-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.chi-siamo-image .decorative-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75%;
    height: 75%;
    border: 1.5px solid var(--color-terracotta);
    border-radius: var(--border-radius);
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   CORSI E ORARI SECTION
   ========================================================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.course-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(95, 125, 109, 0.04);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Garantisce che l'immagine non esca dai bordi arrotondati della card */
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(95, 125, 109, 0.12);
}

/* Stili specifici per le nuove Card Corsi Visive */
.visual-course-card {
    padding: 0; /* Rimuoviamo il padding originario per far estendere l'immagine a tutto bordo */
}

.course-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.visual-course-card:hover .course-image img {
    transform: scale(1.05); /* Effetto zoom all'hover */
}

.course-ribbon {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background-color: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.course-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.course-content h3 {
    font-size: 1.8rem;
    color: var(--color-sage-dark);
    margin-bottom: 0.25rem;
}

.course-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-terracotta);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.course-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

.course-arrow {
    align-self: flex-end;
    font-size: 1.6rem;
    color: var(--color-sage-dark);
    transition: var(--transition-smooth);
    margin-top: 1.5rem;
    line-height: 1;
}

.visual-course-card:hover .course-arrow {
    transform: translateX(5px);
    color: var(--color-terracotta); /* Cambia colore e si sposta all'hover */
}

/* Weekly Schedule Styling */
.weekly-schedule-wrapper {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(95, 125, 109, 0.04);
    width: min(100%, 1320px);
    margin-left: auto;
    margin-right: auto;
}

.weekly-schedule-title {
    font-size: 2.2rem;
    color: var(--color-sage-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.weekly-schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5 colonne su desktop */
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.day-schedule-card {
    background-color: var(--color-beige);
    border-radius: var(--border-radius);
    padding: 1.15rem 1rem;
    border: 1px solid rgba(95, 125, 109, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.day-schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.day-schedule-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(95, 125, 109, 0.1);
}

.day-icon {
    color: var(--color-terracotta);
    font-size: 0.9rem;
}

.day-schedule-header h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-sage-dark);
}

.day-lessons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-item {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 1.05rem 1rem;
    border: 1px solid rgba(95, 125, 109, 0.03);
    transition: var(--transition-fast);
    width: 100%;
}

.lesson-item:hover {
    border-color: rgba(95, 125, 109, 0.12);
}

.lesson-time {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-terracotta);
    margin-bottom: 0.25rem;
}

.lesson-item h5 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-sage-dark);
    margin-bottom: 0.15rem;
    font-weight: 600;
    line-height: 1.2;
}

.lesson-item p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 300;
    line-height: 1.4;
}

.schedule-note {
    margin-top: 2rem;
}

.schedule-note p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text-light);
    font-weight: 300;
}

/* ==========================================================================
   INSEGNANTI SECTION
   ========================================================================== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.teacher-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(95, 125, 109, 0.04);
    transition: var(--transition-smooth);
}

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

.teacher-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.teacher-info {
    padding: 2rem;
    text-align: center;
}

.teacher-info h3 {
    font-size: 1.8rem;
    color: var(--color-sage-dark);
    margin-bottom: 0.25rem;
}

.teacher-role {
    display: block;
    font-size: 0.85rem;
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.teacher-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}
/* ==========================================================================
   CONTATTI SECTION
   ========================================================================== */
.contact-info {
    padding-right: 3rem;
}

.contact-subtitle {
    font-size: 2.2rem;
    color: var(--color-sage-dark);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-sage-light);
    color: var(--color-sage-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail-text p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-sage-dark);
}

.contact-detail-text a:hover {
    color: var(--color-terracotta);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 3.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(95, 125, 109, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-sage-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.9rem 1.2rem;
    border: 1.5px solid var(--color-sage-light);
    background-color: var(--color-beige);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-sage);
    background-color: var(--color-white);
}

.btn-submit {
    border: none;
    background-color: var(--color-terracotta);
    color: var(--color-white);
    font-weight: 600;
    padding: 1rem 2rem;
    position: relative;
}

.btn-submit:hover {
    background-color: var(--color-terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 130, 109, 0.25);
}

/* Spinner and feedback */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.8s linear infinite;
    position: absolute;
    right: 1.5rem;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-feedback {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    text-align: center;
}

.form-feedback.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-sage-dark);
    color: var(--color-beige);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-desc {
    color: rgba(249, 246, 240, 0.7);
    font-weight: 300;
    font-size: 0.95rem;
    max-width: 380px;
}

.footer-links h4,
.footer-socials h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.8rem;
    color: var(--color-white);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(249, 246, 240, 0.7);
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1.25rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--color-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(249, 246, 240, 0.5);
    font-weight: 300;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS CLASS
   ========================================================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .section {
        padding: 6rem 0;
    }

    .grid-2-col {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.4rem;
    }

    .hero-text {
        padding: calc(var(--header-height) + 2rem) 3rem 3rem 5%;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .weekly-schedule-wrapper {
        padding: 2.5rem 1.5rem;
    }

    .weekly-schedule-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
        gap: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header & Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-beige);
        padding: 8rem 3rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        transition: var(--transition-smooth);
        z-index: 1005;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 2.5rem;
    }

    .nav-menu a {
        color: var(--color-sage-dark) !important;
        font-size: 1.3rem;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hamburger.active .bar {
        background-color: var(--color-sage-dark) !important;
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding-top: var(--header-height);
        overflow: visible;
    }

    .hero-inner {
        flex-direction: column;
        min-height: auto;
    }

    .hero-text {
        width: 100%;
        min-height: auto;
        padding: 4rem 2rem 3rem 2rem;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 3.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

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

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-image-wrapper {
        width: 100%;
        min-height: 420px;
        height: 420px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: visible;
        background-color: var(--color-beige);
    }

    .hero-img {
        width: auto;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: bottom center;
    }

    /* Grid layout stack */
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .chi-siamo-content {
        padding-right: 0;
    }

    .chi-siamo-image img {
        height: 350px;
    }

    /* Courses & Weekly Schedule inherits from 1024px tablet style */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* Teachers & Contacts */
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .teacher-image {
        height: 320px;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form-wrapper {
        padding: 2.5rem 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1.4rem;
    }

    .header-container {
        padding: 0 1.4rem;
    }

    .logo {
        font-size: 1.55rem;
    }

    .hero-text {
        padding: 3rem 1.5rem 2.5rem 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1.5rem auto;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-image-wrapper {
        height: 340px;
        min-height: 340px;
    }

    .hero-img {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        object-position: bottom center;
    }

    .section {
        padding: 5rem 0;
    }

    /* Esclude le nuove card corsi visive dall'aggiunta di padding indesiderato */
    .course-card:not(.visual-course-card) {
        padding: 2rem;
    }
}

/* Mobile sotto 600px per Calendario Settimanale */
@media (max-width: 600px) {
    .weekly-schedule-wrapper {
        padding: 2rem 1rem;
    }

    .weekly-schedule-grid {
        grid-template-columns: 1fr; /* 1 colonna su mobile */
        gap: 1rem;
    }
}