:root {
    --primary-color: #007BFF;
    --primary-hover-color: #0056b3;
    --secondary-color: #e6f2ff;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #555;
    --white-color: #fff;
    --danger-color: #dc3545;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

/* Header & Nav */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-hover-color);
}

/* Hero Section */
#hero {
    position: relative;
    height: 60vh;
    background-image: url('hero-background.png');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 50, 100, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 40px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

#intro {
    text-align: center;
    background-color: var(--white-color);
}

#intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Topics Section */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.topic-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.topic-card h3 {
    color: var(--primary-color);
    margin: 1.5rem 1.5rem 1rem;
    font-size: 1.5rem;
}

.topic-card ol {
    padding-left: 3.5rem;
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.topic-card li {
    margin-bottom: 0.8rem;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Emergency Section */
#emergency {
    background-color: var(--danger-color);
    color: var(--white-color);
}

#emergency h2 {
    color: var(--white-color);
}

#emergency h2::after {
    background-color: var(--white-color);
}

.emergency-numbers {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.number-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 250px;
}

.number-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.number-card .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplificando para a primeira versão, poderia adicionar um menu hamburguer aqui */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

