/* home.css — Colégio Franciscano Sant'Anna
   Carregado de forma não-bloqueante após o critical CSS inline.
   Gerado automaticamente — não editar o bloco <style> em home.php
*/

/* ══════════════════════════════════════════════
   2. SOBRE — Apresentação
══════════════════════════════════════════════ */
#about {
    background: var(--white);
    padding: 100px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image-wrap {
    position: relative;
}
.about-image-wrap img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 120px; height: 120px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}
.about-badge strong {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}
.about-badge span { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; }

/* ══════════════════════════════════════════════
   3. NÍVEIS DE ENSINO
══════════════════════════════════════════════ */
#levels {
    background: var(--blue-900);
    padding: 96px 0;
}
.levels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

/* ══════════════════════════════════════════════
   3. NÍVEIS DE ENSINO
══════════════════════════════════════════════ */
#levels {
    background: var(--blue-900);
    padding: 96px 0;
}
.levels-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 48px;
    list-style: none;
}

/* Card: div wrapper — evita conflito com CSS de <a> do tema */
#levels .level-card {
    display: block !important;
    position: relative !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    width: 100% !important;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                box-shadow .35s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}
#levels .level-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.5) !important;
}

/* Link overlay cobre foto (não a barra) */
#levels .level-card-link {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 300px; /* mesma altura que .level-card-photo */
    z-index: 2;
    display: block !important;
}

/* Foto */
#levels .level-card-photo {
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    overflow: hidden !important;
    line-height: 0;
}
#levels .level-card-photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    transition: transform .5s ease;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}
#levels .level-card:hover .level-card-photo img {
    transform: scale(1.04) !important;
}

/* Barra colorida na base */
#levels .level-card-bar {
    display: block !important;
    width: 100% !important;
    padding: 16px 20px 18px !important;
    position: relative !important;
    border-top: 4px solid transparent;
    margin: 0 !important;
    float: none !important;
}
#levels .level-ei  .level-card-bar { background: #1a0f2e !important; border-top-color: #ec4899 !important; }
#levels .level-efi .level-card-bar { background: #0a1f1a !important; border-top-color: #10b981 !important; }
#levels .level-eff .level-card-bar { background: #0a1230 !important; border-top-color: #3b82f6 !important; }
#levels .level-em  .level-card-bar { background: #1e1200 !important; border-top-color: #f59e0b !important; }

/* Palavra-chave (subtítulo) */
#levels .level-word-tag {
    display: block !important;
    font-size: .6rem !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
}
#levels .level-ei  .level-word-tag { color: #f9a8d4 !important; }
#levels .level-efi .level-word-tag { color: #6ee7b7 !important; }
#levels .level-eff .level-word-tag { color: #93c5fd !important; }
#levels .level-em  .level-word-tag { color: #fcd34d !important; }

/* Nome do nível */
#levels .level-card-bar h4 {
    font-family: var(--font-display) !important;
    font-size: 1.05rem !important;
    color: #ffffff !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    background: none !important;
    text-shadow: none !important;
}

/* Ícones sociais */
#levels .level-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    position: relative;
    z-index: 3;
}
#levels .level-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    color: rgba(255,255,255,.6) !important;
    font-size: .75rem !important;
    transition: var(--transition);
    text-decoration: none !important;
    flex-shrink: 0 !important;
}
#levels .level-ei  .level-links a:hover { background: #ec4899 !important; border-color: #ec4899 !important; color: #fff !important; }
#levels .level-efi .level-links a:hover { background: #10b981 !important; border-color: #10b981 !important; color: #fff !important; }
#levels .level-eff .level-links a:hover { background: #3b82f6 !important; border-color: #3b82f6 !important; color: #fff !important; }
#levels .level-em  .level-links a:hover { background: #f59e0b !important; border-color: #f59e0b !important; color: #1a1a1a !important; }

@media (max-width: 900px) {
    .levels-grid { grid-template-columns: 1fr 1fr !important; }
    #levels .level-card-photo { height: 240px !important; }
    #levels .level-card-link  { height: 240px !important; }
}
@media (max-width: 560px) {
    .levels-grid { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════
   4. TOUR VIRTUAL
══════════════════════════════════════════════ */
#tour {
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
#tour::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
}
#tour::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(201,168,76,.05);
}
.tour-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative; z-index: 1;
}
.tour-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.tour-card img {
    width: 100%; height: 280px;
    object-fit: cover;
    transition: transform .5s ease;
}
.tour-card:hover img { transform: scale(1.05); }
.tour-card-label {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,31,68,.85) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}
.tour-card-label span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
}
.tour-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
    opacity: 0;
}
.tour-card:hover .tour-play-btn {
    opacity: 1;
    background: rgba(255,255,255,.9);
    color: var(--blue-700);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ══════════════════════════════════════════════
   5. NOTÍCIAS
══════════════════════════════════════════════ */
#news {
    background: #0b1120;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
/* Subtle dot-grid texture */
#news::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
#news .label-tag { color: var(--gold-lt); }
#news .section-title { color: var(--white); }
#news .divider-line { background: linear-gradient(90deg, var(--gold), transparent); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
    position: relative;
}

/* ── Card base: branco, contraste máximo ── */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                box-shadow .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 32px rgba(0,0,0,.35);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

/* Faixa colorida no topo do card — varia por índice via nth-child */
.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    z-index: 4;
}
.news-card:nth-child(1)::before { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.news-card:nth-child(2)::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.news-card:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* Número badge */
.news-card-num {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 5;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.news-card:nth-child(1) .news-card-num { background: #3b82f6; box-shadow: 0 2px 10px rgba(59,130,246,.6); }
.news-card:nth-child(2) .news-card-num { background: #10b981; box-shadow: 0 2px 10px rgba(16,185,129,.6); }
.news-card:nth-child(3) .news-card-num { background: #f59e0b; box-shadow: 0 2px 10px rgba(245,158,11,.6); }

/* Imagem */
.news-card-img {
    position: relative;
    overflow: hidden;
    height: 210px;
    flex-shrink: 0;
}
.news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    filter: none;
}
.news-card:hover .news-card-img img { transform: scale(1.06); filter: none; }
/* Sem gradiente que escurece — imagem bem visível */
.news-card-img::after { display: none; }

/* Overlay de hover na imagem */
.news-card-img-overlay {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transition);
    background: rgba(10,31,68,.45);
    backdrop-filter: blur(3px);
}
.news-card:hover .news-card-img-overlay { opacity: 1; }
.news-card-img-overlay a {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}
.news-card-img-overlay a:hover { background: var(--white); color: var(--blue-700); transform: scale(1.1); }

/* Body: texto escuro sobre fundo branco */
.news-card-body {
    padding: 22px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.news-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.45;
}
.news-card-body p {
    font-size: .83rem;
    color: #64748b;
    line-height: 1.75;
    flex: 1;
}

/* Rodapé */
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.news-card-footer a.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: .04em;
    transition: var(--transition);
}
.news-card-footer a.read-more:hover { gap: 10px; color: #1d4ed8; }
.news-card-footer .news-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

/* "Mais notícias" card — mantém escuro como contraste proposital */
.news-more-card {
    background: linear-gradient(145deg, #1e3a8a, #0a1f44);
    border: 1px solid rgba(99,130,246,.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 32px;
    min-height: 340px;
    box-shadow: 0 4px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}
.news-more-card::before { display: none; }
.news-more-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(99,130,246,.15);
    border: 1px solid rgba(99,130,246,.35);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: #93c5fd;
}
.news-more-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 8px;
}
.news-more-card p {
    font-size: .83rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   6. APP AGENDA FRANCISCANA
══════════════════════════════════════════════ */
#app-section {
    background: var(--white);
    padding: 96px 0;
}
.app-grid {
    display: grid;
    grid-template-columns: 1fr 480px 1fr;
    gap: 60px;
    align-items: center;
}
.app-features-left, .app-features-right {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.app-feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.app-features-right .app-feature-item { flex-direction: row-reverse; text-align: right; }
.app-feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(37,99,200,.25);
}
.app-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.app-feature-text p {
    font-size: .85rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.app-phone-wrap {
    text-align: center;
    position: relative;
}
.app-phone-wrap img {
    max-width: 320px;
    margin: 0 auto;
    filter: drop-shadow(0 32px 64px rgba(37,99,200,.25));
}
.app-store-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}
.app-store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    transition: var(--transition);
    font-size: .82rem;
}
.app-store-btn:hover { border-color: var(--blue-400); box-shadow: 0 4px 16px rgba(37,99,200,.12); }
.app-store-btn i { font-size: 1.4rem; color: var(--blue-600); }
.app-store-btn span { font-weight: 700; color: var(--gray-900); display: block; font-size: .75rem; }
.app-store-btn em { font-style: normal; color: var(--gray-500); font-size: .7rem; }

/* ══════════════════════════════════════════════
   7. CONTADORES
══════════════════════════════════════════════ */
#counters {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
#counters::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative; z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.counter-item {
    padding: 40px;
    border-right: 1px solid rgba(255,255,255,.08);
}
.counter-item:last-child { border-right: none; }
.counter-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--white);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}
.counter-label {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue-300);
}
.counter-quote {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,.75);
    font-style: italic;
    line-height: 1.6;
    padding: 0 20px;
}

/* ══════════════════════════════════════════════
   8. MÍDIAS DIGITAIS — Stories Cards
══════════════════════════════════════════════ */
#digital-media {
    background: #080e1c;
    padding: 80px 0 80px;
    overflow: hidden;
}
#digital-media .section-header {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 56px;
}
#digital-media .label-tag  { color: var(--gold-lt); }
#digital-media .section-title { color: var(--white); }
#digital-media .divider-line { background: linear-gradient(90deg, var(--gold), transparent); }

/* Grid strip */
.media-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Card — proporção 9:16, bordas arredondadas */
.media-card {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 9 / 16;
    cursor: pointer;
    background: #0f1829;
    border-radius: 20px;
    text-decoration: none !important;
    /* Anel colorido no border via box-shadow — aparece no hover */
    transition: transform .45s cubic-bezier(.4,0,.2,1),
                box-shadow .45s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.media-card:hover { transform: translateY(-8px) scale(1.02); }

/* Cor de anel no hover por card */
.media-card:nth-child(1):hover { box-shadow: 0 0 0 3px #3b82f6, 0 20px 60px rgba(59,130,246,.35); }
.media-card:nth-child(2):hover { box-shadow: 0 0 0 3px #10b981, 0 20px 60px rgba(16,185,129,.35); }
.media-card:nth-child(3):hover { box-shadow: 0 0 0 3px #ec4899, 0 20px 60px rgba(236,72,153,.35); }
.media-card:nth-child(4):hover { box-shadow: 0 0 0 3px #f59e0b, 0 20px 60px rgba(245,158,11,.35); }
.media-card:nth-child(5):hover { box-shadow: 0 0 0 3px #6366f1, 0 20px 60px rgba(99,102,241,.35); }

/* ── Imagem ── */
.media-card img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .8s cubic-bezier(.4,0,.2,1), filter .6s ease;
    filter: brightness(.75) saturate(.9);
    transform-origin: center center;
}
.media-card:hover img {
    transform: scale(1.08);
    filter: brightness(.45) saturate(1.2);
}

/* ── Gradiente base — leitura permanente ── */
.media-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 35%),
        linear-gradient(to top,    rgba(0,0,0,.9)  0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 18px 24px;
    transition: background .45s ease;
}
.media-card:hover .media-card-overlay {
    background:
        linear-gradient(to bottom, rgba(0,0,0,.7) 0%, transparent 40%),
        linear-gradient(to top,    rgba(0,0,0,.95) 0%, transparent 60%);
}

/* ══ TOP HEADER — estilo story ══ */
.media-story-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Anel animado ao redor do ícone */
.media-story-ring {
    position: relative;
    flex-shrink: 0;
    width: 46px; height: 46px;
}
.media-story-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(transparent 0deg, transparent 360deg);
    transition: background .5s ease;
}
.media-card:nth-child(1) .media-story-ring::before { background: conic-gradient(#3b82f6 0deg, #6366f1 360deg); opacity: 0; transition: opacity .4s ease; }
.media-card:nth-child(2) .media-story-ring::before { background: conic-gradient(#10b981 0deg, #06b6d4 360deg); opacity: 0; transition: opacity .4s ease; }
.media-card:nth-child(3) .media-story-ring::before { background: conic-gradient(#f9a8d4 0deg, #ec4899 50%, #a855f7 100%); opacity: 0; transition: opacity .4s ease; }
.media-card:nth-child(4) .media-story-ring::before { background: conic-gradient(#fbbf24 0deg, #f59e0b 360deg); opacity: 0; transition: opacity .4s ease; }
.media-card:nth-child(5) .media-story-ring::before { background: conic-gradient(#818cf8 0deg, #6366f1 360deg); opacity: 0; transition: opacity .4s ease; }
.media-card:hover .media-story-ring::before { opacity: 1; }

/* Ícone interno do anel */
.media-story-icon {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(15,24,41,.85);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.05rem;
    z-index: 1;
    transition: transform .35s ease;
}
.media-card:hover .media-story-icon { transform: scale(1.08); }

/* Nome do canal */
.media-story-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.media-story-name strong {
    font-size: .72rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: .04em;
    line-height: 1.2 !important;
    display: block !important;
}
.media-story-name span {
    font-size: .58rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ══ BADGE CENTRAL — dado da plataforma ══ */
.media-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 40px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: opacity .4s ease, transform .4s ease;
}
.media-card:hover .media-center-badge {
    opacity: 0;
    transform: translate(-50%, -60%);
}
.media-center-badge i {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
}
.media-center-badge span {
    font-size: .68rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    letter-spacing: .05em;
}

/* ══ RODAPÉ — título + CTA ══ */
.media-card-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-card-overlay h4 {
    font-family: var(--font-display);
    font-size: clamp(.82rem, 1vw, 1.05rem);
    color: var(--white);
    line-height: 1.35;
    margin: 0;
    transform: translateY(4px);
    transition: transform .4s ease;
}
.media-card:hover .media-card-overlay h4 { transform: translateY(0); }

/* Tag de descrição curta — visível no hover */
.media-card-desc {
    font-size: .65rem;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease .05s, transform .4s ease .05s;
    display: block;
}
.media-card:hover .media-card-desc { opacity: 1; transform: translateY(0); }

/* Botão CTA */
.media-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 40px;
    padding: 8px 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease .1s, transform .4s ease .1s, background .25s ease;
    align-self: flex-start;
    backdrop-filter: blur(8px);
}
.media-card:hover .media-card-link { opacity: 1; transform: translateY(0); }
.media-card-link:hover { background: rgba(255,255,255,.25) !important; }

/* Cor do botão CTA por card */
.media-card:nth-child(1) .media-card-link { border-color: #3b82f6; }
.media-card:nth-child(2) .media-card-link { border-color: #10b981; }
.media-card:nth-child(3) .media-card-link { border-color: #ec4899; }
.media-card:nth-child(4) .media-card-link { border-color: #f59e0b; }
.media-card:nth-child(5) .media-card-link { border-color: #6366f1; }

/* Número sequencial discreto */
.media-card-num { display: none; }

@media (max-width: 1024px) {
    .media-strip { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
}
@media (max-width: 640px) {
    .media-strip { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
    #digital-media .section-header { padding: 0 20px 40px; }
}

/* ══════════════════════════════════════════════
   9. DEPOIMENTOS
══════════════════════════════════════════════ */
#testimonials {
    background: var(--off-white);
    padding: 96px 0;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: center;
}
.testimonial-author {
    text-align: center;
}
.testimonial-author img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--blue-300);
    box-shadow: 0 0 0 4px rgba(37,99,200,.1);
}
.testimonial-author h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.testimonial-author p { font-size: .8rem; color: var(--gray-500); }
.testimonial-stars {
    color: #f59e0b;
    font-size: .9rem;
    margin-top: 12px;
    display: flex; justify-content: center; gap: 2px;
}
.testimonial-quote i {
    font-size: 2.5rem;
    color: var(--blue-200, #bfdbfe);
    margin-bottom: 12px;
    display: block;
}
.testimonial-quote p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
    font-style: italic;
}
.testi-swiper .swiper-pagination-bullet { background: var(--gray-200); }
.testi-swiper .swiper-pagination-bullet-active { background: var(--blue-500); }

/* ══════════════════════════════════════════════
   10. FOOTER
══════════════════════════════════════════════ */
#footer {
    background: var(--gray-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.footer-top {
    background: linear-gradient(135deg, var(--blue-900), #0d1a36);
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
#footer::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,200,.08) 0%, transparent 70%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}
.footer-brand img { height: 64px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    line-height: 1.75;
    margin-bottom: 28px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    transition: var(--transition);
}
.footer-social a:hover { transform: translateY(-3px); }
.footer-social .fb:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.footer-social .yt:hover  { background: #ff0000; border-color: #ff0000; color: #fff; }
.footer-social .ig:hover  { background: #e1306c; border-color: #e1306c; color: #fff; }

.footer-col h5 {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a::before {
    content: '';
    width: 0; height: 1.5px;
    background: var(--gold);
    transition: width .25s ease;
    flex-shrink: 0;
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-links a:hover::before { width: 14px; }
.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.footer-contact-item i {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(37,99,200,.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue-300);
    font-size: .8rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-contact-item span {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    line-height: 1.55;
}
.footer-bottom {
    padding: 24px 0;
    background: rgba(0,0,0,.2);
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
    list-style: none;
}
.footer-bottom-links a {
    font-size: .78rem;
    color: rgba(255,255,255,.35);
    transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--white); }

/* ══════════════════════════════════════════════
   11. BACK TO TOP
══════════════════════════════════════════════ */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(37,99,200,.45);
    cursor: pointer;
    border: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: var(--transition);
}
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37,99,200,.55);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .about-grid,
    .app-grid { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: 1fr; }
    .app-features-left, .app-features-right { flex-direction: row; flex-wrap: wrap; }
    .app-features-right .app-feature-item { flex-direction: row; text-align: left; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .about-badge { bottom: 12px; right: 12px; }
}
@media (max-width: 768px) {
    .hero-portals { flex-direction: column; position: relative; }
    .portal-card { max-width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
    #hero { height: auto; min-height: 70vh; }
    #hero .swiper { height: 70vh; min-height: 400px; }
    .hero-swiper-btn { display: none; }
    .hero-social { left: 14px; }
    .tour-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr 1fr; }
    .counters-grid { grid-template-columns: 1fr; }
    .counter-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
    .testimonial-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .container-xl { padding: 0 20px; }
}
@media (max-width: 480px) {
    .media-grid { grid-template-columns: 1fr; }
}