html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url("Borda do site.png");
    background-size: 100% auto;
    background-repeat: repeat-y;
    font-family: Arial, Helvetica, sans-serif;
    color: #24313f;
}

.hero {
    min-height: 100vh;
    background: url("Criança chorando na sala de aula.png") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: url("Borda do site transparente.png") top center / 100% auto repeat-y;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.hero-texto {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-texto h1 {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-texto p {
    font-size: clamp(18px, 3vw, 26px);
    margin: 0;
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 16px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: color 0.2s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
    color: #ffd84d;
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.active::after {
    width: 100%;
}

.section-space {
    padding-top: 72px;
    padding-bottom: 72px;
}

.component-list {
    display: grid;
    gap: 22px;
    justify-items: center;
}

.component-list img {
    width: min(220px, 70vw);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.16));
}

.boneco-foto {
    max-height: 520px;
    object-fit: contain;
}

.area-botao {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 42px;
}

.botao-img {
    width: min(760px, 92vw);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.botao-img:hover {
    transform: scale(1.03);
    filter: brightness(1.04);
}

.galeria {
    background: transparent;
}

.carousel-fotos {
    max-width: 760px;
    margin: 0 auto;
}

.carousel-fotos .carousel-inner {
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    background: transparent;
}

.carousel-fotos img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: transparent;
}

.content-card {
    background: #fff;
    padding: 34px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    scroll-margin-top: 110px;
}

.content-card h2 {
    margin-bottom: 14px;
    font-weight: 800;
}

.content-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #4b5967;
}

.qr-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.qr-card img {
    width: min(220px, 45vw);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 700px) {
    .menu {
        padding: 12px;
    }

    .menu ul {
        gap: 10px 16px;
        font-size: 14px;
    }

    .section-space {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .content-card {
        padding: 24px;
    }

    .qr-card {
        flex-direction: column;
        text-align: center;
    }
}
