/* ==========================================================================
   LinguaWiser - Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --main-color1: #0d265d;
    --main-color2: #21496b;
    --light-green: #d3f4ff;
    --light-blue: #c6ddf1;
    --black: #444;
    --white: #fff;
    --green: green;
    --border: .1rem solid var(--main-color1);
    --box-shadow: 0 .1rem 1rem rgba(0, 0, 0, 1);
}

* {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: none;
    transition: all .2s linear;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    width: 1rem;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background-color: var(--main-color1);
}

section {
    padding: 5rem 7%;
}

.heading {
    position: relative;
    color: var(--main-color1);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4rem;
    text-align: center;
    margin-bottom: 3rem;
    scroll-margin-top: 150px;
}

.heading::after {
    content: url(../images/separator.svg);
    display: block;
    width: 10rem;
    margin-inline: auto;
    margin-top: -1rem;
}

.btn {
    display: inline-block;
    font-weight: 700;
    padding: 1rem 2rem;
    background-color: var(--main-color2);
    color: white;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    text-transform: none;
}

.btn:hover {
    background-color: var(--main-color1);
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: linear-gradient(to right, transparent 0%, #fff6 100%);
    transform: skewX(-0.08turn) translateX(-180%);
}

.shine:is(:hover, :focus-within)::after {
    transform: skewX(-0.08turn) translateX(275%);
    transition: 1000ms ease;
}

/* HEADER & NAVBAR */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
}

.logo {
    width: 190px;
    height: auto;
}

.header .navbar a {
    font-size: 1.4rem;
    color: var(--black);
    margin: 0 1rem;
}

.header .navbar a:hover {
    color: var(--main-color1);
}

.header .icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header .icons div {
    font-size: 2.5rem;
    color: var(--black);
    cursor: pointer;
}

.header .icons div:hover {
    color: var(--main-color1);
}

#menu-btn {
    display: none;
}

/* LANGUAGE DROPDOWN */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 1.5rem;
}

.language-button {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.language-button::-webkit-details-marker {
    display: none;
}

.language-button:hover {
    background: #f0f0f0;
}

.language-dropdown[open] > .language-button .fas {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: 110%;
    background-color: var(--white);
    min-width: 120px;
    box-shadow: var(--box-shadow);
    z-index: 1;
    border-radius: 5px;
    border: 1px solid #eee;
}

.dropdown-content a {
    color: var(--black);
    padding: 12px 16px;
    display: block;
    font-size: 1.5rem;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--main-color1);
}

/* MAIN SECTIONS */
.home, .home-imersao,
.malta {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.home {
    background: url(../images/home.png);
}

.home-imersao {
    color: white;
}

.malta {
    background: url(../images/homemalta.png);
}

.home .content, 
.malta .content {
    max-width: 50rem;
}

.malta .content {
    padding-bottom: 25rem;
}

.home .content h2, 
.malta .content h2 {
    font-size: 2rem;
    color: var(--white);
    text-transform: none;
    line-height: 1.2;
}

.home .content h3, 
.malta .content h3 {
    font-size: 5rem;
    color: var(--white);
    text-transform: none;
    line-height: 1.2;
}

.home .content p, 
.malta .content p {
    font-size: 1.5rem;
    line-height: 2;
    color: var(--white);
    padding: 1rem 0;
    text-transform: none;
}

/* Container para alinhar as imagens lado a lado */
.destinos-icones {
    display: flex;
    gap: 15px;      /* Espaço entre as duas imagens */
    margin-top: 5px;
    align-items: center;
}

/* Tamanho das imagens (estilo ícone) */
.mini-icon {
    width: 150px;    /* Ajuste o tamanho conforme preferir */
    height: 150px;   /* Mantém a proporção se for quadrada */
    object-fit: contain;
    border-radius: 5px; /* Opcional: deixa as pontas arredondadas */
}

/* ABOUT SECTION */
.about .container {
    display: flex;
    flex-wrap: wrap;
}

.about .container .about-image {
    position: relative;
    flex: 1 1 40rem;
}

.about .container .about-image .img1 {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about .container .about-image .about-img {
    position: absolute;
    bottom: -10rem;
    right: -1rem;
    width: 25rem;
    padding-block: 5rem;
}

.about .container .about-content {
    flex: 1 1 50rem;
    padding-left: 6rem;
    padding-top: 6rem;
}

.about .container .about-content h3 {
    font-size: 3rem;
    color: var(--main-color1);
    text-transform: none;
}

.about .container .about-content p {
    font-size: 1.6rem;
    color: var(--black);
    padding: 1rem 0;
    line-height: 1.8;
    text-transform: none;
}

/* BOXES (Services, Courses) */
.services .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.services .box-container .box {
    padding: 3rem 2rem;
    text-align: center;
    border: .1rem solid var(--main-color1);
    background: var(--light-green);
}

.services .box-container .box img {
    height: 10rem;
    margin-bottom: .7rem;
}

.services .box-container .box h3 {
    font-size: 1.7rem;
    color: var(--black);
    padding: .5rem 0;
    text-transform: none;
}

.services .box-container .box p {
    font-size: 1.5rem;
    line-height: 2;
    color: var(--black);
    text-transform: none;
}

.courses .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.courses .box-container .box .image {
    height: 25rem;
    overflow: hidden;
    position: relative;
}

.courses .box-container .box .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.courses .box-container .box:hover .image img {
    transform: scale(1.1);
}

.courses .box-container .box .image h3 {
    font-size: 1.5rem;
    color: var(--black);
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .5rem 1.5rem;
    background: var(--light-green);
}

.courses .box-container .box .content {
    padding: 2rem;
    position: relative;
    border: 0.1rem solid var(--main-color1);
    text-transform: none;
}

.courses .box-container .box .content a.btn {
    position: absolute;
    background: var(--main-color2);
    color: var(--white);
    top: 2.5rem;
    right: 1.5rem;
    width: 12rem;
    height: 4rem;
    text-align: center;
    font-size: 1.4rem;
    border-radius: 20px;
}

.courses .box-container .box .content a.btn:hover {
    background: var(--main-color1);
}

.courses .box-container .box .content a.btn-quero {
    top: 7rem;
    background: var(--green);
}

.courses .box-container .box .content h3 {
    font-size: 2rem;
}

.courses .box-container .box .content p, 
.courses .box-container .box .content h5 {
    font-size: 1.4rem;
    color: var(--black);
    line-height: 2;
}

.courses .box-container .box .content .icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 0.1rem solid var(--main-color1);
}

.courses .box-container .box .content .icons span {
    font-size: 1.5rem;
    color: var(--black);
}

.courses .box-container .box .content .icons span i {
    color: var(--main-color1);
    padding-right: .5rem;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 15px;
}

.new-price {
    color: var(--main-color1);
    font-weight: 700;
    font-size: 18px;
}

.discount {
    background-color: #ff3b3b;
    color: white;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
}

/* LOAD MORE & APP STAGES */
.load-more {
    text-align: center;
    margin-top: 40px;
}

#loadMoreCourses, 
#loadMoreAccommodation, 
#loadMoreTransport {
    background: linear-gradient(135deg, #004aad, #0078d7);
    color: #fff;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

#loadMoreCourses:hover, 
#loadMoreAccommodation:hover, 
#loadMoreTransport:hover {
    transform: translateY(-3px);
}

.btn-sem-acomodacao {
    display: inline-block;
    margin-top: 1rem;
    background-color: #f44336;
    color: #fff;
    border-radius: 8px;
    padding: 12px 22px;
    cursor: pointer;
}

.extra-course, 
.extra-accom, 
.extra-trans {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.extra-course.added, 
.extra-accom.added, 
.extra-trans.added {
    opacity: 1;
    transform: translateY(0);
}

.stage {
    scroll-margin-top: 8.5rem;
}

/* Seleciona especificamente a seção com o id imersao */
#imersao {
    background-color: var(--light-blue); /* Ou coloque a cor direta, ex: #f4f4f4 */
    
    margin: 2rem 0;      /* Opcional: cria uma separação das outras seções */
}

/* Caso queira que o fundo ocupe toda a largura da tela e o conteúdo fique centralizado */
#imersao .container {
    background: transparent;
}


/* POPUPS */
.popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    font-weight: bold;
}

.popup .close:hover {
    color: #ff5050;
}

.popup-content h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-transform: none;
}

.popup-content p {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.5;
    text-transform: initial;
    text-align: center;
}

.popup-content .icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 0.1rem solid var(--main-color1);
}

.popup-content span {
    font-size: 1.5rem;
    color: var(--black);
    text-transform: none;
}

.popup-content span i {
    color: var(--main-color1);
    padding-right: .5rem;
}

.popup-content .details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.popup-content .details span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: #555;
}

.popup-content .btn {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* POPUP GALLERY */
.popup-gallery {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popup-gallery .gallery-images {
    display: flex;
    transition: transform 0.4s ease;
}

.popup-gallery img {
    width: 100%;
    flex-shrink: 0;
    display: none;
    border-radius: 10px;
}

.popup-gallery img.active {
    display: block;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-btn.prev {
    left: 10px;
}

.gallery-btn.next {
    right: 10px;
}

/* POPUP LISTS */
.popup-content ul {
    text-align: left;
    list-style: none;
    padding: 1.5rem 0;
}

.popup-content ul li {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    padding-left: 2.5rem;
    position: relative;
    text-transform: none;
    color: #444;
}

.popup-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--main-color1);
    font-weight: bold;
}

.detalhes-titulo {
    font-size: 1.7rem;
    color: var(--main-color1);
    margin: 2rem 0 0.5rem;
    text-align: left;
    font-weight: bold;
}

.map-container {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* LEAD FORM */
.form-section {
    background: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.form-section h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    max-width: 400px;
    margin-inline: auto;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
    font-size: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.btn-form {
    background-color: #007bff;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.5rem;
}

.btn-form:hover {
    background-color: #0056b3;
}

/* FOOTER */
.footer {
    background: var(--light-green);
    text-align: center;
    margin-top: 50px;
    padding: 3rem 0;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.footer .box-container .box h3 {
    font-size: 2.2rem;
    color: var(--main-color1);
    padding: 1rem 0;
    text-transform: none;
}

.footer .box-container .box p {
    font-size: 1.4rem;
    color: var(--main-color2);
    line-height: 2;
    padding: 1rem 0;
    text-transform: none;
}

.footer .box-container .box .share {
    margin-top: 1rem;
}

.footer .box-container .box .share a {
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    border-radius: 10%;
    font-size: 1.7rem;
    border: .1rem solid var(--main-color2);
    color: var(--main-color2);
    margin-right: .3rem;
    display: inline-block;
    text-align: center;
}

.footer .box-container .box .share a:hover {
    background: var(--main-color2);
    color: var(--white);
}

.footer .credit {
    font-size: 1.2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: .1rem solid var(--main-color1);
}

/* UTILITÁRIOS (WhatsApp, Cart Badge) */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--main-color1);
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 32px;
    height: 32px;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--black);
    font-size: 2.2rem;
    margin-left: .8rem;
    text-decoration: none;
}

.cart-link .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff3b3b;
    color: white;
    font-size: 1.1rem;
    padding: 3px 6px;
    border-radius: 999px;
    font-weight: 700;
}

/* RESPONSIVIDADE */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }
    .header {
        padding: 2rem 4rem;
    }
    section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    #menu-btn {
        display: inline-block;
        font-size: 2.5rem;
        cursor: pointer;
    }
    .header .navbar {
        position: absolute;
        top: 100%;
        right: -110%;
        width: 30rem;
        background: #fff;
        border-radius: .5rem;
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        box-shadow: var(--box-shadow);
    }
    .header .navbar.active {
        right: 0;
    }
    .header .navbar a {
        display: block;
        padding: 1.5rem 2rem;
        font-size: 1.8rem;
        border-bottom: 1px solid #eee;
    }
    .icons {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    .about .container .about-content {
        padding-left: 0%;
        
        text-align: center;
    }
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        padding: 12px;
    }
    .whatsapp-button img {
        width: 28px;
        height: 28px;
    }
    .cart-link {
        font-size: 2rem;
    }
    .cart-link .cart-count {
        top: -6px;
        right: -8px;
        font-size: 1rem;
        padding: 2px 5px;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
}