@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --primary-dark: #0f172a;    
    --accent-blue: #3b82f6;     
    --autism-color: #818cf8;    
    --bg-light: #f8fafc;        
    --text-main: #1e293b;       
    --white: #ffffff;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
}

/* Header Moderno */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
}

header h1::after {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
}

main {
    max-width: 1000px;
    margin: -50px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Seções Estilo Card */
section {
    background: var(--white);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease;
}

/* TUDO JUSTIFICADO */
main p, 
main li, 
main section {
    text-align: justify;
    hyphens: auto;
}

section:hover {
    transform: translateY(-5px);
}

h3 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left; /* Títulos ficam melhores à esquerda */
}

h3::before {
    content: "🧩";
}

/* Listas */
ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

li {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 16px;
    border-left: 6px solid var(--accent-blue);
}

li:last-child {
    border-left-color: var(--autism-color);
    background: #eef2ff;
}

/* === NOVO CARROSSEL COM BOTÕES === */

.carrossel-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carrossel-container {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 20px;
}

.carrossel-container::-webkit-scrollbar {
    display: none;
}

.carrossel-container img {
    flex: 0 0 100%;
    height: 450px;
    object-fit: cover;
    scroll-snap-align: center;
}

/* Estilo dos Botões de Navegação */
.botoes-carrossel {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-nav {
    text-decoration: none;
    background: var(--primary-dark);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-nav:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.btn-nav:focus {
    border-color: var(--autism-color);
    background: var(--accent-blue);
}

/* Rodapé */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

footer b {
    color: var(--autism-color);
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    section { padding: 25px; }
    .carrossel-container img { height: 300px; }
    
    /* Em telas muito pequenas o justificado pode ser desativado para evitar buracos */
    main p, main li {
        text-align: left;
    }
}