@import url('https://fonts.googleapis.com/css2?family=Krub:wght@300;400;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
	/*GRID*/
	--grid-width: 1450px;
	--grid-laptop-width: 1100px;
	--grid-gutter: 12px;

	/*TEXT*/
	--text-family: 'Krub', sans-serif;
	--text-family-bold: 'Outfit', sans-serif;

	--text-fsize: 16px;
	--text-md-fsize: 14px;
	--text-sm-fsize: 13px;

	--text-lheight: 1.4;
	--text-md-lheight: 1.4;
	--text-sm-lheight: 1.4;

	/*BASE BUTTON*/
	--btn-padding: 13.5px 10px;
	--btn-fsize: 13px;
	--btn-lheight: 1;
	--btn-radius: 0px;
	--btn-min-width: 15rem;
	--btn-font-weight: 600;
	--btn-font-family: var(--text-family-bold);
	--btn-text-transform: uppercase;

	--card-radius: 0.5rem;

	/*COLORS*/
	--color-primary: #211D1E;
	--color-secondary: #EF4236;
	--color-alt: #C81B0B;
	--color-dark: #A11708;
	--color-darker: #791005;
	--color-black: #1D1D1B;
	--color-btn: #000000;
	--color-white: #fff;
    --color-white-semi: rgba(255, 255, 255, 0.2);
	--color-gray: #F5F5F5;
	--color-gray-alt: #E0E0E0;
	--color-gray-medium: #B3B3B3;
	--color-gray-dark: #5E5E5E;
	--color-success: #5FC333;
	--color-error: #FF0000;
	--color-gold: #BE9E44;
}


[data-ae-animation]{
    transition-property: opacity;
    transition-duration: 0.8s;
    opacity: 0;
}
[data-ae-animation].animated {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

:target:before {
	content:"";
	display:block;
	height:100px; /* fixed header height*/
	margin:-100px 0 0; /* negative fixed header height */
}

html, body{
    font-family: var(--text-family);
    font-size: var(--text-fsize);
    line-height: var(--text-lheight);
    background-attachment: fixed;
}

.row{ max-width: var(--grid-width); margin: 0 auto;}
.row.wide{ max-width: 85% }
.row.fullwidth{ max-width: 100% }

/* ---- HEADINGS ---- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--text-family-bold);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-black);
    margin: 0;
    margin-bottom: 1rem;
}

h1, .h1 { font-size: 2.67rem; }
h2, .h2 { font-size: 2.33rem; }
h3, .h3 { font-size: 1.87rem; font-weight: 600; }
h4, .h4 { font-size: 1.47rem; font-weight: 600; }
h5, .h5 { font-size: 1.2rem;  font-weight: 600; }
h6, .h6 { font-size: 1.07rem; font-weight: 600; }

.btn{
    transition: 0.35s
}

.filter-grayscale{
    filter: grayscale(100%);
}

/* ---- PARAGRAPH ---- */
p {
    font-family: var(--text-family);
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.65;
    color: inherit;
    margin-bottom: 1rem;
}

/* ---- LINKS ---- */
a {
    font-family: inherit;
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s linear;
}
a:hover {
    color: var(--color-alt);
}

a img{transition: 0.25s;}
a:hover img{opacity: 0.8;}

input, textarea, select{
    border: 1px solid var(--color-gray-alt);
    transition: 0.35s;
    padding: 0.85rem 0.75rem;
}
input:focus, textarea:focus, select:focus{
    box-shadow: 0 0 2px var(--color-secondary) !important;
    border-color: var(--color-secondary);
}

input[type=radio], input[type=checkbox]{
    width: auto;
    margin-left: 0;
}

/* ---- Form ---- */
.form-group label {
    color: var(--color-black);
    font-family: var(--text-family-bold);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group label .required {
    color: var(--color-secondary);
    margin-left: 1px;
}

.form-check-label {
    font-size: 0.88rem;
    color: var(--color-secondary);
    cursor: pointer;
}

.form-check-label input[type=checkbox] {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-check-label a.termos {
    color: var(--color-secondary);
    text-decoration: underline;
}

.form-check-label a.termos:hover {
    color: var(--color-alt);
}

/* ---- Inscrições Form ---- */
.form-inscricao {
    margin: 0 auto;
}

.form-inscricao-title {
    font-family: var(--text-family-bold);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.form-inscricao .form-control,
.form-inscricao select.form-control {
    border-radius: 0;
    border: 1px solid #ccc;
    font-size: 0.93rem;
    padding: 0.6rem 0.75rem;
    height: auto;
    box-shadow: none;
    background-color: transparent;
    transition: border-color 0.2s ease;
}

.form-inscricao .form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: none;
    outline: none;
}

.form-inscricao-section-title {
    font-family: var(--text-family-bold);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.form-inscricao-toggle {
    display: flex;
    gap: 0;
}

.form-inscricao-toggle-3 {
    /* 3-button toggle */
}

.form-inscricao-toggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.6rem;
    text-align: center;
    font-family: var(--text-family-bold);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.02em;
    border: 1px solid #ddd;
    background: transparent;
    color: var(--color-black);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.form-inscricao-toggle-btn + .form-inscricao-toggle-btn {
    border-left: none;
}

.form-inscricao-toggle-btn .toggle-check {
    opacity: 0.4;
    flex-shrink: 0;
}

.form-inscricao-toggle-btn.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.form-inscricao-toggle-btn.active .toggle-check {
    opacity: 1;
}

.form-inscricao-participante {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.form-inscricao-participante h6,
.form-inscricao-participante-title {
    font-family: var(--text-family-bold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.form-inscricao .form-error-msg {
    color: var(--color-error);
    font-size: 0.78rem;
    margin-top: 0.25rem;
    display: block;
}

.form-inscricao-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-inscricao-buttons .btn-secondary-fill {
    background: var(--color-secondary);
    color: #fff;
}

.form-inscricao-buttons .btn-secondary-fill:hover {
    opacity: 0.85;
}

.form-inscricao-buttons .btn-gray {
    background: #999;
    color: #fff;
}

.form-inscricao-buttons .btn-gray:hover {
    opacity: 0.85;
}

.form-inscricao-sucesso {
    text-align: center;
    padding: 3rem 1rem;
}

.form-inscricao-sucesso svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.form-inscricao-sucesso h3 {
    font-family: var(--text-family-bold);
    color: var(--color-black);
    margin-bottom: 0.75rem;
}

.form-inscricao-sucesso p {
    color: #666;
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
}


/* ---- BRAND BUTTONS ---- */
.btn-rectangle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 1.5rem;
    border-radius: 0;
    border: none;
    transition: opacity 0.25s linear, filter 0.25s linear;
    min-width: 12rem;
}
.btn-rectangle img {
    display: block;
    max-height: 2.5rem;
    width: auto;
    opacity: 1;
}
.btn-rectangle:hover {
    opacity: 0.85;
}

.btn-gold, .btn-gold:hover {
    background-color: var(--color-gold);
}
.btn-black, .btn-black:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}
.btn-blue, .btn-blue:hover {
    background-color: var(--color-alt);
    color: var(--color-white);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    border-radius: 0;
    text-transform: uppercase;
    padding: .65rem 2rem;
    font-family: var(--text-family-bold);
    font-weight: 600;
    font-size: 0.83rem;
}
.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

.btn-outline-light{
    background: transparent;
    border: 1px solid var(--color-white-semi);
    color: var(--color-white);
    padding: 1.29rem 1.55rem;
    min-height: 77px;
    border-radius: 0;
}


[class^="flex-list-"]{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--grid-gutter));
    padding: 0;
    width: calc(100% + (2 * var(--grid-gutter)));
    max-width: calc(100% + (2 * var(--grid-gutter)));
}

[class^="flex-list-"] li{
    padding: 0 calc(var(--grid-gutter) / 2)  20px;
}
.flex-list-4 li{width: 25%;}
.flex-list-5 li{width: 20%;}
.flex-list-6 li{width: 16.66666666%;}


.filter{
    background: rgba(0, 0, 0, 0.6);
    height: 100%;
    width: 100%;
    min-height: inherit;
}

hr{border-color: var(--color-black);opacity: 1;margin: 1.25rem 0;}

/* ----- Bootstrap fixs ------- */
img{max-width: 100%;}
a, span{display: inline-block;}

ul.il-list{padding-left: 0;}

.text-left{text-align: left !important;}
.text-right{text-align: right !important;}

.c-primary{color: var(--color-primary) !important}
.c-secondary{color: var(--color-secondary) !important}
.c-alt{color: var(--color-alt) !important}
.c-black{color: var(--color-black) !important}
.c-white{color: var(--color-white) !important}
.c-gray{color: var(--color-gray) !important}
.c-gray-alt{color: var(--color-gray-alt) !important}

.bg-primary{background: var(--color-primary) !important}
.bg-secondary{background: var(--color-secondary) !important}
.bg-alt{background: var(--color-alt) !important}
.bg-black{background: var(--color-black) !important}
.bg-white{background: var(--color-white) !important}
.bg-gray{background: var(--color-gray) !important}
.bg-gray-alt{background: var(--color-gray-alt) !important}
.bg-success{background: var(--color-success) !important}

.row > .row{margin: 0 calc(-1 * var(--grid-gutter));}

.modal-footer {display: block;}
input, textarea, select{width: 100%;outline: 0 !important;}

.small, small {
    font-size: .875rem;
}

p span{
    display: inline-block;
}

.top10{top: 10px}
.top20{top: 20px}

.badge{border-radius: 0;vertical-align: top;}

.cta-text{
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--text-family-bold);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.45rem 0.75rem;
    display: inline-block;
}

/* ------------------------------------- */

header {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--color-white);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--grid-width);
    margin: 0 auto;
    padding: 0.5rem var(--grid-gutter);
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0;
}

header .noticias-search-toggle {
    transition: color 0.3s ease;
}

header.header-scrolled {
    background: var(--color-black);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

header.header-scrolled .logo {
    max-width: 55px;
    content: url('/img/logo-white.svg');
}

header.header-scrolled nav a {
    color: var(--color-white);
}

header.header-scrolled nav a:hover {
    color: var(--color-white);
    opacity: 0.85;
}

header.header-scrolled .submenu a {
    color: var(--color-black);
}

header.header-scrolled .submenu a:hover {
    color: var(--color-black);
    opacity: 0.6;
}

header.header-scrolled nav a::after {
    background: var(--color-alt);
    border-radius: 50%;
    width: 6px;
    height: 6px;
}

header.header-scrolled .noticias-search-toggle {
    color: var(--color-white);
    border-color: transparent;
}

header .logo-link {
    display: flex;
    align-items: center;
}

header .logo{
    z-index: 1000;
    position: relative;
    max-width: 80px;
    transition: max-width 0.3s ease;
}

/* ---- Logo orbit light beam ---- */
@property --logo-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

header a:has(.logo) {
    position: relative;
}

/* Cancel the generic a:hover img opacity for the logo */
header a:has(.logo):hover img {
    opacity: 1 !important;
}


.nav-brands{
    display: none;
}

/* Disable all transitions during initial state detection */
header.header-pre-init,
header.header-pre-init * {
    transition: none !important;
}


header .col-lg-10 {
    position: relative;
}

header .noticias-search-toggle {
    color: var(--color-black);
    border: none;
    background: none;
    font-size: 1.15rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease, opacity 0.2s ease;
}

header .noticias-search-toggle:hover {
    opacity: 0.7;
}

/* ----- Search overlay ----- */
.noticias-search-overlay {
    display: flex;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1002;
    padding: 0;
    pointer-events: none;
    clip-path: inset(0 0 -500px 100%);
    transition: clip-path 0.3s ease;
}
.noticias-search-overlay.is-open {
    pointer-events: auto;
    clip-path: inset(0 0 -500px 0%);
}

body.search-is-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1001;
    pointer-events: auto;
    cursor: pointer;
}
.noticias-search-overlay form {
    background: var(--color-secondary);
}
.noticias-search-overlay .form-control {
    background: var(--color-secondary);
    opacity: 1;
    border: 0;
    color: var(--color-white);
    border-radius: 0;
}
.noticias-search-overlay .form-control::placeholder {
    color: rgba(255,255,255,0.65);
}
.noticias-search-overlay .form-control:focus {
    background: rgba(255,255,255,0.22);
    box-shadow: none;
    color: var(--color-white);
}
.noticias-search-overlay .btn{
    border: 0;
    border-radius: 0;
}
.noticias-search-wrapper {
    position: relative;
}
.noticias-search-wrapper form {
    background: var(--color-secondary);
}
/* ------------------------------------- */
/* -------------------------- */

header .btn-outline-light+.dropdown,
header .btn-outline-light+.dropdown .btn-outline-light{
    border-left: none;
    width: 100%;
    position: relative;
}

header .btn-outline-light+.dropdown .dropdown-menu {
    min-width: 100%;
}

header .btn-outline-light+.dropdown .dropdown-toggle::after {
    position: absolute;
    right: 1.55rem;
    border: 0;
    font-family: 'bootstrap-icons';
    content: "\F282";
    margin-top: 2px;
}

header nav a{
    color: var(--color-black);
    font-weight: 600;
    margin: 0 1.25rem;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}
header nav{
    display: flex;
    align-items: center;
    position: relative;
}

body {
    overflow-x: hidden;
}
header nav a:hover{
    color: var(--color-black);
    opacity: 0.7;
}
header nav a::after {
    content: "";
    position: absolute;
    bottom: -0.45rem;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-alt);
    transition: transform 0.25s ease;
}
header nav a:hover::after, header nav a.active::after,
header nav span.has-submenu:hover > a::after,
header nav span.has-submenu:focus-within > a::after {
    transform: translateX(-50%) scale(1);
}
header nav a:first-child{
    margin-left: 0;
}

/* ---- Nav submenu ---- */
header nav span.has-submenu {
    position: relative;
    display: inline-block;
}

header nav .submenu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    min-width: 625px;
    padding: 1.8rem 2.5rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(4px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    background: var(--color-white);
    border: 1px solid var(--grey-300, #E3E3E3);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

header nav .submenu::before {
    display: none;
}

/* should be a bridge for the hover between the main menu and submenu */
header nav .submenu::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

header nav span.has-submenu:hover .submenu,
header nav span.has-submenu:focus-within .submenu,
header nav span.has-submenu .submenu:hover,
header nav span.has-submenu .submenu:focus-within {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

header .submenu a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-black);
    font-family: var(--text-family);
    font-size: 0.93rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.55rem 0;
    margin: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

header nav .submenu a::after {
    display: none;
}

header nav .submenu a:hover {
    color: var(--color-black);
    opacity: 0.6;
}

header nav .submenu a.active {
    color: var(--color-black);
    opacity: 1;
    font-weight: 700;
}

header nav .submenu .sub-ext-icon {
    font-size: 0.72rem;
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Mobile top-level link inside submenu spans both columns */
header nav .submenu a.d-block {
    grid-column: 1 / -1;
}

/* ---- Mobile nav toggle (hamburger) ---- */
.header-actions-mobile {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-mobile-toggle {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-mobile-toggle:hover { opacity: 0.7; }

header.header-scrolled .nav-mobile-toggle { color: var(--color-white); }

/* Full-screen backdrop */
.nav-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1099;
    background: rgba(0, 0, 0, 0.45);
}
body.nav-is-open .nav-mobile-backdrop { display: block; }

@media (max-width: 991.98px) {
    /* Show hamburger row, hide desktop search button */
    .header-actions-mobile { display: flex; }
    .nav-desktop-search { display: none !important; }

    /* Off-canvas panel */
    .header-right {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        background: var(--color-white);
        z-index: 1100;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        padding: 80px 1.5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    }
    body.nav-is-open .header-right { right: 0; }

    /* Vertical nav */
    header nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    header nav > span {
        display: block;
    }
    header nav a {
        margin: 0;
        padding: 0.75rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }
    header nav a::after { display: none; }

    /* Submenu accordion */
    header nav .submenu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: none;
        display: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0.5rem 1rem;
        background: #f8f8f8;
        grid-template-columns: 1fr;
        column-gap: 0;
        top: auto;
        left: auto;
    }
    header nav span.has-submenu.is-open .submenu {
        display: block;
        pointer-events: auto;
    }
    header nav span.has-submenu:hover .submenu,
    header nav span.has-submenu:focus-within .submenu {
        /* disable hover on mobile — controlled by .is-open only */
        opacity: 1;
        pointer-events: inherit;
        transform: none;
    }
    header .submenu a {
        white-space: normal;
        padding: 0.55rem 0;
        border-bottom: none;
        font-size: 0.87rem;
    }
    header nav .submenu a.d-block { grid-column: auto; font-weight: 700; }

    /* Chevron rotation for open state */
    header nav span.has-submenu > a .bi-chevron-down {
        transition: transform 0.2s ease;
    }
    header nav span.has-submenu.is-open > a .bi-chevron-down {
        transform: rotate(180deg);
    }

    /* Scrolled state inside panel still needs dark text */
    header.header-scrolled .header-right { background: var(--color-white); }
    header.header-scrolled nav a { color: var(--color-black); }
    header.header-scrolled nav a:hover { color: var(--color-black); }
}


/* ---- Slider / Carousel ---- */

.carousel.carousel-banner {
    min-height: calc(100vh - 141px);
}

/* Horizontal slide animation (Bootstrap default) */

.carousel .carousel-inner {
    display: flex;
    align-items: center;
    min-height: inherit;
}

.carousel .fullwidth {
    width: 100%;
    max-height: calc(100vh - 141px);
    min-height: calc(100vh - 141px);
}

.carousel video.fullwidth {
    object-fit: cover;
}

.carousel-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide-content,
.carousel-slide-content p,
.carousel-slide-content li {
    color: var(--color-white);
    background: rgba(0,0,0,0.5);
}

.banner-slide-title {
    color: var(--color-white);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-slide-content {
    max-width: 450px;
}

.banner-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1.35rem;
    border: 1px solid var(--color-alt);
    border-radius: 999px;
    background: var(--color-alt);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.banner-slide-link:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-black);
}

.home-hero-banner .carousel-item {
    position: relative;
}

.home-hero-banner .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.home-hero-banner .carousel-item > * {
    position: relative;
    z-index: 2;
}

.home-hero-banner .carousel-slide-content .row {
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100%;
}

.home-hero-banner .carousel-slide-content .col-lg-5 {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
}

.home-hero-banner .banner-slide-title,
.home-hero-banner .banner-slide-content {
    text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

.home-hero-banner .banner-slide-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.home-hero-banner .banner-slide-link {
    margin-left: auto;
    margin-right: auto;
}

.home-hero-indicators {
    bottom: 1.25rem;
    margin-bottom: 0;
    z-index: 11;
}

.home-hero-indicators button {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50%;
    margin: 0 6px !important;
    border: 0;
    background-color: rgba(255,255,255,0.45) !important;
    opacity: 1;
}

.home-hero-indicators button.active {
    background-color: var(--color-white) !important;
}

/* Non-hero compact carousel (e.g. home-bottom) */
.carousel-compact.carousel-banner,
.carousel-compact .carousel-inner {
    min-height: auto;
}

.carousel-compact .carousel-inner {
    display: block;
}

/* ---- CTA / Video section layout ---- */
.carousel-cta-wrap {
    padding: 4rem 0;
}

.carousel-cta-video {
    display: block;
    width: 100%;
    box-shadow: 0px 12px 20px 16px rgba(29,29,27,0.2);
}

.carousel-arrow-btn, .carousel-arrow-btn:focus {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2.75rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-arrow-btn:hover {
    opacity: 1;
}


/* ---- Áreas de Formação ---- */

.cursos-areas-title {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 0;
}

.cursos-areas-clip {
    overflow: hidden;
}

.cursos-areas-slider-wrapper {
    overflow: visible;
    padding: 0 3%;
}

.cursos-areas-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease;
    will-change: transform;
}

.cursos-area-card {
    display: block;
    position: relative;
    flex: 0 0 calc(25% - 0.75rem);
    min-width: 200px;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}


.cursos-area-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0 !important;
}

.cursos-area-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}

.cursos-area-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.cursos-area-card-label {
    color: var(--color-white);
    font-family: var(--text-family-bold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.cursos-areas-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cursos-arrow-btn {
    background: transparent;
    border: none;
    color: var(--color-alt);
    font-size: 2.25rem;
    line-height: 1;
    padding: 0;
    opacity: 1;
    cursor: pointer;
    transition: opacity 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cursos-arrow-btn:hover {
    opacity: 0.75;
}

.cursos-areas-arrows-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-alt);
    opacity: 0.75;
}


/* ---- Destaques ---- */

.destaque-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.destaque-card:hover {
    color: inherit;
}

.destaque-card-img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: opacity 0.25s;
}

.destaque-card:hover .destaque-card-img {
    opacity: 0.9;
}

.destaque-card-body {
    padding: 1.5rem 0 2rem;
}

.destaque-card-desc {
    min-height: 80px;
    margin: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.destaque-card-cta {
    display: block;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-black);
    transition: color 0.25s;
}

.destaque-card:hover .destaque-card-cta {
    color: var(--color-alt);
}

/* ---- Homepage featured strip ---- */

.home-featured-strip {
    padding: 2rem 1.25rem 0;
    background: var(--color-white);
}

.home-featured-strip-inner,
.home-news-section-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.home-featured-card,
.home-featured-card-static {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    background: #d6d6d6;
}

.home-featured-card:hover {
    color: var(--color-white);
}

.home-featured-card-media,
.home-featured-card-media img,
.home-featured-card-fallback {
    width: 100%;
    height: 100%;
}

.home-featured-card-media {
    position: absolute;
    inset: 0;
}

.home-featured-card-media img {
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-featured-card:hover .home-featured-card-media img {
    transform: scale(1.05);
}

.home-featured-card-fallback,
.home-news-card-fallback {
    background: linear-gradient(135deg, #d9d9d9 0%, #bcbcbc 100%);
}

.home-featured-card-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.8) 100%);
}

.home-featured-card-title {
    margin: 0;
    color: var(--color-white);
    font-size: 1.35rem;
    line-height: 1.25;
}

.home-featured-card-desc {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    color: rgba(255,255,255,0.88);
}

/* ---- Homepage areas (logo strip) ---- */

.home-areas-strip {
    padding: 2.5rem 1.25rem;
    background: var(--color-white);
}

.home-areas-strip-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.home-areas-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
}

.home-areas-item,
.home-areas-item-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    min-width: 80px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.home-areas-item img {
    display: block;
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.home-areas-item:hover {
    transform: translateY(-2px);
}

.home-areas-item-label {
    font-weight: 600;
    color: var(--color-ink, #1a1a1a);
}

.home-areas-strip hr {
    width: 100%;
    max-width: 1320px;
    margin: 2rem auto 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 1;
}

/* ---- Homepage news ---- */

.home-news-section {
    padding: 4rem 1.25rem 5rem 5rem;
    overflow-x: clip;
}

.home-news-heading {
    margin: 0 0 2rem;
}

/* News — Custom category dropdown */
.home-news-header-row {
    margin-bottom: 2rem;
}

.home-news-select {
    position: relative;
    display: inline-block;
}

.home-news-select-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border: 1px solid #d8d8d8;
    background: transparent;
    color: var(--color-black);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    min-width: 220px;
    transition: border-color 0.2s ease;
}

.home-news-select-trigger:hover {
    border-color: #aaa;
}

.home-news-select-swatch {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.home-news-select-label {
    flex: 1;
    text-align: left;
}

.home-news-select-chevron {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.home-news-select-trigger[aria-expanded="true"] .home-news-select-chevron {
    transform: rotate(180deg);
}

.home-news-select-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
    min-width: 100%;
    background: var(--color-white);
    border: 1px solid #d8d8d8;
    border-top: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-news-select-panel.is-open {
    display: block;
}

.home-news-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-black);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.home-news-select-option:last-child {
    border-bottom: none;
}

.home-news-select-option:hover,
.home-news-select-option.is-active {
    background: #f7f7f7;
}

.home-news-select-option-swatch {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* News — Horizontal slider */
.home-news-slider-outer {
    position: relative;
}

.home-news-slider-arrows {
    position: absolute;
    /* sit in the section's left padding gutter */
    right: 100%;
    top: calc((28vw / 1.4 - 38px) / 2);
    margin-right: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.home-news-slider-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* bleed all the way to the viewport edge; section's overflow-x: clip hides excess */
    margin-right: -10rem;
    padding-right: 10rem;
}

.home-news-slider-track::-webkit-scrollbar {
    display: none;
}

.home-news-slide {
    /* ~3 full cards + partial 4th visible */
    flex: 0 0 calc(28vw - 0.5rem);
    min-width: 260px;
    scroll-snap-align: start;
}

.home-news-slide.is-hidden {
    display: none;
}

/* Grid variant for listing pages (no horizontal scroll) */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.home-news-grid .home-news-slide {
    flex: none;
    min-width: 0;
    width: auto;
}
@media (max-width: 991px) {
    .home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .home-news-grid { grid-template-columns: 1fr; }
}

.home-news-slider-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid #d8d8d8;
    color: var(--color-black);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: 1rem;
}

.home-news-slider-arrow:hover:not(:disabled) {
    background: var(--color-alt);
    border-color: var(--color-alt);
    color: var(--color-white);
}

.home-news-slider-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.home-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-white);
    border: 1px solid #ececec;
}

.home-news-card-media {
    display: block;
    aspect-ratio: 1.4 / 1;
    overflow: hidden;
    background: #e1e1e1;
}

.home-news-card-media img,
.home-news-card-fallback {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-news-card-media img {
    transition: transform 0.35s ease;
}

.home-news-card:hover .home-news-card-media img {
    transform: scale(1.04);
}

.home-news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.4rem;
}

.home-news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-news-card-category {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    background: var(--category-color, var(--color-alt));
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-news-card-date {
    color: #767676;
    font-size: 0.86rem;
}

.home-news-card-title {
    margin: 0 0 0.9rem;
    font-size: 1.4rem;
    line-height: 1.25;
}

.home-news-card-title a {
    color: var(--color-black);
    text-decoration: none;
}

.home-news-card-title a:hover {
    color: var(--color-alt);
}

.home-news-card-desc {
    margin-bottom: 1.25rem;
    color: #4f4f4f;
    line-height: 1.6;
}

.home-news-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-alt);
    font-weight: 700;
    text-decoration: none;
}

.home-news-card-link:hover {
    color: var(--color-black);
}

/* Responsive */
@media (max-width: 767.98px) {
    .banner-slide-title {
        font-size: 2rem;
    }
    .carousel.carousel-banner,
    .carousel .carousel-inner,
    .carousel .fullwidth {
        min-height: 65vh;
        max-height: 65vh;
    }
}

@media (max-width: 575.98px) {
    .banner-slide-title {
        font-size: 1.4rem;
    }
    .carousel.carousel-banner,
    .carousel .carousel-inner,
    .carousel .fullwidth {
        min-height: 55vh;
        max-height: 55vh;
    }
}

@media (max-width: 575.98px) {
    .banner-slide-link {
        margin-top: 1rem;
        padding: 0.75rem 1rem;
    }

    .home-featured-strip,
    .home-news-section {
        padding-left: 0;
        padding-right: 0;
    }    .home-featured-strip-inner,
    .home-news-section-inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .home-featured-card,
    .home-featured-card-static,
    .home-featured-card-overlay {
        min-height: 260px;
    }

    .home-areas-track {
        gap: 1.5rem 0;
    }

    .home-areas-item,
    .home-areas-item-static {
        flex: 0 0 auto;
        width: 50%; /* 2 per row on very small screens */
        min-height: 90px;
        padding: 0.5rem 1rem;
    }

    .home-areas-item img {
        max-height: 64px;
    }

    .home-news-heading {
        margin-bottom: 0;
    }

    .home-news-header-row {
        margin-bottom: 1.5rem;
    }

    .home-news-select-trigger {
        min-width: 0;
        width: 100%;
    }

    .home-news-slide {
        flex: 0 0 80vw;
        min-width: 0;
    }

    .home-news-slider-arrows {
        display: none;
    }

    .cursos-areas-section {
        padding: 3rem 0 2.5rem;
    }

    .cursos-area-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 140px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .cursos-area-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

/* Home areas strip — responsive columns */
@media (min-width: 576px) and (max-width: 767.98px) {
    .home-areas-item,
    .home-areas-item-static {
        flex: 0 0 auto;
        width: 33.333%; /* 3 per row */
        min-height: 90px;
        padding: 0.5rem 0.75rem;
    }
    .home-areas-item img {
        max-height: 60px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .home-areas-item,
    .home-areas-item-static {
        flex: 0 0 auto;
        width: 20%; /* 5 per row */
    }
}

/* Grid variant for areas listing page (4 per row) */
.cursos-area-card--grid {
    flex: none;
    width: 100%;
    min-width: 0;
}

/* ======================================
   CURSOS ACCORDION (Area Detail)
   ====================================== */

/* Bootstrap accordion-item override */
.cursos-accordion-item {
    border: none;
    border-radius: 0 !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.cursos-accordion-item .accordion-button {
    display: flex !important;
    align-items: center;
    width: 100%;
    background: linear-gradient(-45deg, var(--color-alt) 0%, var(--color-darker) 100%);
    color: var(--color-white, #fff);
    font-family: var(--text-family-bold, inherit);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    padding: 2.15rem 1.5rem;
    border-radius: 0 !important;
    box-shadow: none;
    border-bottom: 1px solid var(--color-dark);
    transition: 0.35s;
}

.cursos-accordion-item .accordion-button:hover {
    opacity: 0.85;
}

.cursos-accordion-item .accordion-button:not(.collapsed) {
    background: linear-gradient(-45deg, var(--color-alt) 0%, var(--color-darker) 100%);
    color: var(--color-white, #fff);
    box-shadow: none;
}

.cursos-accordion-item .accordion-button:focus {
    box-shadow: none;
}

.cursos-accordion-item .accordion-button::after {
    display: none;
}

.cursos-accordion-item .accordion-button .accordion-plus-icon::before {
    content: "+";
    font-size: 1.9rem;
    font-family: var(--text-family);
    font-weight: 300;
    line-height: 1;
}

.cursos-accordion-item .accordion-button:not(.collapsed) .accordion-plus-icon::before {
    content: "\2212"; /* minus sign */
}

.cursos-accordion-item .accordion-collapse {
    border: none;
}

/* Table inside accordion body */
.cursos-accordion-table {
    width: 100%;
    background: var(--color-white, #fff);
}

.cursos-accordion-row {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.cursos-accordion-row:last-child {
    border-bottom: none;
}

.cursos-accordion-row:hover {
    background: var(--color-alt, #0d6efd);
    color: var(--color-white, #fff);
    text-decoration: none;
}

.cursos-accordion-row:hover .cursos-accordion-col-code {
    color: rgba(255, 255, 255, 0.65);
}

/* Row action arrows — absolutely positioned so they never affect row height */
.row-arrow-default,
.row-arrow-hover {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.row-arrow-default {
    color: var(--color-alt, #0d6efd);
    font-size: 1.3rem;
    font-weight: 700;
    opacity: 1;
}

.row-arrow-hover {
    color: var(--color-white, #fff);
    font-family: var(--text-family-bold, inherit);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
}

.cursos-accordion-row:hover .row-arrow-default {
    opacity: 0;
}

.cursos-accordion-row:hover .row-arrow-hover {
    opacity: 1;
}

.cursos-accordion-col-code {
    flex: 0 0 100px;
    font-size: 0.85rem;
    color: #6c757d;
}

.cursos-accordion-col-nome {
    flex: 1;
    min-width: 0;
}

.cursos-accordion-row .cursos-accordion-col-nome {
    color: var(--color-alt);
    font-weight: 600;
}

.cursos-accordion-row:hover .cursos-accordion-col-nome {
    color: var(--color-white);
}

.cursos-accordion-col-inicio {
    flex: 0 0 140px;
    text-align: center;
    font-size: 0.9rem;
}

.cursos-accordion-col-duracao {
    flex: 0 0 140px;
    text-align: center;
    font-size: 0.9rem;
}

.cursos-accordion-col-action {
    flex: 0 0 150px;
    text-align: right;
    font-size: 1.1rem;
    position: relative;
}

.cursos-accordion-link {
    color: var(--color-alt, #0d6efd);
    text-decoration: none;
    font-family: var(--text-family-bold, inherit);
    font-weight: 700;
    font-size: 0.95rem;
}

.cursos-accordion-link:hover {
    text-decoration: underline;
}

.cursos-accordion-arrow {
    color: var(--color-alt, #0d6efd);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
}

.bg-light-alt {
    background-color: #eaf2f8;
}


/* ============================================================
   CURSO DETAIL PAGE
   ============================================================ */

/* ---- Course Header Banner ---- */
.curso-header {
    background: linear-gradient(-45deg, var(--color-secondary) 0%, var(--color-darker) 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.curso-header-title {
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.curso-header-code {
    font-weight: 400;
    font-size: 1.2rem;
    opacity: 0.7;
    margin-right: 0.25rem;
    display: inline;
}


/* ---- Anchor Navigation Bar (timeline style) ---- */
.curso-nav {
    background: linear-gradient(230deg, var(--color-secondary) 0%, var(--color-darker) 100%);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    /* top: 77px; */
    top: 0;
    z-index: 100;
    padding: 0.75rem 0 0.5rem;
}

.curso-nav::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-white);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4))
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.curso-nav-inner {
    display: flex;
    max-width: var(--grid-width);
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* Horizontal connecting line */
.curso-nav-inner::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-white);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4))
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.curso-nav-link {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--text-family);
    font-size: 0.73rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

/* Circle dot */
.curso-nav-link::before {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    background: var(--color-dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: width 0.3s, height 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Inner fill dot (via box-shadow inset) on hover/active */
.curso-nav-link:hover,
.curso-nav-link.active {
    color: var(--color-white);
    font-weight: 700;
}

.curso-nav-link:hover::before,
.curso-nav-link.active::before {
    background: var(--color-white);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}


/* ---- Direitos de Autor ---- */
.curso-direitos {
    background: var(--color-white);
    padding: 1.5rem 2rem;
}

.curso-direitos :last-child {
    margin-bottom: 0;
}

.curso-direitos h5 {
    font-size: 0.95rem;
    font-weight: 700;
}


/* ---- Three Info Cards ---- */
.curso-info-card {
    background: var(--color-white);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--color-secondary);
}

.curso-info-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.curso-info-card-body {
    font-size: 0.9rem;
    line-height: 1.65;
    max-height: 95px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    flex: 1;
}

/* Remove bottom margin from last element inside card body */
.curso-info-card-body > *:last-child {
    margin-bottom: 0;
}

.curso-info-card.expanded .curso-info-card-body {
    max-height: 200em;
}

.curso-info-card-toggle {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--text-family-bold);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-secondary);
    text-decoration: none;
    cursor: pointer;
}

.curso-info-card-toggle:hover {
    color: var(--color-alt);
}


/* ---- Conteúdos Programáticos (Accordion) ---- */
.curso-conteudos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.curso-conteudos-expand-all {
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 0.45rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.curso-conteudos-expand-all:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.curso-conteudos-accordion {
    overflow: hidden;
}

.curso-conteudos-acc-item, .curso-met-item {
    border-bottom: 1px solid var(--color-darker);
}

.curso-conteudos-acc-item:last-child, .curso-met-item:last-child {
    border-bottom: none;
}

.curso-conteudos-acc-toggle, .curso-met-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.15rem 1.5rem;
    background: var(--color-white);
    color: var(--color-darker);
    border: none;
    cursor: pointer;
    transition: 0.25s;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: left;
}

.curso-conteudos-acc-toggle:hover,
.curso-conteudos-acc-toggle[aria-expanded="true"],
.curso-met-toggle:hover,
.curso-met-toggle[aria-expanded="true"] {
    color: var(--color-secondary);
    background: var(--color-gray);
}

.curso-conteudos-nome {
    flex: 1;
    font-family: var(--text-family-bold);
}

.curso-conteudos-horas {
    flex-shrink: 0;
    white-space: nowrap;
}

.curso-conteudos-acc-icon, .curso-met-icon {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.curso-conteudos-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--color-white);
}

.curso-conteudos-acc-content {
    padding: .5rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ---- Metodologias Block ---- */
.curso-met-toggle > span:first-of-type {
    font-family: var(--text-family-bold);
}

.curso-met-card {
    background: var(--color-white);
    padding: 0.5rem 2rem;
}

.curso-met-toggle:hover {
    color: var(--color-alt);
}

.curso-met-icon {
    margin-left: auto;
}

.curso-met-body {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
}

.curso-met-body :last-child {
    margin-bottom: 0;
}

/* ---- Horários Cards ---- */
.curso-horario-card {
    background: var(--color-white);
    padding: 2rem 2rem;
}

.curso-horario-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.curso-horario-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--color-gray-dark);
}


/* ---- Próximas Datas ---- */
.curso-datas-wrapper {
    overflow-x: auto;
}

.curso-datas-tabs {
    display: flex;
    background: linear-gradient(-45deg, var(--color-secondary) 0%, var(--color-darker) 100%);
}

.curso-datas-tab {
    flex: 1;
    padding: 1.5rem 0.5rem;
    font-family: var(--text-family-bold);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
    letter-spacing: 0.03em;
    line-height: 1.3;
    border: none;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.15s;
}

.curso-datas-tab:hover, .curso-datas-tab.active {
    background: var(--color-white);
    color: var(--color-black);
}

.curso-datas-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-gray-alt);
    gap: 1rem;
}

.curso-datas-row:last-child {
    border-bottom: none;
}

.curso-datas-col {
    font-size: 0.9rem;
}

.curso-datas-col-data {
    flex: 0 0 100px;
    font-family: var(--text-family-bold);
    font-weight: 600;
    line-height: 1.3;
}

.curso-datas-col-data small {
    font-weight: 400;
    color: var(--color-gray-dark);
}

.curso-datas-col-horas {
    flex: 0 0 60px;
    text-align: center;
    font-weight: 600;
}

.curso-datas-col-tipo {
    flex: 0 0 140px;
    text-align: center;
}

.curso-datas-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-family: var(--text-family-bold);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-white);
}

.curso-datas-badge-online {
    background: #2e9e5a;
}

.curso-datas-badge-presencial {
    background: var(--color-secondary);
}

.curso-datas-badge-fds {
    background: var(--color-gold);
}

.curso-datas-col-local {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.curso-datas-col-preco {
    flex: 0 0 100px;
    text-align: right;
    font-family: var(--text-family-bold);
    font-weight: 600;
}

.curso-datas-col-action {
    flex: 0 0 150px;
    text-align: right;
}

.curso-datas-btn, .btn-black-border {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 0;
    border-left: 3px solid var(--color-secondary);
    color: var(--color-white);
    font-family: var(--text-family-bold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    background: linear-gradient(to right, var(--color-secondary) 50%, var(--color-black) 50%);
    background-size: 200% 100%;
    background-position: right center;
    transition: background-position 0.35s ease;
}

.curso-datas-btn:hover, .btn-black-border:hover {
    background-position: left center;
    color: var(--color-white);
}


/* ---- Curso Detail Responsive ---- */
@media (max-width: 767.98px) {
    .curso-header-title {
        font-size: 1.4rem;
    }

    .curso-header-code {
        font-size: 1rem;
        display: block;
        margin-bottom: 0.25rem;
    }

    .curso-nav-link {
        font-size: 0.6rem;
        padding: 0.5rem 0.25rem 0.6rem;
    }

    .curso-nav-link::before {
        width: 0.6rem;
        height: 0.6rem;
    }

    .curso-nav-link:hover::before,
    .curso-nav-link.active::before {
        width: 0.9rem;
        height: 0.9rem;
    }

    .curso-nav-inner::before {
        top: 1.2rem;
    }

    .curso-conteudos-acc-toggle {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .curso-conteudos-acc-content {
        padding: 1.25rem;
    }

    .curso-datas-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .curso-datas-col-data {
        flex: 0 0 80px;
    }

    .curso-datas-col-action {
        flex: 1 0 100%;
        text-align: left;
        margin-top: 0.25rem;
    }
}

/* Responsive accordion */
@media (max-width: 767.98px) {
    /* Hide column headers inside button on small screens */
    .cursos-accordion-item .accordion-button .cursos-accordion-col-code,
    .cursos-accordion-item .accordion-button .cursos-accordion-col-inicio,
    .cursos-accordion-item .accordion-button .cursos-accordion-col-duracao,
    .cursos-accordion-item .accordion-button .cursos-accordion-col-action {
        display: none;
    }

    .cursos-accordion-row {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }

    .cursos-accordion-col-code {
        flex: 0 0 auto;
        order: 1;
    }

    .cursos-accordion-col-nome {
        flex: 1 1 100%;
        order: 2;
    }

    .cursos-accordion-col-inicio,
    .cursos-accordion-col-duracao {
        flex: 0 0 auto;
        text-align: left;
        order: 3;
    }

    .cursos-accordion-col-action {
        flex: 0 0 auto;
        order: 4;
        margin-left: auto;
    }
}


/* ======================================
   SITE FOOTER
   ====================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    background-color: #5e5e5e;
    background-image: url("/img/decorations/footer-background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    color: #fff;
    padding: 70px 95px 0;
    margin-top: 80px;
}

.site-footer > * {
    position: relative;
    z-index: 1;
}

/* ---- Top contact band ---- */
.site-footer__contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.site-footer__title {
    color: #fff;
    font-family: var(--text-family-bold);
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.site-footer__subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem;
}

.site-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-footer__contact-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.site-footer__contact-list i {
    color: var(--color-secondary);
    font-size: 1rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.site-footer__contact-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    line-height: 1.5;
    transition: opacity 0.25s;
}

.site-footer__contact-list a:hover {
    opacity: 0.7;
    color: #fff;
}

.site-footer__contact-aviso {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ---- Form ---- */
.site-footer__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
    align-content: start;
}

.site-footer__field {
    display: flex;
    flex-direction: column;
}

.site-footer__field--full,
.site-footer__actions {
    grid-column: 1 / -1;
}

.site-footer__field label {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}

.site-footer__required {
    color: var(--color-secondary);
    margin-left: 2px;
}

.site-footer__field input,
.site-footer__field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: var(--text-family);
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.4rem 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.25s;
}

.site-footer__field textarea {
    resize: vertical;
    min-height: 80px;
}

.site-footer__field input::placeholder,
.site-footer__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__field input:focus,
.site-footer__field textarea:focus {
    outline: none;
    border-bottom-color: #fff;
    box-shadow: none;
}

.site-footer__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.site-footer__submit {
    background: #fff;
    color: #1d1d1b;
    border: none;
    padding: 0.7rem 2.5rem;
    border-radius: 999px;
    font-family: var(--text-family-bold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.25s, transform 0.25s;
}

.site-footer__submit:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ---- Legal bar ---- */
.site-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 0;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-footer__legal p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: opacity 0.25s;
}

.site-footer__legal a:hover {
    opacity: 0.7;
    color: #fff;
}

.site-footer__legal strong {
    color: #fff;
    font-weight: 600;
}

.site-footer__sep {
    margin: 0 0.6rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- Generic gray CTA (kept) ---- */
.cta-gray {
    background: var(--color-gray);
    padding: 4rem 1rem;
}

.wlgrid.cta-gray {
    margin: 0 -72px;
    padding-left: 72px;
    padding-right: 72px;
}

/* ---- Site footer responsive ---- */
@media (max-width: 991.98px) {
    .site-footer {
        padding: 50px 30px 0;
    }
    .site-footer__contact {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding: 40px 20px 0;
    }
    .site-footer__title {
        font-size: 1.75rem;
    }
    .site-footer__form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .site-footer__legal p {
        font-size: 0.8rem;
    }
    .site-footer__sep {
        margin: 0 0.35rem;
    }
}

.banner-page {
    height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-page--area {
    justify-content: flex-start;
    padding-bottom: 3rem;
}

.banner-title {
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 18px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.4);
}

.banner-title--left {
    text-align: left;
    margin-bottom: 0.75rem;
}

.banner-desc {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 55%;
}

@media (max-width: 575.98px) {
    .banner-page {
        height: 250px;
    }
}

/* ===== PAGE � default layout (pagina.tpl) ===== */
.page-content {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}
.page-content .row {
    margin: 0 auto;
    max-width: var(--grid-width);
}
.page-content-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}
.page-title {
    text-align: center;
    margin: 0 auto 2.5rem;
    max-width: 900px;
    color: var(--color-black);
}
.page-body {
    color: var(--color-primary);
    line-height: 1.7;
}
.page-body p { margin-bottom: 1rem; }

/* Decorative red FAP-arrow logos on the sides — matches live `.logos.sl-abs`
   pattern (positioned partially off-screen so the arrow peeks in). */
.page-shape {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    width: 38%;
    max-width: 520px;
    line-height: 0;
}
.page-shape svg {
    display: block;
    width: 100%;
    height: auto;
    fill: var(--color-secondary);
    fill-rule: evenodd;
}
.page-shape--left {
    top: 0;
    left: -10%;
}
.page-shape--right {
    top: 110px;
    right: -10%;
}

/* The base [data-ae-animation]{opacity:0} rule (line ~55) hides them
   until animationEngine.js adds the .animated class plus a fadeIn* class. */
.page-shape[data-ae-animation].animated { opacity: 1; }

/* Hide side shapes on tablet/mobile (matches live `.logos { display:none }`
   below 1024px). */
@media (max-width: 1024px) {
    .page-shape { display: none; }
}
@media (max-width: 768px) {
    .page-content { padding: 48px 0 56px; }
    .page-content-inner { max-width: 100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-shape, .page-title, .page-body {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Órgãos Sociais ===== */
.orgaos-sociais-section {
    width: 100%;
    padding: 32px 24px 80px;
    background: #f4f4f4;
}
.orgaos-sociais {
    width: 100%;
    max-width: none;
    margin: 0;
}
.orgaos-categoria { margin-bottom: 80px; }
.orgaos-categoria:last-child { margin-bottom: 0; }
.orgaos-categoria__title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 56px;
    color: #1a1a1a;
}
.orgaos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 24px;
    row-gap: 64px;
    align-items: end;
}
.orgao-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease;
}
.orgao-item--up   { transform: translateY(-32px); }
.orgao-item--down { transform: translateY(32px); }
.orgao-item--up:hover   { transform: translateY(-44px); }
.orgao-item--down:hover { transform: translateY(20px); }
.orgao-item__cargo {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.1;
    color: #1a1a1a;
}
.orgao-item--up .orgao-item__cargo { color: #e30613; }
.orgao-card {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.orgao-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.orgao-card__photo {
    width: 100%;
    overflow: hidden;
    background: #e30613;
}
.orgao-card__photo img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    display: block;
}
.orgao-card__info {
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.orgao-card__nome {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}
.orgao-card__faculdade {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.orgao-card__email {
    font-size: 13px;
    color: #e30613;
    text-decoration: none;
    word-break: break-all;
    margin-top: 4px;
}
.orgao-card__email:hover { text-decoration: underline; }

@media (max-width: 1024px) {
    .orgaos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orgao-item__cargo { font-size: 26px; }
}
@media (max-width: 600px) {
    .orgaos-sociais-section { padding: 24px 16px 56px; }
    .orgaos-grid { grid-template-columns: 1fr; row-gap: 40px; }
    .orgao-item--up, .orgao-item--down { transform: none; }
    .orgao-item--up:hover, .orgao-item--down:hover { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .orgao-item, .orgao-item--up, .orgao-item--down,
    .orgao-card, .orgao-card:hover,
    .orgao-item--up:hover, .orgao-item--down:hover {
        transition: none;
    }
}

/* ===== AAEE Federadas ===== */
.aaee-federadas-section {
    width: 100%;
    padding: 32px 24px 80px;
    background: #fff;
}
.aaee-federadas {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}
.aaee-tipo { margin-bottom: 64px; }
.aaee-tipo:last-child { margin-bottom: 0; }
.aaee-tipo__title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #e30613;
    margin-bottom: 48px;
    text-transform: none;
}
.aaee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
    align-items: stretch;
}
.aaee-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: 100%;
    font: inherit;
    color: inherit;
}
.aaee-card:hover { transform: translateY(-6px); }
.aaee-card:focus-visible {
    outline: 2px solid #e30613;
    outline-offset: 6px;
}
.aaee-card__logo {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.aaee-card__logo img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.aaee-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.aaee-card__nome {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.4;
}
.aaee-card__sigla {
    font-size: 13px;
    color: #989797;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
}

/* Modal */
.aaee-modal .modal-content {
    border: 0;
    border-radius: 6px;
    overflow: hidden;
}
.aaee-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}
.aaee-modal .modal-body {
    padding: 40px 32px 32px;
    text-align: center;
}
.aaee-modal__logo {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.aaee-modal__logo img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}
.aaee-modal__nome {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}
.aaee-modal__sigla {
    font-size: 13px;
    color: #989797;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}
.aaee-modal__morada {
    font-size: 14px;
    color: #4c4c4c;
    line-height: 1.5;
    margin-bottom: 18px;
}
.aaee-modal__links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}
.aaee-modal__links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f4f4;
    color: #4c4c4c;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.aaee-modal__links a:hover {
    background: #e30613;
    color: #fff;
}

@media (max-width: 1024px) {
    .aaee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (max-width: 600px) {
    .aaee-federadas-section { padding: 24px 16px 56px; }
    .aaee-grid { grid-template-columns: 1fr; gap: 32px; }
    .aaee-card__logo { height: 150px; }
    .aaee-card__logo img { max-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    .aaee-card, .aaee-card:hover { transition: none; transform: none; }
}

/* ===== Lista de Presidentes ===== */
.presidentes-section {
    width: 100%;
    padding: 32px 24px 80px;
    background: #f4f4f4;
}
.presidentes {
    width: 100%;
    max-width: none;
    margin: 0;
}
.presidentes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 24px;
    row-gap: 56px;
    align-items: start;
}
.presidente-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.presidente-item--up   { margin-top: 0; margin-bottom: 32px; }
.presidente-item--down { margin-top: 32px; margin-bottom: 0; }
.presidente-item__ano {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    margin-bottom: -28px;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.presidente-item--up .presidente-item__ano { color: #e30613; }
.presidente-card {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    padding: 44px 18px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: box-shadow 0.35s ease;
}
.presidente-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.presidente-card__nome {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
}
.presidente-card__faculdade {
    font-size: 15px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

@media (max-width: 1024px) {
    .presidentes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .presidente-item__ano { font-size: 52px; }
}
@media (max-width: 600px) {
    .presidentes-section { padding: 24px 16px 56px; }
    .presidentes-grid { grid-template-columns: 1fr; row-gap: 36px; }
    .presidente-item--up, .presidente-item--down { margin-top: 0; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .presidente-item, .presidente-card { transition: none; }
}


/* ===== Noticias destaque carousel ===== */
.noticias-destaque-section {
    margin: 0 0 2.5rem;
    padding: 0;
    width: 100%;
}

.noticias-destaque-section .noticias-destaque-carousel {
    position: relative;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.noticias-destaque-section .carousel-inner { overflow: hidden; }

.noticias-destaque-section .noticias-destaque-row {
    --bs-gutter-x: 0;
    min-height: 460px;
    margin: 0;
    width: 100%;
    max-width: none;
}

.noticias-destaque-section .noticias-destaque-row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.noticias-destaque-section .noticias-destaque-media {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    min-height: 280px;
}

.noticias-destaque-section .noticias-destaque-media > a,
.noticias-destaque-section .noticias-destaque-media > a > img,
.noticias-destaque-section .noticias-destaque-media > img,
.noticias-destaque-section .noticias-destaque-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noticias-destaque-section .noticias-destaque-media img {
    transition: transform 0.5s ease;
}
.noticias-destaque-section .noticias-destaque-media:hover img { transform: scale(1.03); }

.noticias-destaque-section .noticias-destaque-panel {
    background-color: #000 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    padding: 2.5rem 2.5rem 2.5rem 4rem;
    position: relative;
}

.noticias-destaque-section .noticias-destaque-panel-inner { width: 100%; }

.noticias-destaque-section .noticias-destaque-cat { margin-bottom: 1.5rem; }

.noticias-destaque-section .noticias-destaque-title {
    margin: 0 0 1.25rem;
    font-size: 1.9rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff !important;
}

.noticias-destaque-section .noticias-destaque-title a {
    color: #fff !important;
    text-decoration: none;
}
.noticias-destaque-section .noticias-destaque-title a:hover { color: var(--color-alt) !important; }

.noticias-destaque-section .noticias-destaque-desc {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

.noticias-destaque-section .noticias-destaque-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.86rem;
}
.noticias-destaque-section .noticias-destaque-meta i { font-size: 1rem; }

.noticias-destaque-section .noticias-destaque-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    z-index: 4;
}
.noticias-destaque-section .noticias-destaque-arrow:hover { transform: translateX(4px); }

.noticias-destaque-section .carousel-indicators.noticias-destaque-indicators {
    position: absolute !important;
    top: 50% !important;
    right: 0.85rem !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    gap: 0.65rem !important;
    z-index: 5;
    width: auto !important;
    justify-content: flex-start !important;
    padding: 0 !important;
}

.noticias-destaque-section .carousel-indicators.noticias-destaque-indicators [data-bs-target] {
    width: 11px !important;
    height: 11px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    background-color: transparent !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex: 0 0 auto;
}

.noticias-destaque-section .carousel-indicators.noticias-destaque-indicators [data-bs-target].active {
    background-color: #fff !important;
    border-color: #fff !important;
}

@media (max-width: 767.98px) {
    .noticias-destaque-section .noticias-destaque-row { min-height: 0; }
    .noticias-destaque-section .noticias-destaque-media { min-height: 0; aspect-ratio: 16 / 9; }
    .noticias-destaque-section .noticias-destaque-panel { padding: 2rem 1.5rem 4rem; }
    .noticias-destaque-section .noticias-destaque-panel-inner {
        /* reset pdl30/pdr60 utility classes (both !important) */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .noticias-destaque-section .noticias-destaque-title { font-size: 1.5rem; }
    .noticias-destaque-section .noticias-destaque-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .noticias-destaque-section .noticias-destaque-arrow { bottom: 1rem; right: 1rem; }
    .noticias-destaque-section .carousel-indicators.noticias-destaque-indicators {
        top: auto !important;
        bottom: 1rem !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        flex-direction: row !important;
    }
}

@media (max-width: 575.98px) {
    .noticias-destaque-section .noticias-destaque-title { font-size: 1.25rem; }
    .noticias-destaque-section .noticias-destaque-panel { padding: 1.5rem 1.25rem 3.5rem; }
    .noticias-destaque-section .noticias-destaque-desc { -webkit-line-clamp: 3; }
}
/* ===== Not�cia � single-article layout (left article + related sidebar) ===== */
.noticia-artigo-section { background: var(--color-white); }
.noticia-artigo-inner { margin: 0 auto; padding: 0 1.5rem; }
.noticia-artigo-back { color: var(--color-black); text-decoration: none; font-weight: 600; }
.noticia-artigo-back:hover { color: var(--color-alt); }

.noticia-artigo-row { row-gap: 2.5rem; }

.noticia-artigo-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.noticia-artigo-readtime { color: #767676; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }

.noticia-artigo-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; margin: 0 0 1.5rem; }

.noticia-artigo-hero img { width: 100%; height: auto; display: block; }

.noticia-artigo-meta { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.5rem 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #ececec; }
.noticia-artigo-meta-block { display: flex; flex-direction: column; gap: 0.25rem; }
.noticia-artigo-meta-label { color: #767676; font-size: 0.85rem; }
.noticia-artigo-meta-value { color: var(--color-black); font-size: 0.95rem; }

.noticia-artigo-body { color: var(--color-black); line-height: 1.7; font-size: 1rem; }
.noticia-artigo-body img { max-width: 100%; height: auto; }
.noticia-artigo-body h2, .noticia-artigo-body h3 { margin-top: 1.8rem; }

.noticia-artigo-aside-inner { position: relative; }
.noticia-artigo-related-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--color-alt); }
.noticia-artigo-related-list { display: flex; flex-direction: column; gap: 1.25rem; }
.noticia-artigo-related-card { height: auto; }
.noticia-artigo-related-card .home-news-card-media { aspect-ratio: 1.6 / 1; }
.noticia-artigo-related-card .home-news-card-body { padding: 1rem; }
.noticia-artigo-related-card .home-news-card-title { font-size: 1.05rem; margin-bottom: 0.6rem; }
.noticia-artigo-related-card .home-news-card-date { display: inline-flex; align-items: center; gap: 0.35rem; }

@media (min-width: 992px) {
    .noticia-artigo-main { --padding-size: 5rem;padding-left: var(--padding-size); padding-right: var(--padding-size);}
    .noticia-artigo-aside-inner { padding: 0 2rem !important; padding-top: 2.2rem !important;}
}

@media (max-width: 991.98px) {
    .noticia-artigo-aside { margin-top: 1rem; }
}
/* Noticia - related sidebar gray bleed to viewport right edge */
.noticia-artigo-row { position: relative; overflow: visible;max-width: none; }
.noticia-artigo-aside {
    background: #ececec !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    padding-left: 2rem !important;
    position: relative;
}
.noticia-artigo-aside::before,
.noticia-artigo-aside::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
    background: #ececec;
    pointer-events: none;
    z-index: 0;
}
.noticia-artigo-aside::before { right: 100%; width: 0; }
.noticia-artigo-aside::after  { left: 100%; }
.noticia-artigo-aside > * { position: relative; z-index: 1; }

@media (max-width: 991.98px) {
    .noticia-artigo-aside { padding-left: 1.25rem !important; }
    .noticia-artigo-aside::after { display: none; }
}
/* ===========================================================
   Galeria — listing cards & detail grid
   =========================================================== */
.galeria-section {
    width: 100%;
    padding: 0 24px 80px;
    background: #fff;
}
.galeria-list {
    width: 100%;
    max-width: none;
    margin: 0;
}
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    row-gap: 64px;
    align-items: end;
}
.galeria-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease;
}
.galeria-item--up   { transform: translateY(-32px); }
.galeria-item--down { transform: translateY(32px); }
.galeria-item--up:hover   { transform: translateY(-44px); }
.galeria-item--down:hover { transform: translateY(20px); }
.galeria-card {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.35s ease;
}
.galeria-card:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}
.galeria-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f4f4f4;
}
.galeria-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.galeria-card:hover .galeria-card__media img { transform: scale(1.04); }
.galeria-card__fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4f4f4 0%, #e3e3e3 100%);
}
.galeria-card__body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.galeria-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
}
.galeria-card__title a {
    color: inherit;
    text-decoration: none;
}
.galeria-card__title a:hover { color: #e30613; }
.galeria-card__date {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.4;
}
.galeria-card__date strong {
    color: #e30613;
    font-weight: 700;
}
.galeria-card__cta {
    margin-top: auto;
    padding-top: 8px;
    color: #e30613;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    align-self: flex-start;
}
.galeria-card__cta:hover { text-decoration: underline; }
.galeria-list__empty {
    color: #7f7f7f;
    padding: 48px 0;
}

@media (max-width: 1199.98px) {
    .galeria-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .galeria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; row-gap: 48px; }
}
@media (max-width: 560px) {
    .galeria-section { padding: 0 16px 56px; }
    .galeria-grid { grid-template-columns: 1fr; gap: 20px; row-gap: 20px; }
    .galeria-item--up, .galeria-item--down { transform: none; }
    .galeria-item--up:hover, .galeria-item--down:hover { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .galeria-card, .galeria-card:hover,
    .galeria-item, .galeria-item--up, .galeria-item--down,
    .galeria-item--up:hover, .galeria-item--down:hover,
    .galeria-card__media img, .galeria-card:hover .galeria-card__media img {
        transition: none;
        transform: none;
    }
}

/* ----- Galeria detail ----- */
.galeria-detail-section {
    width: 100%;
    padding: 32px 24px 80px;
    background: #fff;
}
.galeria-detail {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}
.galeria-detail__header {
    text-align: center;
    margin-bottom: 40px;
}
.galeria-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7f7f7f;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 20px;
}
.galeria-detail__back:hover { color: #e30613; }
.galeria-detail__title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.galeria-detail__date {
    font-size: 16px;
    color: #1a1a1a;
}
.galeria-detail__date strong {
    color: #e30613;
    font-weight: 700;
}
.galeria-detail__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.galeria-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f4f4;
    cursor: zoom-in;
}
.galeria-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.galeria-thumb:hover img { transform: scale(1.06); opacity: 0.92; }
.galeria-detail__empty {
    color: #7f7f7f;
    padding: 48px 0;
}

@media (max-width: 991.98px) {
    .galeria-detail__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .galeria-detail__title { font-size: 30px; }
}
@media (max-width: 600px) {
    .galeria-detail-section { padding: 24px 16px 56px; }
    .galeria-detail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .galeria-detail__title { font-size: 24px; }
}

/* ----- Lightbox modal ----- */
.galeria-lightbox.modal { z-index: 2000; }
.galeria-lightbox + .modal-backdrop,
.modal-backdrop.galeria-lightbox-backdrop { z-index: 1999; }
.galeria-lightbox .modal-content.galeria-lightbox__content {
    background: rgba(10, 10, 10, 0.96);
    border: 0;
    border-radius: 0;
    color: #fff;
}
.galeria-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
}
.galeria-lightbox__carousel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.galeria-lightbox__carousel .carousel-inner {
    height: 100%;
}
.galeria-lightbox__carousel .carousel-item {
    height: 100vh;
}
.galeria-lightbox__stage {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 56px;
}
.galeria-lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.galeria-lightbox__nav {
    width: 56px;
    opacity: 0.85;
}
.galeria-lightbox__nav:hover { opacity: 1; }
@media (max-width: 600px) {
    .galeria-lightbox__stage { padding: 48px 16px; }
    .galeria-lightbox__nav { width: 40px; }
}

