* {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

p {
    font-family: "Avenir Light";
}

section {
    width: 100%;
    margin: 0 auto;
}

.main-container {
    margin-top: 2em;
    padding-top: 0;
    height: auto;
    gap: 2rem;

    display: flex;
    flex-direction: column;
}

.swiper-1 {
    width: 90%;
    height: 750px;
}

.swiper-1 .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-1 .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


.on {
    opacity: 1;
}

.welcome-container {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 4em;
    background-color: var(--primary-color-white);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3em;
}

.image-content {
    position: relative;
    width: 80vh;
    height: 450px;
}

.image-content img {
    width: 600px;
    height: auto;
}

.text-content {
    margin-top: 5em;
    text-align: left;
    width: 700px;
}

.text-content h1 {
    font-size: 45px;
    font-family: "Avenir Light";
    margin-bottom: 0.5em;
}

.text-content strong {
    color: var(--primary-color-orange);
}

.text-content p {
    font-size: 17px;
    margin-bottom: 2em;
    color: var(--secondary-color-black);
}

.text-content .explore-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color-black);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color-black);
    padding: 5px 4em 0 0;
    transition: all 0.3s ease-in-out;
}

.button-89 {
    font-family: "Avenir Light";
    text-decoration: none;
    --b: 3px;   
    --s: .45em;
    --color: #000000;
    
    padding: calc(.5em + var(--s)) calc(.9em + var(--s));
    color: var(--color);
    --_p: var(--s);
    background:
      conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0)
      var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
    transition: .3s linear, color 0s, background-color 0s;
    outline: var(--b) solid #0000;
    outline-offset: .6em;
    font-size: 16px;
  
    border: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-89:hover,
.button-89:focus-visible{
    --_p: 0px;
    outline-color: var(--color);
    outline-offset: .05em;
}

.button-89:active {
    background: var(--color);
    color: #fff;
}

.divisor {
    width: 100%;
    gap: 1em;
    margin: 2em auto;
    max-width: 80%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.divisor-border {
    width: 35%; 
    height: 2px;
    background-color: #aaaaaa69;
}

.divisor-img img {
    width: 35px;
    height: auto;
}

/* GRID INICIAL */

.infos-impacto-container {
    width: 90%;
    gap: 2em;
    margin-top: 3em;
    margin-bottom: 6em;

    display: flex;
    justify-content: center;
}

.infos-impacto-grid {
    width: 350px;
    height: 270px;
    text-align: left;
    font-family: "Avenir Light";
    border-right: 2px solid #aaaaaa69;
}

.infos-impacto-grid:last-child {
    border-right: none;
}

.icon-info img {
    width: 70px;
    margin-bottom: 1em;
}

.infos-impacto-grid h1 {
    font-size: 50px;
}

.infos-impacto-grid h3 {
    font-size: 23px;
}

.infos-impacto-grid p {
    font-size: 17px;
    color: var(--primary-color-gray);
    margin-right: 2em;
}

/* SOBRE */

.sobre-container {
    width: 60%;
    margin-bottom: 2em;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
}

.sobre-text-content {
    font-family: "Avenir Light";
    text-align: left;
    flex: 1;
}

.sobre-text-content h1 {
    border-left: 4px solid var(--primary-color-orange);
    font-size: 40px;
    font-weight: bolder;
    padding-left: 10px;
}

.sobre-text-content p {
    font-size: 17px;
    margin: 2em 2em 2em 0;
}

#btn-saiba-mais {
    --color: rgb(29, 29, 29);
}

.sobre-img-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sobre-img-content img {
    max-width: 100%;
    height: auto;
}

/* IMPACTO */

.impacto-container {
    width: 100%;
    padding: 3em 0;
    overflow: visible;
}

.impacto-header h1 {
    
    font-family: "Avenir Light";
    font-size: 3.5em;
    position: relative;
    margin-bottom: 15px;
}

.impacto-header h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color-orange);
    margin: 10px auto;
}

.impacto-header p {
    font-size: 1.2em;
    color: var(--primary-color-gray);
    margin-bottom: 2em;
}

.swiper-2 {
    width: 85%;
    margin: 0 auto;
    margin-top: 6em;
}

.swiper-2 .swiper-wrapper {
    width: 88%;
    display: flex;
    align-items: center;
}

.swiper-2 .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: "";
    display: none;
}

.custom-prev-button,
.custom-next-button {
    padding: 5px 15px;
    border-radius: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
   -webkit-user-select: none;
}

.custom-prev-button img, 
.custom-next-button img {
    width: 25px;
    transition: all 0.3s ease;
}

.custom-prev-button:hover,
.custom-next-button:hover {
    background-color: var(--primary-color-orange);
}

.custom-prev-button:hover img,
.custom-next-button:hover img {
    filter: brightness(0) invert(1); 
}

.scroll-item {
    width: 500px;
    height: 220px;
    text-align: left;
    font-family: "Avenir Light";
    transition: transform 0.3s ease;
}

.scroll-item h3 {
    font-size: 25px;
    margin-top: 5px;
}

.scroll-item p {
    font-size: 17px;
    color: var(--primary-color-gray);
    margin-right: 1em;
    margin-top: 5px;
}

.icon img {
    width: 50px;
    margin-bottom: 10px;
}

/* GALERIA */

.galeria h1 {
    font-family: "Avenir Light";
    font-size: 3.5em;
    margin-bottom: 1em;
    color: #333;
    position: relative;
}

.galeria h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color-orange);
    margin: 0 auto;
}

.galeria-container ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    max-width: 100%;
    width: 80%;
}

.galeria-container figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.galeria-container img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 1000ms;
}

.galeria-container figure::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 0, 0, 0.5);
    transform-origin: center;
    opacity: 0;
    transform: scale(2);
    transition: opacity 300ms;
}

.galeria-container figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    color: white;
    font-size: 1.2rem;
    z-index: 1;
    opacity: 0;
    transition: opacity 600ms, transform 600ms;
}

.galeria-container a:is(:hover, :focus) figure::after {
    opacity: 1;
}

.galeria-container a:is(:hover, :focus) figcaption {
    opacity: 1;
    transition: opacity 600ms;
}

header.hidden {
    display: none;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
    .galeria-container figcaption {
        transform: translate3d(0, 2rem, 0);
    }

    .galeria-container figure::after {
        border-radius: 50%;
        opacity: 1;
        transform: scale(0);
        transition: transform 900ms;
    }

    .galeria-container a:is(:hover, :focus) figure::after {
        transform: scale(2.5);
    }

    .galeria-container a:is(:hover, :focus) figcaption {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition: opacity 600ms 400ms, transform 600ms 400ms;
    }

    .galeria-container a:is(:hover, :focus) img {
        transform: scale(1.2);
    }
}

@media (max-width: 600px) {
    .infos-impacto-container {
        width: 100%;
        align-items: center;
        flex-direction: column;
    }

    .infos-impacto-grid {
        border: none;
        text-align: center;
    }

    .infos-impacto-grid p {
        margin: 0;
    }

    .impacto-header h1 {
        font-size: 2.5em;
    }

    .impacto-header p {
        font-size: 1em;
    }

    .icon img, .icon-grid img {
        width: 60px;
    }

    .text-grid h1 {
        font-size: 1.2em;
    }

    .text-grid p {
        font-size: 1.2em;
    }

    .sobre-img-content img{
        margin-top: 1em;
    }

    #btn-saiba-mais {
        margin: 0;
    }

    .swiper-2 {
        width: 100%;
    }

    .swiper-2 .swiper-wrapper {
        width: 80%;
    }
    
    .scroll-item {
        margin: 0 auto;
        width: 70%;
        height: 300px;
        text-align: center;
    }

    .scroll-item p {
        margin: 0 auto;
        text-align: center;
    }

    .galeria-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 150px;
    }
}

@media screen and (max-width: 1170px) {
    .sobre-container {
        width: 100%;

        flex-direction: column;
    }
    
    .sobre-text-content {
        margin: 1em;
    }

    .welcome-container {
        width: 100%;
        flex-direction: column;
        height: auto;
    }

    .image-content {
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .image-content img {
        max-width: 100%;
    }

    .text-content {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }

    .text-content h1, p {
        margin: 0;
        
    }

    .text-content h1 {
        padding: 16px;
        margin-top: 15px;
    }

    .text-content p {
        padding: 1em;
    }

    .text-content .explore-btn {
        margin-left: 1em;
    }
}

