/* Edição da estrutura completa do site. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    cursor: url(Img/cursor.png), auto;
}

/* Paleta de cores */
:root {
    --cor1: #F2F2F2;
    --cor2: #C8555B;
    --cor3: #2B4C8C;
    --cor4: #00ffae;
    --cor5: #FFFA88;
}

/* Definição de padrão da página */
body {
    background-color: #F2F2f2;
    font-family: "cofo-sans-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 400;
    font-size: 17px;
    color: #2B4C8C;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(Img/bg1.jpg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho */
header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: space-between;
    font-family: "cofo-sans", sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px;
    gap: 20px;
    position: relative;
}

header img {
    max-width: 150px;
    height: auto;
}

/* Botão hambúrguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    order: -1;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #2B4C8C;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span {
    background-color: #F2F2F2;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #2B4C8C;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: #F2F2F2;
    font-size: 28px;
    font-family: "cofo-sans", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 35%;
    height: auto;
    gap: 100px;
    justify-content: center;
    min-width: 200px;
} 

nav a, .nav2 a {
      display: inline-block;
  transition: transform 0.3s ease;
}

nav a:hover, .nav2 a:hover {
  transform: scale(1.1) translateY(-5px);
}

.nav2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 35%;
    height: auto;
    gap: 100px;
    justify-content: center;
    min-width: 200px;
}

/* Main */
main {
    flex: 1; 
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}

section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    align-items: center;
    gap: 40px;
    padding: 20px 0px 20px 0px;
}

.parte1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    min-width: 300px;
    padding-left: 2%;
}

.parte1 p {
    line-height: 0.9;
}

.section-imagem { 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 300px;
    padding-right: 0;
    margin-right: 0;
}

.section-imagem img {
    max-width: 100%;
    height: auto;
    max-height: 374px;
    display: block;
}

.parte2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: 600px;
    justify-content: center;
    align-items: center;   
}

.video {
    display: flex;
    width: 60%;
    height: 600px;
    background-color:#00ffae;
}

.decoração {
    display: flex;
    width: 40%;
    height: 500px;
    background-color: #2B4C8C;
}

.parte3 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-height: 600px;
    justify-content: center;
    align-items: center;
    position: relative; 
}

.gif {
    display: flex;
    width: 50%;
    height: 600px;
    align-items: flex-start;
    justify-content: center;
}

.gif img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
}

.call-to-action {
    display: flex;
    width: 50%;
    height: auto;
    gap: 1%;
    justify-content: center;
    padding-right: 2%;
    font-size: clamp(30px, 5vw, 60px); 
    font-family: cofo-raffine, sans-serif;
    font-weight: 900;
    font-style: normal;
    position: relative; 
}

.call1 {
    border: 3px solid #00ffae; 
    padding: 20px;
    z-index: 1;
  transition: transform 0.3s ease; 
  line-height: 1.0;
}

.call1:hover, .call2:hover {
  transform: scale(1.05); 
}

.call2 {
    background-image: url(Img/Bgverde.png);
    background-size: cover;
    padding: 5%;
    color: #F2F2F2;
    z-index: 10;
    transition: transform 0.3s ease;
    line-height: 1.0;
}

.escamas {
    position: absolute;
    bottom: clamp(0px, -5vw, -60px); 
    left: 75%;
    transform: translateX(-50%);
    width: clamp(500px, 15vw, 300px);
    height: auto;
    z-index: 4;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: #FFFA88;
    color: #D8E2DC;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 30px;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    z-index: 100;
}

.back-to-top img{ 
    width: 20px;
}

.back-to-top.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top.hide {
    opacity: 0;
    transform: translateY(20px);
}
 
/* Footer */
footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    min-height: 600px;
    align-items: center;
    color: #F2F2F2;
    background-image: url('Img/footer.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 40px;
    justify-content: center;
    gap: 30px;
}

.logo2 {
    margin-left: 1%;
    max-width: 120px;
    height: auto;
}

.conteudo1 {
    display: flex;
    flex-direction: column;
    width: 40%;
    min-width: 300px;
    justify-content: center;
    align-items: last baseline;
}

.conteudo1-texto {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 20px;
    width: 100%;
    max-width: 700px;
    justify-content: space-between;
    gap: 30px;
}

.titulo-texto {
    font-family: "cofo-sans-variable", sans-serif;
    font-variation-settings: 'wght' 700, 'slnt' 0;
    font-size: 18px;
    flex: 1;
    min-width: 200px;
}

h3 {
    font-family: cofo-sans-variable, sans-serif; 
    font-variation-settings: 'wght' 200, 'slnt' 0;
    margin-bottom: 10px;
}

iframe {
    width: 100%;
    max-width: 700px;
    height: 450px;
    border: 0;
}

.conteudo2 {
    display: flex;
    flex-direction: row;
    width: 42%;
    min-width: 300px;
    align-items: center;
    justify-content: right;
    font-family: "cofo-raffine", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: clamp(30px, 5vw, 70px);
    line-height: 0.9;
    text-align: right;
    padding-bottom: 8%;
    padding-right: 3%;
}

.conteudo2-texto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.conteudo2-texto span {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.conteudo2-texto img {
    width: 35px;
    height: 35px;
}

footer > p:last-child {
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}


/* MEDIA QUERIES - RESPONSIVIDADE */

/* Tablet grande (iPad Pro, etc) - SÓ FOOTER */
@media (max-width: 1368px) and (min-width: 1025px) {
    footer {
        background-image: url('Img/footer.svg');
        background-size: cover;
        background-position: center;
        min-height: 800px;
        padding: 80px 40px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .logo2 {
        margin: 0 auto 40px;
        display: block;
    }

    footer > a {
        width: 100%;
        text-align: center;
        order: -1;
    }

    .conteudo1 {
        width: 100%;
        max-width: 800px;
        order: 1;
        margin-bottom: 30px;
        align-items: center;
    }

    .conteudo1-texto {
        flex-direction: row;
        justify-content: space-around;
        max-width: 100%;
        gap: 60px;
        margin-bottom: 30px;
    }

    .titulo-texto {
        flex: 1;
        max-width: 300px;
        text-align: center !important;
    }

    .titulo-texto h3,
    .titulo-texto p {
        text-align: center !important;
    }

    iframe {
        width: 100%;
        max-width: 600px;
        height: 400px;
        margin: 0 auto;
        display: block;
    }

    .conteudo2 {
        width: 100%;
        order: 2;
        justify-content: center;
        text-align: center;
        padding: 0;
        margin-top: 30px;
        align-items: center;
    }

    .conteudo2-texto {
        align-items: center;
    }

    .conteudo2-texto span {
        justify-content: center;
        margin-top: 20px;
    }

    footer > p:last-child {
        order: 3;
        margin-top: 40px;
    }


        .parte3 {
        min-height: 500px;
    }
    
    .gif {
        height: 500px;
    }
    
    .escamas {
        width: clamp(120px, 15vw, 220px);
    }
}


/* Tablet */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    nav, .nav2 {
        display: none;
    }

    .conteudo1 {
        width: 50%;
    }

    .conteudo2 {
        width: 50%;
    }

    iframe {
        height: 350px;
    }
        .parte3 {
        min-height: 500px;
    }
    
    .gif {
        width: 45%;
        height: 500px;
    }
    
.call-to-action {
    width: 100%;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    align-items: center;
}


.call1, .call2 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
    
    .escamas {
        width: clamp(500px, 14vw, 180px);
        left: 72%;
    }
    
    .parte2 {
        height: 500px;
    }
    
    .video {
        height: 500px;
    }
    
    .decoração {
        height: 400px;
    }
        footer {
        background-image: url('Img/footer.svg');
        background-size: cover;
        background-position: center;
        min-height: 800px;
        padding: 80px 40px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .logo2 {
        margin: 0 auto 40px;
        display: block;
    }

    footer > a {
        width: 100%;
        text-align: center;
        order: -1;
    }

    .conteudo1 {
        width: 100%;
        max-width: 800px;
        order: 1;
        margin-bottom: 30px;
        align-items: center;
    }

    .conteudo1-texto {
        flex-direction: row;
        justify-content: space-around;
        max-width: 100%;
        gap: 60px;
        margin-bottom: 30px;
    }

    .titulo-texto {
        flex: 1;
        max-width: 300px;
        text-align: center !important;
    }

    .titulo-texto h3,
    .titulo-texto p {
        text-align: center !important;
    }

    iframe {
        width: 100%;
        max-width: 600px;
        height: 400px;
        margin: 0 auto;
        display: block;
    }

    .conteudo2 {
        width: 100%;
        order: 2;
        justify-content: center;
        text-align: center;
        padding: 0;
        margin-top: 30px;
        align-items: center;
    }

    .conteudo2-texto {
        align-items: center;
    }

    .conteudo2-texto span {
        justify-content: center;
        margin-top: 20px;
    }

    footer > p:last-child {
        order: 3;
        margin-top: 40px;
    }
        .section-imagem {
        display: none;
    }
}

/* Tablet pequeno e Mobile landscape */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav, .nav2 {
        display: none;
    }

    section {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .parte3 {
        flex-direction: column;
    }
    
    .gif {
        width: 100%;
        height: 400px;
    }
    
    .call-to-action {
        width: 100%;
        flex-direction: column;
        gap: 40px;
        padding: 20px;
    }
    
    .escamas {
        width: clamp(80px, 20vw, 300px);
    }

    .parte1 {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .section-imagem {
        display: none;
    }

    footer {
        padding: 40px 20px;
        min-height: auto;
        background-image: none;
        background-color: #2B4C8C;
        text-align: center; /* Adicione esta linha */
    }

    .logo2 {
        margin: 0 auto 20px; /* Centraliza o logo */
    }

    .conteudo1 {
        width: 100%;
        align-items: center;
    }

    .conteudo1-texto {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Adicione esta linha */
        gap: 30px;
    }

    .titulo-texto {
        text-align: center !important;
        width: 100%;
    }

    .titulo-texto h3,
    .titulo-texto p {
        text-align: center !important;
    }

    iframe {
        height: 300px;
        max-width: 100%;
    }

    .conteudo2 {
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center; /* Adicione esta linha */
        padding: 0;
        margin-top: 20px;
    }

    .conteudo2-texto {
        align-items: center;
        text-align: center;
    }

    .conteudo2-texto span {
        justify-content: center;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 24px;
    }

    .back-to-top img {
        width: 16px;
    }
    
}

/* Mobile */
@media (max-width: 480px) {
    header {
        font-size: 14px;
        padding: 15px;
    }

    nav, .nav2 {
        gap: 15px;
        font-size: 14px;
    }

    section {
        padding: 15px;
    }

    footer {
        padding: 30px 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .logo2 {
        margin: 0 auto 20px;
    }

    .conteudo1 {
        width: 100%;
        align-items: center;
    }

    .conteudo1-texto {
        flex-direction: column;
        align-items: center;

    }

    .titulo-texto {
        font-size: 16px;
        text-align: center !important;
    }

    .titulo-texto h3,
    .titulo-texto p {
        text-align: center !important;
    }

    iframe {
        height: 250px;
        width: 100%;
    }

    .conteudo2 {
        width: 100%;
        justify-content: center;
        padding: 0;
    }

    .conteudo2-texto {
        align-items: center;
        text-align: center;
    }

    .conteudo2-texto span {
        justify-content: center;
    }

    .conteudo2-texto img {
        width: 30px;
        height: 30px;
    }

    .parte2 {
        height: auto;
    }
    
    .video {
        height: 300px;
    }
    
    .decoração {
        height: 250px;
    }
    
    .parte3 {
        min-height: auto;
    }
    
    .gif {
        height: 300px;
    }
    
    .call-to-action {
        align-items: center;
        font-size: clamp(20px, 6vw, 40px);
        gap: 30px;
        padding: 15px;
    }
    
    .call1 {
        aspect-ratio: 1/1;
        padding: 15px;
        padding-bottom: 55px;
    }

    .call2 {
        aspect-ratio: 1/1;
    }
    
    .escamas {
        width: clamp(200px, 18vw, 120px);
    }
        .section-imagem {
        display: none;
    }
}