body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.header-container {
    color: rgb(0, 0, 0);
    height: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    margin-top: 5px;
    padding: 5px;
    z-index: 1000;
    background: 135deg, rgba(255, 255, 255, 0.398);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.menu {
    align-items: center;
}

.menu ul {
    display: flex;
    list-style: none;
    padding-right: 35px;
    margin: 0;
}

.menu ul li {
    margin-left: 45px;
}

.menu ul li a {
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-weight: lighter;
    font-size: 20px;
    text-decoration: none;
    color: #000000;
}
.menu ul li a:hover {
    text-decoration: underline;
    color: black;
}

.burger {
    color: #000;
    font-size: 30px;
    cursor: pointer;
    display: none;
    z-index: 1001;
    position: fixed;
    right: 20px;
    background: none;
    border: none;
}

.menu-toggle-checkbox:checked + .burger {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.menu-toggle-checkbox:checked + .burger + .overlay {
    display: block;
}

.overlay-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.overlay-content ul li {
    margin: 20px 0;
}

.overlay-content ul li a {
    font-size: 36px;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
}

.overlay-content ul li a:hover {
    text-decoration: underline;
}

.closebtn {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle-checkbox {
    display: none;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.m-background {
    background: url('imgs/ilha-final.gif') no-repeat center center/cover;
    background-size: 200%;
}

.home {
    display: flex;
    align-items: center;
    max-height: 500px;
    padding-top: 100px;
    gap: 30px;
    width: calc(100% - 40px);
    flex-wrap: wrap;
    padding-bottom: 60px;
}

.content-container, .preview {
    width: 50%;
    box-sizing: border-box;
    padding: 20px;
}

.content-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
}

.book-now {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: auto;
    background: 135deg, rgba(255, 255, 255, 0.398);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.book-now-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Responsive 16:9 video box, filling the space the old text used to occupy */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 600px;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Bubbly, smooth zoom on hover instead of the old (broken) crossfade */
.preview:hover img {
    transform: scale(1.08);
}

.preview-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0 16px;
    text-align: center;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-size: 40px;
    background: linear-gradient(to top, rgba(99, 99, 99, 0.108), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.preview:hover .preview-caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    perspective: 1000px;
}

.carousel-item {
    cursor: pointer;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-item.center {
    width: 220px;
    height: 220px;
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
}

.carousel-item.side {
    width: 140px;
    height: 140px;
    opacity: 0.35;
    filter: blur(3px);
    transform: scale(0.85);
    z-index: 1;
}

.carousel-item.side-left {
    transform: scale(0.85) rotateY(15deg);
}

.carousel-item.side-right {
    transform: scale(0.85) rotateY(-15deg);
}

.carousel-item.side:hover {
    opacity: 0.7;
    filter: blur(1px);
}

.floating-contact {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 1000;
}

.toggle-btn {
    display: none;
}

.contact-btn {
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.contact-btn:hover {
    transform: scale(1.1);
}

.contact-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-options a {
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.whatsapp:hover { background-color: #25d366; }
.mail:hover { background-color: #c71610; }
.telegram:hover { background-color: #0088cc; }

.toggle-btn:checked + .contact-btn + .contact-options {
    opacity: 1;
    visibility: visible;
}

.contact-options a {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toggle-btn:checked + .contact-btn + .contact-options a {
    transform: translateY(0);
    opacity: 1;
}

footer {
    background: black;
    color: darkgrey;
    padding: 10px 0;
    text-align: left;
    font-size: 11px;
    position: static;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.footer-menu {
    display: flex;
    align-items: center;
}

.footer-menu .social-icons {
    display: inline-block;
    margin-left: 15px;
}

.footer-menu .social-icons a {
    color: #ffffff;
    font-size: 12px;
    margin-left: 15px;
}

.social-icons a {
    list-style-type: none;
    display: inline-block;
    color: #ffffff;
    font-size: 12px;
    margin-left: 15px;
}

.footer-terms {
    color: #ffffff;
    font-size: 8px;
    margin: auto;
    justify-content: space-between;
    align-items: center;
}
.footer-copyright {
    color: #ffffff;
    font-size: 8px;
    margin-left: auto;
}

.footer-copyright-media {
    display: none;
}

@media (min-width: 375px) and (max-width: 1024px) {

    .home {
        flex-direction: column;
        align-items: center;
        padding-top: 200px;
        width: 100%;
    }

    .header-container {
        align-content: center;
        align-items: center;
    }

    .logo {
        max-width: 100%;
    }

    .menu {
        display: none;
    }

    .desktop-menu {
        display: none;
    }

    .burger {
        display: block;
        align-self: center;
    }

    .overlay-content ul li a {
        font-size: 24px;
    }

    .closebtn {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }

    .m-background {
        background-size: 400%;
    }

    .content-container, .preview {
        width: 100%;
        padding: 10px;
    }

    .book-now {
        margin: 0px 0;
        width: 100%;
    }

    .book-now-box {
        width: 100%;
    }

    .content-container {
        width: 100%;
        padding: 10px;
    }

    .preview {
        display: none;
        max-width: 90%;
        text-align: center;
        position: relative;
        margin: 20px 0;
    }

    .preview img {
        width: 100%;
        border-radius: 10px;
    }

    .carousel {
        gap: 12px;
    }

    .carousel-item.center {
        width: 150px;
        height: 150px;
    }

    .carousel-item.side {
        width: 90px;
        height: 90px;
    }

    .close-preview {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 5px;
    }
}