/* ========================================
   DESTINO AMAZÔNIA — GALERIA
   destinogaleria.css
   ======================================== */

/* ---- FONTS ---- */
@font-face {
    font-family: 'SaoTorpes';
    src: url('/fonts/SaoTorpes.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

/* ========== NAVBAR ========== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 18px 40px;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.transparent { background: transparent; }
#navbar.scrolled {
    background: #E3E1CE;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    padding: 12px 40px;
}

/* Logo Amazônia Vox: troca ao scroll via CSS */
.nav-img .logo-branco { display: block; }
.nav-img .logo-verde  { display: none;  }
#navbar.scrolled .nav-img .logo-branco { display: none;  }
#navbar.scrolled .nav-img .logo-verde  { display: block; }
.nav-img img { height: 36px; width: auto; }

/* Logo Destino Amazônia (texto) */
.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}
.nav-logo .destino {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 15px;
    letter-spacing: 2px;
    color: white;
    transition: color 0.4s;
}
.nav-logo .amazonia {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    transition: color 0.4s;
}
#navbar.scrolled .nav-logo .destino  { color: #c8521a; }
#navbar.scrolled .nav-logo .amazonia { color: #1a4a3a; }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
    transition: color 0.4s, opacity 0.2s;
    opacity: 0.9;
}
.nav-links a:hover { opacity: 1; }
#navbar.scrolled .nav-links a { color: #1a4a3a; }

/* Hamburger mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: white;
    transition: background 0.4s;
    border-radius: 2px;
}
#navbar.scrolled .nav-hamburger span { background: #1a4a3a; }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
}
.nav-overlay.open { display: block; }

/* ========== HERO ========== */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.04);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.10); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.20) 0%,
            rgba(0,0,0,0.08) 40%,
            rgba(0,0,0,0.35) 100%
    );
}
.hero-center {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 6s ease-in-out infinite;
}
.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.03); }
}

/* ========== CARIMBOS ========== */
.stamp {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    animation: stampFloat 0.8s ease-out forwards;
    opacity: 0;
    cursor: default;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.stamp:hover {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.6));
    transform: var(--base-transform) scale(1.08) !important;
}
@keyframes stampFloat {
    from { opacity: 0; transform: var(--base-transform) scale(0.6); }
    to   { opacity: 1; transform: var(--base-transform) scale(1); }
}
.stamp img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Posições dos carimbos — idênticas ao index */
.stamp-amazonas  { width:210px; left:calc(50% - 420px); top:calc(50% - 220px); --base-transform:rotate(-12deg); transform:var(--base-transform); animation-delay:0.1s;  }
.stamp-acre      { width:120px; left:calc(50% - 200px); top:calc(50% - 260px); --base-transform:rotate(-5deg);  transform:var(--base-transform); animation-delay:0.2s;  }
.stamp-roraima   { width:210px; left:calc(50% + 200px); top:calc(50% - 210px); --base-transform:rotate(8deg);   transform:var(--base-transform); animation-delay:0.3s;  }
.stamp-matogrosso{ width:190px; left:calc(50% - 450px); top:calc(50% - 50px);  --base-transform:rotate(-8deg);  transform:var(--base-transform); animation-delay:0.15s; }
.stamp-tocantins { width:185px; left:calc(50% + 240px); top:calc(50% - 30px);  --base-transform:rotate(5deg);   transform:var(--base-transform); animation-delay:0.25s; }
.stamp-para      { width:110px; left:calc(50% - 240px); top:calc(50% + 130px); --base-transform:rotate(-6deg);  transform:var(--base-transform); animation-delay:0.35s; }
.stamp-rondonia  { width:195px; left:calc(50% - 450px); top:calc(50% + 160px); --base-transform:rotate(-14deg); transform:var(--base-transform); animation-delay:0.4s;  }
.stamp-maranhao  { width:130px; left:calc(50% + 100px); top:calc(50% + 140px); --base-transform:rotate(7deg);   transform:var(--base-transform); animation-delay:0.3s;  }
.stamp-amapa     { width:195px; left:calc(50% + 290px); top:calc(50% + 150px); --base-transform:rotate(12deg);  transform:var(--base-transform); animation-delay:0.45s; }

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-hint::after {
    content: '';
    display: block;
    width: 1px; height: 40px;
    background: rgba(255,255,255,0.5);
    animation: lineGrow 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}
@keyframes lineGrow {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50%       { transform: scaleY(0.6); opacity: 0.9; }
}

/* ========== TÍTULO GALERIA ========== */
.reportagem-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 24px 10px;
}
.reportagem-titulo {
    font-family: 'SaoTorpes', sans-serif;
    font-size: 40px;
    line-height: 1.2;
    color: #E2561E;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 24px;
}
.reportagem-wrapper a {
    color: var(--cor-subtitulo);
    text-decoration: none;
    padding: 0 3px;
}
.reportagem-wrapper a:hover {
    background-color: var(--cor-subtitulo);
    color: white;
    padding: 3px;
    letter-spacing: 1px;
}

/* ========== SEÇÃO GALERIA ========== */
.sectionGaleria {
    background: #E3E1CE;
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Shapes decorativos */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}
.shape--1 { width:400px; height:400px; background:#1E5D62; top:-100px;  left:-100px; }
.shape--2 { width:300px; height:300px; background:#E1561E; bottom:50px; right:-80px; }
.shape--3 { width:200px; height:200px; background:#1E5D62; top:50%;     left:60%;    }

/* ---- MENU FILTRO ---- */
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.menu-button {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 24px;
    border: 2px solid #1E5D62;
    border-radius: 999px;
    background: transparent;
    color: #1E5D62;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.menu-button:hover,
.menu-button.active {
    background: #1E5D62;
    color: #fff;
}

.divisor {
    height: 1px;
    background: rgba(30,93,98,0.15);
    margin-bottom: 32px;
}

/* ---- GRID 4 COLUNAS ---- */
.galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 100px;
}

.imagem-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #d0cfc0;
}
.imagem-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.imagem-container:hover img { transform: scale(1.06); }

.imagem-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30,93,98,0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.imagem-container:hover::after { opacity: 1; }

.imagem-container::before {
    content: '🔍';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 32px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.imagem-container:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.25s ease;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: zoomInModal 0.25s ease;
}
@keyframes zoomInModal {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.close-button {
    position: absolute;
    top: -40px; right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: opacity 0.2s;
}
.close-button:hover { opacity: 0.7; }

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 28px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 10;
}
.modal-nav:hover { background: rgba(255,255,255,0.3); }
.modal-nav.prev  { left: -60px; }
.modal-nav.next  { right: -60px; }

/* ========== RESPONSIVO ========== */

/* Tablet grande */
@media (max-width: 1024px) {
    .stamp-amazonas  { width:148px; left:calc(50% - 290px); top:calc(50% - 160px); }
    .stamp-acre      { width:85px;  left:calc(50% - 140px); top:calc(50% - 200px); }
    .stamp-roraima   { width:148px; left:calc(50% + 140px); top:calc(50% - 155px); }
    .stamp-matogrosso{ width:133px; left:calc(50% - 310px); top:calc(50% - 30px);  }
    .stamp-tocantins { width:130px; left:calc(50% + 165px); top:calc(50% - 20px);  }
    .stamp-para      { width:77px;  left:calc(50% - 170px); top:calc(50% + 100px); }
    .stamp-rondonia  { width:137px; left:calc(50% - 320px); top:calc(50% + 120px); }
    .stamp-maranhao  { width:91px;  left:calc(50% + 70px);  top:calc(50% + 100px); }
    .stamp-amapa     { width:137px; left:calc(50% + 200px); top:calc(50% + 115px); }
    .hero-logo { width: 210px; height: 210px; }
    .galeria { grid-template-columns: repeat(3, 1fr); padding: 0 40px; }
}

/* Tablet */
@media (max-width: 768px) {
    #navbar { justify-content: space-between; padding: 16px 20px; }
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 70vw; height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px 32px;
        gap: 28px;
        background: #E3E1CE;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 200;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { color: #1a4a3a !important; font-size: 22px; }
    .nav-hamburger { display: flex; z-index: 300; }
    .galeria { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 20px; }
    .reportagem-titulo { font-size: 32px; }
    .reportagem-wrapper { padding: 40px 16px 10px; }
    .modal-nav.prev { left: -44px; }
    .modal-nav.next { right: -44px; }
}

/* Mobile */
@media (max-width: 640px) {
    .stamp { display: none; }
    .hero-logo { width: 200px; height: 200px; }
    .galeria { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 8px; }
    .modal-nav { display: none; }
    .sectionGaleria { padding: 24px 0 40px; }
    .reportagem-titulo { font-size: 26px; }
    .reportagem-wrapper { padding: 24px 12px 8px; }
    .menu-button { font-size: 13px; padding: 6px 16px; }
    .menu { gap: 8px; }
}

/* Mobile pequeno */
@media (max-width: 380px) {
    .galeria { grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 4px; }
    .reportagem-titulo { font-size: 22px; }
}