@font-face
{
    font-family: Orbitron;
    src: url(../Fontes/Orbitron-VariableFont_wght.ttf);
}

* {
    margin: 0;
    padding: 0;
    font-family: Orbitron;
    box-sizing: border-box;
}

body {
    background: url(/img/background.jpg);
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background-color: white;
}

.link-top {
    background-color: rgb(120, 120, 120);
    padding: 10px 10px;
    border-radius: 100%;
    position: fixed;
    right: 20px;
    bottom: 20px;
    transition: 0.5s;
    height: 43px;
    z-index: 999;
    font-size: 20px;
    color: black;
}

.link-top:hover {
    background-color: rgb(150, 150, 150);
    transition: 0.5s;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nav-info {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    padding-left: 60px;
    align-items: center;
    z-index: 998;
    background: rgb(255, 209, 5);
    transition: 0.3s ease-in-out;
    font-size: 14px;
}

.nav-info a {
    padding: 10px;
    text-decoration: none;
    color: black;
}

.nav-info a:hover {
    color: white;
}

.nav-info.scrolled {
    display: none;
    transition: 0.3s ease-in-out;
}

.nav {
    position: fixed;
    top: 3.9%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espaça os itens uniformemente */
    padding: 10px;
    z-index: 997;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Adiciona desfoque à barra de navegação */
    transition: 0.3s ease-in-out;
}

.nav.scrolled {
    transition: 0.3s ease-in-out;
    top: 0;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 50px;
}

.nav .logo img {
    height: 70px; /* Ajuste o valor conforme necessário */
}

.menu {
    display: flex;
    justify-content: center;
    flex: 2; /* Ocupa o espaço central */
}

.menu a {
    color: rgb(0, 0, 0);
    font-weight: bold;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    position: relative; /* Necessário para o pseudo-elemento */
}

.menu a::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    background: rgb(255, 209, 5); /* Cor da linha */
    transition: width 0.3s;
    position: absolute;
    bottom: -5px; /* Ajuste para posicionar a linha corretamente */
    left: 0;
    border-radius: 20px;
}

.menu a:hover::after {
    width: 100%; /* Linha cresce para 100% do link */
}

.menu a:hover {
    transition: 0.3s ease-in-out;
}

.menu-mobile {
    display: none;
}

.btn-mobile {
    display: none;
}

.btn-mobile button {
    font-size: 25px;
    background: transparent;
    border: 0;
    padding-right: 50px;
}

@media (max-width: 1100px) {
    .link-top {
        display: none;
    }

    .menu {
        display: none;
    }

    .btn-mobile {
        display: block;
    }

    .nav-info {
        display: none;
    }

    .nav-info.scrolled {
        display: none;
    }

    .nav {
        top: 0;
    }

    .menu-mobile {
        transform: translateX(100%);
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Alinha os itens ao início para que o texto fique à esquerda */
        gap: 20px;
        position: fixed;
        top: 0;
        right: 0; /* Posiciona o menu no lado direito */
        width: 100%;
        height: 100vh;
        z-index: 999; /* Certifique-se que está acima dos outros elementos */
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        padding: 50px 20px; /* Ajuste conforme necessário */
    }

    .menu-mobile.open {
        transform: translateX(0);
    }

    .menu-mobile .logo-btn {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 20px;
    }

    .menu-mobile .logo-btn img {
        width: 220px;
    }

    .menu-mobile .logo-btn button {
        width: 25%;
        background: transparent;
        border: 0;
        font-size: 30px;
    }

    .links-mobile {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza os links horizontalmente */
        text-align: left; /* Garante que o texto dentro dos links fique alinhado à esquerda */
        width: 100%;
    }

    .links-mobile a {
        text-decoration: none;
        color: black;
        font-weight: bold;
        padding: 30px 0; /* Ajusta o padding para alinhar a linha abaixo */
        width: 100%; /* Faz com que os links ocupem toda a largura do container */
        text-align: center; /* Garante que o texto dentro dos links fique alinhado à esquerda */
        position: relative; /* Necessário para a pseudo-classe ::after */
    }

    .links-mobile a::after {
        content: "";
        display: block;
        width: 100%; /* Linha ocupa toda a largura do link */
        height: 2px;
        background: rgb(255, 233, 134); /* Cor da linha */
        position: absolute;
        bottom: 0; /* Posiciona a linha no final do link */
        left: 0;
        border-radius: 20px;
    }
}

.carousel {
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    display: flex;
    position: relative; /* Para sobrepor os slides */
}

.carousel-item {
    width: 100%;
    height: 100vh;
    flex: 0 0 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Esconde todos os slides por padrão */
    transition: opacity 1.2s ease-in-out; /* Transição de fade */
}

.carousel-item.active {
    opacity: 1; /* Mostra o slide ativo */
    position: relative; /* Torna o slide ativo visível */
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: black;
    z-index: 2;
    width: 80%; /* Limita a largura do texto */
    padding: 20px;
}

.carousel-text h1 {
    font-size: 60px;
    margin-bottom: 10px;
}

.carousel-text p {
    font-size: 24px;
    padding-bottom: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: #000000;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.btn-carousel {
    padding: 0.8em 1.8em;
    border: 2px solid rgb(255, 209, 5);
    position: relative;
    overflow: hidden;
    background-color: rgb(255, 209, 5);
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    transition: .3s;
    z-index: 1;
    color: rgb(0, 0, 0);
    cursor: pointer;
    display: inline-block; /* Ensure it behaves like an inline element */
    text-decoration: none; /* Remove underline from links */
}

.btn-carousel::before {
    content: '';
    width: 0;
    height: 300%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background:rgb(163, 163, 163);
    transition: .5s ease;
    display: block;
    z-index: -1;
}

.btn-carousel:hover::before {
    width: 105%;
}

.btn-carousel:hover {
    color: #ffffff;
}

/* Responsividade para o carrossel */
@media (max-width: 768px) {
    .carousel-text {
        text-align: left;
        width: 90%;
        padding: 10px;
    }

    .carousel-text h1 {
        font-size: 50px;
    }

    .carousel-text p {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .carousel-text h1 {
        font-size: 36px;
    }

    .carousel-text p {
        font-size: 22px;
    }
}


main
{
    padding: 5% 0 5%;
}

.container-info 
{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
    margin: auto;
    align-items: center; /* Centraliza horizontalmente */
}

.container-itens
{
    display: flex;
    gap: 20px;
}

.itens-main 
{
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    background-color: rgb(255, 233, 134);
}

.itens-geral 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgb(255, 233, 134);
    transition: 0.3s ease-in-out;
    border-radius: 5px;
}

.itens-geral h2
{
    padding: 20px;
}

.itens-geral:hover
{
    transform: scale(105%);
    transition: 0.3s ease-in-out;
}

.itens-geral img
{
    width: 25%;
    padding-bottom: 20px;
}

.itens-geral p
{
    padding: 10px;
    text-align: center;
}

.pad
{
    padding: 100px;
}

@media (max-width: 1100px) {
    .container-itens{
        flex-direction: column;
    }
    
    .itens-geral img{
        width: 15%;
        padding-bottom: 20px;
    }
}

.container-info-2 {
    width: 80%;
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr; /* 1 coluna */
    padding: 10px;
    margin: auto;
    align-items: center; /* Centraliza horizontalmente */
}

.container-itens-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas */
    grid-template-rows: auto;
    justify-items: center;
    width: 100%;            /* ocupa toda a largura */
    max-width: 100%;        /* remove limite de 1000px */
    margin-top: 20px;       /* dá espaço entre título e grid */
    gap: 20px 120px;         /* espaçamento entre linhas e colunas */
}

.itens-main-2 {
    width: 100%;            /* garante que a barra ocupa tudo */
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    background-color: rgb(255, 233, 134);
}


.itens-geral-2 {
    flex: none; /* Para não interferir no grid */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    transition: 0.3s ease-in-out;
}


.itens-geral-2:hover
{
    transform: scale(1.1);
}

.itens-geral-2 img {
    width: 30%;          /* tamanho fixo para consistência */
    margin-bottom: 15px;
}

.itens-geral-2 h2 {
    margin-top: 5px;
    font-size: 16px;
    text-align: center;
}


/* Media query para telas menores */
@media (max-width: 1400px) {
    .container-itens-2 {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 colunas */
        grid-template-rows: auto;
        justify-items: center;
        width: 100%;            /* ocupa toda a largura */
        max-width: 100%;        /* remove limite de 1000px */
        margin-top: 20px;       /* dá espaço entre título e grid */
        gap: 40px 20px;         /* espaçamento entre linhas e colunas */
    }

    .itens-main-2 {
        width: 100%;            /* garante que a barra ocupa tudo */
        text-align: center;
        padding: 15px;
        border-radius: 5px;
        background-color: rgb(255, 233, 134);
    }


    .itens-geral-2 img {
        width: 40%;          /* tamanho fixo para consistência */
        margin-bottom: 15px;
    }

    .itens-geral-2 h2 {
        margin-top: 5px;
        font-size: 16px;
        text-align: center;
    }
}

@media (max-width: 950px) {

    .container-itens-2 {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    }

    .itens-main-2 {
        width: 100%;            /* garante que a barra ocupa tudo */
        text-align: center;
        padding: 15px;
        border-radius: 5px;
        background-color: rgb(255, 233, 134);
    }

    .itens-geral-2 img {
        width: 35%;          /* tamanho fixo para consistência */
        margin-bottom: 15px;
    }

    .itens-geral-2 h2 {
        margin-top: 5px;
        font-size: 16px;
        text-align: center;
    }
}

/* Telemóveis (máx 600px) */
@media (max-width: 600px) {
    .container-itens-2 {
        grid-template-columns: 1fr; /* 1 coluna */
    }

    .itens-geral-2 img {
        width: 80px; /* aumenta tamanho da imagem no mobile */
        margin-bottom: 15px;
    }

    .itens-geral-2 h2 {
        font-size: 18px; /* texto maior para legibilidade */
    }
}

.container-contactos {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background: url(../img/background-contactos.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: 70%;
    padding: 50px;
    position: relative;
    z-index: 1;
}

.container-contactos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.text-contactos {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.text-contactos h2 {
    color: rgb(255, 209, 5);
    font-size: 35px;
    padding-bottom: 30px;
}

.text-contactos p {
    font-weight: bold;
    color: white;
    width: 50%;
    padding-bottom: 30px;
}

.text-contactos li {
    color: white;
    text-decoration: none;
    font-style: normal;
    list-style: none;
    padding: 10px 0px 1px;
    font-weight: bold;
}

.text-contactos i {
    padding-right: 10px;
    color: rgb(255, 209, 5);
}

.form-contactos {
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 233, 134);
    padding: 55px 30px;
    width: 550px;
    z-index: 1;
}

.g-recaptcha
{
    margin-bottom: 35px;
}

.input {
    width: 100%;
    color: black;
    background-color: white;
    box-shadow: 0 0 .4vw rgba(0,0,0,0.5), 0 0 0 .15vw transparent;
    border: none;
    outline: none;
    padding: 10px;
    max-width: 100%;
    transition: .4s;
    margin-bottom: 35px;
}

.input::placeholder {
    color: black;
}
  
.input:hover {
    box-shadow: 0 0 0 .15vw rgb(163, 163, 163);
}
  
.input:focus {
    box-shadow: 0 0 0 .15vw rgb(109, 109, 109);
}

@media (max-width: 1000px) {
    .container-contactos {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-contactos p {
        width: 100%;
    }

    .text-contactos ul{
        padding-bottom: 50px;
    }

    .form-contactos {
        width: 450px;
        padding: 30px 20px;
        margin: 0 auto; /* Centraliza horizontalmente */
    }

    .text-contactos h2 {
        font-size: 28px;
    }
    
}

@media (max-width: 600px) {
    .text-contactos h2 {
        font-size: 24px;
    }

    .form-contactos {
        width: 100%;
        padding: 20px 15px;
    }

    .input {
        padding: 8px;
        margin-bottom: 25px;
    }
}

footer {
    display: flex;
    flex-direction: column;
}

.container-footer {
    background-color: rgb(71, 71, 71);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 10px;
    width: 100%;
}

.itens-footer {
    width: 25%;
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.itens-footer i {
    padding: 10px;
    font-size: 24px;
}

.itens-footer h3 {
    padding: 10px;
    margin: 0;
}

.itens-footer p {
    text-align: center;
    margin: 0;
    padding: 10px;
}

.container-footer-final 
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(255, 209, 5);
    color: black;
    padding: 10px;
    width: 100%;
}

.direitos 
{
    text-align: left;
    padding-left: 10%;
}

.redes 
{
    text-align: right;
    padding-right: 10%;
    color: black;
    text-decoration: none;
}

.redes i
{
    color: black;
    text-decoration: none;
    font-size: 20px;
}

@media (max-width: 1100px) {
    .container-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .itens-footer {
        width: 100%;
    }

    .container-footer-final {
        flex-direction: column;
        align-items: center;
    }

    .direitos, .redes {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        width: 100%;
    }
}