:root {
    --verde: #a8cf45;
    --marrom: #7b5a2b;
}

/* RESET TOTAL – REMOVE FAIXA BRANCA */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Exemplo para a fonte Balto */
@font-face {
    font-family: 'Balto';
    src: url('../fonts/BALTO/Balto_Medium.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Exemplo para a fonte Univia */
@font-face {
    font-family: 'Univia';
    src: url('../fonts/UNIVIA/UNIVIAPRO-REGULAR.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Exemplo para a fonte Lindau */
@font-face {
    font-family: 'Lindau';
    src: url('../fonts/LINDAU/LinReg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    background: #a8cf45; /* evita flash branco */

    font-family: 'Balto', sans-serif !important; /* Agora vai funcionar! */
    font-weight: bold;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    background: #a8cf45;
}

/* BASE */
.site-header {
    position: relative;
    width: 100%;
}

/* CONTAINER CENTRAL */
.header-container {
    max-width: 1320px;  /* ANTES: 1200px */
    margin: 0 auto;
    padding-right: 16px;
}

/* =========================
   LOGO FLUTUANTE REAL
========================= */

.header-logo-float {
    position: absolute;
    left: calc((100vw - 1320px) / 2); /* mesmo eixo do container */
    top: 12px;
    z-index: 9999;
}

.header-logo-float img {
    height: 165px;
    width: auto;
    display: block;
}

/* =========================
   FAIXA VERDE
========================= */

.header-top {
    background: var(--verde);
    height: 110px;
    display: flex;
    align-items: center;
}

.header-menu {
    margin-top: 44px;
}

.header-menu a {
    margin-left: 4px;
    text-decoration: none;
    color: #2f3d0f;
    font-size: 1.0rem;
    font-weight: 500;
}

.btn-inscricoes {
    background: #7b5a2b;          /* marrom do layout */
    color: #a8cf45 !important;    /* verde do layout */
    padding: 10px 28px;
    border-radius: 4px;           /* menos arredondado */
    margin-left: 32px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.btn-inscricoes:hover {
    background: #6a4d25; /* marrom levemente mais escuro */
    color: #a8cf45;
    text-decoration: none;
}

/* =========================
   FAIXA MARROM – DATA
========================= */

/* Mantenha suas regras base e adicione/ajuste estas abaixo */

.header-date {
    background: #7b5a2b;
    height: auto; /* Alterado de 52px para auto para comportar a quebra de linha no mobile */
    min-height: 52px;
    max-width: 100%;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.header-date .header-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 260px;
}

/* ... suas outras regras de cores e fontes ... */

/* CONFIGURAÇÃO MOBILE */
@media (max-width: 991px) {
    .header-date .header-container {
        padding-left: 20px; /* Remove o recuo grande do logo no mobile */
        padding-right: 20px;
        flex-direction: column; /* Força um item abaixo do outro */
        align-items: flex-start; /* Alinha à esquerda, ou 'center' se preferir */
        gap: 2px;
        width: 100%;
    }

    .header-date .date-strong,
    .header-date .date-location {
        white-space: normal; /* Permite que o texto quebre linha */
        display: block;      /* Garante que ocupem a largura disponível */
    }

    .header-date .date-location {
        font-size: 0.85rem;
    }
}

/* DATA (MAIOR) */
.header-date .date-strong {
    color: #ffffff;
    font-size: 1.3rem;      /* MAIOR que o resto */
    font-weight: 800;
    white-space: nowrap;
}

/* TEXTO RESTANTE */
.header-date .date-location {
    color: #f2f2f2;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

/* =========================
   HERO (COMPENSA LOGO)
========================= */

.home-hero {
    padding-top: 150px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1200px) {

    /* aproxima menu do logo */
    .header-menu {
        padding-left: 72px; /* ← aproxima o menu do logo */
    }

    /* alinha faixa marrom com menu */
    .header-date .header-container {
        padding-left: 72px; /* mantém alinhamento visual */
    }

    /* POSIÇÃO CORRETA DO LOGO (classe certa) */
    .header-logo-float {
        transform: translateX(32px); /* ajuste fino pixel-perfect */
    }
}

@media (max-width: 1199px) and (min-width: 992px) {

    .header-menu {
        padding-left: 140px;
    }

    .header-date .header-container {
        padding-left: 140px;
    }

    .logo-float {
        left: 24px;
        width: 92px;
    }
}

@media (max-width: 992px) {

    /* diminui altura da faixa verde */
    .header-top {
        height: 95px;
    }

    /* reduz logo */
    .header-logo-float {
        left: 40px;
        top: 14px;
    }

    .header-logo-float img {
        height: 120px;
    }

    /* menu mais compacto */
    .header-menu a {
        margin-left: 20px;
        font-size: 0.9rem;
    }

    .btn-inscricoes {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* ajusta faixa marrom */
    .header-date {
        height: auto;
        min-height: 48px;
    }

    .header-date .header-container {
        padding-left: 190px;
    }

    .header-date span {
        font-size: 1rem;
    }
}

/* =====================================================
   TABLET (≤ 768px)
===================================================== */
@media (max-width: 768px) and (min-width: 481px) {

    /* LOGO FLUTUANTE – AJUSTE FINO */
    .header-logo-float {
        left: 24px;        /* aproxima da borda */
        top: 10px;
    }

    .header-logo-float img {
        height: 110px;     /* menor para não colidir */
    }

    /* FAIXA VERDE */
    .header-top {
        height: auto;
        padding: 18px 0 12px;
    }

    /* MENU DESCE E CENTRALIZA */
    .header-menu {
        padding-left: 0;
        margin-top: 56px;   /* empurra abaixo do logo */
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .header-menu a {
        margin: 0;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* BOTÃO INSCRIÇÕES */
    .btn-inscricoes {
        margin-left: 12px;
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    /* FAIXA MARROM (DATA) */
    .header-date {
        height: auto;
        padding: 10px 0;
    }

    .header-date .header-container {
        padding-left: 0;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
    }

    .header-date .date-strong {
        font-size: 1.2rem;
    }

    .header-date .date-location {
        font-size: 0.95rem;
    }
}

/* =====================================================
   MOBILE PEQUENO (≤ 480px) – AJUSTE VISUAL
===================================================== */

@media (max-width: 480px) {

    /* REMOVE QUALQUER ESPAÇO BRANCO */
    html, body {
        margin: 0;
        padding: 0;
    }

    /* HEADER BASE */
    .site-header {
        background: #a8cf45;
    }

    /* LOGO CENTRAL */
    .header-logo-float {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        text-align: center;
        padding: 16px 0 12px;
        background: #a8cf45;
        z-index: 10;
    }

    .header-logo-float img {
        height: 90px;
        margin: 0 auto;
    }

    /* FAIXA VERDE (MENU) */
    .header-top {
        height: auto;
        padding: 8px 0 14px;
        background: #a8cf45;
    }

    .header-container {
        padding: 0 14px;
    }

    /* MENU PREMIUM */
    .header-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 14px;
        margin-top: 6px;
    }

    .header-menu a {
        margin: 0;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* BOTÃO INSCRIÇÕES – ISOLADO */
    .btn-inscricoes {
        width: 100%;
        max-width: 220px;
        margin: 10px auto 0;
        text-align: center;
        padding: 12px 0;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    /* REMOVE QUALQUER ELEMENTO SOLTO */
    .header-menu::after {
        content: none;
    }

    /* FAIXA MARROM */
    .header-date {
        background: #7b5a2b;
        padding: 10px 0;
        text-align: center;
    }

    .header-date .header-container {
        padding: 0 12px;
    }

    .header-date span {
        font-size: 0.85rem;
        line-height: 1.3;
        display: block;
    }

    /* HERO */
    .home-hero {
        padding-top: 20px;
    }
}

/* Ajuste específico para o local (que costuma ser mais longo) */
.date-location {
    font-size: 0.9em;       /* Opcional: diminuir um pouco no mobile */
    margin-top: 5px;        /* Espaçamento entre a data e o local */
}

/* Ajuste para Mobile (Geral) */
@media (max-width: 991px) {
    .header-date {
        height: auto !important; /* Libera a altura */
        padding: 15px 0 !important;
    }

    .header-date .header-container {
        padding-left: 0 !important;  /* REMOVE o empurrão do logo */
        padding-right: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;        /* Centraliza o Flex */
        justify-content: center;
        text-align: center;         /* Centraliza o Texto */
        width: 100%;
        max-width: 100%;
    }

    .header-date .date-strong,
    .header-date .date-location {
        display: block;
        width: 100%;
        margin: 0 auto;
        white-space: normal !important; /* Permite quebra */
    }
}

/* Ajuste específico para esconder a barra e quebrar linha */
@media (max-width: 480px) {
    .hide-mobile {
        display: none !important; /* Some com o | */
    }

    .break-mobile {
        display: block; /* Brasília-DF vai para baixo */
        margin-top: 2px;
    }

    .header-date .date-strong {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
}

.footer-site {
    background-color: #9c7a3c;
    font-family: sans-serif;
}

.footer-title {
    color: #4b3621;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    text-align: center;
}

.social-icon {
    background-color: #4b3621;
    color: #b3c34d;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s ease;
}

.social-icon i {
    font-size: 1.3rem;
}

.social-icon:hover {
    background-color: #3a2a19;
    color: #d6e36f;
    transform: translateY(-2px);
}

.footer-legal {
    color: #4b3621;
    font-size: 0.95rem;
}

.footer-legal a {
    color: #4b3621;
    font-weight: 600;
    text-decoration: none;
    margin: 0 5px;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* =========================
   MENU + DROPDOWN PREMIUM
========================= */

.header-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* CONTAINER DO DROPDOWN */
.menu-dropdown {
    position: relative;
}

/* LINK PRINCIPAL (EVENTO) */
.dropdown-toggle {
    cursor: pointer;
    color: #2f3d0f;
    font-size: 1.0rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* SUBMENU */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: var(--verde);
    min-width: 240px;

    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);

    padding: 8px 0;
    z-index: 9999;
}

.menu-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 12px;
}

.menu-dropdown:hover > .dropdown-menu {
    display: block;
}

/* LINKS INTERNOS */
.dropdown-menu a {
    display: block;
    padding: 12px 20px;

    color: #2f3d0f;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

/* HOVER DOS ITENS */
.dropdown-menu a:hover {
    background: var(--marrom);
    color: var(--verde);
}

/* ABERTURA NO HOVER */
.menu-dropdown:hover .dropdown-menu {
    display: block;
}

/* LEVE DESTAQUE NO EVENTO */
.menu-dropdown:hover .dropdown-toggle {
    color: #1f2a10;
}
