/* ═══════════════════════════════════════════════════════
   Sub DeepBlue — Homepage CSS
   Professionale: navy #1e3a5f, oro sabbia #c9a96e
   Sfondo chiaro #fafaf8, hero navy scuro
   Font: Playfair Display (display) + DM Sans (body)
   Prefisso classi: sd-
   ═══════════════════════════════════════════════════════ */

:root {
    --sd-bg: #fafaf8;
    --sd-bg-cream: #f5f0e8;
    --sd-bg-white: #ffffff;
    --sd-navy: #1e3a5f;
    --sd-navy-light: #264b73;
    --sd-text: #1e293b;
    --sd-text-mid: #64748b;
    --sd-text-dim: #94a3b8;
    --sd-gold: #c9a96e;
    --sd-gold-light: #e8d5b0;
    --sd-border: #e2ddd4;
}

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

/* ══════ NAVBAR ══════ */
.sd-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    padding: 0 3rem; height: 70px; background: var(--sd-bg-white);
    border-bottom: 1px solid var(--sd-border);
    display: flex; align-items: center; justify-content: space-between;
}
.sd-nav-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; color: var(--sd-navy); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.sd-nav-brand img { height: 32px; width: auto; }
.sd-nav-name { color: var(--sd-navy); }
.sd-nav-name span { color: var(--sd-gold); font-style: italic; }
.sd-nav-mark { font-size: 1.2rem; }
.sd-nav-menu { display: flex; align-items: center; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.sd-nav-menu a { color: var(--sd-text-mid); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.sd-nav-menu a:hover { color: var(--sd-navy); }
.sd-nav-menu a::after { display: none; }
.sd-nav-cta-btn { background: var(--sd-navy) !important; color: white !important; border: none !important; padding: 8px 20px !important; font-size: 0.85rem; font-weight: 500; }
.sd-nav-cta-btn:hover { background: var(--sd-navy-light) !important; }
.sd-nav-cta-btn::after { display: none !important; }
.sd-nav-logout { background: none; border: none; color: var(--sd-text-mid); cursor: pointer; }
.sd-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.sd-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--sd-text); margin: 5px 0; transition: 0.2s ease; }
.sd-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sd-nav-toggle.active span:nth-child(2) { opacity: 0; }
.sd-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* ══════ SECTION COMMON ══════ */
.sd-sec-label { font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase; color: var(--sd-gold); margin-bottom: 0.75rem; font-weight: 500; }
.sd-sec-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--sd-text); }
.sd-sec-sub { color: var(--sd-text-mid); font-size: 1rem; max-width: 500px; margin: 0.75rem auto 0; line-height: 1.6; }

/* ══════ HERO — sfondo navy scuro ══════ */
.sd-hero {
    min-height: 100vh; display: flex; align-items: center;
    background: var(--sd-navy); color: white; position: relative; overflow: hidden;
    padding: 8rem 3rem 6rem;
}
.sd-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(201,169,110,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(59,105,152,0.15) 0%, transparent 50%);
}
.sd-hero-stripes, .sd-hero-glow { display: none; }
.sd-hero-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 2; }
.sd-hero-left {}
.sd-hero-right {}
.sd-hero-tag { color: var(--sd-gold); font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase; font-weight: 500; margin-bottom: 1.5rem; }
.sd-hero-tag .sd-pulse { display: none; }
.sd-hero-tag span { color: var(--sd-gold); }
.sd-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 4.5vw, 3.8rem); font-weight: 600; line-height: 1.15; margin-bottom: 1.5rem; color: white; }
.sd-hero-title em, .sd-em, .sd-highlight { font-style: italic; color: var(--sd-gold); }
.sd-hero-sub { color: #94a3b8; font-size: 1.1rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 460px; }
.sd-hero-buttons { display: flex; gap: 1rem; }
.sd-btn-neon { background: var(--sd-gold); color: var(--sd-navy); padding: 0.85rem 2.2rem; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: all 0.3s; text-decoration: none; }
.sd-btn-neon:hover { background: #d4b87a; }
.sd-btn-outline { background: transparent; color: white; padding: 0.85rem 2.2rem; font-weight: 500; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transition: all 0.3s; text-decoration: none; }
.sd-btn-outline:hover { border-color: var(--sd-gold); color: var(--sd-gold); }
.sd-hero-visual-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 2rem; backdrop-filter: blur(4px); display: flex; flex-direction: column; gap: 1rem; }
.sd-hero-hex-ring, .sd-hero-center-icon { display: none; }
.sd-hero-image-wrap { border-radius: 4px; overflow: hidden; }
.sd-hero-img { width: 100%; height: auto; }
.sd-hero-stats { display: flex; gap: 1rem; }
.sd-hero-stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 1rem; flex: 1; text-align: center; }
.sd-hero-stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; color: white; }
.sd-hero-stat-label { color: #94a3b8; font-size: 0.85rem; }

@media (max-width: 768px) {
    .sd-hero-content { grid-template-columns: 1fr; }
    .sd-hero { padding: 7rem 1.5rem 4rem; }
}

/* ══════ DISCIPLINES — sfondo chiaro ══════ */
.sd-disciplines { background: var(--sd-bg-white); padding: 5rem 3rem; }
.sd-disc-inner { max-width: 1100px; margin: 0 auto; }
.sd-disc-header { text-align: center; margin-bottom: 3.5rem; }
.sd-disc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.sd-disc-card {
    border: 1px solid var(--sd-border); padding: 2rem; display: flex; gap: 1.5rem;
    transition: all 0.3s; position: relative;
}
.sd-disc-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--sd-gold); transition: width 0.4s; }
.sd-disc-card:hover { border-color: var(--sd-gold-light); }
.sd-disc-card:hover::after { width: 100%; }
.sd-disc-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--sd-gold-light); font-weight: 600; line-height: 1; min-width: 40px; }
.sd-disc-emoji { font-size: 1.5rem; }
.sd-disc-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--sd-text); margin-bottom: 0.4rem; }
.sd-disc-text { color: var(--sd-text-mid); font-size: 0.9rem; line-height: 1.5; }
.sd-disc-link { color: var(--sd-gold); font-size: 0.8rem; margin-top: 0.5rem; display: inline-block; }

/* ══════ TEAM ══════ */
.sd-team { background: var(--sd-bg-cream); padding: 5rem 3rem; }
.sd-team-inner { max-width: 1100px; margin: 0 auto; }
.sd-team-header { text-align: center; margin-bottom: 3rem; }
.sd-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.sd-team-card { background: var(--sd-bg-white); border: 1px solid var(--sd-border); padding: 2rem; cursor: pointer; }
.sd-team-card-banner { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sd-bg-text { display: none; }
.sd-team-avatar { width: 64px; height: 64px; background: var(--sd-navy); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; overflow: hidden; }
.sd-team-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.sd-team-card-body {}
.sd-team-role-tag { color: var(--sd-gold); font-size: 0.8rem; font-weight: 500; }
.sd-team-member-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; color: var(--sd-text); }
.sd-team-bio { color: var(--sd-text-mid); font-size: 0.9rem; line-height: 1.5; }

/* Teacher Modal */
.teacher-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.teacher-modal-overlay.active { display: flex; }
.teacher-modal { background: var(--sd-bg-white); max-width: 500px; width: 100%; padding: 2rem; position: relative; color: var(--sd-text); }
.teacher-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--sd-text-mid); }
.teacher-modal-content { display: flex; gap: 1.5rem; }
.teacher-modal-photo { width: 120px; height: 120px; overflow: hidden; background: var(--sd-navy); flex-shrink: 0; }
.teacher-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-modal-role { color: var(--sd-gold); font-size: 0.85rem; }
.teacher-modal-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; color: var(--sd-text); }
.teacher-modal-desc { color: var(--sd-text-mid); font-size: 0.9rem; line-height: 1.5; margin-top: 0.5rem; }
.teacher-modal-social a { color: var(--sd-navy); }

/* ══════ CENTRO ══════ */
.sd-centro { background: var(--sd-bg-white); padding: 5rem 3rem; }
.sd-centro-inner { max-width: 1100px; margin: 0 auto; }
.sd-centro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 2rem; }
.sd-centro-visual { background: var(--sd-bg-cream); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; min-height: 220px; overflow: hidden; }
.sd-centro-visual img, .sd-centro-photo { width: 100%; }
.sd-icon-big { font-size: 3rem; }
.sd-label-small { color: var(--sd-text-mid); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 0.5rem; }
.sd-centro-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.sd-c-tile { border: 1px solid var(--sd-border); padding: 1.5rem; }
.sd-c-tile h3 { font-family: 'Playfair Display', serif; font-size: 0.9rem; font-weight: 600; color: var(--sd-text); margin-bottom: 0.3rem; }
.sd-c-tile p { color: var(--sd-text-mid); font-size: 0.85rem; line-height: 1.4; }
.sd-tile-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.sd-tile-cta { color: var(--sd-gold); text-decoration: none; font-size: 0.85rem; }
.sd-neon-tile { border-color: var(--sd-gold-light); }

.sd-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.sd-ct { border: 1px solid var(--sd-border); padding: 1.5rem; text-align: center; }
.sd-ct h3 { color: var(--sd-text); } .sd-ct p { color: var(--sd-text-mid); }
.sd-ct-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

@media (max-width: 768px) { .sd-centro-split { grid-template-columns: 1fr; } }

/* ══════ CONTACT — sfondo navy ══════ */
.sd-contact { background: var(--sd-navy); color: white; padding: 5rem 3rem; }
.sd-contact .sd-sec-title { color: white; }
.sd-contact .sd-sec-sub { color: #94a3b8; }
.sd-contact-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.sd-contact-info { display: flex; flex-direction: column; justify-content: center; }
.sd-contact-detail-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.sd-contact-detail-icon { font-size: 1rem; }
.sd-contact-detail-text small { display: block; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--sd-gold); }
.sd-contact-detail-text strong { color: #94a3b8; font-weight: 400; }
.sd-contact-form-box {}
.sd-contact-form-box h3 { color: white; font-family: 'Playfair Display', serif; margin-bottom: 0.5rem; }
.sd-contact-form-box .sd-form-desc { color: #94a3b8; margin-bottom: 1rem; }
.sd-contact-form-box .contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.sd-contact-form-box input, .sd-contact-form-box textarea, .sd-contact-form-box select {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: white; padding: 0.85rem 1rem; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.3s;
}
.sd-contact-form-box input::placeholder, .sd-contact-form-box textarea::placeholder { color: #64748b; }
.sd-contact-form-box input:focus, .sd-contact-form-box textarea:focus { border-color: var(--sd-gold); }
.sd-contact-form-box textarea { min-height: 120px; resize: vertical; }
.sd-f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.sd-f-field { display: flex; flex-direction: column; }
.sd-f-field label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 0.25rem; }
.sd-full { grid-column: 1 / -1; }
.sd-f-submit { margin-top: 0.5rem; }
.contact-feedback { padding: 0.75rem; border-radius: 4px; }

@media (max-width: 768px) { .sd-contact-inner { grid-template-columns: 1fr; } .sd-f-grid { grid-template-columns: 1fr; } }

/* ══════ FOOTER — navy scuro ══════ */
.sd-footer { padding: 2.5rem 3rem; text-align: center; background: #162d4a; border-top: 1px solid rgba(255,255,255,0.06); }
.sd-footer-inner { max-width: 1100px; margin: 0 auto; }
.sd-footer-left { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.sd-footer-hex { display: none; }
.sd-footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--sd-gold); }
.sd-footer-copy { color: #64748b; font-size: 0.8rem; }
.sd-footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 0.75rem; list-style: none; padding: 0; }
.sd-footer-links a { color: #64748b; text-decoration: none; font-size: 0.8rem; }
.sd-footer-links a:hover { color: var(--sd-gold); }
.sd-footer-powered { color: #475569; font-size: 0.75rem; margin-top: 1rem; }
.sd-footer-powered a { color: var(--sd-gold); text-decoration: none; }
.footer-location { color: #94a3b8; } .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; }
.badge-sede-small { font-size: 11px; background: rgba(201,169,110,0.15); color: var(--sd-gold); padding: 2px 8px; border-radius: 50px; }
