@import url(./button.css);
@import url(./spacing.css);
@import url(./typography.css);

@font-face {
    font-family: 'DroidSans';
    src: url('../assets/fonts/DroidSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DroidSans';
    src: url('../assets/fonts/DroidSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'DroidSans', Arial, sans-serif;
}

:root {
    --primary: #FBBD35;

    --secondary: #1B4597;
    --secondary-dark: #1B4597;

    --black: #1f2125;

    --card-container: #F0F0F0;
}

body {
    background-color: white;
    overflow-x: hidden;
    color: var(--secondary-dark);
}


.opacity-50 {
    opacity: 0.5;
}

.opacity-70 {
    opacity: 0.7;
}

.color-primary {
    color: var(--primary) !important;
}

.color-secondary {
    color: var(--secondary) !important;
}

.color-text{
    color: var(--black) !important;
}

.row-header {
    width: 100%;
    justify-content: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-header img {
    width: 23px;
    height: auto;
    display: block;
}

.pressable {
    padding: 4px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pressable:hover {
    background-color: var(--card-container);
}

main {
    width: 96%;
    margin: 0 auto;
    max-width: 1300px;
    height: 100%;
    color: var(--secondary-dark);
    overflow: hidden;
    position: relative;
    z-index: 1;
}


.hero {
    width: 100%;
    aspect-ratio: 1466/631;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.hero .hero-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
    padding-top: 10%;
    z-index: 1;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.hero .place-subtitle {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.5;
    font-size: 14px;
}




.benefits {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 960px;
    position: relative;
}

.benefits .benefits-header {
    text-align: center;
    max-width: 600px;
}

.benefits .benefits-list {
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.benefits .benefit-box {
    width: calc(33% - 20px);
    overflow: hidden;
    border-radius: 30px;
    background-color: var(--card-container);
    margin: 0 auto;
    box-shadow: 0px 0px 30px -8px rgba(0, 0, 0, 0.534);
    border: 1px solid white;
}

.benefits .benefit-box-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.x-gray-bg-benefits {
    position: absolute;
    width: 100vw;
    height: auto;
    display: block;
    z-index: -1;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
}

.benefits img {
    width: 100%;
    display: block;
    height: auto;
}




.events {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}


.events .events-header {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.events .events-header-image {
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
    display: block;
    height: auto;
}

.events .event-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.events .events-container {
    width: 100%;
    display: flex;
    gap: var(--gap-3);
    align-items: center;
}

.events .event-nav-button {
    all: unset;
    cursor: pointer;
    border: 1px solid gray;
    color: var(--secondary-dark);
    padding: 6px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.events .event-nav-button img {
    height: 12px;
    width: 12px;
}

.events .event-nav-button:hover {
    filter: brightness(0.9);
}

.events-row-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.events .event {
    width: 100%;
}

.events-row-indicator-item {
    width: 100%;
    height: 4px;
    background-color: var(--secondary-dark);
}

.events .event .event-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.events .events-list {
    width: calc(45% - var(--gap-3));
    flex-shrink: 0;
}

.events .event-video {
    width: 55%;
    flex-shrink: 0;
    position: relative;
    padding-bottom: 28.125%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.events .event-video .gallery-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.events .event-video .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.events .event-video .gallery-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    overflow-x: auto;
}

.events .event-video .gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.events .event-video .gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.events .event-video .gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.events .event-video .gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.7);
}

.events .event-video .thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    opacity: 0.7;
}

.events .event-video .thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.events .event-video .thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

.events .event p {
    margin-bottom: var(--gap-2);
}

.events .event.colapsed p {
    display: none;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .events .events-container {
        flex-direction: column;
    }

    .events .events-list,
    .events .event-video {
        width: 100%;
    }

    .events .event-video {
        padding-bottom: 56.25%;
        /* Volta ao aspect ratio normal em mobile */
    }
}






.nearby .title,
.nearby .subtitle {
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
}

.nearby .nearby-container {
    display: flex;
    gap: var(--gap-3);
    align-items: center;
}

.nearby .row-header img {
    width: 34px;
}

.nearby .nearby-list {
    display: flex;
    overflow: hidden;
}

.nearby-item {
    min-width: 280px;
    padding: 16px;
    background-color: var(--card-container);
    border-radius: 16px;
    position: relative;
    margin-top: var(--gap-3);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-2);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: var(--gap-1) !important;
}

.swiper-wrapper:first-child {
    padding: 0px 60px !important;
}

.nearby-item .nearby-content {
    width: 100%;
}

.nearby-item .nearby-content small{
    color: var(--black);
} 

.nearby-item:hover {
    filter: brightness(0.95);
}

.nearby .distance {
    background-color: var(--card-container);
    box-shadow: 0px 0px 18px 0px white;
    border-radius: 10px;
    padding: 4px 6px;
    display: flex;
    gap: 4px;
    width: fit-content;
    position: absolute;
    top: -12px;
    left: 10px;
}

.nearby .nearby-button {
    background-color: var(--secondary);
    padding: 4px;
    border-radius: 10px;
    aspect-ratio: 1;
    width: 28px;
    height: 28px;
}

.nearby .nearby-button img {
    width: 12px;
    height: 12px;
}

.nearby-list-container {
    width: 110%;
    overflow: hidden;
}


.nearby .map-container {
    width: calc(100% + var(--gap-3));
    border-radius: 16px;
    margin-top: var(--gap-3);
    position: relative;
    overflow: hidden;
}

/* Map shadow gradients */
.map-shadow-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, white, transparent);
    z-index: 1;
    pointer-events: none;
}

.map-shadow-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, white, transparent);
    z-index: 1;
    pointer-events: none;
}

.map-shadow-left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40px;
    background: linear-gradient(to right, white, transparent);
    z-index: 1;
    pointer-events: none;
}

.map-shadow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40px;
    background: linear-gradient(to left, white, transparent);
    z-index: 1;
    pointer-events: none;
}

.map-container .map-image {
    width: 100%;
    height: auto;
    display: block;
}





.x-rows {
    width: 100vw;
    display: block;
    height: auto;
}

.dark-bg {
    background-color: var(--secondary-dark);
    color: var(--card-container);
}

.dark-bg * {
    color: var(--card-container);
}


.virtual-tour {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.virtual-tour .light-logo {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    height: auto;
}

.dark-section-bg {
    width: 96%;
    display: block;
    margin: 41px auto;
    height: auto;
    opacity: 0.1;
    position: absolute;
    z-index: 0;
}


.final-cta {
    text-align: center;
    position: relative;
    overflow: visible;
}

.final-cta .final-cta-bg {
    width: 96%;
    margin: 0 auto;
    height: auto;
    display: block;
    z-index: 0;
}

.final-cta .final-cta-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-2);
    z-index: 1;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
}

.final-cta .contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--gap-2);
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    position: absolute;
    bottom: -50px;
    background-color: rgba(255, 255, 255, 0.078);
    border: 1px solid rgba(255, 255, 255, 0.19);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0px 0px 40px -8px rgba(0, 0, 0, 0.59);
}

.final-cta .contact-email .mail-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-2);
}

.final-cta .contact-email .mail-content .mail-icon-content {
    width: 36px;
    height: 36px;
    background-color: var(--secondary);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-cta .contact-email .mail-content .mail-icon-content img {
    width: 100%;
    height: 100%;
    display: block;
}

.final-cta .contact-email .mail-content .mail-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: var(--gap-2);
}

.final-cta .contact-email .mail-content .mail-content-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.final-cta .contact-email .mail-content .mail-content-text p {
    margin: 0;
}

.final-cta .contact-email a {
    background-color: white;
    border-radius: 10px;
    padding: 6px 16px;
    text-decoration: none;
    color: var(--secondary-dark);
    transition: all 0.3s ease;
    width: 100%;
}

.final-cta .contact-email a:hover {
    background-color: var(--card-container);
}



footer {
    width: 96%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: var(--gap-5);
    justify-content: center;
    align-items: flex-start;
}

footer .footer-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

footer .footer-logo {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    height: auto;
}

footer .footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.235);
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .footer-icon svg {
    color: white;
}

/* SVG inline styling */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* SVG Color Control */
.svg-primary {
    color: var(--primary);
}

.svg-secondary {
    color: var(--secondary);
}

.svg-secondary-dark {
    color: var(--secondary-dark);
}

.svg-white {
    color: white;
}

.svg-black {
    color: var(--black);
}

.svg-light {
    color: white;
}

/* Swiper Carousel Styles */
.nearby-list.swiper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Gradient fade effect for carousel edges */
.nearby-list.swiper::before,
.nearby-list.swiper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
}

.nearby-list.swiper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.nearby-list.swiper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Dark section gradient adjustment */
.dark-bg .nearby-list.swiper::before {
    background: linear-gradient(to right, var(--black), transparent);
}

.dark-bg .nearby-list.swiper::after {
    background: linear-gradient(to left, var(--black), transparent);
}

.nearby-list .swiper-wrapper {
    align-items: stretch;
}

.nearby-list .swiper-slide {
    height: auto;
    width: 280px;
    flex-shrink: 0;
    max-width: calc(100% - 20px);
}

@media (max-width: 768px) {
    .nearby-list .swiper-slide {
        width: 100%;
        max-width: 100%;
    }
}

/* Swiper Navigation */
.nearby-list .swiper-button-next,
.nearby-list .swiper-button-prev {
    color: var(--secondary);
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.nearby-list .swiper-button-next:after,
.nearby-list .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.nearby-list .swiper-button-next {
    right: 10px;
    transform: translateY(15px);
}

.nearby-list .swiper-button-prev {
    left: 10px;
    transform: translateY(15px);
}

/* Swiper Pagination */
.nearby-list .swiper-pagination {
    position: static;
    margin-top: 16px;
}

.nearby-list .swiper-pagination-bullet {
    background: var(--card-container);
    opacity: 1;
}

.nearby-list .swiper-pagination-bullet-active {
    background: var(--secondary);
}

/* Presentation Content Transitions */
.event[data-presentation-content] {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    max-height: 1000px;
    overflow: hidden;
}

.event[data-presentation-content].colapsed {
    transform: scale(0.95);
    opacity: 0.4;
    filter: grayscale(0.3);
}

.event[data-presentation-content]:not(.colapsed) {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.hero-image.small {
    display: none;
}


@media (max-width: 768px) {
    .hero {
        aspect-ratio: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-image {
        position: relative;
    }

    .hero-image:not(.small) {
        display: none;
    }

.hero-image.small {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero *:not(.color-primary) {
        color: var(--secondary-dark);
    }

    .hero .hero-content {
        padding-top: 20px;
    }

    .benefits .benefit-box {
        min-width: 320px;
    }

    .nearby-container {
        flex-direction: column;
    }

    .nearby-list-container {
        width: 100%;
    }

    .nearby .map-container {
        width: 100%;
    }

    .final-cta .final-cta-bg {
        display: none;
    }

    .final-cta .final-cta-content {
        position: relative;
    }

    .final-cta .contact-email {
        position: relative;
    }

    footer {
        flex-direction: column;
        margin-top: var(--gap-4) !important;
    }

    .x-rows {
        margin-top: var(--gap-4) !important;
        margin-bottom: var(--gap-4) !important;
    }
}