
* {
    box-sizing: border-box;
}

:root {
    --primary: #153c66;
    --gold: #e6bc58;
    --ink: #202b36;
    --muted: #677481;
    --line: #e4e8ed;
    --soft: #f5f8fb;
}

body {
    margin: 0;
    font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
.btn {
    cursor: pointer;
    background: var(--primary);
    color: white;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 22px;
    display: inline-block;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

.btn.secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--line);
}

header {
    border-bottom: 1px solid var(--line);
}

.bar,
.wrap {
    max-width: 1080px;
    margin: auto;
    padding: 0 24px;
    width: 100%;
}

.bar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

header .bar nav {
    margin-left: auto;
    justify-content: flex-end;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.brand img {
    width: 34px;
}

nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
}

main {
    flex: 1;
}

.home {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 65px 20px;
}

.home .logo {
    width: 82px;
}

.home h1 {
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -2px;
    margin: 15px 0 0;
    color: var(--primary);
    line-height: 1.15;
}

.home p {
    color: var(--muted);
    margin: 12px 0 30px;
}

.search {
    width: min(100%, 650px);
    position: relative;
}

.searchline {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d9dfe6;
    border-radius: 32px;
    padding: 7px 8px 7px 20px;
    box-shadow: 0 4px 18px #153c6609;
}

.searchline:focus-within {
    border-color: var(--primary);
}

.searchline input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    background: transparent;
}

.searchline button {
    border-radius: 25px;
}

.results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    z-index: 4;
    text-align: left;
    box-shadow: 0 8px 24px #153c6617;
    overflow: hidden;
}

.results:empty {
    display: none;
}

.results button {
    display: block;
    width: 100%;
    text-align: left;
    background: white;
    color: var(--ink);
    border-radius: 0;
    font-weight: 400;
}

.results button:hover,
.results button:focus {
    background: var(--soft);
}

.quick {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.quick a,
.tag {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 14px;
    color: var(--muted);
}

.hero {
    background: linear-gradient(110deg, #eaf0f7, #fff);
    padding: 42px 0;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
}

h1,
h2,
h3 {
    line-height: 1.25;
    letter-spacing: -.5px;
}

h1 {
    font-size: 40px;
    margin: 8px 0;
}

h2 {
    font-size: 24px;
    margin-top: 32px;
}

h3 {
    font-size: 19px;
}

.hero p,
.muted {
    color: var(--muted);
}

.content {
    padding-top: 32px;
    padding-bottom: 55px;
}

.crumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
}

.tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.tabs a {
    padding: 10px 0;
}

.tabs .active {
    border-bottom: 3px solid var(--primary);
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.tile {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    background: white;
}

.tile h3 {
    margin: 8px 0;
}

.tile p {
    color: var(--muted);
}

.symbol {
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    background: var(--soft);
    border-radius: 8px;
}

.symbol img {
    max-width: 150px;
    max-height: 105px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.facts div {
    background: white;
    padding: 16px;
}

.facts small {
    display: block;
    color: var(--muted);
}

.ad {
    border: 1px dashed #d8dfe6;
    color: #88939e;
    text-align: center;
    font-size: 11px;
    letter-spacing: 1.5px;
    min-height: 82px;
    display: grid;
    place-items: center;
    margin: 32px 0;
}

.article {
    max-width: 760px;
}

.detail {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: start;
}

.detail .symbol {
    min-height: 250px;
}

.detail .symbol img {
    max-width: 90%;
    max-height: 240px;
}

.notice {
    background: var(--soft);
    padding: 14px 18px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
}

label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
}

input:not(.searchline input),
textarea,
select {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
}

/* RODAPÉ */

footer {
    background: #f3f6f9;
    border-top: 1px solid #d8dfe6;
    width: 100%;
}

footer .bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 25px;
    padding-bottom: 25px;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

footer .copyright {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #88939e;
}

@media (max-width: 650px) {
    .bar {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 10px;
    }

	header .bar nav {
		margin-left: auto;
		align-self: flex-end;
		justify-content: flex-end;
	}

    nav {
        gap: 16px;
    }

    .detail {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 32px;
    }

    .home {
        min-height: 58vh;
    }

    .searchline button {
        padding: 9px 14px;
    }
}

[hidden] {
    display: none !important;
}

.results {
    max-height: 320px;
    overflow: auto;
}

/* ========================================
   P4.ECO
======================================== */

.p4eco-box {
    margin: 35px 0;
    padding: 28px;
    border: 1px solid #d1e5d6;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #f0f8f2,
        #ffffff
    );
}

.p4eco-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.p4eco-brand img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.p4eco-brand strong {
    display: block;
    font-size: 24px;
    color: #237a43;
}

.p4eco-brand small {
    display: block;
    font-size: 12px;
    color: #64746a;
}

.p4eco-box h2 {
    color: #237a43;
    margin: 0 0 15px;
}

.p4eco-box p {
    color: #46594b;
    line-height: 1.7;
}

.p4eco-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.p4eco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    background: #237a43;
    border: 1px solid #237a43;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.p4eco-secondary {
    background: transparent;
    color: #237a43;
}

.p4eco-btn:hover {
    background: #195d32;
    color: #fff;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.facts {
    margin: 25px 0;
}

.article {
    margin-bottom: 25px;
}




/* ========================================
   CARROSSEL PARA VISITAR
======================================== */

.visit-carousel {
    width: 100%;
    margin-bottom: 25px;
}

.carousel-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f3f5;
    touch-action: pan-y;
}

.carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    user-select: none;
}

/* SETAS DE NAVEGAÇÃO */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;

    background: rgba(0,0,0,.45);
    color: #fff;

    font-size: 17px;
    cursor: pointer;
    transition: background .2s ease;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,.8);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

/* CONTADOR */

.carousel-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;

    padding: 5px 12px;
    border-radius: 20px;

    background: rgba(0,0,0,.55);
    color: #fff;

    font-size: 12px;
}

/* BOTÃO AMPLIAR */

.carousel-expand {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;
    margin: 0;
    box-sizing: border-box;

    border: 0;
    border-radius: 6px;

    background: rgba(0,0,0,.55);
    color: #fff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.carousel-expand:hover {
    background: rgba(0,0,0,.8);
}

/* LEGENDA */

.carousel-caption {
    padding: 12px 5px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

/* MINIATURAS */

.carousel-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 0;
    scrollbar-width: thin;
}

.carousel-thumb {
    flex: 0 0 calc((100% - 24px) / 4);
    min-width: 0;
    aspect-ratio: 4 / 3;

    padding: 3px;
    border: 2px solid transparent;
    border-radius: 8px;

    background: transparent;
    overflow: hidden;
    cursor: pointer;

    opacity: .65;
    transition: all .2s ease;
}

.carousel-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.carousel-thumb:hover {
    opacity: 1;
}

.carousel-thumb.active {
    opacity: 1;
    border-color: var(--primary, #153C66);
}

/* CRÉDITOS */

.photo-credit {
    margin: 10px 0 15px;
    font-size: 11px;
    color: #6b7280;
}

/* AMPLIAÇÃO DA FOTOGRAFIA */

.carousel-lightbox {
    position: fixed;
    inset: 0;

    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;

    padding: 50px;
    margin: 0;
    border: 0;

    background: rgba(0,0,0,.95);
    box-sizing: border-box;
}

.carousel-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-lightbox::backdrop {
    background: rgba(0,0,0,.95);
}

.carousel-lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;

    border: 0;
    background: transparent;
    color: #fff;

    font-size: 38px;
    cursor: pointer;
}

/* ACESSIBILIDADE */

.carousel-thumb:focus-visible,
.carousel-arrow:focus-visible,
.carousel-expand:focus-visible {
    outline: 2px solid var(--primary, #153C66);
    outline-offset: 3px;
}

/* RESPONSIVIDADE */

@media (max-width: 600px) {

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .carousel-prev {
        left: 6px;
    }

    .carousel-next {
        right: 6px;
    }

    .carousel-thumb {
        padding: 2px;
    }

    .carousel-lightbox {
        padding: 40px 35px;
    }

}

/* CRÉDITOS E RECONHECIMENTO */

.source-credits {
    border: 1px solid #d8dfe6;
    border-left: 3px solid var(--primary, #153C66);
    border-radius: 8px;
    background: #f8f9fb;

    width: 100%;
    min-height: 82px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 12px 20px;
    margin: 32px 0;
}

.source-credits h3 {
    margin: 0 0 5px;
    color: var(--primary, #153C66);
    font-size: 13px;
    font-weight: 600;
}

.source-credits p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}





/* ========================================
   COMPARTILHAMENTO
======================================== */

.share-dialog {
    width: min(420px, calc(100% - 32px));
    max-width: 420px;
    box-sizing: border-box;
    padding: 25px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 14px;
    background: #fff;
    color: #374151;
    box-shadow: 0 15px 60px rgba(0,0,0,.15);
    margin: auto;
}

.share-dialog::backdrop {
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
}

.share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.share-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary);
}

.share-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.share-dialog p {
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 25px;
}

/* REDES SOCIAIS */

.share-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 10px;
    margin: 20px 0 30px;
}

.share-options button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0;
    border: 0;
    background: transparent;
    color: #374151;

    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    color: white;
    font-size: 22px;
    font-weight: 700;

    transition: transform .2s ease;
}

.share-options button:hover .share-icon {
    transform: scale(1.10);
}

.share-icon.whatsapp { background: #25d366; }
.share-icon.facebook { background: #1877f2; }
.share-icon.telegram { background: #229ed9; }
.share-icon.twitter  { background: #171717; }
.share-icon.linkedin { background: #0a66c2; }
.share-icon.email    { background: #6b7280; }

/* COPIAR LINK */

.share-copy {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.share-copy input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 12px;
}

.share-copy .btn {
    padding: 10px 15px;
    font-size: 12px;
    flex-shrink: 0;
}