/* Leme Notícias — estrutura do site antigo (Bootstrap 2 + stylesheet.css), com
   paleta "azul renovado" (2026): azul do logo mais profundo + azul vivo de destaque.
   Fluido, responsivo e com fontes maiores. Sem build. */

:root {
    --navy: #0a1f5c;
    --navy-hover: #16307d;
    --blue-line: #2563eb;
    --gray-nav: #eef2f8;
    --gray-nav-hover: #dde5f2;
    --text: #1f2937;
    --text-soft: #6b7280;
    --title: #0f172a;
    --link: #1d4ed8;
    --border: #e5e7eb;
    --bg: #f6f8fb;
    --radius: 8px;
    --max: 1200px;
    --gap: 24px;
    --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 var(--font);
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.5px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

.page { max-width: var(--max); margin: 0 auto; padding: 0 16px; background: #fff; box-shadow: 0 0 0 1px #edf0f5; }

/* Header ---------------------------------------------------------------- */
.site-header { margin: 10px 0; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo img { display: block; width: 300px; }
.banner-topo-area { flex: 1 1 468px; max-width: 728px; text-align: right; }
.banner-topo-area .banner img { display: inline-block; }

.nav-toggle { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: -0.5px; font-size: 15px; }
.site-nav a:hover, .site-nav a:focus { text-decoration: none; }

.nav1 { display: flex; align-items: center; justify-content: space-between; background: var(--navy); margin-top: 10px; min-height: 48px; gap: 16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.nav1 a { color: #fff; padding: 0 12px; line-height: 48px; }
.nav1 a:hover, .nav1 a.active { background: var(--navy-hover); }

.search { display: flex; align-items: center; gap: 4px; padding: 6px 10px; }
.search input {
    width: 220px; padding: 6px 14px; border: 1px solid transparent; border-radius: 16px;
    font: inherit; font-size: 15px;
}
.search button { background: none; border: 0; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }

.nav2 {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--gray-nav); border-radius: 0 0 var(--radius) var(--radius); padding-right: 12px; overflow: hidden;
}
.nav2 ul { gap: 1px; }
.nav2 a { color: var(--navy); padding: 0 10px; line-height: 32px; }
.nav2 a:hover, .nav2 a.active { background: var(--gray-nav-hover); }
.today {
    font-size: 12px; text-transform: uppercase; letter-spacing: -0.3px; color: var(--text-soft);
    padding-left: 24px; background: url(/images/bg_clock.jpg) no-repeat left center;
}

/* Layout ----------------------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); margin-top: 16px; }
.content { min-width: 0; }

/* Slider ----------------------------------------------------------------- */
.slider { position: relative; overflow: hidden; background: #000; margin-bottom: 16px; aspect-ratio: 620 / 400; border-radius: 10px; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity .6s ease; visibility: hidden; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide .caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 16px;
    background: linear-gradient(transparent, rgba(5, 15, 45, .9) 45%); color: #fff;
}
.slide .caption strong { display: block; font-size: 22px; line-height: 1.25; }
.slide .caption span { display: block; font-size: 15px; margin-top: 4px; color: #ddd; }
.slide:hover { text-decoration: none; }
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid #fff;
    background: rgba(10, 31, 92, .55); cursor: pointer;
}
/* Seta desenhada em CSS: o glifo de texto nunca fica centralizado. */
.slider-prev::before, .slider-next::before {
    content: ""; width: 11px; height: 11px;
    border-left: 3px solid #fff; border-bottom: 3px solid #fff;
}
.slider-prev::before { transform: translateX(2px) rotate(45deg); }
.slider-next::before { transform: translateX(-2px) rotate(-135deg); }
.slider-prev:hover, .slider-next:hover { background: rgba(10, 31, 92, .85); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.slider-dots button.is-active { background: #fff; }

/* Seções da home ---------------------------------------------------------- */
.section {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
    padding: 14px 0; color: var(--text-soft); position: relative;
}
.section::before {
    content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 4px;
    background: var(--blue-line); border-radius: 2px;
}
.news-card h2 { margin: 4px 0 0; font-size: 22px; }
.news-card h2 a { color: var(--title); }
.news-card .meta { font-size: 14px; color: var(--text-soft); }
.news-card .meta a { font-weight: 700; color: var(--blue-line); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.news-card h2 a:hover, .news-item h3 a:hover { color: var(--blue-line); text-decoration: none; }
.news-card .thumb { display: block; margin-bottom: 8px; }
.news-card .thumb img { width: 100%; aspect-ratio: 300 / 170; object-fit: cover; display: block; border-radius: var(--radius); }
.news-card .lide { margin: 8px 0 0; }

/* Borda interna azul na foto ao passar o mouse no card (cards da home/destaques e listas). */
.news-card .thumb, .news-item .thumb { position: relative; border-radius: var(--radius); overflow: hidden; }
.news-item .thumb { border-radius: 6px; align-self: flex-start; }
.news-card .thumb::after, .news-item .thumb::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 4px var(--blue-line); opacity: 0; transition: opacity .2s ease;
}
.news-card:hover .thumb::after, .news-item:hover .thumb::after,
.news-card .thumb:focus-visible::after, .news-item .thumb:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .news-card .thumb::after, .news-item .thumb::after { transition: none; }
}

/* Sidebar ---------------------------------------------------------------- */
.sidebar { min-width: 0; }
.banners-laterais { list-style: none; margin: 0; padding: 0; }
.banners-laterais li { margin-bottom: 8px; }
.banner img { display: block; margin: 0 auto; }
.ad { margin-bottom: 12px; }
.ad-topo { max-height: 100px; overflow: hidden; }
.likebox { margin: 12px 0; overflow: hidden; }

/* Páginas internas -------------------------------------------------------- */
h1.page-title { color: var(--navy); border-bottom: 1px solid var(--navy); margin: 0 0 12px; padding-bottom: 6px; font-size: 30px; }
.subtitle { border-top: 1px solid var(--navy); border-bottom: 1px dotted var(--border); margin: 24px 0 8px; }
.subtitle h2 { margin: 10px 0; font-size: 22px; color: #000; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dotted var(--border); }
.news-item .thumb { flex: 0 0 96px; }
.news-item .thumb img { width: 96px; height: 96px; object-fit: cover; display: block; border-radius: 6px; }
.news-item .meta { font-size: 14px; color: var(--text-soft); }
.news-item h3 { margin: 2px 0 0; font-size: 19px; }
.news-item h3 a { color: var(--title); }
.news-item p { margin: 4px 0 0; color: var(--text-soft); font-size: 16px; }

.destaques { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: 8px; }

.pagination { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 20px 0; }
.pagination a, .pagination span {
    display: block; min-width: 40px; padding: 6px 12px; text-align: center;
    border: 1px solid #ddd; color: var(--link);
}
.pagination .current span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a:hover { background: #f2f2f2; text-decoration: none; }

.alert { padding: 12px 16px; border: 1px solid #fbeed5; background: #fcf8e3; color: #8a6d3b; margin: 12px 0; }
.alert-error { background: #f2dede; border-color: #eed3d7; color: #b94a48; }
.alert-success { background: #dff0d8; border-color: #d6e9c6; color: #468847; }

/* Notícia ---------------------------------------------------------------- */
.article h1 { color: var(--navy); border-bottom: 1px dotted var(--navy); margin: 0 0 6px; padding-bottom: 6px; font-size: 32px; }
.article .info { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; color: var(--text-soft); }
.article .lide { font-size: 19px; color: #555; margin: 0 0 16px; font-weight: 500; }
.article .body { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.article .body img { height: auto !important; }
/* O HTML antigo traz fonte fixa inline (Arial 12–14px); o tamanho do site prevalece. */
.article .body [style], .article .body font {
    font-size: inherit !important; font-family: inherit !important; line-height: inherit !important;
}
.article .body p { margin: 0 0 1em; }
.article .body iframe, .video iframe { max-width: 100%; }
.article .body table { max-width: 100%; display: block; overflow-x: auto; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a { padding: 4px 12px; border-radius: 4px; color: #fff; font-size: 14px; font-weight: 700; }
.share .fb { background: #1877f2; }
.share .x { background: #000; }
.share .wa { background: #1fa855; }
.share a:hover { opacity: .85; text-decoration: none; }
.block { border-top: 1px dotted var(--navy); margin-top: 24px; padding-top: 8px; }
.block > h2 { color: var(--navy); font-size: 22px; margin: 0 0 10px; }
.video { position: relative; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border: 1px solid #ddd; padding: 4px; }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption {
    font-size: 13px; line-height: 1.3; color: var(--text-soft); margin-top: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 92vw; max-height: 82vh; display: block; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: 8px 0 0; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
    position: fixed; background: rgba(0, 0, 0, .5); color: #fff; border: 0; font-size: 34px; cursor: pointer; width: 48px; height: 48px;
}
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 45%; }
.lightbox .lb-next { right: 10px; top: 45%; }

/* Formulários ------------------------------------------------------------- */
.form { max-width: 640px; }
.form .field { margin-bottom: 14px; }
.form label { display: block; font-weight: 700; margin-bottom: 4px; }
.form label .opt { font-weight: 400; color: var(--text-soft); }
.form input, .form textarea {
    width: 100%; padding: 8px 10px; font: inherit; border: 1px solid #bbb; border-radius: 4px;
}
.form textarea { min-height: 160px; }
.form .hp { position: absolute; left: -9999px; }
.btn { background: var(--navy); color: #fff; border: 0; padding: 10px 22px; font: inherit; font-weight: 700; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--navy-hover); }
.form-msg:empty { display: none; }

.texto { font-size: 18px; line-height: 1.7; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    background: var(--navy); margin: 24px 0 16px; padding: 10px 16px; min-height: 56px; color: #fff; border-radius: var(--radius);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: #fff; text-transform: uppercase; font-size: 15px; }
.footer-copy { font-size: 13px; opacity: .8; }

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 960px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
    .banner-topo-area { flex-basis: 100%; text-align: center; max-width: none; }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 14px;
        background: var(--navy); color: #fff; border: 0; font: inherit; font-weight: 700; text-transform: uppercase; cursor: pointer;
    }
    .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
        display: block; width: 20px; height: 2px; background: #fff; position: relative;
    }
    .nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-icon::before { top: -6px; }
    .nav-toggle-icon::after { top: 6px; }

    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav1, .nav2 { flex-direction: column; align-items: stretch; margin-top: 0; }
    .site-nav ul { flex-direction: column; }
    .nav1 a, .nav2 a { line-height: 44px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
    .nav2 a { border-bottom-color: #fff; }
    .search { order: -1; padding: 10px; }
    .search input { flex: 1; width: auto; }
    .today { display: none; }

    .logo img { width: 240px; }
    .section, .destaques { grid-template-columns: 1fr; }
    .slide .caption strong { font-size: 18px; }
    .slide .caption span { display: none; }
    .article h1 { font-size: 26px; }
    h1.page-title { font-size: 26px; }
    .site-footer { flex-direction: column; align-items: flex-start; }
}
