:root {
    color-scheme: dark;
    --background: #141416;
    --surface: #242428;
    --brand: #A66BE8;
    --light: #D2B4FC;
    --white: #FFFFFF;
    --muted: #CCCCCC;
    --header-height: 5rem;
    --radius: 1.25rem;
    --gutter: clamp(1.15rem, 3.6vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1.25rem); }
body { margin: 0; background: var(--background); color: var(--white); font-family: Montserrat, Arial, sans-serif; font-size: 1rem; line-height: 1.45; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 800; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
em { color: var(--brand); font-style: normal; }
.shell { width: min(100% - var(--gutter) * 2, 94rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; transform: translateY(-200%); color: var(--background); background: var(--light); padding: .7rem 1rem; border-radius: .4rem; }
.skip:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 4; background: linear-gradient(112deg, var(--surface), #1b1b20); border-bottom: 1px solid #633b7c80; }
.header-row { display: flex; min-height: var(--header-height); align-items: center; justify-content: space-between; gap: clamp(1rem, 2.5vw, 3rem); }
.brand { display: inline-flex; width: clamp(11.5rem, 24vw, 18rem); flex: none; align-items: center; }
.brand img { width: 100%; height: auto; }
.navigation { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2.5rem); }
.navigation a { position: relative; font-weight: 600; font-size: .875rem; padding-block: .75rem; }
.navigation a:hover { color: var(--light); }
.navigation a[aria-current]::after { position: absolute; content: ""; inset: auto 0 .1rem; height: 3px; background: var(--brand); }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .62rem 1.15rem; border: 1px solid transparent; border-radius: 99rem; font-weight: 800; font-size: .875rem; line-height: 1.16; transition: background-color .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button i { font-size: 1.08em; }
.primary { background: linear-gradient(115deg, #7734b9, #8542c7); border-color: #a66be87d; }
.primary:hover { border-color: var(--light); }
.outline { background: #14141655; border-color: var(--brand); }
.outline:hover { background-color: #4d285f; }
.enrollment { white-space: nowrap; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 53% 52%, #301343, transparent 52%), linear-gradient(110deg, #1a1a1f, var(--background) 67%); }
.hero-photo { position: absolute; inset: 0 -2% 0 auto; width: 52%; z-index: -1; }
.hero-photo::before, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo::before { content: ""; clip-path: ellipse(97% 126% at 97% 55%); background: linear-gradient(var(--brand), #7c30ac); }
.hero-photo img { object-fit: cover; object-position: 57% 50%; clip-path: ellipse(96% 126% at 97% 55%); opacity: 0; }
.hero-photo .hero-slide-current { opacity: 1; z-index: 1; }
.hero-photo .hero-slide-entering { z-index: 2; }
.hero-inner { min-height: clamp(26rem, 40.5vw, 37rem); display: flex; align-items: center; }
.hero-copy { width: 51%; padding: 2.25rem 0 2.2rem clamp(.45rem, 2.7vw, 2.3rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .32em; font-size: .875rem; font-weight: 700; margin-bottom: .45rem; }
.hero h1 { font-size: clamp(2.8rem, 5.05vw, 5rem); line-height: .94; }
.hero-intro { font-size: clamp(.98rem, 1.65vw, 1.23rem); font-weight: 500; line-height: 1.3; margin-top: .75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem 1.05rem; margin-top: 1.2rem; }
.highlights { display: flex; flex-wrap: wrap; gap: .8rem clamp(.85rem, 2.35vw, 2.35rem); list-style: none; padding: 0; margin: 1.95rem 0 0; }
.highlights li { display: flex; align-items: center; gap: .55rem; font-size: .83rem; font-weight: 600; line-height: 1.24; }
.highlights i { font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--brand); }
.home-sections { background: radial-gradient(ellipse at 50% 26%, #1a1a1e, transparent 70%), var(--surface); padding: 1.55rem 0 clamp(3rem, 7.6vw, 7rem); }
.lined-heading { display: flex; align-items: center; justify-content: center; gap: 1.15rem; font-size: clamp(2rem, 3.75vw, 3.5rem); text-align: center; }
.lined-heading::before, .lined-heading::after { content: ""; flex: 0 1 4rem; height: 2px; background: var(--brand); }
.section-intro { text-align: center; margin: .65rem 0 1.75rem; font-weight: 500; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.course-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: clamp(.55rem, 1vw, 1rem); }
.course-card { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; width: 100%; min-height: 12.6rem; aspect-ratio: .73; background: var(--background); border: 1px solid var(--brand); border-radius: var(--radius); text-align: center; }
.course-card img, .course-card::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.course-card img { object-fit: cover; z-index: -2; transition: transform .3s; }
.course-card::after { content: ""; z-index: -1; background: linear-gradient(180deg, transparent 18%, #17171c20 37%, #17171ce0 69%, #17171c 89%); }
.course-card:hover img { transform: scale(1.06); }
.course-card:hover { border-color: var(--light); }
.course-card span { display: grid; justify-items: center; align-content: end; gap: .65rem; padding: 0 .55rem 1rem; }
.course-card i { color: var(--light); font-size: clamp(1.4rem, 3vw, 2.3rem); text-shadow: 0 2px 6px #141416; }
.course-card strong { display: grid; place-items: center; min-height: 2.45em; max-width: 9rem; font-size: clamp(.9375rem, 1.37vw, 1.35rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.course-dialog { width: min(calc(100% - 2rem), 32rem); max-height: calc(100dvh - 2rem); padding: clamp(1rem, 4vw, 1.5rem); color: var(--white); background: var(--surface); border: 1px solid var(--brand); border-radius: var(--radius); overflow: auto; }
.course-dialog::backdrop { background: #141416c9; }
.course-dialog form { display: flex; justify-content: flex-end; }
.course-dialog .course-dialog-close { cursor: pointer; color: var(--white); }
.course-dialog img { width: 100%; height: clamp(8rem, 30vh, 13rem); object-fit: cover; border-radius: .85rem; margin-block: .8rem 1rem; }
.course-dialog h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.course-dialog p { margin: .65rem 0 1rem; }
.course-dialog-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.festival { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: clamp(11.5rem, 18vw, 17rem); margin-top: clamp(2.1rem, 5.3vw, 5rem); padding: 1rem clamp(1.25rem, 4.2vw, 4rem); border: 1px solid var(--brand); border-radius: var(--radius); }
.home-festival-banners { display: grid; grid-auto-rows: 1fr; gap: clamp(1.7rem, 3.6vw, 3.45rem); margin-top: clamp(2.1rem, 5.3vw, 5rem); }
.home-festival-banners .festival { margin-top: 0; }
.festival img, .festival::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.festival img { object-fit: cover; object-position: center 21%; z-index: -2; }
.festival::after { content: ""; z-index: -1; background: linear-gradient(90deg, #13111af7 1%, #15111ab0 27%, #15111a19 52%, #15111a26 66%, #13111af2 100%); }
.festival-archive-background { background: var(--background) url("../img/festivais-anteriores.webp") center / cover no-repeat; }
.festival-copy { max-width: 24rem; }
.festival h2 { font-size: clamp(2rem, 3.7vw, 3.7rem); }
.festival p { margin-top: .6rem; line-height: 1.25; font-weight: 500; }
.festival-button { min-height: 3.7rem; flex: none; }
.festival-button i { color: var(--light); font-size: 1.9rem; margin-right: .25rem; }
.trial { display: grid; grid-template-columns: 1.08fr 1.05fr auto; align-items: center; gap: clamp(1rem, 2.9vw, 2.7rem); margin-top: clamp(1.7rem, 3.6vw, 3.45rem); padding: 1.15rem clamp(1rem, 3vw, 3rem); border: 1px solid var(--brand); border-radius: var(--radius); background: linear-gradient(115deg, #812fbd, #662996 55%, #8532b6); }
.trial h2 { display: flex; align-items: center; gap: .65rem; border-right: 1px solid var(--light); padding-block: .45rem; padding-right: .75rem; font-size: clamp(1.45rem, 2.7vw, 2.5rem); }
.trial h2 i { font-size: 1.35em; }
.trial p { line-height: 1.3; font-weight: 500; }
.trial-button { min-height: 3.5rem; border-radius: 1.05rem; background: linear-gradient(110deg, #ead6ff, #c176ed); color: #170d20; }
.trial-button i { color: #5d267c; font-size: 2rem; }
.site-footer { background: linear-gradient(135deg, #1a1a1f, var(--background)); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; text-align: center; padding: 2.05rem 0 1.2rem; }
.footer-grid > * + * { border-left: 1px solid var(--brand); }
.footer-brand p { font-size: 1.1rem; font-weight: 500; margin-top: .3rem; }
.contact-details { display: grid; align-content: center; gap: .4rem; font-style: normal; }
.footer-grid .contact-details { justify-content: center; padding-inline: .8rem; text-align: left; }
.contact-details a, .contact-details span { display: flex; align-items: center; gap: .65rem; overflow-wrap: anywhere; }
.contact-details i { width: 1.4em; text-align: center; }
.contact-details a:hover, .back-link:hover { color: var(--light); }
.footer-social h2 { font-size: 1rem; letter-spacing: -.02em; margin-bottom: .85rem; }
.social-links { display: flex; justify-content: center; gap: .7rem; }
.social-links > * { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--brand); border-radius: .65rem; background: #3c1d53; }
.social-links a:hover { background: #6f3399; }
.sound-wave { width: 100%; height: clamp(3.5rem, 8vw, 7rem); }
.copyright { padding: .2rem 1rem .75rem; text-align: center; color: var(--muted); font-size: .8rem; }
.inner-page { min-height: 55vh; padding-block: clamp(2.5rem, 6vw, 5rem); }
.inner-page h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.inner-page h1 + p { margin-top: .9rem; }
.inner-page .course-grid { margin-top: 1.75rem; }
.inner-page .festival { margin-top: 1.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--light); }
.course-detail, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 1.5rem; }
.course-detail img { width: 100%; max-height: 28rem; object-fit: cover; border: 1px solid var(--brand); border-radius: var(--radius); }
.course-detail p { max-width: 36rem; }
.info-panel { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid #674485; border-radius: var(--radius); }
.info-panel h2 { font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
.info-panel p, .info-panel address, .info-panel .button, .course-detail .button { margin-top: .9rem; }
.contact-grid { align-items: stretch; }
.festival-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.festival-edition {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
    background: var(--background);
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s;
}
.festival-edition:hover, .festival-edition:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 0 .85rem #a66be84d;
}
.festival-edition-cover { position: relative; aspect-ratio: 16 / 9; background: #321e40; }
.festival-edition-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.festival-edition-cover i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--light);
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-shadow: 0 2px .75rem var(--background);
}
.festival-edition-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: .85rem .6rem 1rem;
    overflow-wrap: anywhere;
}
.festival-edition-details h3 { margin: 0; font-size: 1rem; }
.festival-edition-year { margin-bottom: auto; color: var(--brand); font-size: 1.55rem; }
.festival-edition .festival-edition-action { margin-top: .2rem; padding-inline: .65rem; }
.festival-edition-action:hover { transform: none; }
.festival-schedule-notice:not(:target) { display: none; }
.festival-schedule-notice:target { margin: 0 0 1rem; color: var(--light); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
