/* ============================================================
   Centro Sportivo Tempusport - Poggio Nativo (RI)
   Design Moderno Sportivo, Responsive Mobile-First & Dark/Light Accents
   ============================================================ */

:root {
    --bg-primary: #0b1120;
    --bg-secondary: #111827;
    --bg-card: #1e293b;
    --bg-card-hover: #263449;
    --border-color: rgba(255, 255, 255, 0.09);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --brand-red: #e63946;
    --brand-red-dark: #c1121f;
    --brand-blue: #3b82f6;
    --brand-gold: #f59e0b;
    --brand-green: #10b981;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Notice Bar */
.notice-bar {
    background: linear-gradient(90deg, var(--brand-red-dark), var(--brand-red), #d97706);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    text-align: center;
}
.notice-bar a {
    color: #fff;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Header & Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #fff;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}

.brand-logo-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.18));
    transition: transform 0.25s ease;
}
.brand-logo:hover .brand-logo-img {
    transform: scale(1.06) rotate(-3deg);
}

.hero-emblem-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 82px;
    height: 82px;
    background: rgba(11, 17, 32, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.hero-emblem-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.brand-text strong {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: 800;
}
.brand-text span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.93rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.45rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.93rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-red), #e11d48);
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(230, 57, 70, 0.45);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(230, 57, 70, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
}

.btn-whatsapp {
    background: #10b981;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #059669;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.22), transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(59, 130, 246, 0.18), transparent 45%),
        linear-gradient(180deg, #0b1120 0%, #111827 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(230, 57, 70, 0.14);
    border: 1px solid rgba(230, 57, 70, 0.35);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.6rem);
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.stat-item strong {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
}
.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
}

.hero-card-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-card-showcase img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.hero-card-caption {
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Section Generic */
.section {
    padding: 5rem 0;
}
.section-alt {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.25rem;
}

.section-tag {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 57, 70, 0.45);
}

.course-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.course-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.course-card:hover .course-img-wrap img {
    transform: scale(1.06);
}

.course-icon-badge {
    position: absolute;
    bottom: 12px;
    left: 16px;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.course-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.course-subtitle {
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.course-body p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.course-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 0.95rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.course-meta i {
    color: var(--brand-red);
    width: 18px;
}

/* Interactive Schedule */
.schedule-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.25rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

.schedule-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.day-column {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.day-header {
    font-weight: 800;
    font-size: 1.05rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slot-item {
    background: rgba(15, 23, 42, 0.7);
    border-left: 3px solid var(--brand-blue);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    transition: transform 0.15s;
}
.slot-item:hover {
    transform: translateX(3px);
}
.slot-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fca5a5;
    display: block;
}
.slot-course {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.15rem 0;
}
.slot-group {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* News & Events Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.75rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.news-card img {
    width: 100%;
    height: 195px;
    object-fit: cover;
}
.news-content {
    padding: 1.4rem;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.news-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
}
.news-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}
.news-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 230px;
    border: 1px solid var(--border-color);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gallery-item:hover img {
    transform: scale(1.07);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,17,32,0.92), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.15rem;
}
.gallery-overlay span {
    font-size: 0.75rem;
    color: #fca5a5;
    font-weight: 700;
    text-transform: uppercase;
}
.gallery-overlay strong {
    font-size: 0.98rem;
}

/* Contact & Booking Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.info-list {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(230, 57, 70, 0.15);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-field {
    margin-bottom: 1.1rem;
}
.form-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-family: inherit;
    font-size: 0.94rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* Footer */
.site-footer {
    background: #070b14;
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 920px) {
    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #0b1120;
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.open {
        display: flex;
    }
    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

