/* =====================================================
   CENTRO SPORTIVO BLACKDIAMOND — RESPONSIVE.CSS
   Media queries - mobile first overrides
   ===================================================== */

/* ---------- Large Desktop / 1440+ ---------- */
@media (min-width: 1440px) {
    :root {
        --gutter: 32px;
    }
    .hero-title { font-size: 110px; }
}

/* ---------- Tablet / 1024 ---------- */
@media (max-width: 1024px) {

    .header-inner { height: 76px; }

    .main-nav ul { gap: 0; }
    .main-nav a { padding: 8px 10px; font-size: 12px; }

    .header-icon { width: 36px; height: 36px; }
    .header-icon svg { width: 18px; height: 18px; }

    .btn-cta-header {
        padding: 8px 14px;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .contact-grid { grid-template-columns: 1fr; gap: 48px; }

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

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

/* ---------- Mobile / 768 ---------- */
@media (max-width: 768px) {

    .section { padding: 70px 0; }

    .header-inner { height: 68px; }

    /* Mobile menu */
    .hamburger { display: flex; }

    .main-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t-slow) ease, padding var(--t-med) ease;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .main-nav.is-open {
        max-height: calc(100vh - 68px);
        padding: 20px 0;
        overflow-y: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 var(--gutter);
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .main-nav a {
        padding: 16px 8px;
        font-size: 15px;
        letter-spacing: 0.15em;
    }

    .main-nav a::after { display: none; }

    /* Header icons su mobile: solo WhatsApp primario */
    .header-actions .header-icon {
        display: none;
    }

    .header-actions .header-icon[aria-label*="WhatsApp"] {
        display: inline-flex;
    }

    .btn-cta-header {
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
        padding: 100px 0 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 60px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 16px 24px;
    }

    .hero-stats {
        gap: 32px;
        padding-top: 32px;
    }

    .hero-stat-number { font-size: 36px; }

    .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 0.3em;
        padding: 6px 16px;
    }

    /* Form */
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }

    .form-row-2 .form-group { margin-bottom: 18px; }

    .contact-form { padding: 24px 20px; }

    /* Orari */
    .schedule-head { padding: 20px 24px; }

    .schedule-table {
        font-size: 13px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 12px 14px;
    }

    /* Pulsante whatsapp floating leggermente più piccolo */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ---------- Mobile piccolo / 480 ---------- */
@media (max-width: 480px) {

    :root { --gutter: 18px; }

    .section { padding: 56px 0; }

    .section-head { margin-bottom: 40px; }

    .section-title { font-size: 28px; }

    .features-grid,
    .courses-grid { grid-template-columns: 1fr; gap: 16px; }

    .feature-card,
    .course-card { padding: 32px 24px; }

    .course-num { font-size: 42px; }

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

    .schedule-table thead { display: none; }

    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tr {
        padding: 16px 20px;
        border-bottom: 1px solid var(--c-gray-200);
    }

    .schedule-table td {
        padding: 4px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        font-size: 14px;
    }

    .schedule-table td::before {
        content: attr(data-label);
        font-family: var(--ff-display);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--c-gray-500);
        flex-shrink: 0;
    }

    .schedule-table td:first-child::before { content: 'Orario'; }
    .schedule-table td:nth-child(2)::before { content: 'Gruppo'; }
    .schedule-table td:nth-child(3)::before { content: 'Durata'; }

    .schedule-table td:first-child {
        font-size: 16px;
        padding-bottom: 8px;
        margin-bottom: 6px;
        border-bottom: 1px dashed var(--c-gray-200);
    }

    .schedule-head h3 { font-size: 16px; }

    .formula-bullets { grid-template-columns: 1fr; }

    .contact-buttons { flex-direction: column; }
    .contact-buttons .btn { width: 100%; }

    .cta-final-buttons { flex-direction: column; }
    .cta-final-buttons .btn { width: 100%; }

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

    .hero-buttons .btn { font-size: 13px; }

    .btn { padding: 12px 20px; font-size: 12px; }
    .btn-large { padding: 14px 24px; font-size: 13px; }
}

/* ---------- Mobile extra piccolo / 360 ---------- */
@media (max-width: 360px) {
    .hero-eyebrow { font-size: 10px; letter-spacing: 0.2em; }
    .btn-cta-header { display: none; }
}

/* ---------- Stampa specifica ---------- */
@media print {
    .section { padding: 30px 0; }
    .section-title { font-size: 24px; }
}
