/* =====================================================
   RESET + BASE
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================================================
   LAYOUT PRINCIPAL – CSS GRID
===================================================== */

.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr;
    min-height: 100vh;
    gap: 0;
    max-width: 100%;
}

.main-content {
    padding: 24px;
    overflow-x: hidden;
    min-width: 0; /* evita overflow em grid */
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    background-color: #213546;
    color: #fff;
    padding: 20px;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    border-radius: 0;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    border-radius: 10px;
}

.sidebar-header img {
    max-width: 180px;
    width: 100%;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
    border-radius: 10px;
}

.accordion-item summary {
    cursor: pointer;
    padding: 14px 10px;
    font-weight: 700;
    border-radius: 10px;
    list-style: none;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::before {
    content: "➔ ";
    margin-right: 4px;
}

.accordion-item[open] summary {
    background-color: #4e4e9a;
    border-radius: 6px;
}

.accordion-content {
    padding: 12px 10px 18px 22px;
}

.accordion-content a {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #e4e8ff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-content a:hover {
    text-decoration: none;
    transform: translateX(8px);
}

/* =====================================================
   HERO ENTERPRISE
===================================================== */

.main-banner {
    margin-bottom: clamp(32px, 4vw, 46px);
}

.banner-link {
    position: relative;
    display: block;
    border-radius: clamp(16px, 2vw, 22px);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 5;
    min-height: 300px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-link img {
    width: 100%;
    display: block;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    width: 80%;
    max-width: 80%;
    padding: clamp(28px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 24px);
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.60) 50%,
        rgba(0, 0, 0, 0.30) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    color: #eefaf5;
    z-index: 2;
}

.banner-overlay h1 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: clamp(1.08, 1.1, 1.15);
    font-weight: 800;
    margin: 0;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s ease-out 0.15s forwards;
}

.banner-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: clamp(16px, 3vw, 32px);
    max-width: 100%;
}

.banner-body p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: clamp(1.55, 1.6, 1.7);
    margin: 0;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s ease-out 0.3s forwards;
}

.banner-cta {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, #1fcf8b, #14b87a);
    color: #edf4ae;
    padding: clamp(12px, 1.2vw, 14px) clamp(24px, 3vw, 38px);
    border-radius: 999px;
    font-weight: 800;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    letter-spacing: clamp(0.4px, 0.08vw, 0.6px);
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 clamp(10px, 1.8vw, 14px) clamp(22px, 3vw, 30px) rgba(31, 207, 139, 0.35);
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s ease-out 0.45s forwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.banner-cta-inner {
    display: inline-block;
    transition: transform 0.25s ease;
}

/* Hover SOMENTE no botão (não no banner inteiro) */
.banner-cta:hover .banner-cta-inner {
    transform: translateY(-8px);
}

.banner-cta:hover {
    transform: translateY(-8px);
    box-shadow: 0 clamp(14px, 2vw, 18px) clamp(32px, 4vw, 40px) rgba(31, 207, 139, 0.45);
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================
   BARRA DE LINKS RÁPIDOS (QUICK LINKS)
===================================================== */

.quick-links-bar {
    background-color: #213546;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 28px;
    border: 1px solid #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    width: 100%;
}

.quick-links-bar a {
    color: white;
    background-color: #213546;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 5px 15px;
    display: inline-block;
    transition: all 0.2s ease;
}

.quick-links-bar a:hover {
    color: #ffffff;
    transform: translateY(-1px);
    background-color: #1456b8;
    border: 2px solid #edf0d1;
}

.quick-links-bar.wide {
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 24px;
}

/* =====================================================
   GRID E CARDS – auto-fit moderno
===================================================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    margin-bottom: 28px;
    width: 100%;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.column .card {
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #fc4c02;
    color: #213546;
}

.card-links a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card-links a:hover {
    color: #213546;
    transform: translateX(8px);
}

.card-link:focus-visible {
    outline: 2px solid #7eb7f4;
    outline-offset: 4px;
    border-radius: 4px;
}

.btn {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background-color: #213546;
    color: #fff;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #1456b8;
    transform: translateY(-1px);
}

.documentation-box {
    margin-top: 20px;
    background-color: #f4f6fb;
    padding: 16px;
    border-radius: 8px;
}

.documentation-box h4 {
    margin-top: 0;
}

.documentation-box ul {
    padding-left: 18px;
}

/* =====================================================
   CARD AGENDA / CALENDÁRIO
===================================================== */

.agenda-card {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 230, 235, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #fc4c02;
    padding-bottom: 12px;
}

.agenda-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agenda-title i {
    font-size: 1.3rem;
    color: #fc4c02;
}

.agenda-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    font-size: 1.1rem;
    color: #213546;
    font-weight: 700;
}

.agenda-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #213546;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.agenda-open:hover {
    background-color: #1456b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(20, 86, 184, 0.25);
}

.calendar-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.calendar-container iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 36px 24px 28px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(
        ellipse at center,
        #2f4a60 0%,
        #213546 55%,
        #1a2a38 100%
    );
    color: #e8eef4;
    grid-column: 1 / -1; /* ocupa toda a largura no grid da página, se usado */
}

.site-footer img {
    max-width: 160px;
    width: 100%;
    height: auto;
    margin: 0 auto 14px auto;
    display: block;
    filter: brightness(1.05);
}

.site-footer p {
    margin: 0;
    color: #c5d0db;
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   RESPONSIVIDADE
===================================================== */

@media (max-width: 1100px) {
    .site-footer {
        padding: 32px 20px 24px;
    }

    .site-footer img {
        max-width: 140px;
    }

    .site-footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    body {
        padding-bottom: 20px;
    }

    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        max-height: none;
        width: 100%;
        border-radius: 0;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        overflow-y: visible;
    }

    .card h3 {
        color: #213546;
        border-bottom-color: #53e27e;
    }

    .card-links a {
        color: #213546;
    }

    .card-links a:hover {
        color: #1456b8;
    }

    .banner-link {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
        min-height: 380px;
    }

    .hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .banner-overlay {
        width: 100%;
        max-width: 100%;
        padding: clamp(20px, 6vw, 32px);
        justify-content: center;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }

    .banner-body {
        grid-template-columns: 1fr;
        row-gap: clamp(16px, 4vw, 22px);
        align-items: center;
    }

    .banner-overlay h1,
    .banner-body p {
        text-align: center;
    }

    .banner-overlay h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .banner-body p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    .banner-cta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .quick-links-bar.wide {
        margin-bottom: 0;
    }

    .site-footer {
        padding: 28px 16px 36px 16px;
    }

    .site-footer img {
        max-width: 120px;
        margin-bottom: 12px;
    }

    .site-footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .calendar-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 24px 14px 20px;
    }

    .site-footer img {
        max-width: 110px;
    }

    .site-footer p {
        font-size: 0.8rem;
    }
}
