/* ═══════════════════════════════════════════════════════
   Climb Boulder — Homepage CSS
   Indoor moderno: viola #a855f7, ciano #06b6d4 su bianco
   Sfondo chiaro #fafafa, testo scuro #18181b
   Font: Manrope (display+body) + Space Mono (accenti)
   Prefisso classi: cb-
   ═══════════════════════════════════════════════════════ */

:root {
    --cb-bg: #fafafa;
    --cb-bg-white: #ffffff;
    --cb-bg-purple: #faf5ff;
    --cb-bg-dark: #18181b;
    --cb-text: #18181b;
    --cb-text-mid: #71717a;
    --cb-text-dim: #a1a1aa;
    --cb-purple: #a855f7;
    --cb-purple-dark: #9333ea;
    --cb-purple-light: #f3e8ff;
    --cb-cyan: #06b6d4;
    --cb-cyan-light: #cffafe;
    --cb-border: #e4e4e7;
}

.hp-sections-container { display: flex; flex-direction: column; width: 100%; }
.hp-section { width: 100%; }

/* ══════ NAVBAR ══════ */
.cb-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    padding: 0 2.5rem; height: 64px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cb-border);
    display: flex; align-items: center; justify-content: space-between;
}
.cb-nav-brand { font-weight: 800; font-size: 1.2rem; color: var(--cb-text); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.cb-nav-brand img { height: 32px; width: auto; }
.cb-nav-name { color: var(--cb-text); }
.cb-nav-name span { color: var(--cb-purple); }
.cb-nav-mark { width: 30px; height: 30px; background: var(--cb-purple); border-radius: 6px; transform: rotate(45deg); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.8rem; }
.cb-nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.cb-nav-menu a { color: var(--cb-text-mid); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.cb-nav-menu a:hover { color: var(--cb-purple); }
.cb-nav-menu a::after { display: none; }
.cb-nav-cta-btn { background: var(--cb-purple) !important; color: white !important; border: none !important; padding: 8px 18px !important; border-radius: 8px !important; font-weight: 700; font-size: 0.85rem; }
.cb-nav-cta-btn:hover { background: var(--cb-purple-dark) !important; }
.cb-nav-cta-btn::after { display: none !important; }
.cb-nav-logout { background: none; border: none; color: var(--cb-text-mid); cursor: pointer; }
.cb-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.cb-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cb-text); margin: 5px 0; transition: 0.2s; }
.cb-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cb-nav-toggle.active span:nth-child(2) { opacity: 0; }
.cb-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .cb-nav-toggle { display: block; }
    .cb-nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(255,255,255,0.98); flex-direction: column; padding: 1rem 2rem 2rem; gap: 1rem; border-bottom: 1px solid var(--cb-border); }
    .cb-nav-menu.open { display: flex; }
}

/* ══════ SECTION COMMON ══════ */
.cb-sec-label { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--cb-purple); margin-bottom: 0.5rem; }
.cb-sec-title { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--cb-text); }
.cb-sec-sub { color: var(--cb-text-mid); font-size: 1rem; max-width: 480px; margin: 0.75rem auto 0; }

/* ══════ HERO ══════ */
.cb-hero {
    min-height: 100vh; display: flex; align-items: center; padding: 5rem 2.5rem;
    position: relative; overflow: hidden; background: var(--cb-bg-white);
}
.cb-hero-stripes, .cb-hero-glow { display: none; }
.cb-hero-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.cb-hero-left {}
.cb-hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cb-hero-tag { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--cb-purple); margin-bottom: 1rem; }
.cb-pulse { display: none; }
.cb-hero-title { font-size: clamp(2.8rem, 5.5vw, 4.2rem); font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem; color: var(--cb-text); }
.cb-hero-title em, .cb-em, .cb-highlight { font-style: normal; color: var(--cb-purple); }
.cb-hero-sub { color: var(--cb-text-mid); font-size: 1.1rem; line-height: 1.7; max-width: 460px; margin-bottom: 2rem; }
.cb-hero-buttons { display: flex; gap: 0.75rem; }
.cb-btn-neon {
    background: var(--cb-purple); color: white; padding: 0.85rem 2rem;
    border-radius: 10px; font-weight: 700; border: none; cursor: pointer;
    transition: all 0.3s; text-decoration: none; font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(168,85,247,0.25);
}
.cb-btn-neon:hover { background: var(--cb-purple-dark); transform: translateY(-2px); }
.cb-btn-outline {
    background: transparent; color: var(--cb-text); padding: 0.85rem 2rem;
    border-radius: 10px; font-weight: 600; border: 1px solid var(--cb-border);
    cursor: pointer; transition: all 0.3s; text-decoration: none; font-size: 0.95rem;
}
.cb-btn-outline:hover { border-color: var(--cb-purple); color: var(--cb-purple); }
.cb-hero-visual-box {
    background: var(--cb-bg); border: 1px solid var(--cb-border); border-radius: 12px;
    padding: 1.5rem; text-align: center; transition: all 0.3s;
}
.cb-hero-visual-box:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.cb-hero-hex-ring, .cb-hero-center-icon { display: none; }
.cb-hero-image-wrap { border-radius: 12px; overflow: hidden; } .cb-hero-img { width: 100%; }
.cb-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cb-hero-stat { background: var(--cb-bg); border: 1px solid var(--cb-border); border-radius: 12px; padding: 1.5rem; text-align: center; }
.cb-hero-stat-num { font-weight: 800; font-size: 1.3rem; color: var(--cb-purple); }
.cb-hero-stat-label { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--cb-text-mid); }

@media (max-width: 768px) {
    .cb-hero-content { grid-template-columns: 1fr; }
    .cb-hero-right { max-width: 300px; margin: 0 auto; order: -1; }
}

/* ══════ DISCIPLINES ══════ */
.cb-disciplines { background: var(--cb-bg-purple); padding: 5rem 2.5rem; }
.cb-disc-inner { max-width: 1100px; margin: 0 auto; }
.cb-disc-header { text-align: center; margin-bottom: 3.5rem; }
.cb-disc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.cb-disc-card {
    background: var(--cb-bg-white); border: 1px solid var(--cb-border); border-radius: 14px;
    padding: 1.75rem; transition: all 0.3s;
}
.cb-disc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(168,85,247,0.08); border-color: var(--cb-purple-light); }
.cb-disc-emoji {
    width: 44px; height: 44px; background: var(--cb-purple-light); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem;
}
.cb-disc-num { display: none; }
.cb-disc-name { font-size: 1.1rem; font-weight: 700; color: var(--cb-text); margin-bottom: 0.4rem; }
.cb-disc-text { color: var(--cb-text-mid); font-size: 0.9rem; line-height: 1.5; }
.cb-disc-link { display: inline-block; margin-top: 0.75rem; font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--cb-text-mid); }

/* ══════ TEAM ══════ */
.cb-team { background: var(--cb-bg-white); padding: 5rem 2.5rem; }
.cb-team-inner { max-width: 1100px; margin: 0 auto; }
.cb-team-header { text-align: center; margin-bottom: 3rem; }
.cb-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.cb-team-card { background: var(--cb-bg); border: 1px solid var(--cb-border); border-radius: 14px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.3s; }
.cb-team-card:hover { transform: translateY(-3px); }
.cb-team-card-banner {} .cb-bg-text { display: none; }
.cb-team-avatar {
    width: 80px; height: 80px; border-radius: 16px; margin: 0 auto;
    background: linear-gradient(135deg, var(--cb-purple-light), var(--cb-cyan-light));
    display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; color: var(--cb-text);
}
.cb-team-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.cb-team-card-body { padding-top: 0.75rem; }
.cb-team-role-tag { color: var(--cb-purple); font-family: 'Space Mono', monospace; font-size: 0.75rem; }
.cb-team-member-name { font-weight: 700; font-size: 1.05rem; color: var(--cb-text); }
.cb-team-bio { color: var(--cb-text-mid); font-size: 0.9rem; margin-top: 0.5rem; line-height: 1.5; }

/* Teacher Modal */
.teacher-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.teacher-modal-overlay.active { display: flex; }
.teacher-modal { background: white; border-radius: 14px; max-width: 500px; width: 100%; padding: 2rem; position: relative; color: var(--cb-text); }
.teacher-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--cb-text-mid); }
.teacher-modal-content { display: flex; gap: 1.5rem; }
.teacher-modal-photo { width: 120px; height: 120px; border-radius: 16px; overflow: hidden; background: var(--cb-purple-light); flex-shrink: 0; }
.teacher-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-modal-role { color: var(--cb-purple); font-family: 'Space Mono', monospace; font-size: 0.8rem; }
.teacher-modal-name { font-size: 1.3rem; font-weight: 700; color: var(--cb-text); }
.teacher-modal-desc { color: var(--cb-text-mid); margin-top: 0.5rem; } .teacher-modal-social a { color: var(--cb-purple); }

/* ══════ CENTRO ══════ */
.cb-centro { background: var(--cb-bg); padding: 5rem 2.5rem; }
.cb-centro-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.cb-centro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; text-align: left; margin-bottom: 2rem; }
.cb-centro-visual { background: var(--cb-bg-white); border: 1px solid var(--cb-border); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; min-height: 220px; }
.cb-centro-visual img, .cb-centro-photo { width: 100%; border-radius: 10px; }
.cb-icon-big { font-size: 3rem; } .cb-label-small { color: var(--cb-text-mid); font-size: 0.8rem; margin-top: 0.5rem; }
.cb-centro-tiles { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.cb-c-tile {
    background: var(--cb-bg-white); border: 1px solid var(--cb-border); border-radius: 50px;
    padding: 0.5rem 1.25rem; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem;
}
.cb-c-tile h3 { font-size: 0.9rem; color: var(--cb-text); font-weight: 500; display: inline; }
.cb-c-tile p { display: none; }
.cb-tile-icon { font-size: 1.1rem; }
.cb-tile-cta { color: var(--cb-purple); text-decoration: none; } .cb-neon-tile { background: var(--cb-purple-light) !important; }
.cb-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.cb-ct { background: var(--cb-bg-white); border: 1px solid var(--cb-border); border-radius: 14px; padding: 1.5rem; text-align: center; }
.cb-ct h3 { color: var(--cb-text); } .cb-ct p { color: var(--cb-text-mid); } .cb-ct-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
@media (max-width: 768px) { .cb-centro-split { grid-template-columns: 1fr; } }

/* ══════ CONTACT — sfondo scuro ══════ */
.cb-contact { background: var(--cb-bg-dark); color: white; padding: 5rem 2.5rem; border-radius: 24px 24px 0 0; }
.cb-contact .cb-sec-title { color: white; }
.cb-contact .cb-sec-sub { color: #a1a1aa; }
.cb-contact-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cb-contact-info { display: flex; flex-direction: column; justify-content: center; }
.cb-contact-detail-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.cb-contact-detail-icon { font-size: 1rem; }
.cb-contact-detail-text small { display: block; font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--cb-purple); }
.cb-contact-detail-text strong { color: #a1a1aa; font-weight: 400; }
.cb-contact-form-box {} .cb-contact-form-box h3 { color: white; margin-bottom: 0.5rem; }
.cb-form-desc { color: #a1a1aa; margin-bottom: 1rem; }
.cb-contact-form-box .contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.cb-contact-form-box input, .cb-contact-form-box textarea, .cb-contact-form-box select {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; color: white; padding: 0.85rem 1rem; font-size: 0.95rem; outline: none; transition: border-color 0.3s;
}
.cb-contact-form-box input::placeholder, .cb-contact-form-box textarea::placeholder { color: #52525b; }
.cb-contact-form-box input:focus, .cb-contact-form-box textarea:focus { border-color: var(--cb-purple); }
.cb-contact-form-box textarea { min-height: 110px; resize: vertical; }
.cb-f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cb-f-field { display: flex; flex-direction: column; } .cb-f-field label { font-size: 0.85rem; color: #a1a1aa; margin-bottom: 0.25rem; }
.cb-full { grid-column: 1 / -1; } .cb-f-submit { margin-top: 0.5rem; }
.contact-feedback { padding: 0.75rem; border-radius: 10px; }
@media (max-width: 768px) { .cb-contact-inner { grid-template-columns: 1fr; } .cb-f-grid { grid-template-columns: 1fr; } .cb-contact { border-radius: 16px 16px 0 0; } }

/* ══════ FOOTER ══════ */
.cb-footer { padding: 2rem 2.5rem; text-align: center; background: var(--cb-bg-dark); color: #71717a; }
.cb-footer-inner { max-width: 1100px; margin: 0 auto; }
.cb-footer-left { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.cb-footer-hex { color: var(--cb-purple); }
.cb-footer-logo-text { font-weight: 800; color: var(--cb-purple); font-size: 1rem; }
.cb-footer-copy { color: #52525b; font-size: 0.8rem; }
.cb-footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 0.75rem; list-style: none; padding: 0; }
.cb-footer-links a { color: #71717a; text-decoration: none; font-size: 0.8rem; } .cb-footer-links a:hover { color: var(--cb-purple); }
.cb-footer-powered { color: #52525b; font-size: 0.75rem; margin-top: 1rem; } .cb-footer-powered a { color: var(--cb-purple); text-decoration: none; }
.footer-location { color: #a1a1aa; } .footer-location strong { color: white; }
.footer-location-divider { padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-opening-hours { font-size: 0.8rem; } .oh-inline { margin-right: 0.5rem; }
.teacher-sedi-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; justify-content: center; }
.badge-sede-small { font-size: 11px; background: var(--cb-purple-light); color: var(--cb-purple-dark); padding: 2px 8px; border-radius: 50px; }
