/* =====================================================
   HERO PÁGINAS INTERNAS, hero-nh
   Referência: layoutInterno.jpg
   Altura: 220px desktop | proporcional no mobile
   Link apenas nas páginas internas, nunca na index
   ===================================================== */

/* ── ESTRUTURA BASE ── */
.hero-nh {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(
        to right,
        #0f2d52 0%,
        #1a3d6b 30%,
        #2c5d8f 55%,
        #1a3d6b 80%,
        #0f2d52 100%
    );
    overflow: visible;
}

.hero-nh .nh-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-nh .nh-inner p {
color:rgba(2, 2, 2, 0.5);
}

/* ── LOGO ── */
.hero-nh .marca {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    width: 260px;
    z-index: 10;
    background: linear-gradient(
        to right,
        rgba(15, 45, 82, 1)   0%,
        rgba(15, 45, 82, 1)  65%,
        rgba(15, 45, 82, 0) 100%
    );
    padding: 15px 60px 15px 0;
}

.hero-nh .marca img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── CARROSSEL DE ÍCONES ── */
.hero-nh .cultural-strip {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 100px);
    max-width: 1700px;
    height: 180px;
    overflow: hidden;
    z-index: 9;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
}

.hero-nh .cultural-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: culturalScroll 60s linear infinite;
    will-change: transform;
}

.hero-nh .cultural-track img {
    height: 160px;
    opacity: 0.88;
    filter: drop-shadow(0 4px 6px rgba(0, 20, 50, 0.5));
    transition: transform 0.3s ease;
}

.hero-nh .cultural-strip:hover .cultural-track {
    animation-play-state: paused;
}

/* ── ONDA ── */
.hero-nh .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42px;
    background-image: url('../images/interface3rdp.png');
    background-repeat: repeat-x;
    background-position: 0 bottom;
    background-size: auto 100%;
    opacity: 0.95;
    z-index: 8;
    animation: waveSentidoInverso 20s linear infinite;
}

.hero-nh .wave2,
.hero-nh .wave3 { display: none; }

/* ── NAV PÁGINAS INTERNAS ── */
body:not(.homepage) #nav {
    background: linear-gradient(
        90deg,
        rgba(6, 30, 60, 0.97),
        rgba(10, 50, 90, 0.97)
    );
}

body:not(.homepage) #nav > ul > li.active {
    border-color: transparent;
}

/* Faixa do nav no mobile */
@media (max-width: 760px) {
    .hero-nh::before {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 48px;
        background: rgba(6, 30, 60, 0.97);
        z-index: 20;
    }
}

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

@media (max-width: 1440px) {
    .hero-nh                        { height: 250px; }
    .hero-nh .marca                 { width: 240px; left: 30px; }
    .hero-nh .cultural-strip        { height: 160px; bottom: 38px; }
    .hero-nh .cultural-track img    { height: 120px; width: auto; }
    .hero-nh .wave                  { height: 38px; }
}

@media (max-width: 1024px) {
    .hero-nh                        { height: 220px; }
    .hero-nh .marca                 { width: 200px; left: 20px; padding: 15px 40px 10px 0; }
    .hero-nh .cultural-strip        { width: calc(100% - 60px); height: 140px; bottom: 34px; }
    .hero-nh .cultural-track img    { height: 120px;  width: auto; }
    .hero-nh .wave                  { height: 34px; }
}

@media (max-width: 760px) {
    .hero-nh { height: 220px; }

    .hero-nh .marca {
        left: 0;
        top: 30px;
        transform: none;
        width: 48%;
        height: calc(100% - 48px);
        background: linear-gradient(
            to right,
            rgba(15, 45, 82, 1)  0%,
            rgba(15, 45, 82, 1) 60%,
            rgba(15, 45, 82, 0) 100%
        );
        padding: 0 30px 0 16px;
        display: flex;
        align-items: center;
        z-index: 10;
    }

    .hero-nh .marca img             { width: 130px; height: auto; top: 30px; display: block; }
    .hero-nh .cultural-strip        { width: calc(100% - 20px); height: 120px; bottom: 30px; }
    .hero-nh .cultural-track img    { height: 95px;  width: auto; }
    .hero-nh .wave                  { height: 28px; z-index: 11;}
}

@media (max-width: 480px) {
    .hero-nh                        { height: 180px; }
    .hero-nh .marca                 { width: 52%; padding: 0 20px 0 12px; }
    .hero-nh .marca img             { width: 120px; }
    .hero-nh .cultural-strip        { height: 82px; bottom: 26px; }
    .hero-nh .cultural-track img    { height: 62px;  width: auto; }
    .hero-nh .wave                  { height: 24px; }
}

@media (max-width: 360px) {
    .hero-nh                        { height: 160px; }
    .hero-nh .marca img             { width: 100px; }
    .hero-nh .cultural-strip        { height: 60px; bottom: 22px; }
    .hero-nh .cultural-track img    { height: 55px;  width: auto; }
    .hero-nh .wave                  { height: 20px; }
}
