/* ===== RESET E BASE ===== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    /*background-color: rgb(216, 216, 216);*/
    background: linear-gradient(135deg, #f4f6f9, #e0e0e0);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    background: rgba(202, 28, 28, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    top: 20%;
    left: 30%;
    z-index: -1;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

main {
    flex: 1;
}

.divisor {
    width: 140px;
    height: 3px;
    background: #ca1c1c;
    margin: 40px auto;
    border-radius: 2px;
}

/* ===== HEADER ===== */
header {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    position: relative;
    z-index: 1001;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: black;
}

.logo span{
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.logo img {
    height: 50px;
}
/* MENU DESKTOP */
nav {
    margin-left: auto;
    background: transparent; /*  evita conflito */
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
    padding: 0 20px;
    font-weight: bold;
}

nav ul li a {
    text-decoration: none;
    color: black;
    transition: 0.3s;
}

nav ul li a:hover {
    color: rgb(172, 172, 172);
}

/* LINK ATIVO DESKTOP */
nav ul li a.active {
    background-color: #ca1c1c;
    color: white !important;
    padding: 10px 15px;
    border-radius: 6px;
}

/* BOTÃO MENU */
.menu-toggle {
    display: none;
    margin-left: auto;
    font-size: 26px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    z-index: 1002;
}

/* ===== MENU MOBILE ===== */
@media (max-width: 768px) {

    header {
        padding: 15px 15px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        background: #fff !important; /*  GARANTIDO BRANCO */

        display: flex;
        flex-direction: column;
        justify-content: center;

        transition: right 0.3s ease;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 20px 0;
        padding: 0;
    }

    nav ul li a {
        color: black !important;
        font-size: 18px;
    }

    /* LINK ATIVO MOBILE */
    nav ul li a.active {
        background: #f1f1f1;
        color: #ca1c1c !important;
        border-radius: 6px;
        padding: 10px 15px;
    }
    
    .logo span{
        font-size: 20px;
    }

    .logo img{
        height: 42px;
    }
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== HERO HOME ===== */
.hero-home {
    min-height: 85vh;
    padding: 120px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(202, 28, 28, 0.08);
    border-radius: 50%;
    filter: blur(80px);

    pointer-events: none;
}

.hero-conteudo {
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

/* LOGO GRANDE */
.hero-logo {
    width: min(750px, 90vw);
    height: auto;
}

.hero-conteudo h1 {
    max-width: 900px;
    line-height: 1.3;
    margin: 0 auto 25px;
    margin-bottom: 25px;
    color: #222;
    font-size: clamp(24px, 3vw, 34px);
}



/* BOTÕES */
.hero-botoes {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-principal {
    background: #ca1c1c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-principal:hover {
    background: #a31515;
    transform: translateY(-2px);
}

.btn-secundario {
    background: #d3d0d0;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-secundario:hover {
    background: #d8b1b1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .hero-home {

        min-height: 80vh;

        padding: 120px 0 60px;
    }

    .hero-logo {

        width: 90vw;

        max-width: 500px;
    }

    .hero-conteudo h1 {

        font-size: 24px;

        line-height: 1.4;

        padding: 0 10px;
    }

    .hero-botoes {

        flex-direction: column;

        align-items: center;

        gap: 12px;
    }

    .btn-principal,
    .btn-secundario {

        width: 220px;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: #fff;
    color: black;
    text-align: center;
    padding: 10px;
    margin-top: auto;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 30px;
}

.admin-link {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #e9e9e9;
    text-decoration: none;
    transition: 0.3s;
}

.admin-link:hover {
    color: #aaa;
}

/* CENTRAL */
.login-page {
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgb(173, 173, 173), #777777);
}

/* BOX */
.login-box {
    background: #fff;
    padding: 40px;
    width: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    opacity: 0;
    transform: translateY(30px);
    animation: aparecer 0.6s ease forwards;
}

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTÃO VOLTAR */
.btn-voltar {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.486);
    padding: 8px 14px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.btn-voltar:hover {
    background: rgb(0, 0, 0);
}

/* HEADER */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.login-header h2 {
    margin: 0;
}

.login-header img {
    height: 40px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* INPUT */
input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}

input:focus {
    border-color: #ca1c1c;
    outline: none;
    box-shadow: 0 0 5px rgba(202,28,28,0.3);
}

/* SENHA */
.senha-box {
    position: relative;
}

.toggle-senha {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
}

.toggle-senha:hover {
    color: #ca1c1c;
}

/* BOTÃO */
button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #ca1c1c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #a31515;
    transform: translateY(-2px);
}

/* ERRO */
.erro {
    background: #ffe5e5;
    color: #ca1c1c;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* RESPONSIVO */
@media (max-width: 400px) {
    .login-box {
        width: 90%;
        padding: 30px;
    }
}

.painel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    background: #fff;
    position: relative;
}

/* LOGO  */
.painel-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Stencil Std, fantasy;
    font-size: 24px;
}

.painel-header .logo img {
    height: 50px;
}

/* TÍTULO CENTRALIZADO */
.painel-titulo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 36px;
    font-weight: bold;
}

/* BOTÃO LOGOUT */
.btn-logout {
    text-decoration: none;
    background: #ca1c1c;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-logout:hover {
    background: #a31515;
    transform: translateY(-2px);
}

.painel-container {
    max-width: 1000px;
    margin: 40px auto; /* centraliza */
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}


/* TÍTULO */
.painel-container h2 {
    margin-top: 0;
    margin-bottom: 25px;
}

.painel-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards por linha */
    gap: 20px;
}

@media (max-width: 768px) {
    .painel-menu {
        grid-template-columns: 1fr; /* 1 por linha no mobile */
    }
}

/* CARD */
.menu-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

/* HOVER */
.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* TEXTO */
.menu-card h3 {
    margin: 0;
    font-size: 20px;
}

.menu-card p {
    margin-top: 8px;
    color: #777;
}


/* HEADER DO PAINEL */
.painel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.painel-titulo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
}

/* BODY */
.painel-body {
    background: #f4f6f9;
}

/* MAIN */
.painel-main {
    padding-top: 20px;
}

/* TOPO DO PAINEL */
.painel-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* TÍTULO */
.painel-topo h2 {
    margin: 0;
    font-size: 22px;
}

/* BOTÃO VOLTAR (NOVO - ISOLADO) */
.btn-voltar-painel {
    background: #eee;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;

    display: inline-flex;
    align-items: center;

    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}

.btn-voltar-painel:hover {
    background: #ddd;
}

/* BOTÃO CRIAR */
.btn-criar {
    background: #ca1c1c;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;

    display: inline-flex;
    align-items: center;

    transition: 0.2s;
}

.btn-criar:hover {
    background: #a31515;
}

/* ===== UPLOAD BONITO ===== */
.upload-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* BOTÃO */
.upload-btn {
    background: #860404;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    width: fit-content;
    transition: 0.2s;
    font-weight: bold;
}

.upload-btn:hover {
    background: #a31515;
}

/* NOME DO ARQUIVO */
#nomeArquivo {
    font-size: 14px;
    color: #555;
}

/* PREVIEW */
#preview {
    display: none;
    width: 150px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ALERTA */
.alert-erro {
    background: #ffe5e5;
    color: #ca1c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== TEXTAREA (CORREÇÃO DO FORM) ===== */
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

/* FOCO IGUAL INPUT */
textarea:focus {
    border-color: #ca1c1c;
    outline: none;
    box-shadow: 0 0 5px rgba(202,28,28,0.3);
}

/* TAMANHOS DIFERENTES */
textarea[name="resumo"] {
    min-height: 100px;
}

textarea[name="conteudo"] {
    min-height: 220px;
}


/* BOTÃO CRIAR */
.btn-criar {
    background: #ca1c1c;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-criar:hover {
    background: #a31515;
}

/* LINHA DO ITEM */
.item-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

/* HOVER */
.item-linha:hover {
    background: #f9f9f9;
}

/* INFO */
.item-info {
    max-width: 70%;
}

.item-info p {
    margin-top: 5px;
    color: #777;
    font-size: 14px;
}

/* AÇÕES */
.item-acoes {
    display: flex;
    gap: 10px;
}

/* BASE */
.btn {
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

/* EDITAR */
.btn-editar {
    background: #e7f1ff;
    color: #007bff;
}

.btn-editar:hover {
    background: #007bff;
    color: #fff;
}

/* EXCLUIR */
.btn-excluir {
    background: #ffe5e5;
    color: #ca1c1c;
}

.btn-excluir:hover {
    background: #ca1c1c;
    color: #fff;
}


/* FUNDO ESCURO */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* CAIXA */
.modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    animation: fadeIn 0.2s ease;
}

.modal-box h3 {
    margin-bottom: 10px;
}

.modal-box p {
    color: #666;
    margin-bottom: 20px;
}

/* AÇÕES */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* BOTÕES */
.btn-cancelar {
    background: #eee;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-confirmar {
    background: #ca1c1c;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}

/* ===== CONTAINER DOS EVENTOS ===== */
.eventos-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 100px; /* espaçamento lateral */
}

/* GRID */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

/* CARD */
.card-evento {
    background: #fff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid #ca1c1c;
    opacity: 0;
    transform: translateY(20px);
    animation: subir 0.5s ease forwards;

}

@keyframes subir {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HOVER */
.card-evento:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* TÍTULO */
.card-evento h2 {
    font-size: 20px;
    padding: 15px;
    margin: 0;
    min-height: 50px;
}

/* IMAGEM */
.card-evento img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: 0.4s;
}

.card-evento::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: 0.3s;
}

.card-evento:hover::after {
    opacity: 1;
}

.card-evento:hover img {
    transform: scale(1.05);
}

/* RESUMO */
.card-evento p {
    margin: 10px 15px 15px;
    padding: 12px 15px;

    background: #fafafa;
    border-left: 3px solid #ca1c1c;

    font-size: 15px;
    line-height: 1.6;
    color: #444;
    font-weight: 500;

    display: -webkit-box;
    -webkit-line-clamp: 3; /* mantém limite */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 70px;
}


@media (max-width: 1000px) {
    .eventos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eventos-container {
        padding: 0 40px;
    }
}

@media (max-width: 600px) {
    .eventos-grid {
        grid-template-columns: 1fr;
    }

    .eventos-container {
        padding: 0 20px;
    }
}

/* CONTAINER */
.evento-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 100px;
}

/* CARD GRANDE */
.evento-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* TÍTULO */
.evento-card h1 {
    margin-top: 0;
    font-size: 32px;
}

/* IMAGEM */
.evento-card img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
    object-fit: cover;
    max-height: 350px;
}

/* CONTEÚDO */
.evento-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {
    .evento-container {
        padding: 0 20px;
    }

    .evento-card h1 {
        font-size: 24px;
    }
}

.btn-voltar-evento {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 20px;

    background: #f1f1f1;
    color: #333;
    text-decoration: none;

    padding: 10px 16px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}

.btn-voltar-evento:hover {
    background: #ddd;
    transform: translateX(-3px);
}

/* ===== SOBRE DAIDO ===== */
.sobre-daido {
    max-width: 1100px;
    margin: 60px auto;
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

/*  LINHA DE IDENTIDADE */
.sobre-daido::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-left: 5px solid #ca1c1c;
    border-bottom: 5px solid #ca1c1c;

    border-bottom-left-radius: 20px; /* acompanha o container */

    pointer-events: none;
}

/* TÍTULO */
.titulo-daido {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
    position: relative;
}

/* CONTAINER INTERNO */
.conteudo-daido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* TEXTO */
.texto-daido {
    flex: 1;
}

.texto-daido p {
    font-size: 18px;
    line-height: 1.8;
    color: #2b2b2b;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

/* IMAGEM LATERAL */
.img-lateral {
    right: 0;
    top: 10px;

    width: 140px;
    opacity: 0.9;

    transition: 0.3s;
}

/* EFEITO HOVER SUAVE */
.img-lateral:hover {
    transform: scale(1.01);
    opacity: 1;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {

    .sobre-daido {
        padding: 30px 20px;
        margin: 40px 15px;
    }

    .titulo-daido {
        font-size: 30px;
        text-align: center;
    }

    .conteudo-daido {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .texto-daido {
        max-width: 100%;
        text-align: center;
    }

    .texto-daido p {
        font-size: 18px;
    }

    .img-lateral {
        margin-top: 20px;
    }
}

/* ===== HOME EVENTOS ===== */
.home-eventos {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 100px;
}

/* TÍTULO */
.titulo-eventos {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.card-evento h3{
    padding: 8px;
}

/* RESPONSIVO */
@media (max-width: 1000px) {
    .home-eventos {
        padding: 0 40px;
    }
}

@media (max-width: 600px) {
    .home-eventos {
        padding: 0 20px;
    }
}

/* PREVIEW (ANTES DE ENVIAR) */
.preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.img-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* GALERIA (IMAGENS SALVAS) */
.galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.img-galeria {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}


/* ===== HERO HISTORIA CUSTOM ===== */

.historia-hero-texto h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.historia-texto h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.historia-texto h2 {
    text-transform: uppercase;
}

.historia-hero-custom {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* GRID */
.historia-hero-grid {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 100%;
}

/* IMAGENS (SÓ POSIÇÃO) */
.historia-hero-img {
    position: absolute;
    left: 50%;
}

/* IMAGEM */
.historia-hero-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ca1c1c;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.historia-hero-img img:hover {
    transform: scale(1.05);
}

/* POSIÇÕES (CENTRALIZADAS) */
.historia-hero-top {
    top: 8%;
    transform: translateX(-50%);
}

.historia-hero-left {
    bottom: 12%;
    transform: translateX(calc(-50% - 180px));
}

.historia-hero-right {
    bottom: 12%;
    transform: translateX(calc(-50% + 180px));
    text-align: center;
}

/* TEXTO */
.historia-hero-texto {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.historia-hero-texto h1 {
    font-size: 48px;
    margin: 0;
}

.historia-hero-texto h1::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #ca1c1c;
    display: block;
    margin: 10px auto;
}

.historia-hero-texto p {
    margin-top: 10px;
    font-size: 18px;
    color: #555;
}

.historia-nome {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    width: 100%;
}

/* NOTEBOOKS COM POUCA ALTURA */
@media (max-height: 850px){

    .historia-hero-custom{
        min-height: 620px;
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .historia-hero-grid{
        min-height: 700px;
    }

    .historia-hero-img img{
        width: 150px;
        height: 150px;
    }

    .historia-hero-top{
        top: 0;
        
    }

    .historia-hero-left,
    .historia-hero-right{
        top: 210px;
    }
    .historia-hero-right{
        transform: translateX(calc(-50% + 195px));
    }
    
    .historia-hero-texto{
        top: 500px;
        width: 90%;
    }

    .historia-hero-texto h1{
        font-size: 42px;
        line-height: 1.05;
    }

    .historia-hero-texto p{
        font-size: 18px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .historia-hero-custom {
        height: auto;
        padding: 60px 20px;
    }

    .historia-hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        height: auto;
    }

    .historia-hero-img {
        position: static;
        transform: none;

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .historia-hero-texto {
        position: static;
        transform: none;
        order: -1;
    }

    .historia-hero-img img {
        width: 110px;
        height: 110px;
    }

    .historia-hero-texto h1 {
        font-size: 28px;
    }

    .historia-hero-texto p {
        font-size: 14px;
    }
}


/* ===== HISTORIA STORY ===== */

.historia-page {
    width: 100%;
}

/* SEÇÃO FULL */
.historia-story {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* FUNDO SUAVE */
.historia-story:nth-child(odd) {
    background: linear-gradient(180deg, #ffffff, #f5f5f5);
}

.historia-story:nth-child(even) {
    background: linear-gradient(180deg, #f5f5f5, #ffffff);
}

/* CONTEÚDO */
.historia-inner {
    width: 100%;
    max-width: 1400px;
    padding: 0 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* INVERTER */
.historia-story.invertido .historia-inner {
    flex-direction: row-reverse;
}

/* TEXTO */
.historia-texto {
    max-width: 520px;
}

.historia-texto h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.historia-texto h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ca1c1c;
    margin-top: 10px;
}

.historia-texto p {
    font-size: 19px;
    line-height: 1.7;
    color: #424242;
}

/* IMAGEM */
.historia-imagem img {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    transition: 0.5s;
}

.historia-imagem img:hover {
    transform: scale(1.03);
}

/* LINHA VERMELHA */
.historia-story::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    width: 4px;
    height: 50%;
    background: #ca1c1c;
    opacity: 0.8;
}

/* LINHA ENTRE BLOCOS */
.historia-story + .historia-story {
    position: relative;
}

.historia-story + .historia-story::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    
    width: 80%;
    height: 2px;

    background: linear-gradient(
        to right,
        transparent,
        #ca1c1c,
        transparent
    );

    opacity: 0.8;
}

/* ===== ANIMAÇÃO ===== */

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVO ===== */

@media (max-width: 768px) {

    .historia-story {
        height: auto;
        padding: 80px 0;
    }

    .historia-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }

    .historia-story.invertido .historia-inner {
        flex-direction: column;
    }

    .historia-texto h2 {
        font-size: 30px;
    }

    .historia-texto p {
        font-size: 16px;
    }

    .historia-story::before {
        display: none;
    }

    .historia-texto h2::after {
        margin: 10px auto 0 auto;
    }
}

/* SELECT */
.form-group select {

    width: 100%;

    padding: 14px 16px;

    border-radius: 12px;

    border: 1px solid rgba(202, 28, 28, 0.25);

    background: rgba(173, 173, 173, 0.04);

    color: #2e2e2e;

    font-size: 15px;

    outline: none;

    transition: 0.3s;

    appearance: none;

    -webkit-appearance: none;

    -moz-appearance: none;

    cursor: pointer;

    font-family: inherit;

    backdrop-filter: blur(6px);

}

/* HOVER */
.form-group select:hover {

    border-color: rgba(202, 28, 28, 0.5);

    background: rgba(255,255,255,0.06);

}

/* FOCUS */
.form-group select:focus {

    border-color: #ca1c1c;

    box-shadow: 0 0 0 4px rgba(202, 28, 28, 0.12);

    background: rgba(255,255,255,0.07);

}

/* OPTIONS */
.form-group select option {

    background: #202020;

    color: #fff;

}

/* =========================
   PARTICIPANTES
========================= */

/* =========================
   PARTICIPANTES
========================= */

.participantes-container {

    max-width: 1200px;

    margin: 40px auto;

    padding: 0 40px;
}

/* TOPO */

.participantes-topo {

    text-align: center;

    margin-bottom: 50px;
}

.participantes-topo h1 {

    font-family:'Oswald', sans-serif;

    font-size: 52px;

    color: #222;

    margin-bottom: 15px;
}

.participantes-topo h1::after {

    content: "";

    display: block;

    width: 70px;

    height: 4px;

    background: #ca1c1c;

    margin: 12px auto 0;

    border-radius: 999px;
}

.participantes-topo p {

    max-width: 700px;

    margin: 20px auto 0;

    font-size: 18px;

    line-height: 1.8;

    color: #2c2c2c;
}

/* GRID */

.participantes-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 60px;

    align-items: stretch;
}

/* CARD */

.card-participante {

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    position: relative;

    box-shadow: 0 6px 20px rgba(0,0,0,0.08);

    transition: .3s;

    display: flex;

    flex-direction: column;

    border-bottom: 4px solid #ca1c1c;
}

.card-participante:hover {

    transform: translateY(-6px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* FOTO */

.card-participante img {

    width: 100%;

    height: 380px;

    object-fit: cover;

    object-position: center top;

    transition: .4s;
}

.card-participante:hover img {

    transform: scale(1.05);
}

/* INFO */

.participante-info {

    padding: 18px;
}

.participante-info h2 {

    margin: 0 0 10px;

    font-size: 26px;

    line-height: 1.2;

    color: #222;

    font-family: 'Oswald', sans-serif;
}

.participante-info span {

    color: #ca1c1c;

    font-size: 15px;

    font-weight: 500;

    line-height: 1.5;
}

/* VAZIO */

.participantes-vazio {

    grid-column: 1 / -1;

    text-align: center;

    color: #777;

    padding: 40px;
}

/* RESPONSIVO */

@media (max-width: 1000px) {

    .participantes-grid {

        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .participantes-container {

        padding: 0 20px;
    }

    .participantes-grid {

        grid-template-columns: 1fr;
    }

    .participantes-topo h1 {

        font-size: 38px;
    }

    .participantes-topo p {

        font-size: 16px;
    }

    .card-participante img {

        height: 450px;

    }

}

/* ==========================
   FILIAIS
========================== */

.filiais-page{

    max-width:1200px;

    margin:auto;

    padding:140px 30px 100px;
}

/* TOPO */

.filiais-header{

    text-align:center;

    margin-bottom:60px;
}

.filiais-header h1{

    font-size:48px;

    margin-bottom:15px;

    font-family:'Oswald', sans-serif;
}

.filiais-header p{

    max-width:700px;

    margin:auto;

    color:#666;

    font-size:18px;

    line-height:1.8;
}

/* LISTA */

.filiais-lista{

    display:flex;

    flex-direction:column;

    gap:35px;
}

/* CARD */

.filial-card{

    display:flex;

    align-items:center;

    gap:40px;

    background:#fff;

    border-radius:20px;

    padding:30px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);

    border-bottom:4px solid #ca1c1c;

    transition:.3s;
}

.filial-card:hover{

    transform:translateY(-4px);

    box-shadow:
    0 12px 30px rgba(0,0,0,.12);
}

/* FOTO */

.filial-imagem{

    width:340px;

    height:220px;

    flex-shrink:0;

    background:#f5f5f5;

    border-radius:15px;

    overflow:hidden;

    display:flex;

    justify-content:center;

    align-items:center;
}

.filial-imagem img{

    width:100%;

    height:100%;

    object-fit:contain;
}

/* INFO */

.filial-info{

    flex:1;
}

.filial-info h2{

    margin:0 0 10px;

    font-size:32px;

    font-family:'Oswald', sans-serif;
}

.filial-info h3{

    margin-bottom:20px;

    color:#ca1c1c;

    font-size:20px;

    font-weight:600;
}

.filial-info p{

    margin-bottom:10px;

    font-size:16px;

    color:#555;

    line-height:1.6;
}

/* SEM RESULTADOS */

.filiais-vazio{

    text-align:center;

    color:#777;

    font-size:18px;
}

/* MOBILE */

@media (max-width: 768px){

    .filial-card{

        flex-direction:column;

        text-align:center;

        padding:25px;
    }

    .filial-imagem{

        width:100%;

        height:260px;
    }

    .filial-info h2{

        font-size:28px;
    }

}

.btn-whatsapp-filial{

    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-top:20px;

    background:#25D366;

    color:#fff;

    text-decoration:none;

    padding:12px 22px;

    border-radius:10px;

    font-weight:600;

    transition:.3s;
}

.btn-whatsapp-filial:hover{

    background:#1ebe5d;

    transform:translateY(-2px);
}

/* ===== MATRIZ DESTACADA ===== */

.filial-card{
    position: relative;
}

.filial-matriz{

    border: 2px solid #ca1c1c;

    border-bottom: 5px solid #ca1c1c;

    background: linear-gradient(
        180deg,
        #fff 0%,
        #fff8f8 100%
    );

    box-shadow:
        0 12px 35px rgba(202, 28, 28, 0.15);
}

.filial-matriz:hover{

    transform: translateY(-6px);

    box-shadow:
        0 16px 40px rgba(202, 28, 28, 0.20);
}

/* SELO */

.badge-matriz{

    position: absolute;

    top: -14px;

    left: 30px;

    background: #ca1c1c;

    color: #fff;

    padding: 8px 18px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;

    box-shadow:
        0 6px 18px rgba(202, 28, 28, 0.35);

    z-index: 5;
}

/* TÍTULO MAIS FORTE */

.filial-matriz .filial-info h2{

    color: #b31313;
}

/* ==========================
   MURAL
========================== */

/* TABS */

.mural-tabs{

    display:flex;

    justify-content:center;

    gap:14px;

    margin-bottom:45px;

    flex-wrap:wrap;
}

.mural-btn{

    background:#646464;

    border:none;

    padding:14px 28px;

    border-radius:999px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

    font-size:16px;
}

.mural-btn:hover{

    background:#000000;
}

.mural-btn.ativo{

    background:#ca1c1c;

    color:#fff;
}

/* CONTEÚDO */

.mural-conteudo{

    display:none;

    max-width:1200px;

    margin:auto;

    padding:0 30px 100px;
}

.mural-conteudo.ativo{

    display:block;
}

/* GRID */

.mural-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;
}

/* CARD */

.mural-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 6px 20px rgba(0,0,0,.08);

    border-bottom:4px solid #ca1c1c;

    transition:.3s;
}

.mural-card:hover{

    transform:translateY(-5px);

    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

/* FOTOS */

/* FOTOS SEM CORTAR */

.foto-card{

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:12px;
}

.foto-card img{

    width:100%;

    height:auto;

    max-height:420px;

    object-fit:contain;

    display:block;

    transition:.4s;

    border-radius:12px;
}

.foto-card:hover img{

    transform:scale(1.02);
}

/* VÍDEOS */

.video-card video{

    width:100%;

    display:block;

    background:#000;
}

.mural-vazio{

    text-align:center;

    color:#777;

    grid-column:1 / -1;

    padding:40px 0;
}

/* RESPONSIVO */

@media (max-width:1000px){

    .mural-grid{

        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:768px){

    .mural-hero-conteudo h1{

        font-size:38px;
    }

    .mural-hero-conteudo p{

        font-size:16px;
    }

    .mural-conteudo{

        padding:0 20px 80px;
    }

    .mural-grid{

        grid-template-columns:1fr;
    }

    .foto-card img{

        max-height:320px;
    }
}

/* ===================================
   HERO PADRÃO DO SITE
   (História, Time, Filiais e Mural)
=================================== */

.hero-padrao{
    width:100%;
    padding:140px 20px 70px;
    text-align:center;
    display:flex;
    justify-content:center;
    align-items:center;
    box-sizing:border-box;
}

.hero-padrao-conteudo{
    max-width:820px;
    margin:0 auto;
}

.hero-padrao-conteudo h1{
    margin:0;
    font-family:'Oswald', sans-serif;
    font-size:64px;
    font-weight:600;
    line-height:1.05;
    letter-spacing:.5px;
    color:#000000;
}

.hero-padrao-conteudo h1::after{
    content:"";
    display:block;
    width:80px;
    height:4px;
    background:#ca1c1c;
    margin:18px auto 0;
    border-radius:999px;
}

.hero-padrao-conteudo p{
    margin:26px auto 0;
    font-size:19px;
    line-height:1.8;
    color:#666;
    max-width:760px;
}

/* TABLET */
@media (max-width:768px){

    .hero-padrao{
        padding:120px 20px 55px;
    }

    .hero-padrao-conteudo h1{
        font-size:46px;
    }

    .hero-padrao-conteudo p{
        font-size:16px;
        line-height:1.7;
    }
}

/* CELULAR */
@media (max-width:480px){

    .hero-padrao{
        padding:110px 18px 50px;
    }

    .hero-padrao-conteudo h1{
        font-size:36px;
    }

    .hero-padrao-conteudo p{
        font-size:15px;
        line-height:1.6;
    }
}

.filiais-page,
.participantes-page,
.historia-page,
.mural-page,
.participantes-container{
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.hero-padrao{
    margin-top: 0 !important;
}


/* ===================================
   LIGHTBOX DO MURAL
=================================== */

.mural-img{
    cursor: zoom-in;
}

.lightbox{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox-conteudo{
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
    animation: zoomLightbox .25s ease;
}

.lightbox-fechar{
    position: absolute;
    top: 18px;
    right: 28px;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: .2s;
}

.lightbox-fechar:hover{
    transform: scale(1.1);
}

@keyframes zoomLightbox{
    from{
        transform: scale(.92);
        opacity: 0;
    }
    to{
        transform: scale(1);
        opacity: 1;
    }
}

header .logo span{
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600;
}


