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

:root {
    --azul-escuro: #0f2a4a;
    --azul: #2e6db4;
    --azul-claro: #e8f0fb;
    --branco: #ffffff;
    --borda: #c5d5e8;
    --cinza: #6b85a3;
}

body {
    font-family: "Roboto", sans-serif;
    background: #dce8f5;
    min-height: 100vh;
}

/* ══ HEADER ══ */
header {
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navr {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--azul-escuro);
    text-decoration: none;
}

.logo span {
    color: var(--azul);
}

nav {
    display: flex;
}

.navl {
    position: relative;
}

.navl>a {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0 0.95rem;
    height: 60px;
    font-family: "Roboto", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--azul-escuro);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.chevron {
    transition: transform 0.2s;
    color: var(--cinza);
}

.navl:hover>a {
    color: var(--azul);
}

.navl:hover>a .chevron {
    transform: rotate(180deg);
    color: var(--azul);
}

.navl>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.95rem;
    right: 0.95rem;
    height: 2px;
    background: var(--azul);
    transform: scaleX(0);
    transition: transform 0.18s;
}

.navl:hover>a::after {
    transform: scaleX(1);
}

.dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--branco);
    border: 1px solid var(--borda);
    border-top: 2px solid var(--azul);
    min-width: 248px;
    box-shadow: 0 6px 20px rgba(15, 42, 74, 0.09);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s, transform 0.16s;
}

.navl:hover .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdownl {
    padding: 0.8rem 1.1rem 0.65rem;
    border-bottom: 1px solid var(--borda);
}

.dropdownl .label {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--azul);
    font-family: "Roboto", sans-serif;
}

.dropdown-links {
    padding: 0.35rem 0;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 1.1rem;
    text-decoration: none;
}

.dropdown-links a:hover {
    background: var(--azul-claro);
}

.dropdown-links a:hover .li {
    color: var(--azul);
}

.li {
    color: var(--cinza);
    flex-shrink: 0;
    display: block;
    transition: color 0.15s;
}

.link-text strong {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--azul-escuro);
}

.link-text span {
    font-size: 0.72rem;
    color: var(--cinza);
    font-weight: 300;
}

.dropdownf {
    border-top: 1px solid var(--borda);
    padding: 0.5rem 1.1rem;
}

.dropdownf a {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--azul);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
}

.dropdownf a:hover {
    color: var(--azul-escuro);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    max-height: 860px;
    background-image: url(../img/1024.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d2540 0%, #1a4880 60%, #2e6db4 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(8, 18, 32, 0.0) 0%,
            rgba(8, 18, 32, 0.2) 40%,
            rgba(8, 18, 32, 0.82) 100%);
    z-index: 1;
}

.hero-texto {
    position: relative;
    z-index: 2;
    padding: 0 5vw 5.5rem;
    max-width: 820px;
}

.hero-kicker {
    font-family: "Roboto", sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #7ab3e0;
    margin-bottom: 1rem;
}

.hero-titulo {
    font-family: "Roboto", sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    font-weight: 700;
    line-height: 0.93;
    color: #fff;
    text-transform: uppercase;
}

.hero-titulo .azul {
    color: #4a90e2;
}

.hero-desc {
    margin-top: 1.5rem;
    font-family: "Roboto", sans-serif;
    font-size: 0.97rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);

}



/* ══ HEADER ══ */
header {
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navr {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--azul-escuro);
    text-decoration: none;
}

.logo span {
    color: var(--azul);
}

nav {
    display: flex;
}

.navl {
    position: relative;
}

.navl>a {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0 0.95rem;
    height: 60px;
    font-family: "Roboto", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--azul-escuro);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.chevron {
    transition: transform 0.2s;
    color: var(--cinza);
}

.navl:hover>a {
    color: var(--azul);
}

.navl:hover>a .chevron {
    transform: rotate(180deg);
    color: var(--azul);
}

.navl>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.95rem;
    right: 0.95rem;
    height: 2px;
    background: var(--azul);
    transform: scaleX(0);
    transition: transform 0.18s;
}

.navl:hover>a::after {
    transform: scaleX(1);
}

.dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--branco);
    border: 1px solid var(--borda);
    border-top: 2px solid var(--azul);
    min-width: 248px;
    box-shadow: 0 6px 20px rgba(15, 42, 74, 0.09);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s, transform 0.16s;
}

.navl:hover .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdownl {
    padding: 0.8rem 1.1rem 0.65rem;
    border-bottom: 1px solid var(--borda);
}

.dropdownl .label {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--azul);
    font-family: "Roboto", sans-serif;
}

.dropdown-links {
    padding: 0.35rem 0;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 1.1rem;
    text-decoration: none;
}

.dropdown-links a:hover {
    background: var(--azul-claro);
}

.dropdown-links a:hover .li {
    color: var(--azul);
}

.li {
    color: var(--cinza);
    flex-shrink: 0;
    display: block;
    transition: color 0.15s;
}

.link-text strong {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--azul-escuro);
}

.link-text span {
    font-size: 0.72rem;
    color: var(--cinza);
    font-weight: 300;
}

.dropdownf {
    border-top: 1px solid var(--borda);
    padding: 0.5rem 1.1rem;
}

.dropdownf a {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--azul);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
}

.dropdownf a:hover {
    color: var(--azul-escuro);
}


/* ══ HERO ══ */
.hero {
    position: relative;
    min-height: 420px;
    background: linear-gradient(135deg, #0d2540 0%, #1a4880 60%, #2e6db4 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 18, 32, 0) 0%, rgba(8, 18, 32, 0.75) 100%);
    z-index: 1;
}

.hero-topo {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem 0;
    text-align: left;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7ab3e0;
    font-family: "Roboto", sans-serif;
}

.hero-fundo {
    position: relative;
    z-index: 2;
    padding: 2rem 2rem 4.5rem;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-titulo {
    font-family: "Roboto", sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 0.93;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-titulo em {
    font-style: italic;
    color: #4a90e2;
}

.hero-rodape {
    max-width: 600px;
}

.hero-desc {
    font-family: "Roboto", sans-serif;
    font-size: 0.97rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

/* ══ INDEX BAR ══ */
.index-bar {
     background: var(--azul-escuro);
     display: flex;
     overflow-x: auto;
 }

 .index-bar a {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0 2rem;
     height: 48px;
     font-size: 0.65rem;
     font-weight: 400;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     color: rgba(255, 255, 255, 0.5);
     text-decoration: none;
     white-space: nowrap;
     border-right: 1px solid rgba(255, 255, 255, 0.07);
     transition: color 0.18s, background 0.18s;
 }

 .index-bar a:hover {
     color: #fff;
     background: rgba(46, 109, 180, 0.2);
 }

 .index-bar a .idx {
     font-family: "Roboto", sans-serif;
     font-size: 0.7rem;
     color: rgba(255, 255, 255, 0.2);
     margin-right: 0.15rem;
 }

/* ══ MAGAZINE ══ */
.magazine {
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
    padding: 4rem 5vw;
}

.magazine-header {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    margin-bottom: 3rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--borda);
}

.magazine-header h2 {
    font-family: "Roboto", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--azul-escuro);
}

.sec-num {
    font-family: "Roboto", sans-serif;
    font-size: 0.75rem;
    color: var(--azul);
    letter-spacing: 0.1em;
}

.kicker {
    font-family: "Roboto", sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cinza);
    margin-left: auto;
}

.mag-grid {
    display: grid;
    grid-template-columns: 2fr 1px 1fr 1px 1fr;
    gap: 2.4rem;
    align-items: start;
}

.mag-sep {
    background: var(--borda);
    align-self: stretch;
}

.mag-lead {
    font-family: "Roboto", sans-serif;
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--azul-escuro);
    margin-bottom: 1.2rem;
}

.mag-corpo {
    font-family: "Roboto", sans-serif;
    font-size: 0.92rem;
    line-height: 1.88;
    color: #3a5a7a;
    font-weight: 300;
    margin-bottom: 0.9rem;
}

.mag-side-titulo {
    font-family: "Roboto", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--azul-escuro);
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.mag-side-corpo {
    font-family: "Roboto", sans-serif;
    font-size: 0.87rem;
    line-height: 1.82;
    color: #3a5a7a;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.mag-quote {
    border-left: 3px solid var(--azul);
    padding: 1rem 1.2rem;
    background: var(--azul-claro);
    margin-top: 1.4rem;
}

.mag-quote p {
    font-family: "Roboto", sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--azul-escuro);
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.mag-quote cite {
    font-family: "Roboto", sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--azul);
    font-style: normal;
}

.mag-ficha {
    background: var(--azul-escuro);
    padding: 1.3rem 1.4rem;
}

.mag-ficha-titulo {
    font-family: "Roboto", sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7ab3e0;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(46, 109, 180, 0.3);
}

.mag-ficha-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(46, 109, 180, 0.12);
    font-family: "Roboto", sans-serif;
    font-size: 0.8rem;
}

.mag-ficha-row:last-child {
    border-bottom: none;
}

.mag-ficha-row span:first-child {
    color: #7ab3e0;
    font-weight: 300;
}

.mag-ficha-row span:last-child {
    color: #fff;
    font-weight: 400;
    text-align: right;
}

/* ══ FUNCOES ══ */
.funcoes-secao {
    padding: 4rem 5vw;
    background: #dce8f5;
    border-bottom: 1px solid var(--borda);
}

.sec-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--borda);
}

.sec-header-esq .kicker {
    display: block;
    margin-left: 0;
    margin-bottom: 0.4rem;
}

.sec-header-esq h2 {
    font-family: "Roboto", sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--azul-escuro);
}

.sec-header-dir {
    font-family: "Roboto", sans-serif;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #3a5a7a;
    font-weight: 300;
    align-self: end;
}

.funcoes-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.funcao-card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-top: 3px solid var(--azul);
}

.funcao-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.3rem 1.3rem 0.8rem;
    border-bottom: 1px solid var(--borda);
}

.funcao-card-top svg {
    width: 26px;
    height: 26px;
    color: var(--azul);
}

.funcao-n {
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    color: #2e6db4;
    line-height: 1;
    font-weight: 700;
}

.funcao-card-body {
    padding: 1.1rem 1.3rem 1.4rem;
}

.funcao-card-titulo {
    font-family: "Roboto", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--azul-escuro);
    margin-bottom: 0.6rem;
}

.funcao-card-desc {
    font-family: "Roboto", sans-serif;
    font-size: 0.83rem;
    line-height: 1.78;
    color: var(--cinza);
    font-weight: 300;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1000px) {
    .mag-grid {
        grid-template-columns: 1fr;
    }

    .mag-sep {
        display: none;
    }

    .funcoes-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sec-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .funcoes-row {
        grid-template-columns: 1fr;
    }
}



#rodape {
    background: var(--azul-escuro);
    border-top: 3px solid var(--azul);
    font-family: "Roboto", sans-serif;
    color: #b8d0e8;
}

.rod-corpo {
    max-width: 1100px;
    margin: 0 auto;
    padding: 52px 40px 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.rod-marca .rod-logo {
    font-family: "Roboto", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--branco);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 14px;
}

.rod-marca .rod-logo span {
    color: var(--azul);
}

.rod-marca p {
    font-size: 0.86rem;
    line-height: 1.75;
    opacity: 0.75;
    max-width: 240px;
    font-weight: 300;
}

.rod-redes {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.rod-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(46, 109, 180, 0.35);
    background: rgba(46, 109, 180, 0.1);
    color: #a8c8e8;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.18s;
}

.rod-redes a:hover {
    background: var(--azul);
    border-color: var(--azul);
    color: var(--branco);
    transform: translateY(-3px);
}

.rod-col h4 {
    font-family: "Roboto", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--branco);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(46, 109, 180, 0.25);
}

.rod-col ul {
    list-style: none;
}

.rod-col ul li {
    margin-bottom: 9px;
}

.rod-col ul li a {
    font-size: 0.84rem;
    color: #a0bcd8;
    text-decoration: none;
    transition: color 0.18s, padding-left 0.18s;
    display: inline-block;
    font-weight: 300;
}

.rod-col ul li a:hover {
    color: var(--branco);
    padding-left: 4px;
}

.rod-contacto ul li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.84rem;
    color: #a0bcd8;
    margin-bottom: 11px;
    font-weight: 300;
}

.rod-contacto ul li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--azul);
    opacity: 0.85;
}

.rod-contacto ul li a {
    color: #a0bcd8;
    text-decoration: none;
    transition: color 0.18s;
}

.rod-contacto ul li a:hover {
    color: var(--branco);
}

.rod-base {
    border-top: 1px solid rgba(46, 109, 180, 0.2);
    padding: 14px 40px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rod-base span {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #5a7a9a;
}

.rod-juridico {
    display: flex;
}

.rod-juridico a {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #5a7a9a;
    text-decoration: none;
    padding: 0 14px;
    border-left: 1px solid rgba(46, 109, 180, 0.2);
    transition: color 0.18s;
}

.rod-juridico a:first-child {
    border-left: none;
}

.rod-juridico a:hover {
    color: var(--branco);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1000px) {
    .principios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .destaque {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .intro {
        grid-template-columns: 1fr;
    }

    .intro-foto,
    .intro-foto-fallback {
        height: 300px;
        min-height: unset;
    }

    .intro-texto {
        padding: 3rem 2rem;
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat:nth-child(3) {
        border-top: 1px solid var(--borda);
        border-right: 1px solid var(--borda);
    }

    .stat:nth-child(4) {
        border-top: 1px solid var(--borda);
        border-right: none;
    }

    .rod-corpo {
        grid-template-columns: 1fr 1fr;
        padding: 40px 24px 24px;
    }
}

@media (max-width: 620px) {
    .principios-grid {
        grid-template-columns: 1fr;
    }

    .hero-titulo {
        font-size: 2.6rem;
    }

    .rod-corpo {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rod-base {
        flex-direction: column;
        text-align: center;
        padding: 14px 24px;
    }
}