/* SimSD 2026 – sdomingos.com.br Visual Identity */

/* Google Fonts Import: Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ─── Design Tokens ─── */
:root {
    --brand-red: #E30613;
    --brand-red-dark: #BB0510;
    --brand-maroon: #680218;
    --brand-crimson: #7B1D1D;
    --text-body: #161616;
    --text-muted: #555555;
    --text-light: #888888;
    --text-headings: #680218;
    --header-text: #333333;
    --light-bg: #F7F7F7;
    --white: #FFFFFF;
    --footer-bg: #1A1A1A;
    --border-color: #EAEAEA;
    --divider: #dcdcdc;

    /* Layout */
    --max-site-width: 1540px;
    --space: clamp(20px, 2.5vw, 40px);
    --titles: clamp(32px, 3.5vw, 50px);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Base Resets ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--text-headings);
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── Layout Container ─── */
.container {
    width: 100%;
    max-width: var(--max-site-width);
    margin: 0 auto;
    padding: 0 var(--space);
}

.site-center {
    width: 100%;
    max-width: var(--max-site-width);
    margin: 0 auto;
}

.section-padding {
    padding: calc(var(--space) * 2) 0;
}

.text-center {
    text-align: center;
}


/* ═══════════════════════════════════════════════
   SITE HEADER (sdomingos.com.br style)
   ═══════════════════════════════════════════════ */
.header-component {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.header-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    pointer-events: none;
    z-index: -1;
}

.header-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Scroll hide / reveal */
.desktop-header,
.mobile-header {
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-component.header-hidden .desktop-header,
.header-component.header-hidden .mobile-header {
    transform: translateY(-130%);
}

.header-container {
    padding: 20px var(--space) 0;
    pointer-events: auto;
}

/* White pill */
.header-content {
    background-color: var(--white);
    max-width: var(--max-site-width);
    margin: 0 auto;
    height: 70px;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    padding: 0 12px 0 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.4s, box-shadow 0.45s;
    overflow: hidden;
    position: relative;
}

.header-content.open {
    border-radius: 24px;
}

.header-component.header-hidden .header-content {
    box-shadow: none;
}

.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70px;
    flex-shrink: 0;
}

.logo-section .logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Desktop nav */
.main-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin: 0 24px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.3vw, 26px);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 70px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: clamp(13px, 1vw, 15px);
    color: var(--header-text);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item a {
    color: inherit;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item .arrow {
    display: inline-flex;
    transition: transform 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--brand-red);
}

.nav-item.has-panel:hover .arrow,
.nav-item.panel-open .arrow {
    transform: rotate(180deg);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-user-greeting {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: clamp(12px, 1vw, 14px);
    color: var(--brand-maroon);
    white-space: nowrap;
}

/* Nav CTA button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background-color: var(--brand-red);
    color: var(--white);
    border-radius: 30px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    transition: var(--transition-normal);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
    color: var(--white);
}

.nav-cta svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-cta:hover svg {
    transform: translate(1px, -1px);
}

/* ─── Comitês mega-panel ─── */
.sub-panel-wrapper {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
    padding: 10px 12px 26px;
}

.sub-panel-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.sub-panel-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    width: 100%;
}

.panel-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.panel-card:hover {
    transform: translateY(-5px);
}

.panel-card .card-visual {
    height: 120px;
    border-radius: 12px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-card:hover .card-visual {
    border-color: var(--brand-red);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.panel-card .card-visual img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Photo cards (Imprensa, Staff) fill the frame like the parent site */
.panel-card.photo .card-visual {
    padding: 0;
    background: var(--light-bg);
}

.panel-card.photo .card-visual img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.panel-card .card-headline {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-headings);
    text-align: center;
    line-height: 1.25;
}


/* ═══════════════════════════════════════
   MOBILE HEADER
   ═══════════════════════════════════════ */
.mobile-header {
    display: none;
}

.mobile-header-content {
    background-color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s;
}

.mobile-header-content.open {
    border-radius: 24px;
}

.mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px 0 18px;
    height: 56px;
}

.mobile-top-bar .logo {
    height: 30px;
    width: auto;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--header-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.header-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 15px;
}

.menu-bars span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-menu-btn.open {
    color: var(--brand-red);
}

.mobile-menu-btn.open .menu-bars span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.open .menu-bars span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .menu-bars span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-panel.open {
    max-height: calc(100svh - 100px);
    overflow-y: auto;
}

.mobile-menu-inner {
    padding: clamp(13px, 4vw, 28px);
    padding-bottom: 40px;
}

.mobile-menu-group {
    margin-bottom: 24px;
}

.mobile-menu-group:last-of-type {
    margin-bottom: 0;
}

.mobile-group-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--brand-maroon);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(104, 2, 24, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.mobile-group-title.link-mode {
    transition: color 0.2s;
}

.mobile-group-title.link-mode:hover {
    color: var(--brand-red);
}

.mobile-group-title.link-mode svg {
    transition: transform 0.2s;
}

.mobile-group-title.link-mode:hover svg {
    transform: translateX(4px);
}

.mobile-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-menu-cta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-cta .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 13px;
}

.mobile-menu-cta .nav-user-greeting {
    text-align: center;
    padding: 4px 0;
}

.mobile-menu-cta form {
    width: 100%;
}


/* ═══════════════════════════════════════
   BUTTON COMPONENT (sdomingos pill + arrow)
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 1em 2.5em;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: clamp(12px, 1vw, 13px);
    border-radius: 2.55em;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.2em;
    width: fit-content;
}

/* Arrow icon for buttons */
.btn::after {
    content: '';
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L11 1M11 1V11M11 1H1' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translate(1px, -1px);
}

/* Primary (Red) */
.btn-primary {
    background-color: var(--brand-red);
    color: var(--white);
}

.btn-primary::after {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L11 1M11 1V11M11 1H1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    color: var(--white);
    transform: translateY(-0.1em);
    box-shadow: 0 0.2em 0.75em rgba(227, 6, 19, 0.2);
}

/* White */
.btn-white {
    background-color: var(--white);
    color: var(--brand-crimson);
}

.btn-white::after {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L11 1M11 1V11M11 1H1' stroke='%237B1D1D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-0.1em);
    box-shadow: 0 0.2em 0.75em rgba(0, 0, 0, 0.1);
}

/* Maroon */
.btn-maroon {
    background-color: var(--brand-maroon);
    color: var(--white);
}

.btn-maroon::after {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L11 1M11 1V11M11 1H1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn-maroon:hover {
    background-color: #40010F;
    transform: translateY(-0.1em);
    box-shadow: 0 0.2em 0.75em rgba(104, 2, 24, 0.25);
}

/* Outline Red */
.btn-outline-red {
    background-color: transparent;
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
}

.btn-outline-red::after {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L11 1M11 1V11M11 1H1' stroke='%23E30613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn-outline-red:hover {
    background-color: var(--brand-red-dark);
    color: var(--white);
    border-color: var(--brand-red-dark);
    transform: translateY(-0.1em);
    box-shadow: 0 0.2em 0.75em rgba(227, 6, 19, 0.2);
}

.btn-outline-red:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 11L11 1M11 1V11M11 1H1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Secondary (White bg, dark text) */
.btn-secondary {
    background-color: var(--white);
    color: var(--brand-crimson);
    border: 1px solid var(--brand-crimson);
}

.btn-sm {
    padding: 0.7em 1.8em;
    font-size: 12px;
}

/* No-arrow variant */
.btn-no-arrow::after {
    display: none;
}


/* ═══════════════════════════════════════
   SECTION TITLES (sdomingos – no underline)
   ═══════════════════════════════════════ */
.section-title {
    font-size: var(--titles);
    color: var(--text-headings);
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

/* Remove underline */
.section-title::after {
    display: none;
}

.section-subtitle {
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 56px;
    line-height: 1.6;
}


/* ═══════════════════════════════════════
   HERO SECTION (Full-height, no overlay)
   ═══════════════════════════════════════ */
.hero {
    width: 100%;
    height: clamp(520px, calc(100svh - 180px), 760px);
    min-height: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    color: var(--white);
    position: relative;
}

.hero-content {
    padding: calc(var(--space) * 2) var(--space);
    padding-bottom: calc(var(--space) * 2.5);
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(42px, 5vw, 72px);
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -1px;
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Subtle bottom gradient for text readability */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}


/* ═══════════════════════════════════════
   DELEGATIONS ANNOUNCEMENT + SEARCH
   ═══════════════════════════════════════ */
.delegations-announcement {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 4vw, 54px) 0;
    background: var(--brand-maroon);
    color: var(--white);
}

.delegations-announcement::after {
    content: none;
}

.delegations-announcement-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
}

.announcement-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.delegations-announcement-copy h2 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: clamp(30px, 3.5vw, 48px);
}

.delegations-announcement-copy p {
    max-width: 560px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.65;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

.announcement-link:hover {
    gap: 12px;
    color: var(--white);
}

.delegation-search-card {
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    background: var(--white);
    color: var(--text-body);
    box-shadow: 0 22px 55px rgba(20, 0, 4, 0.28);
}

.delegation-search-form label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-headings);
    font-size: 14px;
    font-weight: 800;
}

.delegation-search-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #DDD5D8;
    border-radius: 12px;
    background: #FBF9FA;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.delegation-search-control:focus-within {
    border-color: var(--brand-red);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.09);
}

.delegation-search-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-body);
    font: inherit;
    font-size: 15px;
}

.delegation-search-control input::placeholder {
    color: #8D8588;
}

.delegation-search-control input::-webkit-search-cancel-button {
    appearance: none;
    -webkit-appearance: none;
}

.delegation-search-clear {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #EEE9EB;
    color: var(--brand-maroon);
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.delegation-search-clear:hover {
    background: #E4DBDE;
}

.delegation-search-help,
.delegation-search-status {
    color: var(--text-muted);
    font-size: 12px;
}

.delegation-search-help {
    margin-top: 8px;
}

.delegation-search-status {
    margin-top: 14px;
    font-weight: 700;
}

.delegation-search-results {
    display: grid;
    gap: 9px;
    max-height: 340px;
    margin-top: 12px;
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-color: #C7B6BC transparent;
    scrollbar-width: thin;
}

.delegation-search-results:empty {
    display: none;
}

.delegation-search-result {
    position: relative;
    display: block;
    padding: 14px 44px 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: #FBF9FA;
}

.delegation-search-result:hover {
    border-color: rgba(227, 6, 19, 0.24);
    background: #FFF4F5;
    transform: translateY(-1px);
}

.delegation-result-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.delegation-result-heading strong {
    color: var(--text-headings);
    font-size: 14px;
}

.delegation-result-committee {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(104, 2, 24, 0.08);
    color: var(--brand-maroon);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.delegation-result-details {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    flex-wrap: wrap;
}

.delegation-result-details span + span::before {
    content: '•';
    margin-right: 8px;
    color: #B8A8AE;
}

.delegation-result-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--brand-red);
    font-size: 18px;
    transform: translateY(-50%);
}

@media screen and (max-width: 980px) {
    .delegations-announcement-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .delegations-announcement-copy p {
        max-width: 700px;
    }
}


/* ═══════════════════════════════════════
   ALTERNATING FEATURES (sdomingos pattern)
   ═══════════════════════════════════════ */
.alternating-features {
    padding: calc(var(--space) * 1.5) var(--space);
}

.alternating-features .site-center {
    max-width: var(--max-site-width);
    margin: 0 auto;
}

.alt-feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
    margin-bottom: 60px;
}

.alt-feature-item:last-child {
    margin-bottom: 0;
}

.alt-feature-item--image-first .alt-feature-image {
    order: 1;
}

.alt-feature-item--image-first .alt-feature-content {
    order: 2;
}

.alt-feature-item--text-first .alt-feature-image {
    order: 2;
}

.alt-feature-item--text-first .alt-feature-content {
    order: 1;
}

.alt-feature-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.alt-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.alt-feature-item:hover .alt-feature-image img {
    transform: scale(1.03);
}

.alt-feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.alt-feature-content h2 {
    color: var(--text-headings);
    font-size: var(--titles);
    font-weight: 700;
    margin: 0 0 0.5em 0;
    line-height: 1.2;
}

.alt-feature-content p {
    color: var(--text-body);
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6;
    margin: 0 0 1.5em 0;
}

.alt-feature-content .btn {
    margin-top: 0.5em;
}


/* ═══════════════════════════════════════
   WELCOME SECTION
   ═══════════════════════════════════════ */
.welcome-section {
    background-color: var(--white);
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
}

.welcome-content h2 {
    font-size: var(--titles);
    margin-bottom: 32px;
    color: var(--text-headings);
}

.welcome-content p {
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--text-body);
    margin-bottom: 24px;
    text-align: justify;
    line-height: 1.75;
}

.welcome-content p:last-child {
    font-weight: 700;
    text-align: center;
    color: var(--brand-red);
    margin-top: 40px;
    font-size: clamp(17px, 1.3vw, 20px);
}


/* ═══════════════════════════════════════
   COMMITTEES SECTION
   ═══════════════════════════════════════ */
.committees-section {
    background-color: var(--light-bg);
}

.committees-section .section-title {
    margin-bottom: 0.3em;
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.committee-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border-color: rgba(227, 6, 19, 0.3);
}

.committee-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.committee-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.committee-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-headings);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.committee-topic {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.committee-topic strong {
    color: var(--text-headings);
    font-weight: 700;
}


/* ═══════════════════════════════════════
   ORGANIZERS SECTION
   ═══════════════════════════════════════ */
.organizers-section {
    background-color: var(--brand-crimson);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.organizers-section .section-title {
    color: var(--white);
}

.organizers-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.organizers-photo {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.organizers-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.organizers-text p {
    font-size: clamp(16px, 1.2vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
}

/* Organizers Carousel (sdomingos.com.br Hero Style) */
.organizers-carousel-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

.organizers-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    background-color: #0d0d0d;
}

.carousel-track-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.carousel-slide {
    position: relative;
    height: 100%;
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

/* Bottom gradient overlay matching the main hero style */
.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.slide-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text overlay aligned bottom-left */
.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.slide-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background-color: var(--brand-red);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
}

.slide-name {
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

/* Navigation Dots (Horizontal Dashes) */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 24px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 16px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-dot.active {
    background-color: var(--white);
    width: 32px;
}

/* Hover-activated navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.45);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.25s ease;
}

.organizers-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background-color: var(--brand-red);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
}

.btn-prev {
    left: 12px;
}

.btn-next {
    right: 12px;
}


/* ═══════════════════════════════════════
   LOCATION SECTION
   ═══════════════════════════════════════ */
.location-section {
    background-color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.location-card {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.location-card:hover {
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.location-card h3 {
    font-size: clamp(20px, 1.8vw, 24px);
    color: var(--text-headings);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.location-card p {
    margin-bottom: 12px;
    font-size: clamp(15px, 1.1vw, 16px);
    color: var(--text-body);
}

.location-card p strong {
    color: var(--text-headings);
    font-weight: 700;
    display: inline-block;
}


/* ═══════════════════════════════════════
   FOOTER (sdomingos 4-column grid)
   ═══════════════════════════════════════ */
.site-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

/* Sponsors row above footer grid */
.footer-sponsors {
    padding: 48px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-logo-title {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: var(--transition-normal);
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.03);
}

/* Footer grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0;
}

.footer-col-brand .footer-brand-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin-bottom: 16px;
}

.footer-col-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    transition: var(--transition-fast);
}

.footer-links li a::before {
    content: '»';
    font-size: 14px;
    color: var(--brand-red);
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-socials-col p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.footer-social-link:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Copyright bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}


/* ═══════════════════════════════════════
   PAGE HEADER (Subpages)
   ═══════════════════════════════════════ */
.page-header {
    min-height: 340px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    padding: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    padding-bottom: calc(var(--space) * 1.5);
    padding-top: calc(var(--space) * 4);
}

.page-header h1 {
    font-size: clamp(36px, 4vw, 56px);
    color: var(--white);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}


/* ═══════════════════════════════════════
   SUBPAGE CONTENT
   ═══════════════════════════════════════ */
.content-wrapper {
    background-color: var(--white);
}

.rich-text {
    font-size: clamp(16px, 1.2vw, 17px);
    line-height: 1.8;
}

.rich-text h2 {
    font-size: clamp(24px, 2.5vw, 30px);
    color: var(--text-headings);
    margin: 40px 0 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.rich-text h2:first-of-type {
    margin-top: 0;
}

.rich-text p {
    margin-bottom: 24px;
    text-align: justify;
    color: var(--text-body);
}

.rich-text ul {
    margin-bottom: 24px;
    padding-left: 28px;
}

.rich-text li {
    margin-bottom: 12px;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
}

.legal-document a {
    color: var(--brand-red);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ═══════════════════════════════════════
   TIMELINE (Cronograma)
   ═══════════════════════════════════════ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--brand-red);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-day {
    position: relative;
    z-index: 2;
    background-color: var(--brand-crimson);
    color: var(--white);
    width: 180px;
    text-align: center;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 56px auto 24px;
}

.timeline-day:first-of-type {
    margin-top: 0;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--white);
    border: 3px solid var(--brand-red);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-fast);
}

.timeline-item:hover::after {
    background-color: var(--brand-red);
    transform: translateY(-50%) scale(1.25);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 24px 30px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    background-color: var(--white);
    border-color: rgba(227, 6, 19, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.timeline-time {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-red);
}

.timeline-title {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-headings);
}


/* ═══════════════════════════════════════
   MATERIALS LIBRARY
   ═══════════════════════════════════════ */
.materials-intro {
    max-width: 760px;
    margin-bottom: 36px;
}

.materials-intro h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 3.2vw, 44px);
}

.materials-intro p {
    color: var(--text-muted);
    font-size: 17px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.material-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(104, 2, 24, 0.045);
    transition: var(--transition-normal);
}

.material-card:hover {
    border-color: rgba(227, 6, 19, 0.2);
    box-shadow: 0 18px 42px rgba(104, 2, 24, 0.09);
    transform: translateY(-3px);
}

.material-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding: clamp(28px, 4vw, 44px);
    border-color: rgba(104, 2, 24, 0.13);
    background: linear-gradient(135deg, #FFF8F8, #FFFFFF 62%);
}

.material-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 15px;
    background: rgba(227, 6, 19, 0.08);
    color: var(--brand-red);
}

.material-card--featured .material-card-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 0;
    background: var(--brand-red);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(227, 6, 19, 0.2);
}

.material-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.material-card-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--brand-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.material-card h3 {
    margin-bottom: 12px;
    font-size: 23px;
}

.material-card--featured h3 {
    font-size: clamp(26px, 2.7vw, 36px);
}

.material-card p {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.material-card--featured p {
    max-width: 800px;
    font-size: 16px;
}

.material-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

.material-file-meta {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media screen and (max-width: 1024px) {
    .materials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ═══════════════════════════════════════
   COMMITTEE DETAIL
   ═══════════════════════════════════════ */
.committee-detail-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 56px;
}

.committee-mesa {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 12px;
    height: fit-content;
}

.committee-mesa h3 {
    font-size: 22px;
    color: var(--text-headings);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    font-weight: 700;
}

.mesa-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mesa-member {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mesa-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--brand-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.mesa-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-headings);
}

.committee-participants {
    margin-top: clamp(56px, 7vw, 88px);
}

.participants-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.participants-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.participants-heading h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 3vw, 40px);
}

.participants-heading p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 16px;
}

.participants-count {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid rgba(104, 2, 24, 0.14);
    border-radius: 999px;
    background: rgba(104, 2, 24, 0.06);
    color: var(--brand-maroon);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.participants-table-wrap {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(104, 2, 24, 0.07);
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.participants-table th,
.participants-table td {
    padding: 18px 22px;
    text-align: left;
    vertical-align: middle;
}

.participants-table th {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--brand-maroon);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.participants-table th:last-child {
    border-right: 0;
}

.participants-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.45;
}

.participants-table tbody tr:nth-child(even) {
    background: #FBF9FA;
}

.participants-table tbody tr:last-child td {
    border-bottom: 0;
}

.participants-table tbody tr {
    transition: background-color 0.2s ease;
}

.participants-table tbody tr:hover {
    background: #FFF3F4;
}

.participants-table td:first-child {
    color: var(--text-headings);
    font-weight: 700;
}

.participant-reserved {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #EFEAEC;
    color: #6B5660;
    font-size: 12px;
    font-weight: 700;
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media screen and (max-width: 1024px) {
    .committees-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ─── Header: desktop ⇄ mobile swap (sdomingos.com.br breakpoint) ─── */
@media (min-width: 1050px) {
    .header-backdrop {
        display: none;
    }
}

@media (max-width: 1280px) and (min-width: 1050px) {
    .sub-panel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1049px) {
    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .header-container {
        padding-top: 12px;
    }
}

@media (max-width: 380px) {
    .mobile-group-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {

    /* Hero */
    .hero {
        height: clamp(450px, calc(100svh - 150px), 620px);
        min-height: 0;
    }

    .hero-content h1 {
        font-size: clamp(32px, 7vw, 42px);
    }

    .delegations-announcement {
        padding: 34px 0;
    }

    .delegations-announcement-copy p {
        font-size: 15px;
    }

    .delegation-search-card {
        border-radius: 14px;
    }

    .delegation-result-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .delegation-result-details {
        display: grid;
        gap: 2px;
    }

    .delegation-result-details span + span::before {
        content: none;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .material-card,
    .material-card--featured {
        min-height: 0;
    }

    .material-card--featured {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .material-card--featured .material-card-icon {
        width: 68px;
        height: 68px;
    }

    .material-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Welcome */
    .welcome-content h2 {
        font-size: clamp(28px, 5vw, 36px);
    }

    /* Committees */
    .committees-grid {
        grid-template-columns: 1fr;
    }

    /* Alternating Features */
    .alt-feature-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .alt-feature-item--image-first .alt-feature-image,
    .alt-feature-item--text-first .alt-feature-image {
        order: 1;
    }

    .alt-feature-item--image-first .alt-feature-content,
    .alt-feature-item--text-first .alt-feature-content {
        order: 2;
    }

    /* Organizers */
    .organizers-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Location */
    .location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Timeline */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item::after {
        left: 23px;
        right: auto;
    }

    .right {
        left: 0%;
    }

    /* Committee detail */
    .committee-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col-brand {
        text-align: center;
    }

    .footer-col-brand .footer-brand-logo {
        margin: 0 auto 16px;
    }

    .footer-col-brand p {
        max-width: 100%;
        text-align: center;
    }

    /* Page header */
    .page-header {
        min-height: 260px;
    }
}

@media screen and (max-width: 768px) {
    .participants-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .participants-table-wrap {
        overflow-x: auto;
    }

    .participants-table {
        min-width: 720px;
    }
}

@media screen and (max-width: 560px) {
    .participants-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .participants-table,
    .participants-table tbody,
    .participants-table tr,
    .participants-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .participants-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .participants-table tbody {
        display: grid;
        gap: 14px;
    }

    .participants-table tbody tr,
    .participants-table tbody tr:nth-child(even) {
        overflow: hidden;
        border: 1px solid var(--border-color);
        border-radius: 13px;
        background: var(--white);
        box-shadow: 0 10px 28px rgba(104, 2, 24, 0.06);
    }

    .participants-table td {
        display: grid;
        grid-template-columns: minmax(96px, 0.7fr) minmax(0, 1.3fr);
        gap: 14px;
        padding: 13px 16px;
        border-bottom: 1px solid var(--border-color);
        overflow-wrap: anywhere;
    }

    .participants-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
}

/* ─── Navbar CTA (movido do header.php) ─── */
.nav-cta-outline {
    background-color: transparent !important;
    border: 2px solid var(--brand-red) !important;
    color: var(--brand-red) !important;
    line-height: 1 !important;
}
.nav-cta-outline:hover {
    background-color: var(--brand-red) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2) !important;
}
#nav-login-cta,
#mob-login-cta {
    background-color: var(--brand-maroon) !important;
    color: var(--white) !important;
}
#nav-login-cta:hover,
#mob-login-cta:hover {
    background-color: var(--brand-crimson) !important;
    box-shadow: 0 4px 12px rgba(104, 2, 24, 0.25) !important;
    color: var(--white) !important;
}

/* ─── Acessibilidade: skip link e foco visível ─── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 12px 20px;
    background-color: var(--brand-maroon);
    color: var(--white);
    font-weight: 700;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--brand-red);
    outline-offset: 2px;
}


/* ═══════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════ */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 var(--space) 20px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.consent-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.consent-banner.hiding {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

.consent-inner {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12),
                0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(234, 234, 234, 0.6);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.consent-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.consent-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(104, 2, 24, 0.08), rgba(227, 6, 19, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
}

.consent-icon svg {
    width: 24px;
    height: 24px;
}

.consent-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--brand-maroon);
    margin-bottom: 4px;
    line-height: 1.3;
}

.consent-desc {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.consent-btn {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.consent-btn-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.consent-btn-decline:hover {
    background: var(--light-bg);
    color: var(--text-body);
    border-color: var(--divider);
}

.consent-btn-accept {
    background: var(--brand-red);
    color: var(--white);
}

.consent-btn-accept:hover {
    background: var(--brand-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .consent-banner {
        padding: 0 12px 12px;
    }

    .consent-inner {
        padding: 20px;
        border-radius: 16px;
        gap: 14px;
    }

    .consent-icon {
        display: none;
    }

    .consent-title {
        font-size: 14px;
    }

    .consent-desc {
        font-size: 12px;
    }

    .consent-actions {
        flex-direction: row;
        width: 100%;
    }

    .consent-btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
    }
}


/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
