:root {
    --blue: rgb(10,77,140);
    --transluid-blue: rgba(10,77,140,0.85);
    --hovereffect-blue: rgba(10,77,140,0.12);

    --orange: rgb(255,152,0);
    --transluid-orange: rgba(255,152,0,0.85);
    --hovereffect-orange: rgba(255, 153, 0, 0.42);

    --textcolordark: rgb(51,51,51);
    --textcolorlight: #fff;

    --backgroundblue: rgb(240,246,252);

    --shadowcolor: rgba(10,77,140,0.08);
}

/* ============================= */
/* RESET & FONT */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--textcolordark);
    top: 0 !important;
}

/* ============================= */
/* NAVBAR */
/* ============================= */
header {
    background: var(--transluid-blue);
    backdrop-filter: blur(6px);
    padding: 28px 40px;
    position: sticky;
    top: 20px;
    width: 92%;
    margin: auto;
    border-radius: 30px;
    box-sizing: content-box;
    z-index: 100;
}

html, body {
    top: 0 !important;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    line-height: normal;
}

/* Logo */
.logo {
    color: var(--textcolorlight);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
    justify-self: start;
}

.logo:hover {
    color: var(--orange);
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    justify-self: center;
    transform: translateX(19px);
}

.nav-links a {
    color: var(--textcolorlight);
    text-decoration: none; /* remove sublinhado */
    font-weight: 500;
    transition: color 0.3s; /* suaviza a transicao de cor */
    line-height: normal;
}

/* Hover links */
.nav-links a:hover {
    color: var(--orange); /* alaranjado ao passar o mouse */
}

/* Dropdown idiomas */
.translate-widget {
    display: flex;
    align-items: center;
    justify-self: end;
}

#language-select {
    padding: 5px 32px 5px 10px;
    border-radius: 12px;
    border: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230a4d8c' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;

    color: var(--blue);
    font-weight: 500;
    cursor: pointer;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
}

#language-select:hover {
    background-color: var(--backgroundblue);
}

@media (max-width: 1100px) {
    nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        justify-self: auto;
        transform: none;
    }
}

/* ============================= */
/* BOTÃO VOLTAR AO TOPO */
/* ============================= */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;

    background-color: var(--orange);
    color: white;

    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;

    box-shadow: 0 4px 15px var(--shadowcolor);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s, transform 0.2s;
}

#backToTop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#backToTop:hover {
    background-color: var(--hovereffect-orange);
    transform: scale(1.1);
}

#backToTop.clicked {
    background-color: white;
}

/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    width: 100%;
    min-height: 90vh;
}

.hero-text {
    position: relative;
    text-align: center;
    padding: 80px 20px 20px;
    z-index: 2;
    margin-bottom: -120px;
}

.hero-text h1 {
    font-size: 7rem;
    margin-bottom: 40px;
    color: #0a4d8c;
    line-height: 1.1;
}

.hero-text .btn {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.5rem;
    transition: background-color 0.3s, transform 0.3s;
}

.hero-text .btn:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-image-container img {
    width: 80%;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.hero-image-container img:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Responsivo Hero */
@media (max-width: 1200px) {
    .hero-text h1 { font-size: 5rem; }
}
@media (max-width: 900px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-image-container img { width: 95%; }
}

/* ============================= */
/* SECTIONS (GENÉRICO) */
/* ============================= */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Documents accordion */
#documents {
    scroll-margin-top: 90px;
}

.documents-section {
    width: 100%;
    padding: 60px 0 100px; /* top and bottom padding in blue background */
    margin: 0;
    background-color: #e6f0fa;
}

.docs-accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    background: #fff;
    max-width: 1300px;
    margin: 0 auto;
}
.accordion-item + .accordion-item { border-top: 1px solid #f0f0f0; }
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 28px 32px;
    background: #fafafa;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a4d8c; /* site accent color */
    display: flex;
    align-items: center;
    cursor: pointer;
}
.accordion-title { flex: 1; }
.accordion-controls { min-width: 110px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.accordion-arrow { transition: transform 0.32s ease; color: #0a4d8c; font-size: 1.05rem; }
.accordion-header.is-open .accordion-arrow { transform: rotate(180deg); }
.accordion-header:hover { background: #f0f6fb; }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    transition: max-height 0.36s cubic-bezier(.2,.8,.2,1), padding 0.25s ease;
}
.accordion-body.open {
    padding: 18px 22px 22px;
}
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-item { display: flex; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px dashed #eee; }
.doc-item:last-child { border-bottom: none; }
.doc-thumb { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 10px; }
.doc-meta h4 { margin-bottom: 8px; font-size: 1.08rem; }
.doc-meta .muted { color: #666; font-size: 0.95rem; }
.doc-actions { margin-left: auto; display: flex; gap: 8px; }
.btn.small { padding: 10px 16px; font-size: 1rem; border-radius: 8px; text-decoration: none; }
.btn.small.secondary { background: transparent; color: #0a4d8c; border: 1px solid #0a4d8c; }

/* discrete count badge */
.accordion-count {
    font-size: 0.9rem;
    color: #7b8aa0;
    background: rgba(10,77,140,0.06);
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 10px;
    font-weight: 600;
}

.accordion-header:hover { background: #f0f6fb; }

@media (max-width: 700px) {
    .doc-item { flex-direction: column; align-items: flex-start; }
    .doc-actions { margin-left: 0; margin-top: 8px; }
}

/* Ensure count badges align consistently */
.accordion-controls > .accordion-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 10px;
    box-sizing: border-box;
    margin-left: 12px;
    background: rgba(10,77,140,0.07);
}
@media (max-width: 500px) {
    .accordion-controls > .accordion-count { min-width: 36px; padding: 3px 8px; font-size: 0.85rem; }
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Constrain Documents title so it doesn't touch the page edges */
.documents-section .section h2,
.documents-section h2 {
    max-width: 1300px;
    margin: 0 auto 20px; /* same gap as other sections */
    padding: 0 20px;
    text-align: center;
}

/* Subtitle inside Documents should follow same constraints as title */
.documents-section .blog-subtitle,
.documents-section p.blog-subtitle {
    max-width: 1100px;
    margin: 0 auto 40px; /* match blog spacing */
    padding: 0 20px;
    text-align: center;
    color: #555;
    font-size: 1rem;
}


/* ============================= */
/* ABOUT SECTION FULL WIDTH      */
/* ============================= */

#about {
    background-color: #f4f4f4; /* Fundo cinza claro */
    width: 100%;               /* Ocupa 100% da largura do monitor */
    padding: 80px 0;           /* Espaço vertical generoso */
    margin: 0;                 /* Garante que não há folgas externas */
    scroll-margin-top: 90px;
}

/* Contentor que "segura" o conteúdo no centro da página */
.about-wrapper {
    max-width: 1200px;         /* Alinhado com a largura das outras secções */
    margin: 0 auto;            /* Centraliza o bloco */
    padding: 0 20px;           /* Margem de segurança para telemóveis */
    text-align: center;
}

#about h2 {
    color: #0a4d8c;
    margin-bottom: 35px;
    font-size: 2.2rem;
}

/* Texto formal de introdução */
.about-intro {
    max-width: 900px;          /* Texto mais estreito para facilitar a leitura */
    margin: 0 auto 60px auto;  /* ESPAÇO DE 60PX ENTRE O TEXTO E OS CARDS */
    line-height: 1.8;
    text-align: justify;       /* Alinhamento formal em bloco */
    color: #333;
    font-size: 1.05rem;
}

/* Grelha de Cards */
.project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Estilo dos Cards (Brancos para sobressair do fundo cinza) */
.project-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 260px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.project-card img {
    border-radius: 12px;
    margin-bottom: 20px;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Efeito ao passar o rato */
.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.project-card h3 {
    color: #0a4d8c;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.project-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    text-align: center;
}


/* ============================= */
/* FLOW SECTION */
/* ============================= */

.flow-section {
    padding: 100px 20px 60px; /* remove top padding so partners blue spacing shows */
    background-color: #f9f9f9;
    text-align: center;
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-title {
    margin-bottom: 50px; /* Ajusta este valor (40px a 60px costuma ser o ideal) */
    font-size: 2.5rem;
    color: #333;
}


.step-item:hover, .step-item.active {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.step-item.danger {
    border-color: #ffcccc;
}

.step-item.danger:hover {
    border-color: #ff4d4d;
    background-color: #fff5f5;
}

.step-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.flow-arrow {
    font-size: 20px;
    color: #007bff;
    font-weight: bold;
}

/* Esconder textos por defeito */
.flow-text {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 17px;
    color: #444;
    animation: fadeIn 0.5s ease;
}

.flow-text.active {
    display: block;
}

iframe {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: 600px;
}
.division-task-list .star {
    margin-left: 0.25rem;
    color: var(--accent);
    font-weight: 600;
}
/* Full-viewport divider image between sections */
.divider-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    z-index: 0;
}

.divider-image {
    position: relative;
    width: 100%;
    margin: 0;
}

.divider-image img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

/* Semi-transparent green overlay that spans the full divider */
.divider-section::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 117, 83, 0.28);
    pointer-events: none;
    z-index: 2;
}

.divider-image img {
    position: relative;
    z-index: 1;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* ============================= */
/* TEAM SECTION */
/* ============================= */

#team.section {
    scroll-margin-top: 100px;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 92px 20px 110px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 152, 0, 0.16), transparent 30%),
        radial-gradient(circle at 88% 4%, rgba(10, 77, 140, 0.16), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
}

#team.section::before,
#team.section::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

#team.section::before {
    width: 300px;
    height: 300px;
    left: -120px;
    top: 24px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.18), rgba(255, 152, 0, 0));
}

#team.section::after {
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: 18px;
    background: radial-gradient(circle, rgba(10, 77, 140, 0.18), rgba(10, 77, 140, 0));
}

.team-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

#team h2 {
    color: #0a4d8c;
    margin-bottom: 14px;
    font-size: 2.4rem;
}

.team-intro {
    max-width: 760px;
    margin: 0 auto 38px;
    color: #5d6b7d;
    font-size: 1.06rem;
    text-align: center;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: min(100%, 864px);
    margin: 0 auto;
}

.member {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(10, 77, 140, 0.08);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(10, 77, 140, 0.08);
    backdrop-filter: blur(8px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.member:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(10, 77, 140, 0.14);
    border-color: rgba(10, 77, 140, 0.18);
}

.member-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 77, 140, 0.08), rgba(255, 152, 0, 0.08));
}

.member-link::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(10, 77, 140, 0), rgba(10, 77, 140, 0.48));
    pointer-events: none;
}

.member img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform-origin: center;
    transform: scale(var(--portrait-scale, 1)) translateX(var(--portrait-shift-x, 0px)) translateY(var(--portrait-shift-y, 0px));
    transition: transform 0.45s ease;
}

.member:hover img {
    transform: scale(calc(var(--portrait-scale, 1) * 1.06)) translateX(var(--portrait-shift-x, 0px)) translateY(var(--portrait-shift-y, 0px));
}

.member-cta {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0a4d8c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.member-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 20px 22px;
}

.member-badge {
    align-self: flex-start;
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 152, 0, 0.14);
    color: #b06b00;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.member h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #103d6f;
    text-align: left;
}

@media (max-width: 980px) {
    .team-members {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    #team.section {
        padding: 76px 16px 96px;
    }

    #team h2 {
        font-size: 2rem;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

    .team-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

/* Botão da equipa */
.team-button-container button {
    background-color: #ff9800; /* cor laranja */
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.team-button-container button:hover {
    background-color: #e68900; /* laranja escuro ao hover */
    transform: scale(1.05);
}

.team-button-container {
    text-align: center;
    margin-top: 34px;
}





/* Secção com fundo Branco */
.white-bg-section {
    background-color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

/* Reduce bottom spacing specifically for the departments section to tighten gap before divider */
.white-bg-section#departments,
#departments.white-bg-section {
    padding-bottom: 0;
}
/* (spacing for .division-footnote set later to ensure correct override) */

.section-title-dark {
    color: #333; /* Título neutro escuro */
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0;
}






/* ======== Separador elegante ======== */
.dots-separator {
    display: block;
    width: 80px;
    height: 4px;
    margin: 20px auto 50px auto;
    background: linear-gradient(90deg, #007bff, #fd7e14);
    border-radius: 12px;
}

/* ======== Grelha de departamentos ======== */
.dept-grid-style {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.dept-grid-style > .dept-card-photo-style {
    grid-column: span 2;
}

/* Com 5 cards: centra a segunda linha (2 cards) no layout de 3 colunas. */
.dept-grid-style > .dept-card-photo-style:nth-child(4) {
    grid-column: 2 / span 2;
}

.dept-grid-style > .dept-card-photo-style:nth-child(5) {
    grid-column: 4 / span 2;
}

@media (max-width: 1000px) {
    .dept-grid-style {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dept-grid-style > .dept-card-photo-style,
    .dept-grid-style > .dept-card-photo-style:nth-child(4),
    .dept-grid-style > .dept-card-photo-style:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 650px) {
    .dept-grid-style {
        grid-template-columns: 1fr;
    }
}

/* ======== Cards de departamentos ======== */
.dept-card-photo-style {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* força o bottom info a ficar sempre no fundo */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.3), 0 0 25px rgba(253, 126, 20, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    padding: 0;
    min-height: 350px; /* altura mínima igual para todos */

    /* Gradiente azul-laranja */
    background: linear-gradient(135deg, rgba(0,123,255,0.8), rgba(253,126,20,0.8));
    backdrop-filter: blur(6px); /* transparência com blur */
}

.card-bottom-info {
    padding: 20px 25px;
    text-align: left;
    margin-top: auto; /* força a ficar no fundo */
    color: white;
}

.dept-card-photo-style:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ======== Conteúdo interno dos cards ======== */
.card-top-content h3,
.card-top-content p,
.dept-category,
.card-bottom-info {
    color: white;
}

.card-top-content {
    padding: 25px;
}

.dept-category {
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-top-content h3 {
    font-size: 1.5rem;
    margin: 10px 0 15px 0;
}

.card-top-content p {
    font-size: 1rem;
    line-height: 1.5;
}

.card-bottom-info {
    padding: 20px 25px;
    text-align: left;
    background: rgba(0,0,0,0.15); /* leve contraste */
    border-top: 1px solid rgba(255,255,255,0.2);
}

.card-bottom-info p {
    margin: 5px 0;
}

/* ======== Division of Work (departments page) ======== */
.division-intro {
    max-width: 760px;
    margin: 0 auto 36px;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.division-card {
    background: linear-gradient(160deg, #f8fff2, #eef9e7);
    border: 1px solid #d6efc6;
    border-top: 5px solid #59b11f;
    border-radius: 16px;
    padding: 18px 18px 16px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(17, 79, 33, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.division-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(17, 79, 33, 0.14);
}

.division-name {
    margin: 0 0 14px;
    font-size: 1.6rem;
    color: #13582f;
    line-height: 1.2;
}

.division-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.division-task-list li {
    font-size: 0.97rem;
    line-height: 1.25;
}

.division-task-list li a {
    display: block;
    background: #1e6d3d;
    color: #f7fff8;
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.division-task-list li a:hover {
    background: #27864c;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(9, 44, 21, 0.25);
}

.division-task-list li a:focus-visible {
    outline: 2px solid #9de0b9;
    outline-offset: 2px;
}

.division-footnote {
    margin: 6px auto 40px;
    max-width: 1200px;
    text-align: right;
    color: #1e6d3d;
    font-weight: 700;
}

.roles-overview-section {
    padding-top: 30px;
    padding-bottom: 90px;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.role-section {
    scroll-margin-top: 130px;
    background: #ffffff;
    border: 1px solid #dfe8e3;
    border-left: 5px solid #1e6d3d;
    border-radius: 14px;
    padding: 18px 18px 12px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(11, 43, 22, 0.07);
}

.role-section h3 {
    margin: 0 0 10px;
    color: #114f21;
    font-size: 1.25rem;
}

.role-section p {
    margin: 6px 0;
    color: #2f4036;
    line-height: 1.5;
}

.role-section .role-description {
    margin: 0 0 10px;
    color: #4a5f53;
    font-size: 0.96rem;
}

@media (max-width: 1040px) {
    .division-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .division-name {
        font-size: 1.4rem;
    }

    .division-task-list li {
        font-size: 0.93rem;
    }

    .division-footnote {
        text-align: center;
    }

    .role-section {
        scroll-margin-top: 108px;
    }
}






/* ============================= */
/* PARTNERS SECTION */
/* ============================= */
.partners-section {
    width: 100%;
    background-color: var(--backgroundblue);
    padding: 60px 0 100px; /* add bottom spacing in blue */
    text-align: center;
}

.partners-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0a4d8c;
}

.partners-carousel {
    overflow: hidden;
    width: 100%;
    background-color: #e6f0fa;
    padding: 12px 0 18px;
}

.partners-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    width: max-content;
    --partners-loop-width: 50%;
    animation: scroll 25s linear infinite;
    justify-content: flex-start;
    will-change: transform;
}

.partner-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2px 20px;
    width: auto;
    min-width: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.partner-card img {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s;
}

.partner-card img.logo-besquare {
    max-width: 470px;
    max-height: 272px;
}

.partner-card img.logo-deec {
    max-width: 270px;
    max-height: 160px;
    transform: translateY(2px);
}

.partner-card img.logo-virtuacrop {
    max-width: 155px;
    max-height: 86px;
}


.partner-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
}

/* Scroll infinito parceiros */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--partners-loop-width))); }
}

/* Responsivo parceiros */
@media (max-width: 900px) {
    .partners-track { gap: 20px; }
    .partner-card { width: auto; min-width: 0; padding: 2px 18px; }
    .partner-card img { max-width: 120px; max-height: 60px; }
}

/* ============================= */
/* BLOG SECTION */
/* ============================= */
.blog-section {
    width: 100%;
    background-color: #f4f6f8;
    padding: 100px 20px 60px; /* remove top padding so documents blue spacing shows */
    text-align: center;
}

.blog-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0a4d8c;
}

.blog-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
}

.blog-carousel {
    overflow: hidden;
    width: 100%;
    background-color: #f4f6f8;
    padding: 12px 0 18px;
}

.blog-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    width: max-content;
    --blog-loop-width: 50%;
    animation: scrollBlog 30s linear infinite;
    justify-content: flex-start;
    will-change: transform;
}

.blog-card {
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.blog-content {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0a4d8c;
}

.blog-content p {
    font-size: 0.95rem;
    color: #555;
    margin-top: auto;
    margin-bottom: 0;
}

.blog-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
}

@keyframes scrollBlog {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--blog-loop-width))); }
}

@media (max-width: 900px) {
    .blog-track { gap: 20px; }
    .blog-card { width: 250px; }
}

/* ============================= */
/* CONTACT SECTION */
/* ============================= */
.contact-section {
    width: 100%;
    background-color: #f2f2f2;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 90px;
}

.contact-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 40px;
    max-width: 600px;
}

.contact-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.contact-box {
    flex: 1;
    max-width: 500px;
    background: linear-gradient(145deg, #0a4d8c, #1b75bc);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
}

.contact-map {
    flex: 1;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.contact-box form {
    display: flex;
    flex-direction: column;
}

.contact-box label { margin-bottom: 5px; font-weight: 600; }

.contact-box input, .contact-box textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
}

.contact-box input { height: 40px; }
.contact-box textarea { resize: vertical; }

.contact-box button {
    padding: 12px;
    border: none;
    border-radius: 12px;
    background-color: #ff9800;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-box button:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .contact-content { flex-direction: column; gap: 30px; }
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
    background-color: #0a4d8c;
    color: #f1f1f1;
    padding: 50px 20px 20px 20px;
    font-family: 'Roboto', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    align-items: flex-start;
}

/* Logo no footer */
.footer-logo a {
    color: #ffffff; /* laranja */
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
}

.footer-logo a:hover {
    color: #e68900; /* laranja mais escuro no hover */
    transform: scale(1.05);
    cursor: pointer;
}

/* Colunas de links e social */
.footer-columns {
    display: flex;
    gap: 60px;
}

/* Quick Links */
.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-social a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #ff9800;
    text-decoration: underline;
}

/* Follow Us */
.footer-social a {
    display: inline-block;
    margin-right: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #ff9800;
}

/* Contato */
.footer-contact p,
.footer-contact a {
    text-decoration: none; /* remove sublinhado */
    color: #f1f1f1;        /* mantém a cor branca */
}

.footer-contact a:hover {
    text-decoration: underline; /* opcional: aparece só no hover */
    color: #ff9800;             /* opcional: muda a cor ao passar o mouse */
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.85rem;
    color: #ccc;
}

/* Scroll suave ao clicar no link do logo */
html {
    scroll-behavior: smooth;
}

/* Responsivo */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-social a {
        margin-right: 10px;
    }
}