:root {
    --navy-900: #0a1830;
    --navy-800: #122951;
    --navy-700: #1a3868;
    --navy-600: #274a86;
    --sky-tint: #9dc2f2;

    --white: #ffffff;
    --offwhite: #f5f8fc;
    --paper: #ffffff;

    --red-brand: #e31e24;

    --ink: #14305c;
    --ink-muted: #5c6b85;
    --ink-faint: #8b97ac;

    --line-dark: rgba(255, 255, 255, 0.14);
    --line-light: rgba(20, 48, 92, 0.12);

    --amber-board: #ffb020;

    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;

    --shadow-card: 0 20px 50px rgba(10, 24, 48, 0.16);
    --shadow-card-dark: 0 20px 50px rgba(0, 0, 0, 0.45);

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-mono: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; 
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--offwhite);
}

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

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

:focus-visible {
    outline: 2px solid var(--navy-600);
    outline-offset: 3px;
}

.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

.hero-section {
    position: relative;
    padding: 48px 0 60px;
    background: var(--navy-800);
    overflow: hidden;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(157, 194, 242, 0.16) 1.4px, transparent 1.6px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 75% 30%, #000 45%, transparent 78%);
    mask-image: radial-gradient(ellipse 70% 65% at 75% 30%, #000 45%, transparent 78%);
    z-index: 0;
    pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.logo {
    height: 100px;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-dark);
    height: 48px; 
    padding: 4px; 
    border-radius: 999px;
}
.lang-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-label {
    position: absolute;
    top: -18px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 100%; 
    border-radius: 999px;
    transition: all 0.2s ease;
    opacity: 0.5;
}


.lang-item.active {
    background: #fff;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-item:hover {
    opacity: 1;
}

.lang-item img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 18px;
}

.hero-text { grid-column: 1 / span 6; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.06);
    color: var(--sky-tint);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    margin-bottom: 18px;
    margin-top: 18px;
}
.eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #24d690;
    animation: pulse-dot 2s infinite;
}

.etal {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--sky-tint);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}


@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(36, 214, 144, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(36, 214, 144, 0); }
    100% { box-shadow: 0 0 0 0 rgba(36, 214, 144, 0); }
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}
h1 .grad-text {
    color: var(--red-brand);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.description {
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 440px;
    margin-bottom: 32px;
}

.event-details { margin-bottom: 30px; }
.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    font-weight: 400;
}
.detail-item i { color: var(--red-brand); font-size: 1rem; }
.detail-item strong {
    font-family: var(--font-mono);
    color: var(--sky-tint); 
    font-weight: 700;
    font-size: 1.20rem; 
    letter-spacing: 0.5px;
}

.detail-address {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.2;
}

.detail-campi {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.2;
}


.detail-item svg {
    color: var(--sky-tint); 
    flex-shrink: 0;
    margin-top: 2px; 
}

.detail-item:last-child {
    align-items: flex-start;
}


.custom-icon {
    display: inline-block;
    flex-shrink: 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-calendar { -webkit-mask-image: url('images/icone_calendario.svg'); mask-image: url('images/icone_calendario.svg'); }
.icon-clock { -webkit-mask-image: url('images/icone_relogio.svg'); mask-image: url('images/icone_relogio.svg'); }
.icon-location { -webkit-mask-image: url('images/icone_local.svg'); mask-image: url('images/icone_local.svg'); }
.icon-parking { -webkit-mask-image: url('images/icone_estacionamento.svg'); mask-image: url('images/icone_estacionamento.svg'); }
.icon-map { -webkit-mask-image: url('images/icone_mapa.svg'); mask-image: url('images/icone_mapa.svg'); }
.icon-list { -webkit-mask-image: url('images/icone_lista.svg'); mask-image: url('images/icone_lista.svg'); }



.hero-section .custom-icon {
    width: 22px;
    height: 22px;
    background-color: var(--sky-tint); 
    margin-top: 2px;
}

#inscricao .custom-icon,
.registration-grid .custom-icon {
    width: 26px; 
    height: 26px;
    background-color: var(--red-brand); 
}

.btn-primary {
    background: #fff;
    color: var(--ink);
    border: 1px solid transparent;
    height: 48px; 
    padding: 0 30px; 
    border-radius: 14px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
}

.hero-image {
    grid-column: 7 / span 6;
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
    position: relative;
    margin-bottom: -60px;
}
.hero-image::before {
    content: "";
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(157, 194, 242, 0.2), transparent 70%);
    filter: blur(50px);
    z-index: 0;
}

.hero-slideshow {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    will-change: opacity, transform;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-out;
}

.board {
    position: relative;
    background: var(--navy-900);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-xl);
    padding: clamp(26px, 4vw, 46px);
    box-shadow: var(--shadow-card-dark);
    overflow: hidden;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    font-family: var(--font-mono);
}
.board-tag {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}
.board-route {
    color: var(--sky-tint);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-flaps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 10px 0 26px;
    flex-wrap: wrap;
}
.flap-unit {
    background: #000;
    border-radius: 12px;
    padding: 18px 20px;
    min-width: 96px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}

.flap-value {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    font-weight: 700;
    color: #ff4d4d;
    text-shadow:
        0 0 8px rgba(255, 77, 77, 0.8),
        0 0 18px rgba(227, 30, 36, 0.8),
        0 0 35px rgba(227, 30, 36, 0.6);
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}
.flap-label {
    display: block;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
}
.flap-colon {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.6), 0 0 18px rgba(227, 30, 36, 0.5);
}

.board-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
}

.manifesto { padding: 20px 0 60px; background: var(--navy-800); }

.manifesto-wrapper {
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
    border: 1px solid var(--line-dark);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: var(--shadow-card-dark);
    opacity: 1;
    transform: none;
}


.manifesto-wrapper .board {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
}

.flag-marquee {
    width: 100%;
    overflow: hidden;
    padding: 24px 0;
    margin-bottom: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.flag-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
}

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

.flag-group {
    display: flex;
    gap: 24px;
    padding-right: 24px;
}

.flag-group img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.5;
    filter: grayscale(40%);
    transition: all 0.3s ease;
    cursor: default;
}

.flag-group img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.manifesto-wrapper .board::before,
.manifesto-wrapper .board::after {
    display: none;
}

.manifesto-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.8vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 14px;
}
.manifesto-divider {
    width: 56px;
    height: 4px;
    background: var(--red-brand);
    margin-bottom: 18px;
    border-radius: 99px;
}
.manifesto-text {
    text-align: left; 
    font-size: 1.12rem;
    line-height: 1.6;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 40px;
}
.manifesto-text strong { color: #fff; }

.text-highlight {
    color: var(--sky-tint); 
    font-weight: 800; 
}


.journey-section {
    padding: 80px 0;
    background: var(--offwhite);
}

.journey-description {
    text-align: left; 
}

.journey-header {
    text-align: left;
    max-width: 100%; 
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 24px; 
    color: var(--ink);
}

.journey-intro {
    text-align: left; 
    font-size: 1.12rem;
    color: var(--ink-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.journey-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(10, 24, 48, 0.08);
    background: var(--navy-900);
    grid-column: span 1;
    height: 320px;
}

.journey-cta {
    text-align: center;
    margin-top: 48px; 
    width: 100%;
}

.journey-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journey-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 24, 48, 0.95) 0%, rgba(10, 24, 48, 0.3) 60%, transparent 100%);
}

.journey-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px; 
    z-index: 2;
    color: var(--white);
}

.journey-content h3 {
    font-family: var(--font-display);
    font-size: 1.13rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.journey-content p {
    font-size: 0.95rem; 
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}


.uni-parallax-header {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/bg-feira.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 22px;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 24, 48, 0.85), rgba(18, 41, 81, 0.65));
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    margin: 0 auto;
    color: var(--white);
}

.parallax-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
    line-height: 1.2;
}

.parallax-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}


.uni-search-section { padding: 74px 0 56px; background: #fff; }

.uni-search-intro {
    text-align: left;
    max-width: 100%; 
    margin-bottom: 24px; 
    font-size: 1.12rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.uni-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

#uniCounter {
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-controls input,
.filter-controls select {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line-light);
    background: var(--offwhite);
    padding: 10px 14px;
    font-size: 0.94rem;
    font-family: var(--font-body);
    color: var(--ink);
    outline: none;
    transition: all 0.2s ease;
}
.filter-controls input::placeholder { color: var(--ink-faint); }
.filter-controls select option { background: #fff; color: var(--ink); }
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 4px rgba(18, 41, 81, 0.1);
}
.filter-controls input { min-width: 250px; }


.filter-controls button {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line-light);
    background: var(--white);
    padding: 10px 18px;
    font-size: 0.94rem;
    font-family: var(--font-body);
    color: var(--ink-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}


.filter-controls button .custom-icon.icon-list {
    width: 30px;
    height: 18px;
    background-color: var(--ink-muted);
    transition: background-color 0.2s ease;
    
}


.filter-controls button .custom-icon.icon-map {
    width: 18px;
    height: 18px;
    background-color: var(--ink-muted); 
    transition: background-color 0.2s ease;
    
}


.view-toggle-btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
}


.filter-controls button:hover {
    background: var(--offwhite);
    color: var(--ink);
    border-color: var(--navy-600);
}

.filter-controls button:hover .custom-icon.icon-map {
    background-color: var(--ink);
}


.filter-controls button.active {
    background: var(--navy-800);
    color: var(--white);
    border-color: var(--navy-800);
    box-shadow: 0 4px 12px rgba(10, 24, 48, 0.15);
}

.filter-controls button.active .custom-icon.icon-map {
    background-color: var(--white);
}

#viewMapBtn:not(.active) .custom-icon.icon-map {
    background-color: var(--sky-tint); 
}


#uniContainer > p { color: var(--ink-muted); }

.country-group {
    border: 1px solid var(--line-light);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 12px;
    background: var(--offwhite);
    transition: all 0.2s ease;
}

.country-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
}

.country-group-title img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--line-light);
}

.country-group-title::after {
    content: "▼";
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--ink-muted);
    transition: transform 0.3s ease;
}

.country-group.expanded .country-group-title::after {
    transform: rotate(180deg);
}

.uni-list-columns {
    display: none;
}

.country-group.expanded .uni-list-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 20px;
    margin-top: 16px;
    animation: fadeIn 0.3s ease-in-out;
    min-width: 0;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.uni-item-link {
    appearance: none;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    color: var(--ink-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.uni-item-link::before {
    content: "•";
    margin-right: 10px;
    color: var(--navy-600);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.uni-item-link:hover {
    background: #ffffff;
    color: var(--ink);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(10, 24, 48, 0.05);
}

.uni-item-link:hover::before {
    color: var(--red-brand);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 48, 0.65);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}
.modal-content {
    background: #fff;
    border: 1px solid var(--line-light);
    width: 100%;
    max-width: 560px;
    border-radius: 24px;
    position: relative;
    text-align: left;
    animation: modalIn 0.24s ease-out;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.close-modal {
    border: none;
    background: transparent;
    color: var(--ink-faint);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
}
.close-modal:hover { color: var(--ink); }

.pass-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--sky-tint), var(--sky-tint));
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
}

.pass-code {
    background: var(--red-brand);
    color: #ffffff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.4);
    letter-spacing: 2px;
}

.pass-main {
    display: block; 
    padding: 32px 32px 12px;
}

.pass-flag {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line-light);
    box-shadow: 0 4px 10px rgba(10, 24, 48, 0.08);
    margin: 0; 
}

#modalName {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy-900);
    margin-bottom: 8px;
}
.location-label {
    display: block;
    padding-left: 0;
    font-size: 0.72rem;
    color: var(--red-brand);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 4px;
}
#modalLocationText {
    padding: 0;
    color: var(--ink-muted);
    margin-bottom: 4px;
}

.pass-tear {
    width: 100%;
    height: 0;
    border-top: 2px dashed var(--line-light);
    margin: 24px 0;
    position: relative;
}

.pass-tear::before,
.pass-tear::after {
    display: none !important;
}
.description-text {
    padding: 0 28px;
    color: var(--ink-muted);
    line-height: 1.75;
}

.modal-footer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px 28px;
    margin-top: 22px;
}

.modal-footer-controls .btn-back {
    margin: 0;
    border-radius: 999px;
    padding: 12px 22px;
    border: 1px solid var(--line-light);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink-muted);
    transition: all 0.2s ease;
}

.modal-footer-controls .btn-back:hover {
    border-color: var(--navy-600);
    color: var(--ink);
}

.modal-nav-btn {
    background: var(--offwhite);
    border: 1px solid var(--line-light);
    color: var(--navy-600);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.modal-nav-btn:hover {
    background: var(--navy-800);
    color: #ffffff;
    border-color: var(--navy-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(10, 24, 48, 0.15);
}

/* =========================================
   DETALHES DO EVENTO
   ========================================= */
.event-details-visual {
    padding: 74px 0 90px;
    background: var(--offwhite);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    align-items: center;
}

.details-text { grid-column: 1 / span 7; }

.features-list { list-style: none; }
.features-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(18, 41, 81, 0.08);
    color: var(--navy-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.16rem;
    flex-shrink: 0;
}
.feature-info h3 {
    font-family: var(--font-display);
    font-size: 1.04rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--ink);
}
.feature-info p {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.details-cta { margin-top: 22px; }

.details-visual { grid-column: 8 / span 5; }

.image-container {
    position: relative;
    border-radius: 24px;
}
.main-event-photo {
    width: 100%;
    border-radius: 24px;
    height: 470px;
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.schedule-card {
    position: absolute;
    left: -24px;
    bottom: -24px;
    width: 280px;
    background: var(--navy-800);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    border-left: 4px solid var(--red-brand);
    box-shadow: var(--shadow-card-dark);
}
.schedule-card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--sky-tint);
}
.schedule-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.schedule-item:last-child { margin-bottom: 0; }
.s-icon { color: var(--red-brand); font-size: 1rem; }

/* =========================================
   SOBRE O PORTO (CURRÍCULOS)
   ========================================= */
.about-porto-section {
    padding: 20px 0 100px 0; 
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    position: relative;
    overflow: hidden;
}

.about-porto-section::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about-porto-header {
    text-align: left;
    max-width: 100%;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.about-porto-header .section-title {
    color: var(--white);
}

.about-porto-desc {
    text-align: left;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 16px;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.curriculum-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-card); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculum-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 25px 60px rgba(10, 24, 48, 0.18);
}


.curriculum-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.curriculum-card p {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.6;
}


/* =========================================
   CERTIFICAÇÕES (ABAIXO DOS CURRÍCULOS)
   ========================================= */
.certifications-block {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.certifications-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.certifications-logos {
    display: flex;
    justify-content: center;
    align-items: center; 
    height: 60px; 
    gap: 35px;
    flex-wrap: nowrap; 
    width: 100%;
}


.certifications-logos img {
    height: 100%;        
    width: auto;         
    object-fit: contain; 
    max-width: 25%;  
}

.certifications-logos img:hover {
    transform: scale(1.05); 
}


.about-porto-cta {
    text-align: center;
    position: relative;
    z-index: 2;
}


/* =========================================
   DESTAQUE DE APROVAÇÕES (CARD)
   ========================================= */
.approvals-header {
    max-width: 100%;
    margin-bottom: 48px;
    text-align: left;
}

.approvals-header .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.approvals-description {
    text-align: left;
    font-size: 1.12rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 16px;
}

.approvals-description:last-child {
    margin-bottom: 0;
}

.approvals-showcase {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--line-dark);
}

.approvals-top {
    background: linear-gradient(135deg, var(--navy-600) 0%, var(--navy-800) 100%);
    color: var(--white);
    padding: 46px 30px;
    text-align: center;
}

.approvals-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-plus {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--sky-tint);
    transform: translateY(-10px);
}

.hero-num {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
}

.approvals-hero .hero-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    text-align: left;
    line-height: 1.1;
    text-transform: uppercase;
}

.approvals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: 36px;
    max-width: 960px;
    margin: 0 auto;
}

.app-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
}

.app-stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
}

.app-stat-desc {
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    line-height: 1.3;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.app-stat-desc strong {
    font-weight: 800;
    color: var(--sky-tint);
    font-size: 1.05em;
}

.approvals-bottom {
    background: var(--offwhite);
    padding: 36px 30px 24px;
}

.country-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
    width: 100%;
}

.country-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid var(--line-light);
    box-shadow: 0 4px 12px rgba(10, 24, 48, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 76px;
}

.country-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 24, 48, 0.08);
}

.country-badge img {
    width: 42px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line-light);
}

.country-badge-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.country-badge-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-900);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.country-badge-count {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--navy-600);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
}

.country-badge-extra {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 4px;
    font-weight: 500;
}

.approvals-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

/* =========================================
   SEÇÃO SOBRE O PORTO E APROVAÇÕES (FUNDO CLARO)
   ========================================= */
.porto-approvals-section {
    padding: 80px 0 20px 0;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.porto-approvals-section .approvals-header .section-title {
    color: var(--navy-800);
}

.porto-approvals-section .approvals-description {
    color: var(--ink-muted);
}

/* =========================================
   SEÇÃO DOS CURRÍCULOS (PARALLAX)
   ========================================= */
.curriculum-parallax-section {
    position: relative;
    padding: 80px 0;
    background-image: url('images/bg_oporto.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.curriculum-parallax-section .parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 24, 48, 0.40), rgba(18, 41, 81, 0.85));
    z-index: 1;
}

.curriculum-parallax-section .content-wrapper {
    position: relative;
    z-index: 2;
}

.curriculum-parallax-section .section-title {
    color: #ffffff;
}

.curriculum-parallax-section .about-porto-desc {
    color: rgba(255, 255, 255, 0.95);
}

/* =========================================
   SEÇÃO DE INSCRIÇÃO E MAPA
   ========================================= */
.registration-section {
    padding: 80px 0;
    background: var(--white);
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 40px;
    align-items: start;
    background: var(--offwhite);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--line-light);
    box-shadow: var(--shadow-card);
}


.registration-header {
    grid-column: 1 / -1; 
}

.registration-header .section-title {
    margin-bottom: 12px;
    color: var(--navy-900);
}

.registration-logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;
}

.registration-card-logo {
    height: auto;
    max-height: 90px;
    object-fit: contain;
}


.registration-desc {
    font-size: 1.12rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.registration-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 44px;
}

.info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.info-icon {
    width: 52px;
    height: 52px;
    background: rgba(227, 30, 36, 0.08);
    border: 1px solid rgba(227, 30, 36, 0.15);
    color: var(--red-brand);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-icon svg {
    color: var(--red-brand);
}

.info-text strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy-800);
    margin-bottom: 4px;
}

.info-text span {
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 1.5;
    display: block;
}

.btn-link-map {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--navy-600);
    text-decoration: none;
    border-bottom: 1px solid var(--navy-600);
    transition: all 0.2s ease;
}

.btn-link-map:hover {
    color: var(--red-brand);
    border-bottom-color: var(--red-brand);
}

.btn-subscribe {
    background: var(--red-brand);
    color: var(--white);
    border: none;
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center; 
    text-align: center; 
    transition: all 0.25s ease;
    box-shadow: 0 15px 34px rgba(227, 30, 36, 0.25);
}

.btn-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(227, 30, 36, 0.4);
    background: #c9181f;
    color: var(--white);
}

.registration-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
}

.campus-photo {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 380px; 
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(10, 24, 48, 0.1);
}



/* =========================================
   BOTÃO DISCRETO: VER NO MAPA
   ========================================= */
.btn-link-map {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--navy-600);
    text-decoration: none;
    border-bottom: 1px solid var(--navy-600);
    transition: all 0.2s ease;
}

.btn-link-map:hover {
    color: var(--red-brand);
    border-bottom-color: var(--red-brand);
}

#uniMap {
    width: 100%;
    height: 600px;
    border-radius: 14px;
    border: 1px solid var(--line-light);
    box-shadow: 0 10px 30px rgba(10, 24, 48, 0.08);
    z-index: 1;
}


/* =========================================
   BOTÕES SOCIAIS REDONDOS
   ========================================= */
.social-links-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--navy-900);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    color: var(--red-brand);
}

.social-btn:hover svg {
    transform: scale(1.15);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--navy-900);
    border-bottom: 3px solid var(--red-brand);
    padding: 36px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.site-footer .social-links-cta {
    margin-top: 0; 
}

.site-footer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    margin: 0;
}

/* =========================================
   CORREÇÃO DE QUEBRA DE TEXTO NO MENU
   ========================================= */
.nav-links a {
    white-space: nowrap;
}





/* =========================================
   ESTILOS DO POPUP (BALÃO) DO MAPA
   ========================================= */

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(10, 24, 48, 0.15);
    padding: 4px;
}

.leaflet-popup-content {
    margin: 18px 16px 16px;
    text-align: center;
}

.map-popup-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
    line-height: 1.3;
}

.map-popup-location {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.map-popup-btn {
    background: var(--navy-800);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.map-popup-btn:hover {
    background: var(--red-brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.25);
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--ink-faint);
    padding: 12px 12px 0 0;
    font-size: 18px;
    transition: color 0.2s ease;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--red-brand);
    background: transparent;
}
/* =========================================
   BOTÃO DE WEBSITE NO MODAL
   ========================================= */
.btn-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--navy-800);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.btn-website:hover {
    background: var(--red-brand);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.25);
}

/* =========================================
   CLASSE UTILITÁRIA DE CENTRALIZAÇÃO
   ========================================= */
.text-center {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* =========================================
   NAVEGAÇÃO E MENU HAMBURGUER
   ========================================= */
.main-nav, .nav-links, .nav-actions {
    display: flex;
    align-items: center;
}

.nav-actions {
    gap: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--sky-tint);
}

.btn-nav-subscribe {
    background: var(--red-brand);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--white) !important;
    transition: all 0.3s ease;
}

.btn-nav-subscribe:hover {
    background: #c9181f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 30, 36, 0.3);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}


/* =========================================
   CTA APÓS A LISTA DE UNIVERSIDADES
   ========================================= */
.uni-list-cta {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line-light);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* =========================================
   VÍDEO (VIMEO) DENTRO DA SEÇÃO AZUL
   ========================================= */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin: 60px auto 0; 
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-dark);
    background: #000;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}


.curriculum-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 20px;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.curriculum-icon img {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto; 
}

/* ============================================================
   RESPONSIVIDADE CONSOLIDADA (TODOS OS CÓDIGOS INCLUÍDOS)
   ============================================================ */


@media (max-width: 1150px) {
    .nav-links { gap: 16px; }
    .nav-actions { gap: 16px; }
    .nav-links a { font-size: 0.82rem; }
    .logo { height: 85px; }
}


@media (max-width: 1100px) {
    .schedule-card { left: 16px; bottom: 16px; width: calc(100% - 32px); }
    .hamburger-btn { display: flex; }
    .main-nav {
        position: fixed; top: 110px; left: 22px; right: 22px;
        background: var(--navy-900); padding: 32px 24px; border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.6); border: 1px solid var(--line-dark);
        flex-direction: column; opacity: 0; visibility: hidden;
        transform: translateY(-15px); transition: all 0.3s ease; z-index: 1000;
    }
    .main-nav.menu-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links { flex-direction: column; width: 100%; gap: 24px; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 10px 0; font-size: 1.1rem; }
    .hamburger-btn.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
}

/* 992px - Grid do Hero, Jornada e Registro */
@media (max-width: 992px) {
    .hero-section {
        padding: 32px 0 40px;
    }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-text, .hero-image { grid-column: auto; text-align: center; }
    .hero-image { order: -1; justify-content: center; align-self: auto; margin-bottom: 0; }
    .hero-slideshow {
        width: min(340px, 100%); 
        margin: 0 auto;
    }
    .eyebrow { margin-left: auto; margin-right: auto; }
    .etal { margin-left: auto; margin-right: auto; }
    .event-details .detail-item { justify-content: center; }
    .uni-header { flex-direction: column; align-items: flex-start; }
    .details-grid { display: flex; flex-direction: column; }
    .details-text, .details-visual { width: 100%; }
    .main-event-photo { height: 360px; }
    .schedule-card { position: static; width: 100%; margin-top: 14px; }
    .details-cta { display: flex; justify-content: center; }
    .board-flaps { gap: 10px; }
    .flap-unit { min-width: 76px; padding: 14px 12px; }
    .journey-grid, .curriculum-grid { grid-template-columns: repeat(2, 1fr); }
    .journey-card { height: 300px; }
    .registration-grid { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px; }
    .registration-image { min-height: 250px; }
    .campus-photo { min-height: 250px; max-height: 320px; }
    .approvals-grid { grid-template-columns: 1fr; gap: 30px; }
    .app-stat { justify-content: flex-start; max-width: 300px; margin: 0 auto; }
    .description {
        font-size: 1.18rem;
        text-align: center;
        margin-left: auto; 
        margin-right: auto;
        max-width: 600px; 
        color: rgba(255, 255, 255, 0.9);
    }
}

/* 768px - Mobile Geral (O bloco mais importante) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column-reverse; 
        align-items: center;
        margin-bottom: 10px;
        margin-top: -48px; 
        gap: 15px;
        width: 100%;
    }
    .nav-actions {
        width: calc(100% + 44px); 
        margin-left: -22px; 
        margin-right: -22px;
        padding: 12px 22px;
        background: var(--navy-900); 
        display: flex;
        justify-content: space-between; 
        align-items: center;
        border-bottom: 1px solid var(--line-dark);
        z-index: 1005; 
    }
        .nav-actions .btn-nav-subscribe {
        display: none;
    }
    
        .main-nav {
        top: 60px !important; 
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 0 0 16px 16px !important;
    }
    
    .logo {
        height: 110px; 
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
        margin-top: 0;
        display: block;
    }
    
     .hero-image {
        margin-top: -40px; 
        margin-bottom: -20px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .hamburger-btn {
        margin: 0;
    }
    .language-selector {
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255,255,255,0.1);
    }
    .lang-label { display: none; }
    h1 { 
        font-size: 2.4rem; 
        line-height: 1.1;
        text-align: center;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }
    
    .event-details {
        display: flex;
        flex-direction: column;
        align-items: center; 
        gap: 16px; 
        max-width: 460px; 
        width: 100%;
        margin: 0 auto 30px;
    }

    .detail-item {
        display: grid; 
        grid-template-columns: 24px 1fr; 
        gap: 12px; 
        align-items: start; 
        text-align: left; 
        width: 100%;
        margin-bottom: 0 !important; 
    }

    .detail-item strong {
        font-size: 1.1rem; 
        line-height: 1.2; 
        display: block;
    }

    .detail-address {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-top: 4px; 
        color: rgba(255, 255, 255, 0.7);
        display: block;
    }
    
    .hero-section .custom-icon {
        width: 20px;
        height: 20px;
        margin-top: 2px; 
    }


    .board { padding: 20px 15px; }
    .board-flaps {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 16px; 
    }
    .flap-unit { min-width: 65px; padding: 10px 5px; flex: 1; }
    .flap-value { font-size: 1.5rem; }
    .flap-colon { display: none; }

    .journey-grid, .curriculum-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .journey-card { height: 260px; }

    .hero-num { font-size: 3.5rem; }
    .approvals-grid { padding: 20px 0; }
    .app-stat { justify-content: center; text-align: center; flex-direction: column; gap: 5px; }

    .filter-controls { flex-direction: column; width: 100%; }
    .filter-controls input, .filter-controls select, .view-toggle { width: 100%; }
    .view-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

    .country-group.expanded .uni-list-columns { grid-template-columns: 1fr !important; gap: 0; }
    .uni-item-link { font-size: 0.9rem; padding: 12px 8px; }
    
    .btn-subscribe, .btn-primary { 
        display: flex; width: 100%; max-width: 100%; 
        justify-content: center; align-items: center; padding: 18px 10px; 
    }
    .uni-list-cta { justify-content: center; padding: 0; }

    .modal-content { max-height: 90vh; overflow-y: auto; }
    .pass-header { padding: 12px; }
    .pass-main { padding: 20px; }
    #modalName { font-size: 1.4rem; }

    #uniMap { height: 450px; }
    .registration-image { order: -1; }
    .campus-photo { height: 200px; min-height: 200px; }
    
    
    .curriculum-grid, 
    .journey-grid {
        gap: 40px; 
    }
    
    .footer-brand {
        margin-bottom: 20px;
    }
    .footer-logo {
        height: 45px; 
    }
}

/* 680px - Ajustes de Idioma e Listas */
@media (max-width: 680px) {
    .logo { height: 80px; }
    .language-selector { gap: 2px; }
    .lang-item { font-size: 0.7rem; padding: 7px 10px; }
    .uni-list-columns { grid-template-columns: 1fr; }
    .about-porto-section { padding: 60px 0; }
}


@media (max-width: 600px) {
    .certifications-logos {
        height: 45px !important; 
        gap: 20px !important; 
    }

    .certifications-logos img {
        height: 100% !important; 
        width: auto !important; 
        max-width: 25%; 
        object-fit: contain;
    }
}


@media (max-width: 480px) {
    .board-flaps { gap: 8px; }
    .flap-unit { min-width: 70px; padding: 12px 10px; }
    .flap-value { font-size: 1.5rem; }
    .event-details {
        max-width: 320px; 
    }
}

@media (max-width: 380px) {
    .flap-value { font-size: 1.2rem; }
    .flap-label { font-size: 0.55rem; }
    .btn-primary, .btn-subscribe { font-size: 0.8rem; padding: 12px 10px; }
}

/* ==========================================================================
   LOGO DO RODAPÉ
   ========================================================================== */

.footer-brand {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px; 
}

.footer-logo {
    height: 150px; 
    width: auto; 
    display: block;

}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.03);
}
/* ==========================================================================
   LABEL DE CHECK-IN (HORÁRIOS)
   ========================================================================== */

.time-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.checkin-label {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    opacity: 0.85;
}

.hero-section .checkin-label {
    color: var(--sky-tint);
}


.registration-section .time-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px; 
}


.registration-section .checkin-label {
    color: var(--red-brand);
    font-size: 0.58rem;  
    padding: 2px 7px;    
    letter-spacing: 0.5px; 
    opacity: 0.75; 
}