/**
 * ExpoQueijo Core — Widget Styles
 * Version: 1.3.0
 */

/* ═══════════════════════════════════════════════
   Hero Banner Slider
   ═══════════════════════════════════════════════ */

.expo-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.expo-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.expo-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease;
}

.expo-hero-slide.active {
    opacity: 1;
    z-index: 2;
    position: relative;
}

.expo-hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.expo-hero-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.expo-hero-slider img {
    width: 100%;
    height: 100%;
    /* object-fit controlled by Elementor widget setting */
    object-fit: cover;
    display: block;
}

.expo-hero-slider.expoqueijo-parallax {
    overflow: hidden;
}

.expo-hero-slider.expoqueijo-parallax img {
    will-change: transform;
    /* Scale up to give room for parallax transform */
    height: 120%;
    object-position: center;
}

/* Arrows */
.expo-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(26, 23, 20, 0.4);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
    opacity: 0;
}

.expo-hero-slider:hover .expo-hero-arrow {
    opacity: 1;
}

.expo-hero-arrow:hover {
    background: rgba(178, 34, 52, 0.85);
    transform: translateY(-50%) scale(1.08);
}

.expo-hero-prev {
    left: 20px;
}

.expo-hero-next {
    right: 20px;
}

/* Dots */
.expo-hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.expo-hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.expo-hero-dots button.active {
    background: #B22234;
    border-color: #B22234;
    transform: scale(1.2);
}

.expo-hero-dots button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    border-color: #fff;
}

@media (max-width: 767px) {
    .expo-hero-arrow {
        width: 36px;
        height: 36px;
        opacity: 1;
    }

    .expo-hero-prev {
        left: 10px;
    }

    .expo-hero-next {
        right: 10px;
    }

    .expo-hero-dots {
        bottom: 12px;
        gap: 8px;
    }

    .expo-hero-dots button {
        width: 10px;
        height: 10px;
    }
}

/* ═══════════════════════════════════════════════
   Gallery Lightbox Grid
   ═══════════════════════════════════════════════ */

.expoqueijo-gallery-grid {
    display: grid;
    width: 100%;
}

.expoqueijo-gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.expoqueijo-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expoqueijo-gallery-grid .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.expoqueijo-gallery-grid[data-hover="zoom"] .gallery-item:hover img {
    transform: scale(1.08);
}

.expoqueijo-gallery-grid[data-hover="brightness"] .gallery-item:hover img {
    filter: brightness(1.15);
}

.expoqueijo-gallery-grid .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.expoqueijo-gallery-grid .gallery-overlay .gallery-icon {
    color: #fff;
    font-size: 28px;
    transform: scale(0.7);
    transition: transform 0.35s ease;
}

.expoqueijo-gallery-grid[data-hover="overlay"] .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.expoqueijo-gallery-grid[data-hover="overlay"] .gallery-item:hover .gallery-overlay .gallery-icon {
    transform: scale(1);
}

/* ═══════════════════════════════════════════════
   Section Title
   ═══════════════════════════════════════════════ */

.expo-section-title {
    margin-bottom: 1em;
}

.expo-section-title .expo-title-text {
    margin: 0 0 0.3em;
    line-height: 1.2;
}

.expo-section-title .expo-title-highlight {
    font-style: inherit;
    font-weight: inherit;
}

.expo-section-title .expo-title-line {
    height: 4px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 0.8em;
}

.expo-section-title .expo-subtitle {
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

.expo-section-title[style*="text-align: center"] .expo-subtitle,
.expo-section-title .expo-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════
   Counters / Numbers
   ═══════════════════════════════════════════════ */

.expo-counters-grid {
    display: grid;
    width: 100%;
}

.expo-counter-item {
    text-align: center;
    padding: 24px 16px;
}

.expo-counter-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.expo-counter-icon svg {
    width: 36px;
    height: 36px;
}

.expo-counter-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.expo-counter-label {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════
   Notícias Grid
   ═══════════════════════════════════════════════ */

.expo-noticias-grid {
    display: grid;
    width: 100%;
}

.expo-noticia-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expo-noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.expo-noticia-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.expo-noticia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expo-noticia-card:hover .expo-noticia-thumb img {
    transform: scale(1.05);
}

.expo-noticia-body {
    padding: 20px;
}

.expo-noticia-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 8px;
}

.expo-noticia-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.expo-noticia-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.expo-noticia-title a {
    color: inherit;
    text-decoration: none;
}

.expo-noticia-title a:hover {
    opacity: 0.8;
}

.expo-noticia-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px;
}

.expo-noticia-readmore {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.25s ease;
    border: 2px solid currentColor;
}

/* ═══════════════════════════════════════════════
   Hospedagem Cards
   ═══════════════════════════════════════════════ */

.expo-hospedagem-grid {
    display: grid;
    width: 100%;
}

.expo-hospedagem-card {
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expo-hospedagem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.expo-hospedagem-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.expo-hospedagem-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expo-hospedagem-card:hover .expo-hospedagem-thumb img {
    transform: scale(1.05);
}

.expo-hospedagem-body {
    padding: 20px;
}

.expo-hospedagem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.expo-hospedagem-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.expo-hospedagem-stars {
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.expo-hospedagem-price {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.expo-hospedagem-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.expo-hospedagem-meta i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 14px;
    color: #999;
}

.expo-hospedagem-meta a {
    color: inherit;
    text-decoration: none;
}

.expo-hospedagem-meta a:hover {
    text-decoration: underline;
}

.expo-hospedagem-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.expo-hospedagem-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #333;
    transition: opacity 0.2s ease;
}

.expo-hospedagem-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.expo-hospedagem-btn-map {
    background: #4a5d23;
}

/* ═══════════════════════════════════════════════
   Local do Evento
   ═══════════════════════════════════════════════ */

.expo-local-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.expo-local-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.expo-local-stacked {
    display: block;
}

.expo-local-info {
    padding: 32px;
}

.expo-local-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.expo-local-image img {
    width: 100%;
    height: auto;
    display: block;
}

.expo-local-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 16px;
}

.expo-local-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.expo-local-icon {
    flex-shrink: 0;
    font-size: 18px;
    margin-top: 1px;
}

.expo-local-detail a {
    color: inherit;
    text-decoration: none;
}

.expo-local-detail a:hover {
    text-decoration: underline;
}

.expo-local-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 16px;
    transition: opacity 0.2s ease;
}

.expo-local-directions:hover {
    opacity: 0.9;
    color: #fff;
}

.expo-local-map iframe {
    width: 100%;
    display: block;
}

/* ═══════════════════════════════════════════════
   GSAP Reveal Animations
   ═══════════════════════════════════════════════ */

/* Initial hidden state — GSAP will animate these via inline styles.
   CSS @keyframes fallback ensures visibility after 2s even if JS fails. */
@keyframes expoqueijo-reveal-fallback {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expoqueijo-reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: expoqueijo-reveal-fallback 0.8s ease-out 2s forwards;
}

/* GSAP-controlled reveal (GSAP sets inline styles, no animation needed) */
.expoqueijo-reveal[style*="opacity"] {
    animation: none;
}

.expoqueijo-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══════════════════════════════════════════════
   Elementor Lightbox — Fix counter/header clipping
   ═══════════════════════════════════════════════ */

.elementor-lightbox {
    z-index: 100000 !important;
}

/* Counter/header bar: always visible */
.elementor-lightbox .elementor-slideshow__header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100001 !important;
    padding: 16px 24px !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Counter text: visible and styled */
.elementor-lightbox .elementor-slideshow__counter {
    color: #fff !important;
    font-size: 14px !important;
    font-family: var(--font-body, 'Montserrat', sans-serif) !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Action buttons: share, zoom, fullscreen, close */
.elementor-lightbox .elementor-slideshow__header .elementor-icon {
    color: #fff !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s ease !important;
}

.elementor-lightbox .elementor-slideshow__header .elementor-icon:hover {
    opacity: 1 !important;
}

/* Image container: don't clip into header area */
.elementor-lightbox .elementor-slideshow {
    padding-top: 60px !important;
}

/* Navigation arrows: always visible */
.elementor-lightbox .elementor-slideshow__navigate {
    opacity: 1 !important;
}

/* Footer/thumbnails: always visible */
.elementor-lightbox .elementor-slideshow__footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100001 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ═══════════════════════════════════════════════
   Gallery Cards — Entrance Animation
   ═══════════════════════════════════════════════ */

@keyframes galleryCardIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.expoqueijo-gallery-grid .gallery-item {
    animation: galleryCardIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.expoqueijo-gallery-grid .gallery-item:nth-child(1) { animation-delay: 0.05s; }
.expoqueijo-gallery-grid .gallery-item:nth-child(2) { animation-delay: 0.12s; }
.expoqueijo-gallery-grid .gallery-item:nth-child(3) { animation-delay: 0.19s; }
.expoqueijo-gallery-grid .gallery-item:nth-child(4) { animation-delay: 0.26s; }
.expoqueijo-gallery-grid .gallery-item:nth-child(5) { animation-delay: 0.33s; }
.expoqueijo-gallery-grid .gallery-item:nth-child(6) { animation-delay: 0.40s; }

/* Subtle shine on hover */
.expoqueijo-gallery-grid .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.expoqueijo-gallery-grid .gallery-item:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   Page Title/Header Section — Constrained height
   ═══════════════════════════════════════════════ */

/* Reduce page header hero section height on inner pages (not homepage) */
body:not(.home) .elementor-location-header + .elementor > .elementor-section:first-child,
body:not(.home) .elementor-location-header + .elementor > .e-con:first-child,
body:not(.home) .elementor > .elementor-section.elementor-section-height-full:first-child,
body:not(.home) .elementor > .e-con.e-con-full:first-child {
    min-height: unset !important;
    height: auto !important;
    padding: 3rem 2rem !important;
    overflow: visible !important;
}

/* Ensure content inside the page title header is vertically centered */
body:not(.home) .elementor > .elementor-section:first-child > .elementor-container,
body:not(.home) .elementor > .e-con:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

@media (max-width: 767px) {
    .expoqueijo-hero-wrapper {
        height: auto !important;
    }

    .expo-counters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .expo-noticias-grid,
    .expo-hospedagem-grid {
        grid-template-columns: 1fr !important;
    }

    .expo-local-side {
        grid-template-columns: 1fr;
    }

    .expo-counter-number {
        font-size: 36px;
    }
}