main {
    background: #f5f7fb;
}

/* ---- BANNER TOPO ---- */

.banner-1 {
    width: 100%;
    height: calc(100vh - 154px);
    background-size: cover;
}

.banner-1 img {
  height: 100%;
  width: 100%;
}

/* ---- SECTIONS ---- */

main section {
    padding: 40px;
}

main section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

/* ---- GRID ---- */

main section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
}

main section ul#energia-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ---- CARD ---- */

main section ul li {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

main section ul li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

main section ul li img {
    width: 220px;
    height: 220px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-top: 1px solid #eee;
    padding: 15px 0;
    width: 100%;
}

main section ul li a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}

.card-titulo {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.card-subtitulo {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
}

main section ul li:hover .card-titulo {
    color: var(--color-black);
}

main section ul li:hover .card-subtitulo {
    color: var(--primary);
}

.ver-produto {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
}

/* ---- BANNER SOLAR ---- */

.banner-solar {
    width: 100%;
    height: 270px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-solar a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.banner-solar a img {
  height: 100%;
  width: 100%;
}

.banner-solar::before {
    content: '';
    position: absolute;
    inset: 0;
}

.banner-solar-texto {
    position: relative;
    z-index: 1;
    color: white;
}

.banner-solar-texto p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.banner-solar-texto a {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

/* ---- RESPONSIVO ---- */

@media (max-width: 1024px) {
    .banner-1 {
        height: 330px;
    }
}

@media (max-width: 768px) {
    main section {
        padding: 20px;
    }

    main section ul {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
    }

    main section ul#energia-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .banner-1 {
        height: 220px;
    }

    .banner-solar {
        height: auto;
    }
}

@media (max-width: 480px) {
    main section {
        padding: 12px;
    }

    main section ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    main section ul#energia-list {
        grid-template-columns: repeat(3, 1fr);
    }

    main section ul li {
        padding: 14px 8px 10px;
    }

    main section ul li img {
        width: 105px;
        height: 105px;
    }

    main section ul li a {
        font-size: 0.7rem;
    }

    .banner-1 {
        height: 130px;
    }
}