.div-main {
    --home-main: #2f8e95;
    --home-accent: #f39a0f;
    --home-text: #4f676b;
    --home-border: #d6e9eb;
    --home-soft: #f2f8f9;
    --home-shadow: 0 24px 38px -30px rgba(20, 58, 63, 0.8);
}

.section-1,
.section-2,
.section-3 {
    width: 100%;
    max-width: 1025px;
}

.section-1 {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 1fr);
    gap: 16px;
    margin-top: 20px;
    border-right: 0;
}

.div-img-principal {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--home-border);
    /* border-top: 5px solid var(--home-main); */
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fcfd 0%, #edf7f8 100%);
    box-shadow: var(--home-shadow);
}

#img-principal {
    width: 100%;
    max-height: 430px;
    max-width: none;
    object-fit: cover;
    border-radius: 12px;
}

.div-bemVindo {
    width: 100%;
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--home-border);
    /* border-top: 5px solid var(--home-main); */
    border-radius: 18px;
    background: linear-gradient(145deg, #f9fcfd 0%, #eef7f8 100%);
    box-shadow: var(--home-shadow);
}

.eclipse {
    max-width: 56px;
    opacity: .75;
}

.eclipse img {
    width: 100%;
}

.texto-bemVindo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

h1.bem-vindo {
    margin: 0;
    text-align: left;
    width: 100%;
    font-size: clamp(2.2rem, 5vw, 4.1rem);
    line-height: 1;
    color: var(--home-main);
    font-weight: 400;
    font-family: 'Praise', cursive;
    text-shadow: 0 8px 20px rgba(43, 119, 126, 0.15);
    animation: aumenta 3.5s ease-in-out infinite;
}

.texto-bemVindo p {
    width: 100%;
    margin: 10px 0 0;
    font-size: clamp(0.86rem, 0.82rem + 0.25vw, 1rem);
    color: var(--home-text);
    text-align: left;
    padding-inline: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.55;
}

.section-2,
.section-3 {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.section-2 {
    align-items: center;
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid var(--home-border);
    border-top: 5px solid var(--home-main);
    border-radius: 16px;
    background: linear-gradient(130deg, #f8fcfd 0%, #ecf6f7 100%);
    box-shadow: var(--home-shadow);
}

.section-2 img {
    max-width: 82px;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.section-2 p {
    margin: 0;
    color: var(--home-text);
    text-align: left;
    font-size: clamp(0.82rem, 0.78rem + 0.22vw, 0.97rem);
    word-spacing: normal;
    letter-spacing: 0.01em;
    line-height: 1.55;
}

.section-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    
}
.section-3 .logo-section-3 {
    width: 100%;
    max-width: 180px;
    object-fit: contain;
    margin-right: 12px;
}

#div-texto-section-3 {
    width: 100%;
    /* display: grid;
    grid-template-columns:100% 1fr; */
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--home-border);
    /* border-top: 5px solid var(--home-main); */
    border-radius: 16px;
    background: linear-gradient(140deg, #f9fcfd 0%, #eef7f8 100%);
    box-shadow: var(--home-shadow);
}

.texto {
    width: 100%;
}

.texto-section-3 {
    width: 100%;
    display: flex;
    border-left: 0;
    padding: 10px 12px;
    align-items: center;
    max-height: none;
    height: auto;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #dcecee;
}

#div-texto-section-3 h2 {
    margin: 0 0 10px;
    text-align: left;
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.35rem);
    color: #2d7b82;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

#div-texto-section-3 p {
    margin: 0;
    text-align: left;
    font-size: clamp(0.82rem, 0.78rem + 0.22vw, 0.95rem);
    color: var(--home-text);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.div-img-section-3 {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--home-border);
    /* border-top: 5px solid var(--home-main); */
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fcfd 0%, #eef7f8 100%);
    box-shadow: var(--home-shadow);
}

.div-img-section-3 img {
    width: 100%;
    max-width: none;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
}

.faixa-horizontal {
    display: flex;
    justify-content: center;
    width: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 35%),
        linear-gradient(120deg, #2e7f84 0%, #206269 100%);
}

.section-4 {
    max-width: 1025px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin: 22px 0;
    width: 100%;
}

.card {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    background-color: #ffffff;
    padding: 8px;
    flex-direction: column;
    box-shadow: 0 16px 30px -24px rgba(11, 34, 37, 0.9);
    border-radius: 14px;
    border: 1px solid #dcecee;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card-sem-shadow {
    box-shadow: 0 18px 30px -24px rgba(9, 37, 40, 0.8);
}

.card:hover {
    transform: translateY(-3px);
    border-color: #c7e4e8;
    box-shadow: 0 24px 32px -24px rgba(8, 31, 34, 0.95);
    z-index: 2;
}

.card img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1.4 / 1;
    border-radius: 10px;
}

.card p {
    margin: 10px 2px 4px;
    font-size: clamp(0.8rem, 0.76rem + 0.2vw, 0.95rem);
    color: var(--home-text);
    font-weight: 700;
    text-align: center;
}

.section-5 {
    display: flex;
    flex-direction: column;
    max-width: 1025px;
}

.div-card-small {
    width: 100%;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 16px;
}

.card-small {
    width: 100%;
    border-radius: 12px;
}

@keyframes aumenta {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    h1.bem-vindo,
    .card {
        animation: none;
        transition: none;
    }
}

@media (max-width: 900px) {

    .section-1
     {
        grid-template-columns: 1fr;
    }

    .div-card {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .div-card-small {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
    .texto-section-3 {
        flex-direction: column;
        align-items: center;
    }   
} 

@media (max-width: 600px) {
    .div-main {
        margin-top: -20px;
        padding: 10px;
    }

    .section-1 {
        gap: 12px;
    }

    .div-bemVindo,
    #div-texto-section-3 {
        grid-template-columns: 40px 1fr;
        padding: 12px;
        border-radius: 12px;
    }

    .texto-bemVindo h1 {
        font-size: clamp(2.3rem, 12vw, 3.4rem);
        text-align: left;
    }

    .texto-bemVindo p {
        text-align: left;
        font-size: 0.84rem;
    }

    .eclipse {
        width: 40px;
        max-width: 40px;
    }

    .section-2 {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 8px;
    }

    .section-3 {
        gap: 12px;
    }

    .div-card,
    .div-card-small {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card,
    .card-small {
        max-width: 100%;
    }

    .navBar-horizontal-menu {
        z-index: 3;
    }
}