/* =========================================================
   INCANTO — Centro d'Arte e Produzione Musicale
   Tema "Sipario": palco scuro, una luce colorata per dipartimento
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* --- token di base --- */
    --ink: #100E0C;          /* fondo pagina */
    --ink-alt: #17140F;      /* pannelli, sezioni alternate */
    --paper: #F5F1E8;        /* testo principale su fondo scuro */
    --stone: #8A8578;        /* testo secondario */
    --line: #2A2622;         /* bordi/hairline */
    --line-soft: rgba(245, 241, 232, 0.1);

    /* --- luci di scena: un colore per dipartimento --- */
    --amber: #E8A33D;    /* 01 Voce e Strumento — luce calda, colore firma/CTA */
    --teal: #2E9B8F;     /* 02 Studio di Registrazione */
    --violet: #9B6BD9;   /* 03 Scrittura e Arrangiamento */
    --rose: #D8577B;     /* 04 Recitazione e Dizione */
    --crimson: #D8432A;  /* 05 Palco */

    --accent: var(--amber); /* colore firma usato per CTA e link */

    /* --- alias legacy per compatibilità --- */
    --primary-purple: var(--ink);
    --primary-burgundy: var(--crimson);
    --primary-rose: var(--rose);
    --primary-coral: var(--amber);
    --primary-peach: var(--amber);
    --primary-gold: var(--amber);
    --gradient-primary: linear-gradient(135deg, #100E0C 0%, #211C15 100%);
    --gradient-secondary: linear-gradient(90deg, var(--amber), var(--crimson));
    --gradient-accent: linear-gradient(90deg, var(--amber), var(--crimson));

    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}

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

body {
    font-family: var(--sans);
    line-height: 1.6;
    color: var(--paper);
    background: var(--ink);
    overflow-x: hidden;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; }

/* =========================================================
   MASTHEAD — barra indice dipartimenti (elemento firma)
   ========================================================= */
.masthead {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    background: #000000;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
}

.masthead .container {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    overflow-x: auto;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    scrollbar-width: none;
}

.masthead .container::-webkit-scrollbar { display: none; }

.masthead-label {
    color: var(--stone);
    flex-shrink: 0;
    text-transform: uppercase;
}

.masthead a {
    text-decoration: none;
    white-space: nowrap;
    color: rgba(245, 241, 232, 0.75);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.masthead a:hover { color: var(--paper); }

.masthead a .num { font-weight: 600; margin-right: 0.35em; }

.masthead a[href*="voce"] .num,
.masthead a[href="#voce"] .num { color: var(--amber); }
.masthead a[href*="studio"] .num,
.masthead a[href="#studio"] .num { color: var(--teal); }
.masthead a[href*="scrittura"] .num,
.masthead a[href="#scrittura"] .num { color: var(--violet); }
.masthead a[href*="scena"] .num,
.masthead a[href="#scena"] .num { color: var(--rose); }
.masthead a[href*="palco"] .num,
.masthead a[href="#palco"] .num { color: var(--crimson); }

/* =========================================================
   HEADER
   ========================================================= */
header {
    position: fixed;
    top: 34px;
    width: 100%;
    background: rgba(16, 14, 12, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    position: relative;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--paper);
}

.logo::after {
    content: 'Centro d\'Arte e Produzione Musicale';
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 500;
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(245, 241, 232, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0.9rem;
    right: 0.9rem;
    width: calc(100% - 1.8rem);
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a[href="assistente-ai.html"] {
    background: var(--amber);
    color: var(--ink) !important;
    font-weight: 600;
}

.nav-links a[href="assistente-ai.html"]:hover { background: var(--crimson); }
.nav-links a[href="assistente-ai.html"]::after { display: none; }

.contacts-btn {
    background: var(--crimson) !important;
    color: var(--paper) !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.contacts-btn:hover { background: var(--amber) !important; color: var(--ink) !important; }
.contacts-btn::after { display: none !important; }

/* Menu hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--paper);
    transition: 0.3s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    background: var(--ink);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    left: 12%;
    top: -30%;
    width: 45%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(232, 163, 61, 0.18), transparent 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    right: 8%;
    top: -15%;
    width: 45%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(216, 67, 42, 0.14), transparent 70%);
    z-index: 0;
}

.musical-note { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0 4rem;
    max-width: 880px;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.01em;
    margin-bottom: 1.75rem;
    color: var(--paper);
    animation: fadeInUp 0.9s ease-out;
}

.hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--amber);
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.9s ease-out 0.15s both;
    max-width: 620px;
    color: var(--stone);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

.cta-button {
    padding: 1.05rem 2rem;
    border: 2px solid var(--amber);
    border-radius: 2px;
    font-size: 0.98rem;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 240px;
    text-align: center;
}

.cta-button.primary {
    background: var(--amber);
    color: var(--ink);
}

.cta-button.primary:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: var(--paper);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--paper);
    border-color: var(--paper);
}

.cta-button.secondary:hover {
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-2px);
}

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

/* =========================================================
   SECTIONS — comune
   ========================================================= */
section { padding: 6rem 0; }

.section-eyebrow {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 600;
    display: block;
    margin-bottom: 0.9rem;
}

.section-title {
    text-align: left;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--paper);
    position: relative;
}

/* =========================================================
   ABOUT — spread editoriale
   ========================================================= */
.about { background: var(--ink); border-top: 1px solid var(--line); }

.about .container > .section-eyebrow,
.about .container > .section-title { text-align: center; }

.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    margin-bottom: 1.5rem;
    color: var(--stone);
}

.about-text p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 600;
    float: left;
    line-height: 0.8;
    margin: 0.1rem 0.6rem 0 0;
    color: var(--amber);
}

.about-text strong { color: var(--paper); }

.about-image {
    background: var(--gradient-primary);
    height: 460px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

/* =========================================================
   DIPARTIMENTI — catalogo con luce colorata per riga
   ========================================================= */
.services { background: var(--ink-alt); border-top: 1px solid var(--line); }

.services-grid { display: flex; flex-direction: column; }

.service-card {
    display: grid;
    grid-template-columns: 4px 90px 1fr;
    gap: 1.25rem;
    padding: 2.25rem 0;
    border-top: 1px solid var(--line);
    text-align: left;
    transition: all 0.25s ease;
    position: relative;
    --dept-color: var(--amber);
}

.services-grid .service-card:nth-of-type(1) { --dept-color: var(--amber); }
.services-grid .service-card:nth-of-type(2) { --dept-color: var(--teal); }
.services-grid .service-card:nth-of-type(3) { --dept-color: var(--violet); }
.services-grid .service-card:nth-of-type(4) { --dept-color: var(--rose); }
.services-grid .service-card:nth-of-type(5) { --dept-color: var(--crimson); }

.services-grid .service-card:last-of-type { border-bottom: 1px solid var(--line); }

.service-card::before {
    content: '';
    background: var(--dept-color);
    border-radius: 2px;
}

.service-card:hover { background: rgba(245, 241, 232, 0.03); }

.service-icon {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dept-color);
    padding-top: 0.2rem;
}

.service-card h3 {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--paper);
}

.service-card p {
    color: var(--stone);
    line-height: 1.65;
    font-size: 1rem;
    max-width: 60ch;
}

/* Card Assistente AI — trattata come "strumento", non dipartimento */
.service-card.ai-card {
    grid-template-columns: 1fr;
    background: var(--ink);
    border: 1px solid var(--amber);
    border-radius: 4px;
    padding: 2.25rem 2rem;
    margin-top: 2rem;
    --dept-color: var(--amber);
}

.service-card.ai-card::before { display: none; }
.service-card.ai-card h3 { color: var(--paper); }
.service-card.ai-card p { color: var(--stone); }
.service-card.ai-card .service-icon { color: var(--amber); font-size: 1.6rem; }

.ai-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--ink);
    background: var(--amber);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    transition: all 0.25s ease;
    font-size: 0.92rem;
}

.ai-link:hover { background: var(--crimson); color: var(--paper); }

/* =========================================================
   CONTATTI
   ========================================================= */
.contact { background: #000000; }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.contact-info h3 {
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    margin-top: 1.6rem;
    color: var(--amber);
    font-weight: 600;
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.02rem;
    color: rgba(245, 241, 232, 0.9);
}

.contact-info p a,
.contact-details p a {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 163, 61, 0.4);
    transition: all 0.2s ease;
}

.contact-info p a:hover,
.contact-details p a:hover {
    color: var(--paper);
    border-bottom-color: var(--paper);
}

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

.contact-form input,
.contact-form textarea {
    padding: 0.9rem 0;
    border: none;
    border-bottom: 1.5px solid rgba(245, 241, 232, 0.25);
    background: transparent;
    color: var(--paper);
    font-size: 1rem;
    font-family: var(--sans);
    border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(245, 241, 232, 0.45); }

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--amber); }

.submit-btn {
    background: var(--amber);
    color: var(--ink);
    padding: 1rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.submit-btn:hover { background: var(--crimson); color: var(--paper); }

/* =========================================================
   FOOTER — colophon
   ========================================================= */
footer {
    background: #000000;
    color: rgba(245, 241, 232, 0.55);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

footer p {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

/* =========================================================
   MODALI — booking & contatti
   ========================================================= */
.booking-modal,
.contacts-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.booking-modal.show,
.contacts-modal.show {
    display: flex;
    align-items: center;
    align-items: safe center;
    justify-content: center;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.booking-content,
.contacts-content {
    background: var(--ink-alt);
    padding: 2.5rem;
    border-radius: 4px;
    max-width: 700px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    color: var(--paper);
    position: relative;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--line);
}

.contacts-content { max-width: 600px; }

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

.booking-content h2,
.contacts-content h2 {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: left;
    color: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.2rem;
}

.booking-form { display: flex; flex-direction: column; gap: 1.4rem; }

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

.form-group label {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--amber);
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 0.85rem;
    border: none;
    border-bottom: 1.5px solid rgba(245, 241, 232, 0.25);
    background: rgba(245, 241, 232, 0.04);
    color: var(--paper);
    font-size: 1rem;
    font-family: var(--sans);
    transition: all 0.25s ease;
    border-radius: 2px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--amber);
    background: rgba(245, 241, 232, 0.08);
}

.form-group input::placeholder { color: rgba(245, 241, 232, 0.45); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--ink-alt); color: var(--paper); }

.lesson-info {
    background: rgba(245, 241, 232, 0.04);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    border: 1px solid var(--line);
}

.lesson-info h3 {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--amber);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.lesson-info ul { list-style: none; padding-left: 0; }

.lesson-info li {
    margin-bottom: 0.6rem;
    padding-left: 1.3rem;
    position: relative;
    font-size: 0.95rem;
    color: rgba(245, 241, 232, 0.85);
}

.lesson-info li::before { content: '—'; position: absolute; left: 0; color: var(--amber); }

/* Widget calendario iniettato nel modale di prenotazione */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.time-slot {
    padding: 0.75rem 0.5rem;
    border: 1.5px solid var(--line);
    border-radius: 3px;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--paper);
    background: rgba(245, 241, 232, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.time-slot.available:hover {
    border-color: var(--amber);
    background: rgba(232, 163, 61, 0.1);
    transform: translateY(-1px);
}

.time-slot.selected {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
}

.time-slot.booked {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.no-date-selected,
.loading-slots,
.no-slots,
.error-message {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: var(--stone);
    padding: 0.5rem 0;
    text-align: left;
}

.no-slots p,
.error-message p {
    margin-bottom: 0.3rem;
}

.no-slots p:first-child,
.error-message p:first-child {
    color: var(--paper);
    font-weight: 600;
}

.slot-confirmation {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(232, 163, 61, 0.1);
    border: 1.5px solid var(--amber);
    border-radius: 4px;
    color: var(--paper);
    font-size: 0.92rem;
    line-height: 1.5;
}

.slot-confirmation strong { color: var(--amber); }

.price-section {
    text-align: center;
    margin: 0.5rem 0;
    padding: 2rem;
    background: rgba(245, 241, 232, 0.04);
    border-radius: 4px;
    border: 1px solid var(--amber);
}

.price-section h3 {
    color: var(--amber);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.price {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 0.5rem;
}

.price-note { font-size: 0.88rem; color: rgba(245, 241, 232, 0.6); margin-bottom: 1rem; }

.paypal-section { text-align: center; margin-top: 1.5rem; }
#paypal-button-container { margin-bottom: 1rem; min-height: 50px; }

.payment-note {
    font-size: 0.85rem;
    color: rgba(245, 241, 232, 0.55);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.5;
}

.booking-close-btn,
.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(245, 241, 232, 0.08);
    border: 1px solid var(--line);
    color: var(--paper);
    font-size: 1.4rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.booking-close-btn:hover,
.close-btn:hover { background: var(--crimson); border-color: var(--crimson); transform: rotate(90deg); }

/* Contacts modal items */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(245, 241, 232, 0.03);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.contact-item:hover { background: rgba(245, 241, 232, 0.06); }

.contact-icon { font-size: 1.5rem; margin-right: 1.25rem; color: var(--amber); min-width: 44px; }

.contact-details h3 {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--amber);
    font-weight: 600;
}

.contact-details p { font-size: 1rem; margin: 0; word-break: break-word; color: rgba(245, 241, 232, 0.9); }

.map-section { margin-top: 1.5rem; text-align: center; }

.map-section h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--paper); font-weight: 600; }
.map-section p { color: var(--stone); font-size: 0.92rem; }

.map-btn {
    background: var(--amber);
    color: var(--ink);
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 2px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 1rem;
}

.map-btn:hover { background: var(--crimson); color: var(--ink); }

/* Scroll animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .container { padding: 0 18px; }
    .cta-button { min-width: 210px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    header { top: 30px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ink);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.4);
        border-bottom: 1px solid var(--line);
    }

    .nav-links.show { display: flex; }
    .nav-links li { text-align: center; width: 100%; }
    .nav-links a { display: block; }

    .hero { padding-top: 90px; min-height: auto; }

    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-button { width: 100%; min-width: auto; }

    .about-content,
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }

    .about-image { height: 280px; order: -1; }

    .service-card { grid-template-columns: 4px 1fr; gap: 0.75rem; }
    .service-icon { display: none; }

    section { padding: 3.5rem 0; }

    .booking-content, .contacts-content { margin: 0.5rem; padding: 1.5rem; max-height: 85vh; }

    .contact-item { flex-direction: column; text-align: center; gap: 0.75rem; }
    .contact-icon { margin-right: 0; }

    .logo::after { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .masthead-label { display: none; }
    .booking-content, .contacts-content { padding: 1.1rem; margin: 0.4rem; }
    .form-group input, .form-group select,
    .contact-form input, .contact-form textarea { padding: 0.75rem; }
    .lesson-info, .price-section { padding: 1rem; }
    .service-card { padding: 1.75rem 0; }
}

@media (max-width: 320px) {
    .cta-button { font-size: 0.9rem; padding: 0.85rem 1.5rem; }
    .booking-content, .contacts-content { margin: 0.25rem; padding: 0.85rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 6rem 0 2rem; }
    .booking-modal, .contacts-modal { align-items: flex-start; padding-top: 2rem; }
}

@media print {
    .booking-modal, .contacts-modal, header, .masthead, .cta-buttons { display: none !important; }
    .hero { min-height: auto; padding: 2rem 0; }
    * { color: black !important; background: white !important; }
}
