@import url('tema.css');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--texto-principal);
    background-color: var(--fundo-body);
    line-height: 1.6;
}

a {
    color: var(--link-cor);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
}

.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto;
    width: auto;
    height: auto;
    overflow: visible;
    background: #fff;
    color: #000;
    padding: 10px 20px;
    z-index: 10000;
}

.tg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tg-container.flex {
    display: flex;
}

.tg-container.flex-center {
    align-items: center;
}

.tg-container.flex-between {
    justify-content: space-between;
}

.tg-container.flex-top {
    align-items: flex-start;
}

/* Header */
.site-header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--header-border-bottom);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo-link img {
    max-width: 166px;
    height: auto;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.site-title a {
    color: var(--site-title-cor);
}

.site-description {
    font-size: 0.85rem;
    color: var(--site-descricao-cor);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2px;
}

.main-navigation ul li a {
    display: block;
    padding: 8px 12px;
    color: var(--nav-link-cor);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    position: relative;
    transition: color 0.25s, background 0.25s;
    border-radius: 8px;
}

.main-navigation ul li a i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.main-navigation ul li a:hover {
    color: var(--nav-link-hover-cor);
    background: var(--nav-link-hover-bg);
}

.main-navigation ul li.current a {
    color: var(--nav-current-cor);
    font-weight: 600;
    background: var(--nav-current-bg);
}

.main-navigation ul li.current a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--nav-current-indicator);
    border-radius: 2px;
}

/* Mobile toggle */
.tg-mobile-toggle {
    display: none;
}

.tg-mobile-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--nav-link-cor);
}

/* Mobile navigation */
.mobile-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fundo-mobile);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.mobile-navigation.open {
    display: block;
}

.mobile-navigation ul {
    list-style: none;
}

.mobile-navigation ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--nav-link-cor);
    border-bottom: 1px solid var(--borda-tabela-linha);
}

.mobile-navigation ul li a i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.mobile-navigation ul li.current a {
    color: var(--nav-current-cor);
    font-weight: 600;
    background: var(--nav-current-bg);
}

/* Page header */
.tg-page-header {
    background: var(--page-header-bg);
    border-bottom: 1px solid var(--page-header-border);
}

.tg-page-header .inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tg-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--page-header-title-cor);
    display: flex;
    align-items: center;
}

.tg-page-header h1::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--page-header-accent);
    margin-left: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--breadcrumb-cor);
}

.breadcrumbs ul li::before {
    content: '/';
    margin-right: 8px;
    color: var(--breadcrumb-separador);
}

.breadcrumbs ul li:first-child::before {
    content: none;
}

.breadcrumbs ul li a {
    color: var(--breadcrumb-link-cor);
}

.breadcrumbs ul li a:hover {
    text-decoration: underline;
}

/* Content area */
.site-content {
    padding: 40px 0;
}

.content-area {
    width: 100%;
}

/* Entry content */
.entry-content {
    background: var(--fundo-card);
    padding: 36px;
    border-radius: 12px;
    box-shadow: var(--entry-content-sombra);
}

.entry-content h2 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--texto-heading);
    font-weight: 600;
}

.entry-content h3 {
    font-size: 1.2rem;
    margin: 25px 0 12px;
    color: var(--texto-heading);
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.entry-content a {
    color: var(--entry-link-cor);
}

.entry-content a:hover {
    color: var(--entry-link-hover);
}

/* Schedule section titles */
.schedule-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--section-title-cor);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-section-title i {
    color: var(--section-icon-cor);
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--section-icon-bg);
    border-radius: 6px;
}

/* Schedule tables */
.schedule-container {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: space-between;
}

.schedule-table-wrap {
    flex: 1;
    min-width: 300px;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tabela-border);
}

.schedule-table thead th {
    background-color: var(--tabela-header-bg);
    color: var(--tabela-header-cor);
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
}

.schedule-table thead th:first-child {
    width: 80px;
}

.schedule-table thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.schedule-table thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.schedule-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--tabela-linha-border);
    transition: background-color 0.2s ease;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: var(--tabela-linha-alternada);
}

.schedule-table tbody tr:hover {
    background-color: var(--tabela-hover-bg);
}

.schedule-table tbody a {
    color: var(--tabela-link-cor);
    font-weight: 500;
}

.schedule-table tbody a:hover {
    color: var(--tabela-link-hover);
    text-decoration: underline;
}

.schedule-table + .schedule-table {
    margin-top: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--btn-cor);
    border: 2px solid var(--btn-border);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn i {
    font-size: 0.95rem;
}

.btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-cor);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
}

.btn--primary {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-cor);
    border: 2px solid var(--btn-border);
}

.btn--primary:hover {
    background: var(--cor-primaria-hover);
}

.btn--outline {
    background: transparent;
    color: var(--btn-border);
    border: 2px solid var(--btn-border);
}

.btn--outline:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-cor);
}

.btn--small {
    margin: 5px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-center {
    text-align: center;
    margin: 20px 0;
}

/* Cards page */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 30px 0;
}

.card-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
}

.card-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contato page */
.contact-form {
    max-width: 600px;
    margin: 20px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--form-label-cor);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--form-input-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--form-input-focus-border);
    box-shadow: 0 0 0 3px var(--form-input-focus-sombra);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-cor);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--borda-footer);
}

.footer-widget {
    flex: 1;
    min-width: 220px;
}

.footer-widget h4 {
    color: var(--footer-heading-cor);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--footer-accent);
    border-radius: 1px;
}

.footer-widget p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-widget p i {
    width: 20px;
    margin-right: 8px;
    color: var(--footer-accent);
}

.footer-widget a {
    color: var(--footer-link-cor);
}

.footer-widget a:hover {
    color: var(--footer-link-hover);
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--footer-social-bg);
    color: var(--footer-social-cor);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.footer-social-links a:hover {
    background: var(--footer-social-hover-bg);
    color: #fff;
}

.tg-site-footer-bar {
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--footer-bar-cor);
}

.tg-site-footer-bar a {
    color: var(--footer-bar-link);
}

.tg-site-footer-bar .tg-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Scroll to top */
#tg-scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--scroll-top-bg);
    color: var(--scroll-top-cor);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 999;
    box-shadow: 0 2px 8px var(--scroll-top-sombra);
}

#tg-scroll-to-top:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Cookie banner */
.cookie-banner {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

/* Spacer */
.spacer {
    height: 51px;
}

/* Section divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: var(--section-divider-cor);
    margin: 36px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .tg-mobile-toggle {
        display: block;
    }

    .site-header {
        position: relative;
    }

    .site-title {
        font-size: 1rem;
    }

    .tg-page-header h1 {
        font-size: 1.2rem;
    }

    .tg-page-header h1::after {
        height: 1.1em;
        margin-left: 10px;
    }

    .tg-page-header .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .entry-content {
        padding: 20px 16px;
    }

    .schedule-table-wrap {
        min-width: 100%;
    }

    .schedule-table thead th {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .schedule-table tbody td {
        padding: 12px 16px;
    }

    .card-item {
        min-width: 100%;
    }

    .schedule-container {
        flex-direction: column;
        gap: 24px;
    }

    .footer-widgets {
        flex-direction: column;
        gap: 28px;
        padding: 32px 0 20px;
    }

    .tg-site-footer-bar .tg-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .custom-logo-link img {
        max-width: 120px;
    }
}

@media (min-width: 769px) {
    .mobile-navigation {
        display: none !important;
    }
}
