/* =====================================================
   RIO LUANDA, style_04.css
   CSS único e unificado
   Versão limpa, sem IE, sem skel, sem debug
   Ordem: Reset → Base → Tipografia → Grid → Layout
          → Nav → Hero (6 camadas) → Seções → Footer
          → Responsivo → Animações
   ===================================================== */

/* =====================================================
   1. RESET + VARIÁVEIS GLOBAIS
   ===================================================== */

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

:root {
    --azul-fundo:     #0b2a4a;
    --azul-oceano:    #0B3C5D;
    --azul-nav:       rgba(6, 30, 60, 0.95);
    --dourado:        #dcb34b;
    --dourado-hover:  #f2c94c;
    --coral:          #ef8376;
    --bege:           #e6ddc6;
    --branco:         #ffffff;
    --texto-escuro:   #2f2b30;
    --texto-medio:    #5b5b5b;
    --sombra-suave:   rgba(0, 0, 0, 0.25);
    --fundo: #e9e2d3;

    /* Hero, posições dos textos animados */
    --text-height: 65%;
    --text-gap:    18px;

    /* Ondas */
    --wave-height: 70px;
}

/* =====================================================
   2. BASE
   ===================================================== */

html {
    background: var(--azul-fundo);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--azul-fundo);
    color: var(--texto-escuro);
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 15pt;
    line-height: 1.85em;
    overflow-x: hidden;
    animation: fadeInPage 0.8s ease forwards;
}

body.paused * {
    transition: none !important;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =====================================================
   3. TIPOGRAFIA
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: var(--texto-escuro);
    line-height: 1.25em;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
    border-bottom-color: transparent;
}

h1 strong, h2 strong, h3 strong,
h4 strong, h5 strong, h6 strong {
    font-weight: 600;
}

h2 { font-size: 2.85em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1em; margin: 0 0 0.25em 0; }

.byline {
    display: block;
    font-size: 1.5em;
    margin-top: 1em;
    line-height: 1.5em;
}

strong, b { font-weight: 400; color: #232024; }
em, i     { font-style: italic; }

a {
    color: inherit;
    border-bottom: solid 1px rgba(88, 74, 74, 0.15);
    text-decoration: none;
    transition: color 0.35s ease, border-bottom-color 0.35s ease;
}

a:hover {
    color: var(--coral);
    border-bottom-color: transparent;
}

p {
    font-size: 1.1em;
    letter-spacing: 0.03em; /* NÃO use 1.4em → quebra leitura */
    text-align: justify;
    margin-bottom: 1em;
}

p, ul, ol, dl, table {
    margin-bottom: 1em;
}

blockquote {
    border-left: solid 0.5em #ddd;
    padding: 1em 0 1em 2em;
    font-style: italic;
}

sub { position: relative; top: 0.5em;  font-size: 0.8em; }
sup { position: relative; top: -0.5em; font-size: 0.8em; }

br.clear { clear: both; }

.timestamp {
    color: rgba(128, 128, 128, 0.75);
    font-size: 0.8em;
    display: block;
}

header { margin: 0 0 1em 0; }
header .byline { margin-bottom: 1em; }

footer { margin: 1.em 0 0 0; }

hr {
    position: relative;
    display: block;
    border: 0;
    top: 1em;
    margin-bottom: 2em;
    height: 6px;
    border-top:    solid 1px rgba(128, 128, 128, 0.2);
    border-bottom: solid 1px rgba(128, 128, 128, 0.2);
}

hr::before,
hr::after {
    content: '';
    position: absolute;
    top: -8px;
    display: block;
    width: 1px;
    height: 21px;
    background: rgba(128, 128, 128, 0.2);
}

hr::before { left:  -1px; }
hr::after  { right: -1px; }

/* =====================================================
   4. GRID
   ===================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.row > * { flex: 1 1 0; }

.12u { flex: 0 0 100%;    max-width: 100%;    }
.4u  { flex: 0 0 calc(33.333% - 1.4em); max-width: calc(33.333% - 1.4em); }
.8u  { flex: 0 0 calc(66.666% - 0.7em); max-width: calc(66.666% - 0.7em); }

/* =====================================================
   5. SEÇÕES / ARTIGOS
   ===================================================== */

section,
article {
    margin-bottom: 2em;
}

section > :last-child,
article > :last-child {
    margin-bottom: 0;
}

section:last-child,
article:last-child {
    margin-bottom: 0;
}

.row > section,
.row > article {
    margin-bottom: 0;
}

section.special > header,
section.special > footer,
article.special > header,
article.special > footer {
    text-align: center;
}

/* =====================================================
   6. IMAGENS
   ===================================================== */

.image {
    position: relative;
    display: inline-block;
    border: 0;
    outline: 0;
}

.image img {
    display: block;
    width: 100%;
}

.image.full     { display: block; width: 100%; }
.image.featured { display: block; width: 100%; margin: 0 0 4em 0; }
.image.left     { float: left; margin: 0 2em 2em 0; }

.image.centered {
    display: block;
    margin: 0 0 2em 0;
}

.image.centered img {
    margin: 0 auto;
    width: auto;
}

.img-sm  { max-width: 200px; }
.img-md  { max-width: 400px; }
.img-lg  { max-width: 700px; }
.img-full { width: 100%; }

/* =====================================================
   7. LISTAS
   ===================================================== */

ul.divided li {
    border-top: solid 1px rgba(128, 128, 128, 0.2);
    padding-top: .5em;
    margin-top: .5em;
}

ul.divided li:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

ul.menu {
    height: 1em;
    line-height: 1em;
}

ul.menu li {
    display: inline-block;
    border-left: solid 1px rgba(128, 128, 128, 0.2);
    padding-left: 1.25em;
    margin-left: 1.25em;
}

ul.menu li:first-child {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
}

ul.icons {
    position: relative;
    background: rgba(128, 128, 128, 0.05);
    border-radius: 4em;
    display: inline-block;
    padding: 0.35em 0.2em;
    font-size: 1.25em;
    cursor: default;
}

ul.icons li { display: inline-block; }

ul.icons li a {
    display: inline-block;
    background: none;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    border-radius: 100%;
    border: 0;
    color: inherit;
}

ul.icons li a:hover { color: var(--coral); }

.listul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 1em 0 1.5em;
}

.listul li {
    margin-bottom: 0.2em;
    line-height: 1.5;
}

/* =====================================================
   8. BOTÕES
   ===================================================== */

.button {
    position: relative;
    display: inline-block;
    background: var(--dourado);
    font-weight: 600;
    color: #000;
    text-align: center;
    border-radius: 0.5em;
    text-decoration: none;
    padding: 0.65em 3em;
    border: 0;
    cursor: pointer;
    outline: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.button:hover {
    color: var(--branco);
    background: #4e79e7;
}

/* =====================================================
   9. POSTS
   ===================================================== */

.post.stub { text-align: center; }
.post.stub header { margin: 0; }

/* =====================================================
   10. WRAPPERS DE SEÇÃO
   ===================================================== */

.wrapper {
    background: var(--fundo);
    margin: 0 0 2em 0;
    padding: 6em 2em;
}

.wrapper.style1 { background: #f5f0e8; }
.wrapper.style2 { background: var(--fundo); padding-top: 0; }

/* Section eventos, espaço do topo para não colar na faixa */
section#eventos.wrapper.style2 {
    padding-top: 4em;
}

/* Seção Apresentação, imagens centralizadas */

/* Logo abaixo do h2, centralizado */
#apresentacao .byline:first-of-type {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5em;
}

/* Crachá + Folder, lado a lado, centralizados, responsivos */
#apresentacao .byline:last-of-type {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2em;
    margin-top: 2em;
}

#apresentacao .byline:last-of-type img {
    height: auto;
    max-width: 100%;
}

/* =====================================================
   11. NAVEGAÇÃO, fixa, z-index 999
   ===================================================== */

/* Checkbox e label do hamburguer, invisíveis no desktop */
#nav-toggle,
#nav-label {
    display: none;
}

/* Dropdown dropotron, visibilidade controlada pelo dropotron.js */

#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 999;
    transition: background 0.4s ease;
    display:inline-block;
}

#nav.scrolled {
    background: linear-gradient(
        90deg,
        rgba(6, 30, 60, 0.95),
        rgba(10, 50, 90, 0.95)
    );
}

#nav > ul {
    line-height: 0;
    position: relative;
    display: inline-block;
    margin: 0;
    height: 21px;
    border-left:  solid 1px rgba(192, 192, 192, 0.35);
    border-right: solid 1px rgba(192, 192, 192, 0.35);
}

#nav > ul::before,
#nav > ul::after {
    content: '';
    display: block;
    width: 300%;
    position: absolute;
    top: 50%;
    margin-top: -2px;
    height: 5px;
    border-top:    solid 1px rgba(192, 192, 192, 0.35);
    border-bottom: solid 1px rgba(192, 192, 192, 0.35);
}

#nav > ul::before { left: 100%;  margin-left: 1px; }
#nav > ul::after  { right: 100%; margin-right: 1px; }

#nav > ul > li {
    display: inline-block;
    margin: -9px 0.5em 0;
    border-radius: 0.5em;
    padding: 0.85em;
    border: solid 1px transparent;
    transition: color 0.35s ease, border-color 0.35s ease;
}

#nav > ul > li.active { border-color: rgba(218, 217, 217, 0.986); }

#nav > ul > li > a,
#nav > ul > li > span {
    display: block;
    color: var(--fundo);
    font-weight: 500;
    text-decoration: none;
    border: 0;
    outline: 0;
}

#nav > ul > li > a:hover { color: var(--dourado-hover); }

/* Dropdown dropotron */
.dropotron {
    background: rgba(255, 255, 255, 0.97);
    padding: 1em 1.25em;
    line-height: 1em;
    height: auto;
    text-align: left;
    border-radius: 0.5em;
    box-shadow: 0 0.15em 0.25em 0 var(--sombra-suave);
    min-width: 12em;
    border-top: 3px solid var(--dourado-hover);
}

.dropotron li {
    border-top: solid 1px rgba(128, 128, 128, 0.2);
    color: var(--texto-medio);
}

.dropotron li:first-child { border-top: 0; }

.dropotron li a,
.dropotron li span {
    display: block;
    border: 0;
    padding: 0.5em 0;
    color: #0a3a66;
    font-weight: 500;
    transition: color 0.35s ease;
}

.dropotron li:hover a { color: var(--dourado-hover); }

.dropotron.level-0 {
    margin-top: 2em;
    font-size: 0.9em;
}

.dropotron.level-0::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -0.7em;
    margin-left: -0.75em;
    border-bottom: solid 0.75em rgba(255, 255, 255, 0.975);
    border-left:   solid 0.75em rgba(64, 64, 64, 0);
    border-right:  solid 0.75em rgba(64, 64, 64, 0);
}

/* =====================================================
   12. HERO, 6 CAMADAS DE Z-INDEX
   ===================================================== */

.hero-rl {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #004b8c 0%,
        #0a5aa0 35%,
        #2f79b6 65%,
        #6ea6c8 100%
    );
    z-index: 0;
}

.hero-rl::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 40, 90,  0.55) 0%,
        rgba(0, 40, 80,  0.35) 40%,
        rgba(0, 60, 120, 0.20) 60%,
        rgba(180, 210, 240, 0.35) 70%,
        transparent 74%
    );
    opacity: 0.45;
    animation: skyFade 22s ease forwards;
    pointer-events: none;
    z-index: 1;
}

.hero-rl::after {
    content: "";
    position: absolute;
    bottom: 42vh;
    width: 100%;
    left:0;
    height: 80px;
    background: linear-gradient(
        to top,
        rgba(180, 210, 240, 0.5),
        transparent
    );
    filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.sun-img {
    position: absolute;
    left: 50%;
    bottom: 30vh;
    transform: translateX(-50%);
    width: clamp(150px, 18vw, 240px);
    height: auto;
    filter: blur(3px);
    animation:
        sunTravel 22s linear forwards,
        sunFocus  6s  ease   forwards;
    pointer-events: none;
    z-index: 2;
}

.ocean-block {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 3;
    overflow: visible; /* permite cultural-strip ultrapassar o topo */
}

.ocean {
    position: relative;
    width: 100%;
    height: 42vh;
    background: linear-gradient(
        to top,
        #1d405f 0%,
        #173b5a 30%,
        #123553 60%,
        #0B3C5D 100%
    );
    overflow: visible; /* cultural-strip precisa ultrapassar o topo sem ser cortado */
}

.ocean::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(
        to bottom,
        rgba(180, 210, 240, 0.35),
        rgba(180, 210, 240, 0.18),
        rgba(180, 210, 240, 0.08),
        transparent
    );
    filter: blur(4px);
    pointer-events: none;
}

.horizon {
    position: absolute;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.0),
        rgba(220, 179, 75,  0.5),
        rgba(255, 230, 180, 1.0),
        rgba(220, 179, 75,  0.5),
        rgba(255, 255, 255, 0.0)
    );
    animation: horizonPulse 6s ease-in-out infinite;
    animation-delay: 4s;
    z-index: 2;
}

.horizon-glow {
    position: absolute;
    top: -28px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(220, 179, 75,  0.10),
        rgba(255, 210, 80,  0.20),
        rgba(255, 200, 100, 0.10),
        transparent
    );
    filter: blur(8px);
    opacity: 0;
    animation: glowRise 14s ease-in-out forwards;
    animation-delay: 11s;
    pointer-events: none;
    z-index: 2;
}

.heat-haze {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(255, 220, 120, 0.12),
        rgba(255, 200, 80,  0.06),
        transparent
    );
    filter: blur(4px);
    opacity: 0;
    animation: hazeShimmer 3s ease-in-out infinite;
    animation-delay: 5s;
    pointer-events: none;
    z-index: 2;
}

.atlantic-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 4;
    display: flex;
    justify-content: center;
}

.atlantic-map img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.reflection-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    z-index: 4;
}

.reflection-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(900px, 75vw, 1400px);
    height: auto;
    max-height: 100%;
    object-fit: none;
    pointer-events: none;
    opacity: 0;
}

.r1 {
    animation:
        reflectionFade 22s linear forwards,
        waterQuake     2.8s ease-in-out infinite;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url('../images/interface3rdp.webp');
    background-repeat: repeat-x;
    background-position: 0 bottom;
    background-size: auto 100%;
    pointer-events: none;
    z-index: 5;
    animation: waveSentidoInverso 20s linear infinite;
}

.wave2,
.wave3 {
    display: none;
}

.seagulls {
    position: absolute;
    top: 36vh;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

.gull {
    position: absolute;
    width: 42px;
    height: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}

.gull::after {
    content: "";
    position: absolute;
    left: 20px;
    width: 42px;
    height: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}

.g1 {
    left: -80px;
    animation: gullFlight1 14s linear forwards;
    animation-delay: 9s;
}

.g2 {
    left: -120px;
    transform: scale(0.9);
    animation: gullFlight2 16s linear forwards;
    animation-delay: 10s;
}

.text-sequence {
    position: absolute;
    top: var(--text-height);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 700px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--text-gap);
    color: var(--branco);
    z-index: 5;
    pointer-events: none;
}

.type1,
.type2 {
    font-size: clamp(18px, 2vw, 26px);
    opacity: 0;
    text-align: center;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
}

.type1, p { 
    font-size: 1.2em; margin: 0 0 0.25em 0;}

.type2, p { 
    font-size: .9em; margin: 0 0 0.25em 0;}

.type1 { animation: fadeText1 3s ease forwards; animation-delay: 19s; }
.type2 { animation: fadeText2 3s ease forwards; animation-delay: 21s; }

.cultural-strip {
    position: absolute;
    bottom: var(--wave-height);
    left: 0;
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    /* abaixo do nav (999), acima de todos os elementos do hero */
    z-index: 100;
    pointer-events: none;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 3%,
        black 97%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 3%,
        black 97%,
        transparent
    );
}

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

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

.cultural-track img {
    height: 160px;
    opacity: 0.9;
    animation: floatWave 4s ease-in-out infinite;
    filter: drop-shadow(0 6px 6px rgba(0, 40, 80, 0.4));
    transition: transform 0.3s ease;
}

.cultural-track img:nth-child(odd)  { animation-duration: 5s; }
.cultural-track img:nth-child(3n)   { animation-duration: 3.5s; }

.logo {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(220px, 70vw, 450px);
    opacity: 0;
    animation: logoReveal 2s ease forwards;
    animation-delay: 12s;
    z-index: 6;
}

.logo img {
    width: 100%;
    height: auto;
}

/* =====================================================
   13. SEÇÕES DE CONTEÚDO
   ===================================================== */

#main {
    max-width: 900px;
    margin: 0 auto;
}

#main section:first-of-type { padding-top: 2em; }

/* =====================================================
   14. CARROSSEL DE CATEGORIAS
   ===================================================== */

.carousel {
    position: relative;
    overflow: hidden;
    padding: 2em 0;
}

/* Botões colados nas bordas */
.carousel .forward,
.carousel .backward {
    position: absolute;
    top: 0;
    height: 100%;
    width: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel .forward  { right: 0; }
.carousel .backward { left:  0; }

.carousel .forward:hover,
.carousel .backward:hover {
    background: rgba(239, 131, 118, 0.15);
}

.carousel .forward::before,
.carousel .backward::before {
    content: '';
    display: block;
    width: 2.8em;
    height: 2.8em;
    border-radius: 100%;
    background-color: rgba(72, 57, 73, 0.55);
    transition: background-color 0.35s ease, transform 0.2s ease;
}

.carousel .forward:hover::before,
.carousel .backward:hover::before {
    background-color: rgba(239, 131, 118, 0.85);
    transform: scale(1.1);
}

.carousel .forward::after,
.carousel .backward::after {
    content: '';
    width: 2.5em;
    height: 2.5em;
    position: absolute;
    background: url('../images/arrow.webp') no-repeat center center;
    background-size: 60%;
}

.carousel .backward::after { transform: scaleX(-1); }

.carousel .reel {
    white-space: nowrap;
    position: relative;
    -webkit-overflow-scrolling: touch;
    padding: 0 4em;
}

/* =====================================================
   CARROSSEL, variáveis de texto (edite aqui)
   ===================================================== */
:root {
    --carousel-title-size:   1.1em;
    --carousel-title-weight: 400;
    --carousel-title-gap:    0.6em;
    --carousel-text-size:    0.88em;
    --carousel-text-weight:  300;
    --carousel-text-height:  1.55;
    --carousel-text-color:   #000;
    --carousel-card-padding: 0 1em 2em;
}

/* Article, altura definida pelo conteúdo */
.carousel article {
    display: inline-block;
    vertical-align: top;
    width: 18em;
    background: var(--branco);
    text-align: center;
    padding: var(--carousel-card-padding);
    margin: 0 1.5em 0 0;
    white-space: normal;
    opacity: 1;
    transition: opacity 0.75s ease, transform 0.3s ease;
}

.carousel article:hover {
    transform: translateY(-4px);
}

.carousel article.loading { opacity: 0; }

/* Imagem, altura fixa para alinhamento uniforme */
.carousel article .image {
    position: relative;
    left: -1em;
    top: 0;
    width: auto;
    margin-right: -2em;
    margin-bottom: var(--carousel-title-gap);
    overflow: hidden;
    height: 220px;
}

.carousel article .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.carousel article:hover .image img {
    transform: scale(1.04);
}

/* Título */
.carousel article h3 {
    font-size: var(--carousel-title-size);
    font-weight: var(--carousel-title-weight);
    margin-bottom: 0.4em;
}

/* Texto, define a altura real do card */
.carousel article p {
    text-align: center;
    font-size: var(--carousel-text-size);
    font-weight: var(--carousel-text-weight);
    line-height: var(--carousel-text-height);
    color: var(--carousel-text-color);
    margin-bottom: 0;
}

/* =====================================================
   15. FOOTER
   ===================================================== */

#footer {
    position: relative;
    overflow: hidden;
    padding: 1em 1em;
    background: #194a8b;
    color: var(--fundo);
}

#footer .fa.circled {
    background: var(--fundo);
    color: #2b252c;
}

#footer header {
    text-align: center;
    cursor: default;
}

#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6 {
    color: var(--fundo);
}

#footer .contact { text-align: center; }
#footer .contact p {
    text-align: center;
    margin: 0 0 .2em 0;
}

#footer .copyright {
    text-align: center;
    color: rgba(128, 128, 128, 0.75);
    font-size: 0.8em;
    cursor: default;
}

#footer .copyright a { color: rgba(170, 168, 168, 0.75); }
#footer .copyright a:hover { color: rgba(212, 212, 212, 0.85); }

/* =====================================================
   16. FONT AWESOME
   ===================================================== */

@font-face {
    font-family: 'FontAwesome';
    src: url('../font/fontawesome-webfont.eot?v=4.0.1');
    src: url('../font/fontawesome-webfont.eot?#iefix&v=4.0.1') format('embedded-opentype'),
         url('../font/fontawesome-webfont.woff?v=4.0.1') format('woff'),
         url('../font/fontawesome-webfont.ttf?v=4.0.1') format('truetype'),
         url('../font/fontawesome-webfont.webp?v=4.0.1#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.fa { text-decoration: none; }
.fa.solo span { display: none; }

.fa.circled {
    position: relative;
    display: inline-block;
    background: #2b252c;
    color: var(--fundo);
    border-radius: 100%;
    width: 3.5em;
    height: 3.5em;
    line-height: 3.5em;
    text-align: center;
    font-size: 1em;
}

.fa.circled::before {
    font-size: 2em;
    line-height: 1.75em;
}

header .fa.circled { margin: 0 0 1em 0; }

.fa::before {
    display: inline-block;
    font-family: FontAwesome;
    font-size: 1.25em;
    text-decoration: none;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-facebook::before  { content: "\f09a"; }
.fa-instagram::before { content: "\f16d"; }
.fa-twitter::before   { content: "\f099"; }
.fa-envelope::before  { content: "\f0e0"; }
.fa-youtube-play:before  { content: "\f16a"; }

/* =====================================================
   17. RESPONSIVO
   ===================================================== */

/* Tablet largo (≤ 1200px) */
@media (max-width: 1200px) {
    .container { padding: 0 1.5em; }
    .4u {
        flex: 0 0 calc(50% - 1em);
        max-width: calc(50% - 1em);
    }
}

/* Tablet (≤ 960px) */
@media (max-width: 960px) {
    :root {
        --text-height: 65%;
        --text-gap: 14px;
    }

    body, input, textarea, select {
        font-size: 13pt;
        line-height: 1.65em;
    }

    .wrapper { padding: 4em 1.5em; }
    h2 { font-size: 2em; }
    .byline { font-size: 1.25em; }
    .carousel article { width: 18em; margin: 0 1em 0 0; }
    #footer { padding: 1em 1.em; }
}

/* Mobile (≤ 760px) */
@media (max-width: 760px) {
    :root {
        --text-height: 68%;
        --text-gap: 12px;
    }

    body, input, textarea, select {
        font-size: 12.5pt;
        line-height: 1.5em;
    }

    h2 { font-size: 1.75em; }
    h3 { font-size: 1.25em; }
    .byline { font-size: 1.25em; }
    .wrapper { padding: 3em 1em; }

    /* --- MENU MOBILE --- */

    /* Reativa checkbox e label */
    #nav-toggle,
    #nav-label {
        display: block;
    }

    #nav {
        display: block;
        background: rgba(6, 30, 60, 0.97);
    }

    #nav ul ul {
        display: block !important;
        position: static;
    }

    #nav > ul::before,
    #nav > ul::after { display: none; }

    #nav-toggle { display: none; }

    #nav-label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 48px;
        cursor: pointer;
        position: relative;
        z-index: 1000;
    }

    #nav-label span,
    #nav-label span::before,
    #nav-label span::after {
        display: block;
        width: 28px;
        height: 2px;
        background: var(--fundo);
        border-radius: 2px;
        transition: all 0.3s ease;
        position: relative;
    }

    #nav-label span::before,
    #nav-label span::after {
        content: '';
        position: absolute;
        left: 0;
    }

    #nav-label span::before { top: -8px; }
    #nav-label span::after  { top:  8px; }

    #nav > ul {
        display: none;
        width: 100%;
        height: auto;
        border: 0;
        flex-direction: column;
        padding: 0.5em 0 1em;
        line-height: normal;
    }

    #nav-toggle:checked + #nav-label span { background: transparent; }
    #nav-toggle:checked + #nav-label span::before { transform: rotate(45deg);  top: 0; }
    #nav-toggle:checked + #nav-label span::after  { transform: rotate(-45deg); top: 0; }

    /* Abre o menu quando o checkbox está marcado */
    #nav-toggle:checked + #nav-label + ul {
        display: flex !important;
    }

    #nav > ul > li {
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
        border-top: solid 1px rgba(255,255,255,0.08);
        border-radius: 0;
        text-align: center;
    }

    /* Anula white-space:nowrap que o dropotron injeta via JS */
    #nav > ul > li,
    #nav > ul > li > ul li {
        white-space: normal !important;
    }

    #nav > ul > li > a,
    #nav > ul > li > span {
        padding: 0.85em 1em;
        font-size: 1em;
    }

    /* Submenu mobile, anula TUDO que o dropotron injetou via JS */
    #nav > ul > li > ul,
    #nav > ul > li > ul.dropotron {
        display: block !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        background: rgba(0, 20, 50, 0.6) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-top: solid 1px rgba(255,255,255,0.08) !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: auto !important;
    }

    #nav > ul > li > ul li a,
    #nav > ul > li > ul.dropotron li a {
        display: block !important;
        padding: 0.65em 1em !important;
        font-size: 0.9em !important;
        color: rgba(255,255,255,0.75) !important;
        border: 0 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    #nav > ul > li > ul li,
    #nav > ul > li > ul.dropotron li {
        border-top: solid 1px rgba(255,255,255,0.05) !important;
        white-space: normal !important;
    }

    /* Layout */
    .row { flex-direction: column; gap: 0; }

    .4u, .8u, .12u {
        flex:      0 0 100%;
        max-width: 100%;
        margin-bottom: 2em;
    }

    section, article,
    .row > section,
    .row > article {
        margin-bottom: 2em;
    }

    section:last-child,
    article:last-child {
        margin-bottom: 0;
    }

    .image.featured { margin: 0 0 2em 0; }
    .image.left     { margin: 0 1em 1em 0; }

    .image img {
    width: 100%;
    margin: 0 auto;
    }

    

    .atlantic-map img {
        object-fit: cover;
        object-position: center 80%;
    }

.cultural-strip {
    width: 100%;
    height: 100px;
    bottom: 64px; /* afasta da onda no mobile */
    align-items: flex-end;
}

    .cultural-track img { height: 85px; width: auto; }

    .logo { width: clamp(160px, 80vw, 320px); }

    ul.menu { height: auto; text-align: center; }

    ul.menu li {
        display: block;
        border: 0;
        padding: 0.75em 0 0;
        margin: 0;
    }

    ul.menu li:first-child { padding-top: 0; }

    .carousel { padding: 0.5em 0; }
    .carousel .reel { padding: 0 0.5em; }
    .carousel article { width: 14em; padding-bottom: 2em; margin: 0 0.5em 0 0; }
    .carousel article .image { margin-bottom: 2em; }

    #footer { padding: 1em .5em; }

    /* Imagens da apresentação empilham no mobile */
    #apresentacao .byline:last-of-type {
        flex-direction: column;
        align-items: center;
    }

    #apresentacao .byline:last-of-type img {
        width: 100%;
        max-width: 350px;
    }
}


/* ── LANDSCAPE MOBILE (tela deitada ≤ 760px height) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-rl { height: 100vh; }

    .ocean { height: 55vh; }

    .cultural-strip {
        height: 75px;
        bottom: 60px;
    }

    .cultural-track img { height: 60px; width: auto; }

    .logo { width: clamp(120px, 30vw, 220px); top: 20%; }

    .text-sequence { width: 80%; top: 55%; }

    /* Nav em landscape: scroll vertical se menu abrir */
    #nav {
        max-height: 100vh;
        overflow-y: auto;
    }
}

/* =====================================================
   18. ANIMAÇÕES
   ===================================================== */

@keyframes horizonPulse {
    0%   { opacity: 0.4; transform: scaleX(0.95); }
    50%  { opacity: 1.0; transform: scaleX(1.00); }
    100% { opacity: 0.4; transform: scaleX(0.95); }
}

@keyframes glowRise {
    0%   { opacity: 0;    transform: translateY(10px) scaleX(0.8);  filter: blur(14px); }
    15%  { opacity: 0.40; transform: translateY(4px)  scaleX(0.9);  filter: blur(10px); }
    35%  { opacity: 0.75; transform: translateY(0px)  scaleX(1.0);  filter: blur(8px);  }
    50%  { opacity: 0.75; transform: translateY(-2px) scaleX(1.01); filter: blur(7px);  }
    68%  { opacity: 0.30; transform: translateY(0px)  scaleX(1.0);  filter: blur(10px); }
    85%  { opacity: 0.08; transform: translateY(3px)  scaleX(0.95); filter: blur(13px); }
    100% { opacity: 0;    transform: translateY(8px)  scaleX(0.9);  filter: blur(16px); }
}

@keyframes hazeShimmer {
    0%   { opacity: 0;    transform: scaleX(1.00) translateY(0);    }
    25%  { opacity: 0.8;  transform: scaleX(1.01) translateY(-1px); }
    50%  { opacity: 1.0;  transform: scaleX(1.02) translateY(1px);  }
    75%  { opacity: 0.8;  transform: scaleX(1.01) translateY(-1px); }
    100% { opacity: 0;    transform: scaleX(1.00) translateY(0);    }
}

@keyframes skyFade {
    0%   { opacity: 0.85; }
    25%  { opacity: 0.55; }
    45%  { opacity: 0.25; }
    70%  { opacity: 0.10; }
    100% { opacity: 0;    }
}

@keyframes sunFocus {
    from { filter: blur(5px); }
    to   { filter: blur(0);   }
}

@keyframes sunTravel {
    0%   { transform: translate(-50%, 220px) scaleY(0.75); }
    8%   { transform: translate(-50%, 180px) scaleY(0.85); }
    15%  { transform: translate(-50%, 120px) scaleY(1);    }
    100% { transform: translate(-50%, -1100px) scaleY(1);  }
}

@keyframes heatShimmer {
    0%   { opacity: 0;    transform: scaleX(1)    translateY(0);    }
    18%  { opacity: 0.30; transform: scaleX(1.02) translateY(-1px); }
    35%  { opacity: 0.60; transform: scaleX(1.05) translateY(1px);  }
    55%  { opacity: 0.30; transform: scaleX(1.02) translateY(-1px); }
    80%  { opacity: 0.15; }
    100% { opacity: 0;    }
}

@keyframes waveMove1 {
    from { transform: translateX(0);      }
    to   { transform: translateX(-400px); }
}

@keyframes waveMove2 {
    from { transform: translateX(-200px); }
    to   { transform: translateX(-600px); }
}

@keyframes waveMove3 {
    from { transform: translateX(100px);  }
    to   { transform: translateX(-500px); }
}

@keyframes waveSentidoInverso {
    from { background-position: 0 bottom;      }
    to   { background-position: 1000px bottom; }
}

@keyframes reflectionFade {
    0%   { opacity: 0;   filter: brightness(0.4); }
    20%  { opacity: 0.5; filter: brightness(0.9); }
    40%  { opacity: 1;   filter: brightness(1.4); }
    60%  { opacity: 0.9; filter: brightness(1.2); }
    80%  { opacity: 0.2; filter: brightness(0.4); }
    100% { opacity: 0;   filter: brightness(0.3); }
}

@keyframes waterQuake {
    0%   { transform: translateX(calc(-50% - 0.8px)); }
    20%  { transform: translateX(calc(-50% + 0.5px)); }
    40%  { transform: translateX(calc(-50% - 0.3px)); }
    60%  { transform: translateX(calc(-50% + 0.7px)); }
    80%  { transform: translateX(calc(-50% - 0.4px)); }
    100% { transform: translateX(calc(-50% - 0.8px)); }
}

@keyframes gullFlight1 {
    0%   { transform: translateX(0) translateY(10px) scale(1.6); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateX(60vw) translateY(-8px) scale(0.9); }
    100% { transform: translateX(120vw) translateY(-25px) scale(0.35); opacity: 0; }
}

@keyframes gullFlight2 {
    0%   { transform: translateX(0) translateY(15px) scale(1.9); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateX(65vw) translateY(-5px) scale(0.8); }
    100% { transform: translateX(125vw) translateY(-20px) scale(0.3); opacity: 0; }
}

@keyframes logoReveal {
    from { transform: translateX(-50%) scale(0.2); opacity: 0; }
    to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}

@keyframes fadeText1 {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeText2 {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes floatWave {
    0%   { transform: translateY(0);     }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0);     }
}

@keyframes culturalScroll {
    from { transform: translateX(0);    }
    to   { transform: translateX(-50%); }
}

/* Nota: prefers-reduced-motion não aplicado aqui pois
   as animações são parte essencial da experiência visual
   do projeto Rio Luanda. */