.tdm-pe-card {
    --tdm-pe-bg: #1a1a1a;
    --tdm-pe-accent: #f9b725;
    --tdm-pe-texto: #ffffff;
    --tdm-pe-texto-suave: #b5b5b5;
    --tdm-pe-botao-texto: #1a1a1a;

    background: var(--tdm-pe-bg);
    color: var(--tdm-pe-texto);
    border-radius: 10px;
    padding: 28px 24px;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
}

.tdm-pe-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--tdm-pe-accent);
    margin: 0 0 14px;
}

.tdm-pe-titulo {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tdm-pe-texto) !important;
}

.tdm-pe-data,
.tdm-pe-hora {
    margin: 2px 0;
    color: var(--tdm-pe-texto-suave);
    font-size: 14px;
}

.tdm-pe-rings {
    display: flex;
    gap: 18px;
    margin: 24px 0 22px;
}

.tdm-pe-ring {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tdm-pe-ring svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.tdm-pe-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.12);
    stroke-width: 6;
}

.tdm-pe-ring-fg {
    fill: none;
    stroke: var(--tdm-pe-accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 263.9;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.4s ease;
}

.tdm-pe-ring-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    z-index: 1;
}

.tdm-pe-ring-caption {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--tdm-pe-texto-suave);
    margin-top: 4px;
    z-index: 1;
    letter-spacing: 0.04em;
}

.tdm-pe-botao {
    display: block;
    text-align: center;
    background: var(--tdm-pe-accent);
    color: var(--tdm-pe-botao-texto) !important;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 20px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.tdm-pe-botao:hover {
    opacity: 0.88;
    color: var(--tdm-pe-botao-texto) !important;
}

.tdm-pe-vazio {
    text-align: center;
}

.tdm-pe-vazio-titulo {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
}

.tdm-pe-vazio-texto {
    color: var(--tdm-pe-texto-suave);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 480px) {
    .tdm-pe-rings { gap: 10px; }
    .tdm-pe-ring { width: 72px; height: 72px; }
    .tdm-pe-ring-value { font-size: 21px; }
}

/* -------------------------------------------------------------
   Página interna do evento (single-tdm_evento.php)
------------------------------------------------------------- */
.tdm-pe-single {
    --tdm-pe-accent: #f9b725;
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.tdm-pe-single-capa {
    margin: 0 0 28px;
}

.tdm-pe-single-capa img {
    width: 100%;
    height: auto;
    display: block;
}

/* O título do evento (h1) segue a tipografia global do site (Estilos do
   Tema › H1 / "Very Big Title"), pra você controlar tudo num lugar só. */
.tdm-pe-single-titulo {
    line-height: 1.25;
    margin: 0 0 18px;
}

.tdm-pe-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tdm-pe-single-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tdm-pe-single-meta-label {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--tdm-pe-accent);
}

.tdm-pe-single-descricao {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.tdm-pe-single-descricao p {
    margin: 0 0 1em;
}

.tdm-pe-botao-ingresso {
    display: inline-block;
    max-width: 320px;
    margin-bottom: 48px;
}

.tdm-pe-outros {
    border-top: 2px solid #eee;
    padding-top: 24px;
}

.tdm-pe-outros-titulo {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.tdm-pe-outros-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tdm-pe-outros-lista li {
    border-bottom: 1px solid #eee;
}

.tdm-pe-outros-lista a {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 14px 4px;
    text-decoration: none;
    color: inherit;
}

.tdm-pe-outros-lista a:hover .tdm-pe-outros-nome {
    text-decoration: underline;
}

.tdm-pe-outros-nome {
    font-weight: 700;
}

.tdm-pe-outros-info {
    color: #777;
    font-size: 14px;
}

/* -------------------------------------------------------------
   Listagem de Eventos (archive-tdm_evento.php)
------------------------------------------------------------- */
.tdm-pe-arquivo {
    --tdm-pe-accent: #f9b725;
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.tdm-pe-arquivo-shortcode {
    max-width: none;
    padding: 0;
}

.tdm-pe-arquivo-titulo-pagina {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 28px;
}

.tdm-pe-arquivo-secao-titulo {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.tdm-pe-arquivo-secao-titulo-passados {
    margin-top: 48px;
    opacity: 0.75;
}

.tdm-pe-arquivo-vazio {
    color: #666;
    font-size: 15px;
}

.tdm-pe-arquivo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 8px;
}

.tdm-pe-arquivo-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tdm-pe-arquivo-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.16);
    transform: translateY(-2px);
}

.tdm-pe-arquivo-card-img {
    aspect-ratio: 16 / 10;
    background: #eee;
    overflow: hidden;
}

.tdm-pe-arquivo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tdm-pe-arquivo-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #333);
}

.tdm-pe-arquivo-card-corpo {
    padding: 14px 16px 18px;
}

.tdm-pe-arquivo-card-data {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b5860a;
    margin-bottom: 6px;
}

.tdm-pe-arquivo-card-titulo {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
    text-transform: none;
}

.tdm-pe-arquivo-card-local {
    display: block;
    font-size: 13px;
    color: #777;
}

/* -------------------------------------------------------------
   Slider de eventos (shortcode [eventos_slider], pensado pra Home)
------------------------------------------------------------- */
.tdm-pe-slider {
    --tdm-pe-accent: #f9b725;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.tdm-pe-slider-viewport {
    overflow: hidden;
    border-radius: 0;
}

.tdm-pe-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.tdm-pe-slide {
    position: relative;
    flex: 0 0 100%;
    display: block;
    aspect-ratio: 16 / 7;
    min-height: 260px;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
}

.tdm-pe-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.tdm-pe-slide-bg-vazio {
    background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}

.tdm-pe-slide:hover .tdm-pe-slide-bg {
    transform: scale(1.04);
}

.tdm-pe-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.05) 100%);
}

.tdm-pe-slide-conteudo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 32px;
}

.tdm-pe-slide-data {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tdm-pe-accent) !important;
    margin-bottom: 8px;
}

.tdm-pe-slide-titulo {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    color: #ffffff !important;
}

.tdm-pe-slide-local {
    display: block;
    font-size: 14px;
    color: #e6e6e6 !important;
}

.tdm-pe-slider-seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.tdm-pe-slider-seta:hover {
    background: var(--tdm-pe-accent);
    color: #1a1a1a;
}

.tdm-pe-slider-anterior { left: 16px; }
.tdm-pe-slider-proximo { right: 16px; }

.tdm-pe-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.tdm-pe-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
}

.tdm-pe-slider-dot-ativo {
    background: var(--tdm-pe-accent);
}

.tdm-pe-slider-vazio {
    background: #f4f4f4;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
}

.tdm-pe-slider-vazio-titulo {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.tdm-pe-slider-vazio-texto {
    font-size: 15px;
    color: #666;
    margin: 0;
}

@media (max-width: 600px) {
    .tdm-pe-slide { aspect-ratio: 4 / 5; min-height: 320px; }
    .tdm-pe-slide-titulo { font-size: 20px; }
    .tdm-pe-slider-seta { width: 36px; height: 36px; font-size: 20px; }
}
