/* Cards de eventos - altura uniforme */
.events-grid .grid-item-content {
    display: flex;
    flex-direction: column;
}

.events-grid .grid-item h3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
    margin-bottom: 8px;
}

.events-grid .grid-item .post-actions {
    margin-top: auto;
}

.grid-item-content .hp-badge {
    align-self: flex-start;
    width: auto !important;
    display: inline-block !important;
}

.timeline-stamp-day {
    display: block;
    text-align: center;
    width: 100%;
}

.timeline-stamp-in {
    text-align: center;
}

.widget_special_events_in .media-box img {
    max-width: 310px;
    max-height: 290px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hp-eventos-section { padding: 50px 0; }
 
/* Grid principal: 2/3 + 1/3 */
.hp-grid { display: flex; gap: 30px; align-items: flex-start; }
.hp-col-main  { flex: 2; min-width: 0; }
.hp-col-aside { flex: 1; min-width: 0; }
 
/* Títulos de secção */
.hp-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}
 
/* Badges de estado */
.hp-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hp-badge.badge-hoje    { background: #FFF3CD; color: #856404; }
.hp-badge.badge-amanha  { background: #D1ECF1; color: #0C5460; }
.hp-badge.badge-proximo { background: #D4EDDA; color: #155724; }
.hp-badge.badge-futuro  { background: #CCE5FF; color: #004085; }
.hp-badge.badge-passou  { background: #f1f1f1; color: #999999; }
 
/* ---- Destaque principal ---- */
.hp-destaque {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 35px;
    background: #fff;
}
.hp-destaque-img {
    width: 240px;
    min-width: 240px;
    max-height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-destaque-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp-destaque-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.hp-destaque-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.hp-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f8f5;
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 6px 14px;
    min-width: 52px;
}
.hp-date-day   { font-size: 26px; font-weight: 700; line-height: 1; color: #333; font-family: 'Playfair Display', serif; }
.hp-date-month { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.hp-destaque-titulo {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    line-height: 1.4;
}
.hp-destaque-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.hp-destaque-meta span { display: flex; align-items: center; gap: 5px; }
 
/* ---- Lista de próximos ---- */
.hp-lista { list-style: none; margin: 0; padding: 0; }
.hp-lista-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.hp-lista-item:last-child { border-bottom: 0; }
.hp-lista-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    text-align: center;
}
.hp-lista-day  { font-size: 20px; font-weight: 700; color: #333; line-height: 1; }
.hp-lista-mon  { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.hp-lista-divider { width: 1px; height: 34px; background: #eee; flex-shrink: 0; }
.hp-lista-info { flex: 1; min-width: 0; }
.hp-lista-titulo {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.hp-lista-titulo a { color: #333; text-decoration: none; }
.hp-lista-titulo a:hover { color: #555; }
.hp-lista-sub  { font-size: 12px; color: #CDCBCB; }
.hp-lista-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.hp-lista-hora { font-size: 12px; color: #999; white-space: nowrap; }
 
/* ---- Ver todos ---- */
.hp-ver-todos { text-align: center; margin-top: 22px; }
 
/* ---- Sidebar destaques ---- */
.hp-sidebar-cards { display: flex; flex-direction: column; gap: 15px; }
.hp-sidebar-card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.hp-sidebar-card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}
.hp-sidebar-card-noimg {
    border-top: 3px solid #d4edda;
}
.hp-sidebar-card-body { padding: 14px 16px; }
.hp-sidebar-card-titulo {
    font-size: 15px;
    font-weight: 400;
    color: #333;
    font-family: 'Playfair Display', serif;
    margin: 8px 0 4px;
    line-height: 1.4;
}
.hp-sidebar-card-titulo a { color: #333; text-decoration: none; }
.hp-sidebar-card-titulo a:hover { color: #555; }
.hp-sidebar-card-meta { font-size: 12px; color: #CDCBCB; }
.hp-sidebar-card-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 10px;
    text-decoration: none;
}
.hp-sidebar-card-link:hover { color: #333; }
 
/* Responsivo */
@media (max-width: 768px) {
    .hp-grid { flex-direction: column; }
    .hp-destaque { flex-direction: column; }
    .hp-destaque-img { width: 100%; min-width: 0; height: 180px; }
}

/* Posiciona a caption sobre o slider */
/* O wrapper do slider precisa de position relative */
.slider-wrapper {
    position: relative;
}

/* A caption container não deve capturar eventos */
.nivo-caption {
    position: absolute !important;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    pointer-events: none !important; /* <-- bloqueia cliques no fundo */
}

/* Só o botão recebe cliques */
.btn-slider {
    pointer-events: all !important; /* <-- reactiva cliques no botão */
    cursor: pointer;

    display: inline-block;
    position: absolute;
    bottom: 60px;
    right: 20px;

    padding: 10px 22px;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    font-size: 14px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.btn-slider:hover {
    opacity: 1;
}

/* ── Igual altura em todos os cartões ────────────────────── */

/* 1. ul vira flex (e anula o clearfix do Bootstrap 3) */
.events-grid-3cols ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 2. li anula o float do Bootstrap 3 e vira coluna flex */
.events-grid-3cols li.grid-item {
    float: none !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

/* 3. o link da imagem não cresce */
.events-grid-3cols .media-box {
    flex-shrink: 0;
    display: block;
}

/* 4. conteúdo de texto cresce para preencher o espaço */
.events-grid-3cols .grid-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 5. título sempre 2 linhas — nem mais nem menos */
.events-grid-3cols .grid-item-content h3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em; /* garante altura mesmo com 1 linha */
    margin-bottom: 4px;
}

/* 6. subtítulo sempre 1 linha */
.events-grid-3cols .grid-item-content h4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    min-height: 1.4em; /* garante espaço mesmo sem subtítulo */
    margin-bottom: 5px;
}

/* 7. meta (local + hora) altura fixa */
.events-grid-3cols .meta-data {
    min-height: 1.4em;
}

/* 8. botão sempre colado ao fundo */
.events-grid-3cols .post-actions {
    margin-top: auto;
    padding-top: 10px;
}

/* Altura fixa para todas as imagens do carrossel de património */
#venues-slider .media-box {
    display: block;
    overflow: hidden;
    height: 200px; /* ajusta conforme precisares */
}

#venues-slider .media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s;
}

#venues-slider .media-box:hover img {
    transform: scale(1.06);
}

/* Todos os blocos com a mesma altura */
#venues-slider .featured-block {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#venues-slider .featured-block-in {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#venues-slider .featured-block-in p {
    flex: 1;
}
#venues-slider .featured-block-in {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px; /* ajusta conforme o teu design */
}

#venues-slider .featured-block-in h3 {
    margin-top: 0;
    /* limita o título a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#venues-slider .featured-block-in p {
    flex: 1;
    /* limita a descrição a 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.latest-testimonials .city_request_list {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px;
}

.latest-testimonials .city_request_list a,
.latest-testimonials .city_request_list h4,
.latest-testimonials .city_request_list span,
.latest-testimonials .city_request_list p {
    color: #fff !important;
}

.latest-testimonials .city_request_list:hover {
    background: rgba(255, 255, 255, 0.22);
}

.latest-testimonials .city_request_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.latest-testimonials .city_request_row > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.latest-testimonials .city_request_row > span i {
    font-size: 50px;
    line-height: 1;
    margin: 10px;
}

.latest-testimonials .city_request_text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.site-logo img {
    width: 100px;
    transition: width 0.3s ease 0.1s;
}
.site-logo h1 {
    transition: padding 0.3s ease 0.1s;
}
.site-logo.logo-shrunk img {
    width: 40px;
}
.site-logo.logo-shrunk h1 {
    padding: 3px 7px;
}
.grid-featured-img {
    display: block;
    height: 156px;       /* ou a altura que precisas */
    overflow: hidden;
    position: relative;
}

.grid-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* corta a imagem mantendo proporção, sem distorcer */
    object-position: center;  /* centra o recorte */
}

/* Barra "Acontece hoje" */
.hoje-destaque-bar {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #2e7d32;
    font-size: 16px;
    padding: 10px 16px;
    margin-bottom: 20px;
    border-radius: 3px;
}

/* Cartão de evento de hoje com borda de destaque */
.evento-hoje {
    border-top: 3px solid #2e7d32 !important;
}