/* =========================================
   FICHEIRO CSS: MODALIDADES
   =========================================
   Neste ficheiro estão definidos todos os visuais da secção de modalidades (cartões, imagens, horários, listagens).
*/

/* --- Resets Básicos e Variáveis --- */
:root {
    --primary: #0a3d62;       /* Azul escuro institucional */
    --primary-light: #3c6382; /* Azul médio para hover */
    --accent: #f6b93b;        /* Amarelo/Ouro do logo para detalhes */
    --text-dark: #1e272e;     /* Cinza quase preto para melhor leitura */
    --text-muted: #7f8c8d;    /* Cinza suave para subtítulos */
    --bg-light: #f8f9fa;      /* Fundo cinza claro */
    --bg-dark: #111;
    --card-bg: #ffffff;
    --max-width: 1200px;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Estilização do Cabeçalho (Header) --- */
header {
    background-color: #ffffff;
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.site-logo {
    height: 50px;
    width: auto;
    display: block;
}
.site-title {
    font-size: 22px;
    font-weight: 800;
    color: black;
    letter-spacing: -0.5px;
}

/* --- Menu Principal --- */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    display: inline-block;
    line-height: 1;
}
.main-nav a:hover, .active-link {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--accent) !important;
}

/* Menu Dropdown */
.main-nav > ul > li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}
.menu-item-dropdown {
    position: relative; 
    display: inline-flex;
    align-items: center;
}
.main-nav ul .dropdown-menu {
    display: none !important; 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: #ffffff !important; 
    min-width: 180px; 
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12); 
    z-index: 9999; 
    list-style-type: none !important; 
    padding: 12px 0 8px 0 !important; 
    border-radius: 6px; 
}
.dropdown-menu li {
    display: block !important;
    width: 100% !important;
}
.dropdown-menu li a {
    color: #2c3e50 !important; 
    padding: 10px 20px !important; 
    text-decoration: none !important; 
    display: block !important; 
    text-align: center !important; 
    font-size: 13px !important; 
    font-weight: 600 !important;
    text-transform: uppercase; 
    border-bottom: none !important;
    background: none !important;
    transition: background-color 0.2s;
}
.dropdown-menu li a:hover {
    background-color: #f8f9fa !important; 
    color: #0a3d62 !important; 
}
.menu-item-dropdown:hover .dropdown-menu {
    display: block !important;
}
.menu-item-dropdown:hover .main-link {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--accent) !important;
}

/* =====================================================
   HERO MODALIDADES
   ===================================================== */
.hero-modalidades {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2a6c 100%);
    color: white;
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-modalidades::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 70% 50%, rgba(246,185,59,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-modalidades h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero-modalidades > .hero-content > p {
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto 40px;
    opacity: 0.9;
}
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--border-radius);
    padding: 24px 40px;
    display: inline-flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.stat-item { text-align: center; padding: 0 30px; }
.stat-num { display: block; font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.2); }
.hero-nav-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.pill {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.pill:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(246, 185, 59, 0.3);
}

/* =====================================================
   MODALIDADE SECTIONS
   ===================================================== */
.modalidades-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.modalidade-section {
    padding: 80px 0;
    background: #ffffff;
}
.modalidade-section.alt-bg {
    background: var(--bg-light);
}

/* Header da Modalidade */
.modalidade-header {
    max-width: var(--max-width);
    margin: 0 auto 40px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid;
    padding-left: 20px;
}
.basquetebol-header { border-color: #e67e22; }
.patinagem-header   { border-color: #9b59b6; }
.yoga-header        { border-color: #1abc9c; }
.karate-header      { border-color: #e74c3c; }
.atletismo-header   { border-color: #3498db; }

.mod-icon { font-size: 48px; line-height: 1; }
.modalidade-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}
.mod-subtitle { font-size: 16px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* Body layout */
.modalidade-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.modalidade-body.reverse { flex-direction: row-reverse; }

/* Foto */
.mod-image-wrap {
    flex: 0 0 420px;
    position: relative;
}
.mod-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: block;
    transition: transform 0.4s ease;
}
.mod-photo:hover {
    transform: translateY(-5px);
}
.mod-image-badge {
    position: absolute;
    bottom: -14px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: var(--shadow-md);
}
.basquetebol-badge { background: linear-gradient(135deg, #f39c12, #e67e22); }
.patinagem-badge   { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.yoga-badge        { background: linear-gradient(135deg, #1abc9c, #16a085); }
.karate-badge      { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.atletismo-badge   { background: linear-gradient(135deg, #3498db, #2980b9); }

/* Content */
.mod-content { flex: 1; }
.mod-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}
.info-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.info-card {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.alt-bg .info-card { background: white; }
.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.info-icon { font-size: 28px; margin-bottom: 12px; }
.info-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.info-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.info-card a { color: var(--primary); font-weight: 600; text-decoration: none; }
.info-card a:hover { color: var(--accent); }

/* Schedule Box */
.schedule-box {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}
.alt-bg .schedule-box { background: white; }
.schedule-box h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.schedule-day { background: var(--bg-light); border-radius: 12px; padding: 20px; border: 1px solid rgba(0,0,0,0.03); }
.day-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}
.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.yoga-time { background: rgba(26,188,156,0.12); }
.pilates-time { background: rgba(52,152,219,0.12); }
.time { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.class-type { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* Achievement Box */
.achievement-box {
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border: 1px solid rgba(246,185,59,0.3);
    border-left: 5px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}
.achievement-icon { font-size: 48px; flex-shrink: 0; }
.achievement-text h4 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.achievement-text p { font-size: 15px; color: var(--text-dark); line-height: 1.7; }

/* Events Box */
.events-box {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}
.events-box h4 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 24px; }
.event-list { display: flex; flex-direction: column; gap: 20px; }
.event-item { display: flex; gap: 16px; align-items: flex-start; }
.event-color { width: 6px; border-radius: 4px; min-height: 60px; flex-shrink: 0; }
.atletismo-event-1 { background: linear-gradient(180deg, #f39c12, #e67e22); }
.atletismo-event-2 { background: linear-gradient(180deg, #3498db, #2980b9); }
.event-details h5 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.event-details p { font-size: 15px; color: #555; line-height: 1.6; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #1a5276);
    padding: 80px 24px;
    text-align: center;
    color: white;
}
.cta-content h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; }
.cta-content p { font-size: 18px; opacity: 0.9; margin-bottom: 40px; }
.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 48px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(246, 185, 59, 0.3);
}
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(246,185,59,0.5); }

/* --- Estilização do Rodapé --- */
footer {
    background-color: var(--bg-dark);
    color: #ffffff;
    text-align: center;
    padding: 40px 24px;
    margin-top: 0;
}
footer p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 12px;
}
footer a.facebook-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
footer a.facebook-link:hover {
    opacity: 0.8;
    text-decoration: none;
}
.fb-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .modalidade-body, .modalidade-body.reverse {
        flex-direction: column;
    }
    .mod-image-wrap { flex: none; width: 100%; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid.two-col { grid-template-columns: 1fr; }
    .hero-modalidades h2 { font-size: 36px; }
    .hero-stats { flex-direction: column; gap: 16px; padding: 24px; }
    .stat-divider { width: 60%; height: 1px; }
}

@media (max-width: 768px) {
    header { padding: 12px 0 !important; }
    .header-container { flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 12px !important; padding: 0 15px !important; }
    .logo-wrapper { flex-direction: column !important; align-items: center !important; text-align: center !important; margin-bottom: 0 !important; gap: 6px !important; }
    .site-logo { max-height: 45px !important; width: auto !important; }
    .site-title { font-size: 14px !important; line-height: 1.3 !important; max-width: 90%; margin: 0 !important; }
    .main-nav { width: 100% !important; display: block !important; }
    .main-nav ul { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; gap: 4px 10px !important; padding: 4px 0 !important; background-color: transparent !important; box-shadow: none !important; }
    .main-nav > ul > li { width: auto !important; padding: 0 !important; border-bottom: none !important; }
    .main-nav a { font-size: 12px !important; padding: 6px 8px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.3px; border-bottom: none !important; }
    .menu-item-dropdown { position: relative !important; }
    .main-nav ul .dropdown-menu { position: absolute !important; top: 100% !important; left: 50% !important; transform: translateX(-50%) !important; background-color: #ffffff !important; min-width: 150px !important; box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15) !important; border-radius: 6px !important; padding: 6px 0 !important; display: none !important; z-index: 99999 !important; }
    .dropdown-menu li { display: block !important; width: 100% !important; }
    .dropdown-menu li a { font-size: 11px !important; padding: 8px 12px !important; text-align: center !important; color: var(--primary) !important; }
    .menu-item-dropdown:hover .dropdown-menu,
    .menu-item-dropdown:active .dropdown-menu,
    .menu-item-dropdown:focus-within .dropdown-menu { display: block !important; }

    .modalidade-header { padding: 0 20px 0 16px; }
    .modalidade-body { padding: 0 20px; gap: 30px; }
    .info-grid { grid-template-columns: 1fr; }
    .schedule-grid { grid-template-columns: 1fr; }
    .mod-photo { height: 260px; }
    .hero-modalidades { padding: 60px 20px 40px; }
    .hero-modalidades h2 { font-size: 30px; }
    .hero-nav-pills { gap: 8px; }
    .pill { font-size: 13px; padding: 10px 18px; }
    .achievement-box { flex-direction: column; }
    .cta-content h2 { font-size: 28px; }
}