.elementor-element,.elementor-lightbox{--swiper-theme-color:#000;--swiper-navigation-size:44px;--swiper-pagination-bullet-size:6px;--swiper-pagination-bullet-horizontal-gap:6px}.elementor-element .swiper .swiper-slide figure,.elementor-lightbox .swiper .swiper-slide figure{line-height:0}.elementor-element .swiper .elementor-lightbox-content-source,.elementor-lightbox .swiper .elementor-lightbox-content-source{display:none}.elementor-element .swiper .elementor-swiper-button,.elementor-element .swiper~.elementor-swiper-button,.elementor-lightbox .swiper .elementor-swiper-button,.elementor-lightbox .swiper~.elementor-swiper-button{color:hsla(0,0%,93%,.9);cursor:pointer;display:inline-flex;font-size:25px;position:absolute;top:50%;transform:translateY(-50%);z-index:1}.elementor-element .swiper .elementor-swiper-button svg,.elementor-element .swiper~.elementor-swiper-button svg,.elementor-lightbox .swiper .elementor-swiper-button svg,.elementor-lightbox .swiper~.elementor-swiper-button svg{fill:hsla(0,0%,93%,.9);height:1em;width:1em}.elementor-element .swiper .elementor-swiper-button-prev,.elementor-element .swiper~.elementor-swiper-button-prev,.elementor-lightbox .swiper .elementor-swiper-button-prev,.elementor-lightbox .swiper~.elementor-swiper-button-prev{left:10px}.elementor-element .swiper .elementor-swiper-button-next,.elementor-element .swiper~.elementor-swiper-button-next,.elementor-lightbox .swiper .elementor-swiper-button-next,.elementor-lightbox .swiper~.elementor-swiper-button-next{right:10px}.elementor-element .swiper .elementor-swiper-button.swiper-button-disabled,.elementor-element .swiper~.elementor-swiper-button.swiper-button-disabled,.elementor-lightbox .swiper .elementor-swiper-button.swiper-button-disabled,.elementor-lightbox .swiper~.elementor-swiper-button.swiper-button-disabled{opacity:.3}.elementor-element .swiper .swiper-image-stretch .swiper-slide .swiper-slide-image,.elementor-lightbox .swiper .swiper-image-stretch .swiper-slide .swiper-slide-image{width:100%}.elementor-element .swiper .swiper-horizontal>.swiper-pagination-bullets,.elementor-element .swiper .swiper-pagination-bullets.swiper-pagination-horizontal,.elementor-element .swiper .swiper-pagination-custom,.elementor-element .swiper .swiper-pagination-fraction,.elementor-element .swiper~.swiper-pagination-bullets.swiper-pagination-horizontal,.elementor-element .swiper~.swiper-pagination-custom,.elementor-element .swiper~.swiper-pagination-fraction,.elementor-lightbox .swiper .swiper-horizontal>.swiper-pagination-bullets,.elementor-lightbox .swiper .swiper-pagination-bullets.swiper-pagination-horizontal,.elementor-lightbox .swiper .swiper-pagination-custom,.elementor-lightbox .swiper .swiper-pagination-fraction,.elementor-lightbox .swiper~.swiper-pagination-bullets.swiper-pagination-horizontal,.elementor-lightbox .swiper~.swiper-pagination-custom,.elementor-lightbox .swiper~.swiper-pagination-fraction{bottom:5px}.elementor-element .swiper.swiper-cube .elementor-swiper-button,.elementor-element .swiper.swiper-cube~.elementor-swiper-button,.elementor-lightbox .swiper.swiper-cube .elementor-swiper-button,.elementor-lightbox .swiper.swiper-cube~.elementor-swiper-button{transform:translate3d(0,-50%,1px)}.elementor-element :where(.swiper-horizontal)~.swiper-pagination-bullets,.elementor-lightbox :where(.swiper-horizontal)~.swiper-pagination-bullets{bottom:5px;left:0;width:100%}.elementor-element :where(.swiper-horizontal)~.swiper-pagination-bullets .swiper-pagination-bullet,.elementor-lightbox :where(.swiper-horizontal)~.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.elementor-element :where(.swiper-horizontal)~.swiper-pagination-progressbar,.elementor-lightbox :where(.swiper-horizontal)~.swiper-pagination-progressbar{height:4px;left:0;top:0;width:100%}.elementor-element.elementor-pagination-position-outside .swiper,.elementor-lightbox.elementor-pagination-position-outside .swiper{padding-bottom:30px}.elementor-element.elementor-pagination-position-outside .swiper .elementor-swiper-button,.elementor-element.elementor-pagination-position-outside .swiper~.elementor-swiper-button,.elementor-lightbox.elementor-pagination-position-outside .swiper .elementor-swiper-button,.elementor-lightbox.elementor-pagination-position-outside .swiper~.elementor-swiper-button{top:calc(50% - 30px / 2)}.elementor-element .elementor-swiper,.elementor-lightbox .elementor-swiper{position:relative}.elementor-element .elementor-main-swiper,.elementor-lightbox .elementor-main-swiper{position:static}.elementor-element.elementor-arrows-position-outside .swiper,.elementor-lightbox.elementor-arrows-position-outside .swiper{width:calc(100% - 60px)}.elementor-element.elementor-arrows-position-outside .swiper .elementor-swiper-button-prev,.elementor-element.elementor-arrows-position-outside .swiper~.elementor-swiper-button-prev,.elementor-lightbox.elementor-arrows-position-outside .swiper .elementor-swiper-button-prev,.elementor-lightbox.elementor-arrows-position-outside .swiper~.elementor-swiper-button-prev{left:0}.elementor-element.elementor-arrows-position-outside .swiper .elementor-swiper-button-next,.elementor-element.elementor-arrows-position-outside .swiper~.elementor-swiper-button-next,.elementor-lightbox.elementor-arrows-position-outside .swiper .elementor-swiper-button-next,.elementor-lightbox.elementor-arrows-position-outside .swiper~.elementor-swiper-button-next{right:0}.elementor-shape{direction:ltr;left:0;line-height:0;overflow:hidden;position:absolute;width:100%}.elementor-shape-top{top:-1px}.elementor-shape-top:not([data-negative=false]) svg{z-index:-1}.elementor-shape-bottom{bottom:-1px}.elementor-shape-bottom:not([data-negative=true]) svg{z-index:-1}.elementor-shape[data-negative=false].elementor-shape-bottom,.elementor-shape[data-negative=true].elementor-shape-top{transform:rotate(180deg)}.elementor-shape svg{display:block;left:50%;position:relative;transform:translateX(-50%);width:calc(100% + 1.3px)}.elementor-shape .elementor-shape-fill{fill:#fff;transform:rotateY(0deg);transform-origin:center}/* ===========================
   WRAPPER GERAL
   =========================== */

.ef-lineup {
    background-color: #ffffff; /* podes mudar no Elementor */
    padding: 40px 24px 60px;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden; /* evita espaço branco lateral em mobile */
}

/* ===========================
   HEADER + MÊS
   =========================== */

.ef-lineup-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.ef-lineup-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ef-lineup-title {
    font-size: 26px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    color: #111111;
    font-family: "Plus Jakarta Sans", serif;
}

.ef-lineup-subtitle {
    font-size: 14px;
    color: #777777;
}

/* nav de mês tipo "NOVEMBER, 2025  ◀ ▶" */

.ef-lineup-month-nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;      /* espaço em relação ao título/subtítulo */
    margin-bottom: 12px;   /* espaço antes dos filtros */
}

.ef-month-label {
    font-size: 50px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #222222;
    font-family: "Plus Jakarta Sans", serif;
}

.ef-month-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #333333;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ef-month-nav-btn:hover {
    background: #f5f5f5;
}

/* ===========================
   FILTROS (estilo formulário)
   =========================== */

.ef-lineup-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.ef-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.ef-filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #444444;
}

.ef-filter {
    appearance: none;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    padding: 8px 36px 8px 14px;
    border-radius: 999px;
    position: relative;
    min-width: 0;
    cursor: pointer;
    outline: none;
}

/* opcional: leve focus */
.ef-filter:focus {
    box-shadow: 0 0 0 1px #00c3ff;
}

.ef-filter option {
    background: #ffffff;
    color: #111111;
}

/* ===========================
   GRID
   =========================== */

.ef-lineup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    justify-items: flex-start; /* se quiseres centrado, muda para center */
}

/* ===========================
   CARD
   =========================== */

.ef-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    height: 500px;
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ef-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

/* overlay default; será substituído pelo inline-style vindo do PHP
   quando tiveres presets/cores por tipo de evento */
.ef-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
}

/* conteúdo do card */
.ef-card-inner {
    position: relative;
    z-index: 2;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* badge de data (canto superior esquerdo) */

.ef-card-date-badge {
    position: absolute;
    top: 14px;
    left: 16px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    color: #ffffff; /* pode ser sobrescrito no Elementor */
}

.ef-card-date-month {
    display: block;
    font-size: 12px;
}

.ef-card-date-day {
    display: block;
    font-size: 28px;
}

/* meta (stage, artista, géneros, horário, local, preço) */

.ef-card-meta {
    margin-top: auto;
    color: #ffffff;
}

.ef-card-stage {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 4px;
}

.ef-card-artist {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
}

.ef-card-genres {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* linhas com ícone + texto (local, hora, preço) */

.ef-card-location,
.ef-card-time,
.ef-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    opacity: 0.95;
    margin-bottom: 3px;
}

/* ícones Material Symbols dentro da card */

.material-symbols-rounded.ef-icon {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 16px;
    line-height: 1;
}

.ef-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}

/* manter alinhamento do texto */

.ef-card-location-text,
.ef-card-time-text,
.ef-card-price-text {
    display: inline-block;
}

/* horário antigo (mantido para estrutura) */

.ef-card-time-old {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: 0.95;
}

.ef-card-time-icon {
    font-size: 10px;
}

/* Hover */

.ef-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* Esconder por filtro */

.ef-card.ef-card-hidden {
    display: none;
}

/* ====================================
   ORGANIZAÇÃO / SUPERVISÃO – CARD
   (OCULTO NA CARD, APENAS PARA MODAL)
   ==================================== */

.ef-card-people {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: none; /* escondido na card, só usamos HTML na modal */
    gap: 10px;
}

.ef-card-people-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.9;
    margin-bottom: 4px;
}

/* cada pessoa / entidade */
.ef-card-person {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* avatar redondo, pode ser logo ou foto */
.ef-card-person-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px; /* quadrado com canto arredondado */
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.ef-card-person-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* nome do organizador/supervisor */
.ef-card-person-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

/* pequena bio */
.ef-card-person-description {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1.4;
}

/* ajuste de cores para o card (em cima do gradiente escuro) */
.ef-card-people,
.ef-card-people-title,
.ef-card-person-name,
.ef-card-person-description {
    color: #ffffff;
}

/* ===========================
   COUNTDOWN
   =========================== */

.ef-card-countdown {
    margin-top: 10px;
    font-size: 11px;
    color: #ffffff;
}

.ef-card-countdown-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
    margin-bottom: 4px;
}

.ef-card-countdown-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: #ff4b5c;
    transition: width 0.4s linear;
}

.ef-card-countdown-text {
    text-align: right;
    opacity: 0.95;
}

/* ===========================
   MODAL
   =========================== */

.ef-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9999;

    overflow-y: auto;
    padding: 32px 16px;
}

.ef-modal-backdrop.is-open {
    display: block;
}

.ef-modal {
    background: #ffffff;
    color: #222222;
    max-width: 760px;
    width: 100%;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;

    max-height: 90vh;
    overflow-y: auto;

    margin: 0 auto 32px;
}

/* imagem grande */

.ef-modal-image {
    position: relative;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.ef-modal-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* header (stage + título) */

.ef-modal-header {
    padding: 16px 24px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888888;
}

.ef-modal-stage {
    margin-bottom: 4px;
    color: #d48f06;
}

.ef-modal-title {
    font-size: 28px;
    margin-top: 4px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #d48f06;
}

/* corpo */

.ef-modal-body {
    padding: 18px 24px 22px;
    font-size: 16px; /* aumentámos para 16px como tinhas pedido */
}

.ef-modal-genres {
    font-size: 13px;
    color: #888888;
    margin-bottom: 12px;
}

.ef-modal-description {
    font-size: 16px;
    line-height: 1.5;
    color: #444444;
    margin-bottom: 18px;
}

/* botões "ver detalhes" + "formulário" */

.ef-modal-related {
    margin-top: 12px;
    margin-bottom: 18px;
}

.ef-modal-related-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ef-modal-related-btn,
.ef-modal-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid #f8b735;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #333333;
}

.ef-modal-register-btn {
    border-color: #222222;
}

.ef-modal-related-btn:hover,
.ef-modal-register-btn:hover {
    background: #fafafa;
}

/* PREÇO DO EVENTO – MODAL */

.ef-modal-price-block {
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 16px 18px;
    background: #f8f8f8;
    border-radius: 14px;
}

.ef-modal-price-text {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* grid "quando / local" */

.ef-modal-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0;
}

.ef-modal-when,
.ef-modal-where {
    flex: 1 1 200px;
    font-size: 13px;
    line-height: 1.2em;
}

.ef-modal-where-block {
    margin-bottom: 6px;
}

.ef-modal-where-directions a {
    font-size: 12px;
    color: #0b76ff;
    text-decoration: underline;
}

/* títulos de subsecção com ícone */

.ef-modal-subsection-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555555;
    margin-bottom: 10px;
    font-family: "Plus Jakarta Sans", serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ef-modal-subsection-title .ef-icon {
    font-size: 18px;
}

/* bloco "QUANDO" – linha com ícone + texto */

.ef-modal-when-block {
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ef-modal-calendar-link a {
    font-size: 12px;
    text-decoration: underline;
    color: #0b76ff;
}

/* partilhar */

.ef-modal-share {
    margin-top: 24px;
}

.ef-modal-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* ====================================
   ORGANIZAÇÃO / SUPERVISÃO – MODAL
   ==================================== */

.ef-modal-people {
    margin-top: 20px;
    margin-bottom: 10px;
    display: grid;
    gap: 18px;
}

@media (min-width: 768px) {
    .ef-modal-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ef-modal-people-block {
    font-size: 13px;
    padding: 16px 18px;
    background: #f8f8f8;
    border-radius: 18px;
}

/* reaproveita os mesmos elementos da card, mas com cores do modal */

.ef-modal-people .ef-card-people-title {
    margin-bottom: 6px;
    color: #f8b735;
    font-size: 11px;
}

.ef-modal-people .ef-card-person {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.ef-modal-people .ef-card-person-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.ef-modal-people .ef-card-person-name {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
}

.ef-modal-people .ef-card-person-description {
    font-size: 12px;
    color: #555555;
    line-height: 1.5;
}

/* botões genéricos */

.ef-btn {
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    background: #fafafa;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ef-btn:hover {
    background: #f0f0f0;
}

/* botão fechar */

.ef-modal-close {
    position: absolute;
    inset-inline-end: 16px;
    top: 12px;
    border: none;
    background: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-modal-close span {
    font-size: 16px;
}

/* quando o modal está aberto, tiramos o scroll de fundo */

html.ef-modal-open,
body.ef-modal-open {
    overflow: hidden;
}

/* ===========================
   MAPA
   =========================== */

.ef-modal-map {
    margin-top: 20px;
}

.ef-modal-map iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 8px;
}

/* ========= AJUSTES DE LAYOUT & CORES ========= */

/* Cards mais próximos entre si */
.ef-lineup-grid {
    gap: 16px; /* antes 24px */
}

/* Títulos das secções da modal em amarelo */
.ef-modal-subsection-title {
    color: #d48f06; /* amarelo */
}

/* Títulos das caixas ORGANIZAÇÃO / SUPERVISÃO na modal
   continuam a usar o mesmo amarelo */
.ef-modal-people .ef-card-people-title {
    color: rgb(248, 183, 53);
}

/* QUANDO / LOCAL – ícone + texto alinhados na mesma linha */
.ef-modal-when-block,
.ef-modal-where-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ícones de Material Symbols na modal */
.ef-modal-when-block .material-symbols-rounded,
.ef-modal-where-block .material-symbols-rounded {
    font-size: 20px;
    line-height: 1;
}

/* Bloco do preço na modal – manter fundo cinzento e espaçamento */
.ef-modal-price-block {
    margin-top: 20px;
    padding: 18px 20px;
    background: #f7f7f7;
    border-radius: 16px;
}

/* Ícone de preço na modal, alinhado com o texto */
.ef-modal-price-text {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ef-modal-price-text .material-symbols-rounded {
    font-size: 20px;
}

/* Ícones nas labels ORGANIZAÇÃO / SUPERVISÃO / PARTILHAR */
.ef-modal-subsection-title .material-symbols-rounded {
    font-size: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ====== CAIXAS CINZENTAS "QUANDO" E "LOCAL" NA MODAL ====== */

.ef-modal-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* cada bloco (QUANDO / LOCAL) com fundo cinzento e cantos arredondados */
.ef-modal-when,
.ef-modal-where {
    flex: 1 1 240px;
    background: #f7f7f7;
    border-radius: 16px;
    padding: 18px 20px 20px;
}

/* título + ícone já amarelo, mas garantimos espaçamento interno */
.ef-modal-when .ef-modal-subsection-title,
.ef-modal-where .ef-modal-subsection-title {
    margin-bottom: 8px;
}

/* linha com ícone e texto (data / local) */
.ef-modal-when-block,
.ef-modal-where-block {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ef-modal-when-block .material-symbols-rounded,
.ef-modal-where-block .material-symbols-rounded {
    font-size: 20px;
    line-height: 1;
}

/* ===========================
   RESPONSIVO
   =========================== */

/* Tablet / laptops pequenos */
@media (max-width: 1024px) {
    .ef-lineup {
        padding: 32px 20px 40px;
    }

    .ef-lineup-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        justify-items: center;
        gap: 20px;
    }

    .ef-month-label {
        font-size: 40px;
    }

    .ef-card {
        max-width: 680px;
        height: 380px;
    }

    .ef-modal {
        max-width: 900px;
        margin: 24px auto;
    }
}

/* Mobile até 640px */
@media (max-width: 640px) {
    .ef-lineup {
        padding: 24px 16px 36px;
    }

    .ef-lineup-header {
        align-items: flex-start;
        gap: 14px;
    }

    .ef-lineup-title {
        font-size: 22px;
    }

    .ef-lineup-subtitle {
        font-size: 13px;
    }

    .ef-lineup-month-nav {
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .ef-month-label {
        font-size: 32px;
    }

    /* filtros full-width em coluna */
    .ef-lineup-filters {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .ef-filter-group {
        width: 100%;
    }

    .ef-filter {
        width: 100%;
        font-size: 14px;
        padding: 9px 14px;
    }

    /* cards mais altos para não esmagar texto */
    .ef-lineup-grid {
        gap: 16px;
    }

    .ef-card {
        width: 100%;
        max-width: 100%;
        height: 340px;
        border-radius: 18px;
    }

    .ef-card-inner {
        padding: 16px 14px 18px;
    }

    .ef-card-artist {
        font-size: 20px;
    }

    .ef-card-genres {
        font-size: 11px;
    }

    .ef-card-location,
    .ef-card-time,
    .ef-card-price {
        font-size: 11px;
    }

    .ef-card-date-day {
        font-size: 24px;
    }

    /* modal quase full-screen */
    .ef-modal-backdrop {
        padding: 0;
    }

    .ef-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .ef-modal-header {
        padding: 16px 16px 0;
    }

    .ef-modal-body {
        padding: 16px 16px 24px;
    }

    .ef-modal-image img {
        max-height: 260px;
        object-fit: cover;
    }
}

/* Mobile bem estreito (ex: 320px) */
@media (max-width: 400px) {
    .ef-lineup {
        padding-inline: 12px;
    }

    .ef-month-label {
        font-size: 28px;
    }

    .ef-card {
        height: 330px;
    }
}

/* Garantir que dá SEMPRE para fechar o modal no mobile */
@media (max-width: 640px) {
  .ef-modal-close {
    position: fixed !important;   /* força ficar preso ao viewport */
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    z-index: 10001 !important;    /* acima de tudo dentro do modal */
  }

  .ef-modal-close span {
    font-size: 18px;
  }
}

/* ===========================================
   FORÇAR BOTÃO FECHAR VISÍVEL NO MOBILE
   =========================================== */
@media (max-width: 768px) {

  /* dá um bocadinho de "respiro" no topo do modal,
     para não ficar escondido atrás da barra do browser */
  .ef-modal-backdrop {
    padding-top: 40px;
  }

  .ef-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .ef-modal-close {
    position: fixed !important;          /* preso ao ecrã */
    top: 48px;                           /* abaixo da barra do browser */
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    z-index: 999999 !important;          /* acima de header, imagem, etc. */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ef-modal-close span {
    font-size: 20px;
    line-height: 1;
    color: #333333;
  }
}

/* =========================
 *  AJUSTE TIPOGRAFIA CARD — MOBILE
 * ========================= */
/* FORÇAR TIPOGRAFIA DAS CARDS EM MOBILE */
@media (max-width: 768px) {

  /* Dia da data (5–8) */
  .ef-lineup .ef-card .ef-card-date-day {
    font-size: 25px !important;
    line-height: 22px !important;
  }

  /* Nome do evento / artista */
  .ef-lineup .ef-card .ef-card-artist {
    font-size: 30px !important;
    line-height: 30px !important;
  }

  /* Stage (palco) */
  .ef-lineup .ef-card .ef-card-stage {
    font-size: 14px !important;
    line-height: 25px !important;
  }

  /* Géneros */
  .ef-lineup .ef-card .ef-card-genres {
    font-size: 14px !important;
    line-height: 25px !important;
  }
}
/* =========================
 *  MOBILE — ajustar mês da data
 * ========================= */
@media (max-width: 768px) {
  .ef-card-date-month {
    font-size: 35px !important;
    line-height: 1 !important;
  }
}
/* =========================
 *  MOBILE — ajustar mês + altura da card
 * ========================= */
@media (max-width: 768px) {

  /* tamanho do mês */
  .ef-card-date-month {
    font-size: 45px !important;
    line-height: 1 !important;
  }
  
    /* tamanho do dia mês */
  .ef-card-date-day {
    font-size: 35px !important;
    line-height: 1 !important;
  }


  /* altura maior para caber tudo confortavelmente */
  .ef-card {
    height: 400px !important;
  }
}
/* =========================
 *  ECRA 1440px — ajustar numero de cards
 * ========================= */
@media (min-width: 1440px) {

  .ef-lineup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .ef-card {
    height: 500px; /* opcional */
  }
}


/* =========================
 *  ECRA 1024px — ajustar numero de cards
 * ========================= */
@media (min-width: 1024px) {

  .ef-lineup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .ef-card {
    height: 500px; /* opcional */
  }
}