/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIÁVEIS */
:root {
    --red: #d2232a;
    --yellow: #ffd400;
    --dark: #222;
    --gray: #f5f5f5;
    --radius: 12px;
    --container: 1100px;
}

/* BASE */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--dark);
    background: var(--gray);
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: var(--container);
    margin: auto;
    padding: 40px 20px;
}

/* HEADER */
header {
    background: linear-gradient(90deg, var(--red), var(--yellow));
    color: #fff;
    padding: 15px 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* LOGO */
.logo {
    width: 55px;
    border-radius: 10px;
}

/* NAV */
nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    opacity: 0.8;
}


/* =========================
   HERO SOBRE
========================= */
.sobre-hero {
    background: linear-gradient(135deg, var(--red), #ff9800);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.sobre-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.sobre-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* =========================
   HISTÓRIA / TIMELINE
========================= */
.historia-section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.historia-section h2 {
    color: var(--red);
    margin-bottom: 10px;
}

.historia-sub {
    margin-bottom: 40px;
    color: #555;
}

/* LINHA CENTRAL */
.timeline {
    position: relative;
    margin: auto;
    max-width: 700px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--red);
    transform: translateX(-50%);
}

/* ITEM */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* BOLINHA */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 25px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--red);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

/* CARD */
.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: scale(1.03);
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item::before {
        left: 10px;
    }

}

/* =========================
   ANIMAÇÃO AO ROLAR
========================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

/* quando aparece */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* VARIAÇÕES (opcional premium) */
.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-left.active,
.reveal-right.active {
    transform: translateX(0);
}

/* =========================
   VÍDEO INSTITUCIONAL
========================= */
.video-institucional {
    text-align: center;
    padding: 80px 20px;
}

.video-institucional h2 {
    font-size: 30px;
    color: #d2232a;
    margin-bottom: 10px;
}

.video-institucional p {
    margin-bottom: 30px;
}

/* CONTAINER */
.video-container {
    position: relative;
    max-width: 300px;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* VÍDEO */
.video-container video {
    width: 100%;
    display: block;
}

/* BOTÃO PLAY */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(210, 35, 42, 0.9);
    color: white;
    border: none;
    font-size: 30px;
    padding: 20px 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* =========================
   SEÇÕES
========================= */
.sobre-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.sobre-section h2 {
    font-size: 28px;
    color: var(--red);
    margin-bottom: 20px;
    position: relative;
}

.sobre-section h2::after {
    content: "";
    width: 50px;
    height: 3px;
    background: var(--red);
    position: absolute;
    bottom: -6px;
    left: 0;
}

/* =========================
   GRID E CARDS
========================= */
.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.sobre-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    text-align: center;
}

.sobre-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* =========================
   MISSÃO (DESTAQUE)
========================= */
.missao {
    text-align: center;
    padding: 50px 30px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.missao h2 {
    margin-bottom: 15px;
}

.missao p {
    max-width: 600px;
    margin: auto;
    font-size: 18px;
}

/* =========================
   TIMELINE
========================= */
/*.timeline {
    position: relative;
    margin-top: 20px;
    padding-left: 25px;
    border-left: 3px solid var(--red);
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 10px;
}

.timeline-item::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    position: absolute;
    left: -31px;
    top: 5px;
}

.timeline strong {
    color: var(--red);
} */

/* =========================
   EQUIPE
========================= */
.equipe {
    text-align: center;
}

.equipe img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid var(--red);
}

/* =========================
   CONTADOR ANIMADO
========================= */
.contador-section {
    background: linear-gradient(135deg, #d2232a, #ff9800);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 14px;
    margin-top: 40px;
}

.contador-section h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

.contador-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.contador-box {
    min-width: 150px;
}

.contador {
    font-size: 42px;
    font-weight: bold;
}

.contador-box p {
    font-size: 16px;
    margin-top: 5px;
}

/* =========================
   BOTÃO
========================= */
.btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--red);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

/* =========================
   ANIMAÇÕES
========================= */
.sobre-card,
.missao,
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.sobre-card:nth-child(2) {
    animation-delay: 0.2s;
}

.sobre-card:nth-child(3) {
    animation-delay: 0.4s;
}

.sobre-card:nth-child(4) {
    animation-delay: 0.6s;
}

footer {
    margin-top: 40px;
    background: #111;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {

    .sobre-hero h1 {
        font-size: 28px;
    }

    .missao p {
        font-size: 16px;
    }

}