/* ============================================================
   A TV Rio Sul (atvriosul.php) — padrão Globo Ads (nov/2026)
   ------------------------------------------------------------
   Folha só desta página. A antiga css/imagens-atv/atv.css continua
   existindo porque o planejamidia.php (e o editor do PlanejaMídia)
   ainda a carregam; mexer nela quebraria aquelas telas.

   Modelo: a página "A Globo" do globoads.globo.com — banner com a
   arte em largura total, foto + texto, números com o traço em
   degradê, vídeo centralizado, depoimentos e a chamada final em
   arte arredondada com cartão branco. Fundo branco do topo ao
   rodapé; só tokens de css/base/tokens.css.
   ============================================================ */

body {
    font-family: var(--tvrs-fonte);
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: var(--tvrs-tracking-corpo);
    color: var(--tvrs-texto);
    background: #ffffff;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--tvrs-texto);
}

.atv-secao {
    padding: 96px 0 48px;
}

.atv-cabecalho {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

/* ===== BANNER — arte inteira, texto à esquerda alinhado ao container ===== */
.atv-hero {
    position: relative;
    overflow: hidden;
    background: var(--tvrs-escuro);
}

.atv-hero__arte {
    display: block;
    width: 100%;
    height: clamp(400px, 34.75vw, 560px);
    object-fit: cover;
    object-position: right center;
}

/* Véu só do lado do texto, que some em 62% da largura */
.atv-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.32) 24%, rgba(0, 0, 0, 0.1) 44%, rgba(0, 0, 0, 0) 62%);
}

.atv-hero__conteudo {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.atv-hero__conteudo > .container {
    width: 100%;
}

.atv-hero__texto {
    max-width: 480px;
}

.atv-hero__texto > * {
    animation: atvTextoEntra 0.7s var(--tvrs-ease) both;
}

.atv-hero__texto > *:nth-child(2) { animation-delay: 0.1s; }
.atv-hero__texto > *:nth-child(3) { animation-delay: 0.2s; }

@keyframes atvTextoEntra {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* Trilha "Sobre nós > A TV Rio Sul", como no topo das páginas do Globo Ads */
.atv-trilha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 20px;
}

.atv-trilha li + li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
}

.atv-trilha a {
    color: inherit;
    text-decoration: none;
}

.atv-trilha a:hover {
    text-decoration: underline;
}

.atv-hero__titulo {
    margin: 0 0 16px;
    font-family: var(--tvrs-fonte-titulo);
    font-size: var(--tvrs-fs-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.25);
    text-wrap: balance;
}

.atv-hero__subtitulo {
    margin: 0;
    max-width: 44ch;
    color: #ffffff;
    font-size: 1rem;
    line-height: 24px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

/* ===== SOBRE — foto arredondada + texto ===== */
.atv-sobre {
    display: grid;
    grid-template-columns: minmax(0, 456px) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.atv-sobre__foto {
    border-radius: var(--tvrs-raio-lg);
    overflow: hidden;
    background: var(--tvrs-fundo);
}

.atv-sobre__foto img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.7s var(--tvrs-ease);
}

.atv-sobre__foto:hover img {
    transform: scale(1.04);
}

.atv-sobre__texto .ads-selo {
    margin-bottom: 16px;
}

.atv-sobre__texto p {
    max-width: 46ch;
    margin: 16px 0 0;
    color: var(--tvrs-texto-2);
    font-size: 1rem;
    line-height: 24px;
}

.atv-sobre__texto .btn-ads {
    margin-top: 32px;
}

/* ===== NÚMEROS — valor grande, traço em degradê, rótulo ===== */
.atv-numeros {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.atv-numero .ads-numero {
    display: block;
    padding-bottom: 12px;
    white-space: nowrap;
}

.atv-numero__sufixo {
    font-size: 0.6em;
    letter-spacing: 0;
}

/* o traço do Globo Ads ("+169Milhões") */
.atv-numero__traco {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--tvrs-grad-faixa);
    transform-origin: left;
}

html.tem-anima .atv-numeros .atv-numero__traco {
    transform: scaleX(0);
    transition: transform 1.2s var(--tvrs-ease) 0.2s;
}

html.tem-anima .atv-numeros.esta-visivel .atv-numero__traco {
    transform: none;
}

.atv-numero__rotulo {
    display: block;
    margin-top: 12px;
    color: var(--tvrs-texto-suave);
    font-size: 0.875rem;
    line-height: 20px;
}

/* ===== AUDIÊNCIA — barras + número de destaque ===== */
.atv-audiencia {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding: 48px;
    border: 1px solid var(--tvrs-borda-suave);
    border-radius: var(--tvrs-raio-lg);
    background: #ffffff;
}

.audiencia-grafico {
    display: grid;
    gap: 16px;
}

.audiencia-linha {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 16px;
}

.audiencia-marca {
    color: var(--tvrs-texto-suave);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.audiencia-linha.is-destaque .audiencia-marca {
    color: var(--tvrs-texto);
    font-weight: 600;
}

.audiencia-trilha {
    display: flex;
    align-items: center;
    height: 24px;
    border-radius: var(--tvrs-raio-sm);
    background: var(--tvrs-fundo);
    overflow: hidden;
}

.audiencia-linha.is-destaque .audiencia-trilha {
    height: 40px;
}

.audiencia-barra {
    display: block;
    width: var(--valor);
    height: 100%;
    border-radius: var(--tvrs-raio-sm);
    background: var(--tvrs-borda);
}

/* Cresce quando o cartão entra na tela (classe do js/anima.js).
   Por transform, não por width, para não recalcular o layout. */
html.tem-anima .atv-audiencia .audiencia-barra {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.2s var(--tvrs-ease) 0.3s;
}

html.tem-anima .atv-audiencia.esta-visivel .audiencia-barra {
    transform: none;
}

.audiencia-linha.is-destaque .audiencia-barra {
    background: var(--tvrs-grad-faixa);
}

.audiencia-valor {
    color: var(--tvrs-texto-2);
    font-size: 1rem;
    font-weight: 600;
    line-height: 24px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.audiencia-resumo .ads-numero {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.audiencia-texto {
    margin: 0;
    color: var(--tvrs-texto-2);
    font-size: 1rem;
    line-height: 24px;
}

.audiencia-texto strong {
    color: var(--tvrs-texto);
    font-weight: 600;
}

/* ===== VÍDEO ===== */
.atv-video {
    max-width: 800px;
    margin: 0 auto;
}

.atv-video__quadro {
    border-radius: var(--tvrs-raio-md);
    overflow: hidden;
    background: var(--tvrs-escuro);
}

.atv-video__quadro iframe {
    border: 0;
}

.atv-video__legenda {
    margin-top: 12px;
    color: var(--tvrs-texto-apagado);
    font-size: 0.75rem;
    line-height: 16px;
    text-align: center;
}

/* ===== PORTAIS GLOBO ===== */
.atv-portais__logos {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto 40px;
}

.atv-portais__texto {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.atv-portais__texto p {
    margin: 0 0 16px;
    color: var(--tvrs-texto-2);
    font-size: 1rem;
    line-height: 24px;
}

.atv-portais__texto strong {
    color: var(--tvrs-texto);
    font-weight: 600;
}

/* ===== DEPOIMENTOS — cartões brancos de borda fina ===== */
.atv-depoimentos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.atv-depoimento {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 32px;
    border: 1px solid var(--tvrs-borda-suave);
    border-radius: var(--tvrs-raio-lg);
    background: #ffffff;
}

.atv-depoimento__logo {
    display: block;
    width: auto;
    max-width: 160px;
    height: 56px;
    margin-bottom: 24px;
    object-fit: contain;
    object-position: left center;
}

.atv-depoimento blockquote {
    position: relative;
    flex: 1;
    margin: 0 0 24px;
    padding-top: 32px;
    color: var(--tvrs-texto-2);
    font-size: 1rem;
    font-style: italic;
    line-height: 24px;
}

/* aspas grandes no degradê, como no bloco de citação do Globo Ads */
.atv-depoimento blockquote::before {
    content: "\201C";
    position: absolute;
    top: -8px;
    left: -2px;
    font-family: var(--tvrs-fonte-titulo);
    font-size: 4rem;
    font-style: normal;
    line-height: 1;
    background: var(--tvrs-grad-marca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.atv-depoimento blockquote p {
    margin: 0;
}

.atv-depoimento figcaption {
    padding-top: 16px;
    border-top: 1px solid var(--tvrs-linha);
}

.atv-depoimento__nome {
    display: block;
    color: var(--tvrs-texto);
    font-size: 1rem;
    font-weight: 600;
    line-height: 24px;
}

.atv-depoimento__cargo {
    display: block;
    color: var(--tvrs-texto-apagado);
    font-size: 0.875rem;
    line-height: 20px;
}

/* ===== CHAMADA FINAL — arte arredondada, cartão branco ao centro ===== */
.atv-cta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 156px;
    border-radius: var(--tvrs-raio-lg);
    background: #2b3bff url('../imagens/negtv.jpg') center / cover no-repeat;
}

.atv-cta-cartao {
    width: 100%;
    padding: 40px 32px 32px;
    border-radius: var(--tvrs-raio-md);
    background: #ffffff;
    text-align: center;
}

.atv-cta-cartao .ads-titulo {
    margin-bottom: 16px;
}

.atv-cta-cartao p {
    max-width: 52ch;
    margin: 0 auto 24px;
    color: var(--tvrs-texto-2);
    font-size: 1rem;
    line-height: 24px;
}

.atv-cta-cartao strong {
    color: var(--tvrs-texto);
    font-weight: 600;
}

/* ===== Menos movimento: só esmaece ===== */
@media (prefers-reduced-motion: reduce) {
    .atv-hero__texto > * {
        animation: none;
    }

    .atv-sobre__foto img {
        transition: none;
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1199.98px) {
    .atv-cta-banner {
        padding: 56px 64px;
    }

    .atv-sobre {
        gap: 48px;
    }
}

/* Fora do desktop o banner empilha: a arte inteira em cima, sem corte,
   e o texto num painel com as cores da própria peça logo abaixo. */
@media (max-width: 991.98px) {
    .atv-hero__arte {
        height: auto;
        object-position: center;
    }

    .atv-hero::after {
        display: none;
    }

    .atv-hero__conteudo {
        position: static;
        display: block;
        padding: 40px 0;
        background: linear-gradient(120deg, #c9351f, #9c1f74 55%, #3d1fc4);
    }

    .atv-hero__texto {
        max-width: none;
    }

    .atv-hero__titulo,
    .atv-hero__subtitulo {
        text-shadow: none;
    }

    .atv-sobre {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .atv-sobre__foto {
        max-width: 456px;
    }

    .atv-numeros {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .atv-audiencia {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px;
    }
}

@media (max-width: 767.98px) {
    .atv-secao {
        padding: 48px 0 16px;
    }

    .atv-hero__conteudo {
        padding: 32px 0;
    }

    .atv-cabecalho {
        margin-bottom: 32px;
    }

    .atv-audiencia {
        padding: 24px 16px;
    }

    .audiencia-linha {
        grid-template-columns: 88px minmax(0, 1fr) 40px;
        gap: 12px;
    }

    .audiencia-marca {
        font-size: 0.75rem;
    }

    .atv-depoimentos {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .atv-depoimento {
        padding: 24px;
    }

    .atv-cta-banner {
        padding: 24px 16px;
        border-radius: var(--tvrs-raio-md);
    }

    .atv-cta-cartao {
        padding: 32px 20px 24px;
    }
}
