@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@1,500;1,600&display=swap');

:where([hidden]) {
    display: none !important
}

:root {
    --ink: #10101a;
    --paper: #f3f0ea;
    --blue: #1217aa;
    --coral: #ff4f5e;
    --line: #10101a29
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

button {
    color: inherit
}

.section {
    max-width: 1280px;
    margin: auto;
    padding: 120px 48px
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .22em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px
}

.eyebrow.dark {
    color:  #014037
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h2 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -.045em;
    margin: 0
}

em {
    font-family: 'Playfair Display', serif;
    font-weight: 500
}

.site-header {
    position: fixed;
    z-index: 30;
    inset: 0 0 auto;
    height: 82px;
    display: flex;
    align-items: center;
    padding: 0 4vw;
    color: #fff;
    border-bottom: 1px solid #ffffff40;
    background: linear-gradient(#08080ea3, transparent)
}

.brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -.08em
}

.brand i,
.footer-brand i {
    width: 1px;
    height: 27px;
    background: currentColor;
    transform: rotate(22deg);
    opacity: .55
}

.site-header nav {
    margin: auto;
    display: flex;
    gap: 2.4vw
}

.site-header nav a {
    font-size: 13px
}

.header-cta {
    font-size: 13px;
    border: 1px solid #ffffff80;
    padding: 12px 17px;
    border-radius: 99px
}

.arrow {
    font-family: Arial;
    margin-left: 10px;
    display: inline-block;
    transition: .2s
}

.header-cta:hover .arrow,
.button:hover .arrow,
.association-card a:hover .arrow,
.event-list button:hover .arrow {
    transform: translateX(5px)
}

.menu-button {
    display: none;
    background: none;
    border: 0
}

.hero {
    height: 100svh;
    min-height: 700px;
    position: relative;
    background: #05050a;
    color: #fff;
    overflow: hidden
}

.hero>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #05050cdb, #05050c59 52%, #05050c14), linear-gradient(0deg, #05050cb3, transparent 50%)
}

.hero-content {
    position: absolute;
    left: 7vw;
    top: 52%;
    transform: translateY(-43%);
    width: min(760px, 86vw)
}

h1 {
    font-size: clamp(58px, 8.2vw, 126px);
    line-height: .82;
    letter-spacing: -.065em;
    margin: 0 0 36px;
    font-weight: 500
}

.hero-copy {
    font-size: 18px;
    line-height: 1.6;
    max-width: 590px;
    color: #ffffffc7
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 38px
}

.button {
    display: inline-flex;
    padding: 16px 22px;
    border-radius: 99px;
    align-items: center;
    font-size: 14px;
    font-weight: 600
}

.button.light {
    background: #fff;
    color: var(--ink)
}

.text-link {
    font-size: 14px;
    border-bottom: 1px solid #ffffff80;
    padding-bottom: 6px
}

.scroll-note {
    position: absolute;
    right: 4vw;
    bottom: 46px;
    font-size: 10px;
    letter-spacing: .2em;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: rotate(90deg);
    transform-origin: right
}

.scroll-note span {
    width: 50px;
    height: 1px;
    background: #fff
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 76px
}

.associations {
    padding-bottom: 150px
}

.association-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.association-card {
    min-height: 590px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: #fff
}

.association-card:after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid #ffffff38;
    border-radius: 50%;
    right: -140px;
    bottom: -140px
}

.association-card.adeixa {
    background: var(--blue)
}

.association-card.fronteiras {
    background: var(--coral)
}

.card-number {
    position: absolute;
    right: 34px;
    top: 32px;
    font-size: 12px;
    letter-spacing: .2em;
    opacity: .65
}

.association-mark {
    font-size: 36px;
    font-weight: 700;
    line-height: .88;
    letter-spacing: -.06em;
    margin-bottom: auto
}

.association-card h3 {
    font-size: 28px;
    max-width: 470px;
    margin: 80px 0 20px
}

.association-card p {
    line-height: 1.7;
    color: #ffffffcc;
    max-width: 520px
}

.association-card a {
    margin-top: 36px;
    border-top: 1px solid #ffffff59;
    padding-top: 22px;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 2
}

.manifesto {
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: 28px 0
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 22s linear infinite
}

.marquee span {
    font-size: 56px;
    font-weight: 300;
    white-space: nowrap
}

@keyframes marquee {
    to {
        transform: translateX(-50%)
    }
}

.events {
    padding-bottom: 140px
}

.event-list {
    border-top: 1px solid var(--line)
}

.event-list button {
    width: 100%;
    display: grid;
    grid-template-columns: 70px 1fr 1fr 50px;
    align-items: center;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 8px;
    cursor: pointer;
    transition: .25s
}

.event-list button:hover,
.event-list button.active {
    background: #fff;
    padding-left: 20px
}

.event-list span {
    font-size: 12px;
    opacity: .5
}

.event-list strong {
    font-size: 25px
}

.event-list small {
    opacity: .55
}

.event-feature {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: var(--ink);
    color: #fff;
    margin-top: 34px;
    min-height: 430px
}

.event-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 430px
}

.event-feature div {
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

.event-feature div p {
    color: #7d88ff;
    font-size: 12px;
    letter-spacing: .2em;
    font-weight: 700
}

.event-feature h3 {
    font-size: 43px;
    line-height: 1;
    margin-bottom: 24px
}

.event-feature div span {
    line-height: 1.7;
    color: #ffffffb3
}

.calendar-section {
    background: var(--blue);
    color: #fff
}

.calendar-wrap {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 90px
}

.calendar-note {
    line-height: 1.7;
    color: #ffffffb3;
    max-width: 420px;
    margin-top: 32px
}

.timeline {
    border-top: 1px solid #ffffff40
}

.timeline button {
    width: 100%;
    display: grid;
    grid-template-columns: 110px 20px 1fr 30px;
    gap: 18px;
    align-items: center;
    padding: 25px 0;
    border: 0;
    border-bottom: 1px solid #ffffff40;
    background: none;
    color: #fff;
    text-align: left;
    cursor: pointer
}

.timeline time {
    font-size: 12px;
    letter-spacing: .16em
}

.timeline button>.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral)
}

.timeline strong,
.timeline small {
    display: block
}

.timeline strong {
    font-size: 18px
}

.timeline small {
    opacity: .6;
    margin-top: 5px
}

.liana {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center
}

.liana-image {
    position: relative
}

.liana-image img {
    width: 100%;
    height: 720px;
    object-fit: cover
}

.quote {
    position: absolute;
    right: -35px;
    bottom: 55px;
    width: 230px;
    padding: 28px;
    background: var(--coral);
    color: #fff;
    font-family: 'Playfair Display';
    font-size: 26px;
    font-style: italic
}

.liana-copy h2 {
    color:  #014037;
    margin-bottom: 26px
}

.liana-copy h3 {
    font-size: 24px;
    max-width: 480px
}

.liana-copy>p {
    line-height: 1.75;
    color: #575765
}

.signature {
    font-family: 'Playfair Display';
    font-size: 32px;
    font-style: italic;
    margin-top: 38px
}

.signature span {
    display: block;
    font-family: 'DM Sans';
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-style: normal;
    margin-top: 8px;
    color: #777
}

.enrollment {
    background: var(--ink);
    color: #fff
}

.enrollment-wrap {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 8vw
}

.enrollment-copy>p {
    color: #ffffffa8;
    line-height: 1.7;
    max-width: 460px;
    margin-top: 30px
}

.enrollment-copy ul {
    list-style: none;
    padding: 0;
    margin-top: 38px
}

.enrollment-copy li {
    border-top: 1px solid #ffffff33;
    padding: 14px 0;
    font-size: 13px
}

.enrollment form,
.form-success {
    background: #fff;
    color: var(--ink);
    padding: 44px
}

.enrollment label {
    font-size: 12px;
    font-weight: 700;
    display: block
}

.enrollment input,
.enrollment select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #bbb;
    background: transparent;
    padding: 12px 0 14px;
    margin-bottom: 28px;
    border-radius: 0;
    outline: 0
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px
}

.check {
    display: flex !important;
    align-items: center;
    font-weight: 400 !important;
    gap: 8px;
    color: #555
}

.check input {
    width: auto;
    margin: 0
}

.submit {
    width: 100%;
    border: 0;
    background:  #014037;
    color: #fff;
    padding: 17px;
    margin-top: 26px;
    cursor: pointer;
    font-weight: 700
}

.enrollment form>small {
    display: block;
    margin-top: 14px;
    color: #777
}

.form-success {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start
}

.form-success>span {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 28px
}

.form-success h3 {
    font-size: 34px;
    margin: 25px 0 10px
}

.form-success button {
    border: 0;
    background: none;
    color: var(--blue);
    font-weight: 700;
    padding: 12px 0
}

footer {
    background: #08080e;
    color: #fff;
    padding: 80px 5vw 30px;
    text-align: center
}

.footer-brand {
    justify-content: center;
    font-size: 40px
}

.footer-brand i {
    height: 42px
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 42px 0 70px;
    font-size: 13px
}

.footer-bottom {
    border-top: 1px solid #ffffff26;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #ffffff8c
}

.footer-bottom strong {
    color: #fff
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: .7s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@media(max-width:900px) {
    .site-header {
        height: 70px;
        padding: 0 22px
    }

    .site-header nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--ink);
        padding: 25px;
        flex-direction: column;
        gap: 22px
    }

    .site-header nav.open {
        display: flex
    }

    .menu-button {
        display: flex;
        margin-left: auto;
        width: 42px;
        height: 42px;
        flex-direction: column;
        justify-content: center;
        gap: 7px
    }

    .menu-button b {
        width: 24px;
        height: 1px;
        background: #fff
    }

    .header-cta {
        display: none
    }

    .section {
        padding: 86px 22px
    }

    .hero {
        min-height: 640px
    }

    .hero-content {
        left: 22px
    }

    .hero>img {
        object-position: 58% center
    }

    .hero-copy {
        font-size: 15px;
        max-width: 440px
    }

    .scroll-note {
        display: none
    }

    .association-grid,
    .calendar-wrap,
    .liana,
    .enrollment-wrap {
        grid-template-columns: 1fr
    }

    .association-card {
        min-height: 500px;
        padding: 30px
    }

    .event-list button {
        grid-template-columns: 45px 1fr 35px
    }

    .event-list small {
        display: none
    }

    .event-feature {
        grid-template-columns: 1fr
    }

    .event-feature img {
        min-height: 300px;
        height: 300px
    }

    .event-feature div {
        padding: 32px
    }

    .calendar-wrap {
        gap: 20px
    }

    .liana {
        gap: 70px
    }

    .liana-image img {
        height: 550px
    }

    .quote {
        right: 15px
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px
    }
}

@media(max-width:560px) {
    h1 {
        font-size: 58px
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px
    }

    .association-card h3 {
        margin-top: 60px
    }

    .marquee span {
        font-size: 36px
    }

    .event-feature h3 {
        font-size: 34px
    }

    .timeline button {
        grid-template-columns: 76px 12px 1fr 18px;
        gap: 10px
    }

    .timeline small {
        font-size: 10px
    }

    .liana-image img {
        height: 430px
    }

    .quote {
        width: 200px;
        font-size: 22px
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .enrollment form {
        padding: 28px 20px
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px
    }

    .section {
        padding-top: 76px;
        padding-bottom: 76px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .marquee {
        animation: none
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* Identidade conjunta */
.brand-duo {
    gap: 12px;
    letter-spacing: 0
}

.brand-duo>span {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, .38)
}

.brand-duo img {
    width: 96px;
    height: 48px;
    object-fit: contain
}

.brand-duo .logo-fronteiras {
    width: 100px;
    height: 55px;
    max-width: none;
    filter: invert(1);
    background: transparent;
}

.footer-brand.brand-duo img {
    width: 120px;
    height: 60px;
}

.footer-brand.brand-duo .logo-fronteiras {
    width: 120px;
    height: 60px;
    max-width: none;
    padding: 0;
}

.association-extra {
    margin-top: 12px;
    font-size: 14px;
}

/* Escolas parceiras */
.schools-section {
    color: #fff;
    background: linear-gradient(120deg, #014037, #014037)
}

.schools-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 8vw;
    align-items: center
}

.schools-copy>p:not(.eyebrow) {
    max-width: 560px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.75
}

.school-tabs {
    display: flex;
    gap: 10px;
    margin-top: 34px
}

.school-tabs button {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 99px;
    padding: 12px 20px;
    background: transparent;
    color: #fff;
    cursor: pointer
}

.school-tabs button.active {
    background: #fff;
    color:  #014037;
}

.school-pillars {
    display: grid;
    gap: 9px;
    margin-top: 30px;
    max-width: 560px
}

.school-pillars span {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: 13px
}

.school-pillars b {
    color: #9ca3ff;
    font-size: 10px;
    letter-spacing: .18em
}

.school-panel {
    position: relative;
    min-height: 440px;
    padding: 58px;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper)
}



.school-panel .eyebrow { color:  #014037 }
.school-panel h3 { font-size: clamp(32px, 4vw, 52px); line-height: 1; max-width: 540px }
.school-panel p { line-height: 1.7; color: #5c5c68; max-width: 580px }
.school-panel ul { padding: 0; margin: 30px 0 0; list-style: none }
.school-panel li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px }
.school-index { position: absolute; right: 28px; top: 24px; color: var(--blue); font-size: 12px; letter-spacing: .2em }

/* Marca do evento aplicada discretamente na galeria */
.gallery-photo .event-watermark {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 92px;
    height: 82px;
    object-fit: contain;
    filter: invert(1) drop-shadow(0 3px 6px rgba(0,0,0,.8));
    background: transparent;
    opacity: .88
}

.event-feature {
    box-shadow: 0 26px 65px rgba(16,16,26,.17)
}

#event-location {
    display: block;
    margin: -10px 0 22px;
    color: #fff;
    font-size: 13px;
    letter-spacing: .08em
}

.event-feature .tourism-copy {
    margin: 24px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.65
}

.liana-image img {
    image-rendering: auto;
    object-position: center top;
    filter: contrast(1.03) saturate(1.04)
}

/* Calendário editorial e destinos */
.calendar-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg,  #014037 0%,  #014037 55%,  #014037 100%)
}

.calendar-section:before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    left: -330px;
    bottom: -330px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%
}

.calendar-wrap {
    position: relative;
    grid-template-columns: .72fr 1.28fr;
    align-items: start
}

.calendar-wrap .section-heading {
    position: sticky;
    top: 120px
}

.calendar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 38px
}

.calendar-stats span {
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.28);
    color: rgba(255,255,255,.62);
    font-size: 10px;
    line-height: 1.35
}

.calendar-stats strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 21px;
    font-weight: 500
}

.timeline {
    display: grid;
    gap: 14px;
    border-top: 0
}

.timeline button {
    grid-template-columns: 126px 14px 1fr 28px;
    padding: 25px 24px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 3px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(7px);
    transition: transform .25s, background .25s, border-color .25s
}

.timeline button:hover,
.timeline button:focus-visible {
    transform: translateX(-8px);
    border-color: rgba(255,255,255,.42);
    background: rgba(255,255,255,.12)
}

.timeline button>.timeline-dot {
    box-shadow: 0 0 0 5px rgba(255,79,94,.16)
}

.timeline time {
    line-height: 1.45;
    color: #b9bdff
}

.timeline small {
    color: #fff;
    opacity: .72
}

.timeline p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.55
}

/* Direcionamento no padrão visual das landing pages */
.section-intro {
    max-width: 540px;
    margin: 30px 0 0;
    color: #62626e;
    line-height: 1.7
}

.destination-grid {
    gap: 18px
}

.destination-cardA {
    min-height: 660px;
    background-image: linear-gradient(180deg, rgba(7, 7, 15, .18), rgba(7, 7, 15, .94)), url(./assets/image-section2.jpg);
    background-size: cover;
    background-position: center;
    padding: 38px;
    transition: transform .45s ease, filter .45s ease
}

.destination-cardD {
    min-height: 660px;
    background-image: linear-gradient(180deg, rgba(7, 7, 15, .18), rgba(7, 7, 15, .94)), url(./assets/dance-sem-fronteiras.jpeg);
    background-size: cover;
    background-position: center;
    padding: 38px;
    transition: transform .45s ease, filter .45s ease
}

.destination-cardD:nth-child(2) {
    background-position: 70% center
}

.destination-cardD:hover {
    transform: translateY(-8px);
    filter: saturate(1.08)
}

.destination-cardD:after {
    inset: 0;
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
    pointer-events: none
}

.destination-cardD .association-mark {
    font-size: 112px;
    font-weight: 500;
    opacity: .88;
    margin: 25px 0 auto
}

.destination-cardA:nth-child(2) {
    background-position: 70% center
}

.destination-cardA:hover {
    transform: translateY(-8px);
    filter: saturate(1.08)
}

.destination-cardA:after {
    inset: 0;
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
    pointer-events: none
}

.destination-cardA .association-mark {
    font-size: 112px;
    font-weight: 500;
    opacity: .88;
    margin: 25px 0 auto
}

.destination-kicker {
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 700;
    color: rgba(255, 255, 255, .72);
    padding-right: 85px
}

.destination-content {
    position: relative;
    z-index: 2
}

.destination-content p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 12px
}

.destination-content h3 {
    font-size: clamp(34px, 4vw, 57px);
    line-height: .88;
    letter-spacing: -.055em;
    margin: 0 0 20px
}

.destination-content>span {
    display: block;
    line-height: 1.65;
    color: rgba(255, 255, 255, .75);
    max-width: 480px
}

.destination-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px
}

.destination-content .arrow {
    font-size: 22px
}

/* Galeria interativa */
.photo-story {
    background: #10101a;
    color: #fff;
    overflow: hidden
}

.photo-story-wrap {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 70px;
    align-items: center
}

.photo-story-copy>p:not(.eyebrow) {
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
    max-width: 430px;
    margin-top: 30px
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 46px
}

.gallery-controls button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: .25s
}

.gallery-controls button:hover {
    background: #fff;
    color: #10101a
}

.gallery-controls span {
    font-size: 11px;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .6)
}

.gallery-stage {
    position: relative;
    height: 650px
}

.gallery-photo {
    position: absolute;
    border: 0;
    background: none;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform .65s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .28)
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover
}

.gallery-photo span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 45px 22px 20px;
    text-align: left;
    color: #fff;
    font-size: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    opacity: 0;
    transition: .35s
}

.gallery-photo:nth-child(1) {
    width: 66%;
    height: 76%;
    left: 0;
    top: 4%;
    z-index: 4
}

.gallery-photo:nth-child(2) {
    width: 42%;
    height: 47%;
    right: 0;
    top: 0;
    z-index: 3
}

.gallery-photo:nth-child(3) {
    width: 42%;
    height: 45%;
    right: 3%;
    bottom: 0;
    z-index: 2
}

.gallery-photo:nth-child(4) {
    width: 47%;
    height: 34%;
    left: 8%;
    bottom: 0;
    z-index: 1
}

.gallery-photo:not(.active) {
    filter: brightness(.48) grayscale(.2);
    transform: scale(.94)
}

.gallery-photo.active {
    filter: none;
    transform: scale(1.03);
    z-index: 6
}

.gallery-photo.active span {
    opacity: 1
}

/* Redes sociais */
.social-links {
    max-width: 800px;
    margin: 0 auto 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .18)
}

.social-links a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    text-align: left;
    padding: 24px 28px;
    position: relative;
    transition: .25s
}

.social-links a:first-child {
    border-right: 1px solid rgba(255, 255, 255, .18)
}

.social-links a:hover {
    background: #fff;
    color: #10101a
}

.social-links span {
    font-size: 9px;
    letter-spacing: .19em;
    text-transform: uppercase;
    opacity: .58
}

.social-links strong {
    grid-column: 1;
    font-size: 17px
}

.social-links b {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
    font-size: 22px;
    font-weight: 400
}

@media(max-width:900px) {
    .brand-duo img,
    .brand-duo .logo-fronteiras {
        width: 80px;
        height: 40px
    }
    .schools-wrap { grid-template-columns: 1fr }
    .school-panel { min-height: 390px }
    .calendar-wrap .section-heading { position: static }
    .photo-story-wrap {
        grid-template-columns: 1fr;
        gap: 45px
    }

    .gallery-stage {
        height: 580px
    }

    .destination-card {
        min-height: 570px
    }

    .destination-card .association-mark {
        font-size: 82px
    }

    .social-links {
        grid-template-columns: 1fr
    }

    .social-links a:first-child {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18)
    }
}

@media(max-width:560px) {
    .site-header .brand-duo { gap: 7px }
    .site-header .brand-duo>span { height: 28px }
    .site-header .brand-duo img,
    .site-header .brand-duo .logo-fronteiras {
        display: block;
        width: 68px;
        height: 34px
    }
    .school-panel { padding: 42px 26px }
    .school-tabs { flex-wrap: wrap }
    .calendar-stats { grid-template-columns: 1fr 1fr }
    .timeline button { grid-template-columns: 84px 10px 1fr 18px; padding: 20px 14px }
    .timeline p { font-size: 11px }
    .footer-brand.brand-duo { flex-direction: column }
    .footer-brand.brand-duo>span { width: 70px; height: 1px }
    .footer-brand.brand-duo img,
    .footer-brand.brand-duo .logo-fronteiras {
        display: block;
        width: 104px;
        height: 52px
    }
    .gallery-stage {
        height: 500px
    }

    .gallery-photo:nth-child(1) {
        width: 78%;
        height: 62%
    }

    .gallery-photo:nth-child(2) {
        width: 48%;
        height: 35%
    }

    .gallery-photo:nth-child(3) {
        width: 49%;
        height: 36%
    }

    .gallery-photo:nth-child(4) {
        width: 58%;
        height: 28%;
        left: 3%
    }

    .destination-card {
        min-height: 520px;
        padding: 26px
    }

    .destination-content h3 {
        font-size: 38px
    }

    .destination-card .association-mark {
        font-size: 68px
    }
}

/* Setas vetoriais: independentes das fontes e emojis do dispositivo. */
.icon-arrow {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    vertical-align: middle;
}
.timeline .arrow { margin-left: 0; justify-self: end; }
.gallery-controls button { display: inline-flex; align-items: center; justify-content: center; }

/* Mantido depois dos estilos editoriais para preservar a responsividade. */
.calendar-wrap { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
.calendar-wrap > *, .timeline button > * { min-width: 0; }
.timeline button { grid-template-columns: 126px 14px minmax(0, 1fr) 28px; }
.calendar-wrap h2, .timeline strong, .timeline small, .timeline p { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    .calendar-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .calendar-wrap .section-heading { position: static; margin-bottom: 0; }
    .calendar-note { max-width: 640px; }
    .calendar-stats { max-width: 560px; }
}
@media (max-width: 600px) {
    .calendar-wrap { gap: 32px; }
    .calendar-wrap h2 { font-size: clamp(32px, 8.5vw, 50px); line-height: 1.08; }
    .calendar-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
    .timeline button {
        grid-template-columns: 10px minmax(0, 1fr) 24px;
        grid-template-areas: "dot date arrow" ". content content";
        gap: 12px;
        padding: 20px 16px;
    }
    .timeline time { grid-area: date; font-size: 11px; letter-spacing: .08em; }
    .timeline .timeline-dot { grid-area: dot; }
    .timeline button > div { grid-area: content; }
    .timeline .arrow { grid-area: arrow; }
    .timeline strong { font-size: 18px; line-height: 1.3; }
    .timeline small { font-size: 12px; line-height: 1.5; }
    .timeline p { font-size: 12px; line-height: 1.6; }
    .timeline button:hover, .timeline button:focus-visible { transform: none; }
}

/* Header: compact language control aligned with the main action. */
.site-header { gap: 20px; background: rgba(8, 8, 14, .92); backdrop-filter: blur(16px); }
.site-header .brand { flex-shrink: 0; }
.site-header nav { gap: clamp(12px, 1.5vw, 24px); }
.site-header nav a { white-space: nowrap; }
.language-picker { position: relative; display: flex; align-items: center; flex: 0 0 auto; margin: 0; color: #f3f0ea; }
.language-globe { position: absolute; left: 14px; pointer-events: none; opacity: .75; }
.language-picker::after { content: ''; position: absolute; right: 15px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); pointer-events: none; opacity: .75; }
.language-picker select { appearance: none; -webkit-appearance: none; width: 174px; height: 44px; padding: 0 32px 0 42px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.045); color: #f3f0ea; font-family: inherit; font-size: 13px; font-weight: 500; line-height: normal; cursor: pointer; transition: background .2s, border-color .2s; color-scheme: dark; }
.language-picker select:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.5); }
.language-picker select:focus-visible { outline: 2px solid #f3f0ea; outline-offset: 4px; }
.language-picker option { background: #17171e; color: #fff; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex-shrink: 0; min-height: 44px; padding: 0 20px; white-space: nowrap; border-color: rgba(255,255,255,.5); }
@media (min-width: 901px) and (max-width: 1250px) {
  .site-header { padding-inline: 24px; gap: 16px; }
  .site-header nav { gap: 14px; }
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .site-header { gap: 12px; }
  .site-header .brand { order: 0; }
  .language-picker { order: 1; margin-left: auto; }
  .menu-button { order: 2; margin-left: 0; flex-shrink: 0; align-items: center; }
  .site-header nav { order: 3; }
  .header-cta { display: none; }
  .language-picker select { width: 164px; }
}
@media (max-width: 480px) {
  .site-header { padding-inline: 14px; gap: 8px; }
  .site-header .brand-duo { gap: 6px; }
  .site-header .brand-duo img, .site-header .brand-duo .logo-fronteiras { width: 56px; height: 32px; }
  .language-picker select { width: 148px; height: 42px; padding-left: 32px; padding-right: 22px; font-size: 12px; }
  .language-globe { left: 10px; width: 15px; height: 15px; }
  .language-picker::after { right: 11px; width: 5px; height: 5px; }
  .menu-button { width: 32px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 10px; gap: 6px; }
  .site-header .brand-duo img, .site-header .brand-duo .logo-fronteiras { width: 46px; }
  .language-picker select { width: 142px; }
}

/* Seção de formação: estilos restritos ao novo conteúdo. */
.formation-section { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); scroll-margin-top: 82px; }
.formation-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.formation-copy h2 { color: #014037; font-size: clamp(1.75rem, 2.8vw, 2.625rem); line-height: 1.25; letter-spacing: normal; word-spacing: normal; overflow-wrap: break-word; }
.formation-copy h2 em { color: #014037; }
.formation-copy p { font-size: 16px; line-height: 1.8; margin: 28px 0 0; }
.formation-copy strong { color: #014037; }
.formation-photo { display: block; position: relative; overflow: hidden; background: #08080e; border-radius: 4px; }
.formation-photo > img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.formation-photo:hover > img { transform: scale(1.035); }
.formation-photo-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; color: #fff; background: #014037; font-size: 14px; }
.formation-photo-label > span { font-size: 24px; line-height: 1; }
.formation-photo:focus-visible, .formation-close:focus-visible { outline: 3px solid #014037; outline-offset: 5px; }
.formation-dialog { width: min(1200px, 94vw); max-width: 94vw; max-height: 92vh; max-height: 92dvh; padding: 0; border: 0; background: #08080e; color: #fff; }
.formation-dialog::backdrop { background: rgba(8, 8, 14, .88); }
.formation-dialog > img { display: block; width: 100%; height: auto; max-height: calc(92vh - 60px); max-height: calc(92dvh - 60px); object-fit: contain; }
.formation-close { display: flex; align-items: center; justify-content: center; gap: 16px; margin-left: auto; min-height: 56px; padding: 12px 22px; border: 0; background: #014037; color: #fff; cursor: pointer; }
.formation-close span { font-size: 24px; }
.formation-close:focus-visible { outline-color: #fff; outline-offset: -4px; }
@media (max-width: 900px) { .formation-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } .formation-copy h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); } }
@media (prefers-reduced-motion: reduce) { .formation-photo > img { transition: none; } .formation-photo:hover > img { transform: none; } }

/* Espaço para o novo link do projeto em ecrãs intermédios. */
@media (min-width: 901px) and (max-width: 1150px) {
  .site-header .brand { order: 0; }
  .site-header .language-picker { order: 1; margin-left: auto; }
  .site-header .menu-button { order: 2; display: flex; width: 42px; height: 42px; flex-shrink: 0; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
  .site-header .menu-button b { width: 24px; height: 1px; background: #fff; }
  .site-header nav { order: 3; display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 25px; background: var(--ink); flex-direction: column; gap: 22px; }
  .site-header nav.open { display: flex; }
}

.formation-wrap > * { min-width: 0; }
@media (max-width: 560px) { .formation-wrap { padding: 64px 22px; gap: 28px; } .formation-copy h2 { font-size: clamp(1.5rem, 6.5vw, 1.875rem); line-height: 1.3; } .formation-copy p { font-size: 1rem; line-height: 1.75; } }

/* Ajustes exclusivos do projeto escola em telas menores. */
@media (max-width: 900px) {
  .formation-wrap { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .formation-copy, .formation-photo { width: 100%; max-width: 100%; min-width: 0; }
  .formation-copy h2, .formation-copy p { max-width: 100%; overflow-wrap: anywhere; white-space: normal; text-align: left; }
  .formation-photo > img { width: 100%; max-width: 100%; height: auto; object-fit: contain; }
  .formation-photo-label { width: 100%; min-height: 48px; padding: 14px 16px; gap: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .formation-photo-label > span { flex-shrink: 0; }
  .formation-dialog { margin: auto; width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
}
@media (max-width: 560px) {
  .formation-wrap { padding: 56px 20px; gap: 24px; }
  .formation-copy h2 { font-size: clamp(1.375rem, 6vw, 1.875rem); line-height: 1.35; }
  .formation-copy p { margin-top: 20px; font-size: 1rem; line-height: 1.7; }
}
/* Abertura inspirada na identidade da ADEIXA. */
html.site-loading { overflow: hidden; }
.site-loading body > main { visibility: hidden; }
.site-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 32px 24px;
  background: #07182b; color: #fff;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.site-loader.is-leaving { transform: translateY(-100%); pointer-events: none; }
.site-loader-content { width: min(100%, 560px); text-align: center; }
.site-loader-logos {
  display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center; gap: 32px; margin-bottom: 42px;
  animation: site-loader-arrive .8s cubic-bezier(.22, 1, .36, 1) both;
}
.site-loader-logos img {
  display: block; width: 100%; height: 170px; object-fit: contain;
  filter: brightness(0) invert(1);
}
.site-loader-divider { width: 1px; height: 64px; background: rgba(255,255,255,.2); }
.site-loader-track { height: 1px; background: rgba(255,255,255,.17); overflow: hidden; }
#site-loader-fill { display: block; width: 100%; height: 100%; background: #58c4f5; transform: scaleX(0); transform-origin: left; }
#site-loader-percent { display: block; margin-top: 20px; color: #58c4f5; font: italic 20px Georgia, serif; font-variant-numeric: tabular-nums; }
@keyframes site-loader-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
  .site-loader-content { max-width: 380px; }
  .site-loader-logos { gap: 18px; margin-bottom: 32px; }
  .site-loader-logos img { height: clamp(100px, 30vw, 140px); }
  .site-loader-divider { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader { transition: opacity .15s ease; }
  .site-loader.is-leaving { transform: none; opacity: 0; }
  .site-loader-logos { animation: none; }
}
