body {

    font-family: Arial, sans-serif;
    color: var(--text);
    background: #fff;
}

/* ============================= */
/*              Main             */
/* ============================= */
main {
    display: block;
}

/* Cada seção ocupa 100vh */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)),
        url("../image/wallpaper_cozinha_black.svg") center/cover no-repeat;
    color: var(--text_white);
}


/* ============================= */
/*          Sessão sobre         */
/* ============================= */
.sobre {
    display: flex;
    align-items: center;
    /* centraliza verticalmente */
    justify-content: center;
    /* centraliza horizontalmente se houver espaço */
    height: 100vh;
    /* ocupa toda a tela */
    padding: 0 50px;
    /* espaçamento lateral */
    gap: 50px;
    /* espaço entre logo e texto */
    flex-wrap: wrap;
    /* para mobile, permite que logo e texto empilhem */
    background-color: #f5f5f5;
    /* cor de fundo */
}

/* Logo */
.sobre img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Texto */
.sobre-text {
    max-width: 800px;
}

.sobre-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.sobre-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.sobre-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ============================= */
/*     Seção Materiais           */
/* ============================= */
.materiais {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
        url("../image/wallpaper_soleiras.svg") center/cover no-repeat;
    color: var(--text_white);
    padding: 100px;
}
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.materiais h2{
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.material-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.18); /* Transparência tipo vidro */
    backdrop-filter: blur(14px); /* Desfoque do fundo */
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    text-align: center;
    color: var(--text_white); /* Se for fundo escuro */
}

.material-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.25);
}

.material-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.material-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .material-card img {
        height: auto;
    }
}




/* ============================= */
/*        Ajustes para Mobile     */
/* ============================= */
@media (max-width: 768px) {

    /* Sessão sobre */
    .sobre {
        flex-direction: column;
        /* empilha logo e texto */
        height: auto;
        /* altura ajusta ao conteúdo */
        gap: 30px;
        /* reduz espaço entre logo e texto */
        padding: 40px 20px;
    }

    .sobre img {
        max-width: 250px;
        /* diminui tamanho do logo */
    }

    .sobre-text {
        max-width: 100%;
        /* ocupa toda a largura disponível */
    }

    .sobre-text h1 {
        font-size: 2rem;
    }

    .sobre-text h3 {
        font-size: 1.2rem;
    }

    .sobre-text p {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Sessão hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .materiais {
        padding: 40px 20px;
    }

    .material-grid {
        grid-template-columns: 1fr; /* cards ocupam toda a largura */
        gap: 20px;
    }

    .material-card {
        width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .material-card img {
        height: auto;
        aspect-ratio: 4/3;
    }

    .material-card h3 {
        font-size: 1.3rem;
    }
}
