/*
 * Dija Theme — estilos do site.
 *
 * Copyright (c) 2026 Hugo Norte. Todos os direitos reservados.
 * Layout protegido pela Lei nº 9.610/1998; cópia, adaptação ou reprodução
 * proibidas sem autorização prévia e expressa (ver LICENSE).
 * Origem: protótipo aprovado em design-systems/dija-ferreira-home/.
 * Máscaras e ícones SVG estão embutidos (data URI); as fontes editáveis
 * ficam em assets/icons/.
 */
/*
 * Fontes reserva ajustadas: enquanto Oswald / Roboto Condensed carregam, o
 * navegador usa Arial com o mesmo tamanho e altura delas (size-adjust e
 * ascent/descent). Assim a troca de fonte não muda a altura dos blocos
 * (evita deslocamento de layout, métrica CLS do Google). Valores medidos
 * com fontTools sobre textos do próprio site, peso a peso.
 */
@font-face { font-family: "Oswald Fallback"; font-weight: 100 500; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 81.09%; ascent-override: 147.11%; descent-override: 35.64%; line-gap-override: 0%; }
@font-face { font-family: "Oswald Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 80.4%; ascent-override: 148.38%; descent-override: 35.94%; line-gap-override: 0%; }
@font-face { font-family: "Oswald Fallback"; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 82.31%; ascent-override: 144.93%; descent-override: 35.11%; line-gap-override: 0%; }
@font-face { font-family: "Roboto Condensed Fallback"; font-weight: 100 400; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 84.54%; ascent-override: 109.74%; descent-override: 28.88%; line-gap-override: 0%; }
@font-face { font-family: "Roboto Condensed Fallback"; font-weight: 500; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 85.29%; ascent-override: 108.77%; descent-override: 28.62%; line-gap-override: 0%; }
@font-face { font-family: "Roboto Condensed Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 82.32%; ascent-override: 112.7%; descent-override: 29.66%; line-gap-override: 0%; }
@font-face { font-family: "Roboto Condensed Fallback"; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 82.6%; ascent-override: 112.31%; descent-override: 29.56%; line-gap-override: 0%; }

/* ---------- Design tokens ---------- */
:root {
  /* 1 unidade = 1px da referência (1536px de largura).
     Escala com a largura real da .page (container), sem limite:
     Full HD (1920) = 1.25×, QHD (2560) = 1.67×, 4K (3840) = 2.5×.
     cqw desconta a barra de rolagem, ao contrário de vw. */
  --u: calc(100cqw / 1536);
  /* Unidade do topo: a nav da referência tem 130px, a real no máx. 90px */
  --nu: calc(min(calc(130 * var(--u)), 90px) / 130);
  /* Escala das fontes do topo: segue --nu, mas encolhe mais em telas médias
     (768–1180px) para logo e links caberem numa linha */
  --nf: min(var(--nu), calc(var(--u) * .85));
  /* Altura da borda rasgada entre seções */
  --tear: calc(40 * var(--u));

  /* Cores (amostradas da referência) */
  --paper: #f1dcc0;
  --paper-light: #f8e3c8;
  --paper-dark: #e3c8a6;
  --ochre: #e0a23f;
  --ochre-dark: #c9862a;
  --ochre-text: #eb9a2e;
  --rust: #8e2a0c;
  --rust-text: #8f3510;
  --purple: #4d1c47;
  --purple-text: #4a1a42;
  --card-red: #a02c0b;
  --card-teal: #07434f;
  --card-purple: #4f1e4b;
  --card-ochre: #eb9c1c;
  --cream-text: #fbe2c6;
  --ink: #120806;
  --text: #2a1d10;
  --charcoal: #24201c;

  /* Máscaras SVG embutidas (data URI): url() externo de máscara é bloqueado em file://.
     Os .svg em assets/ são as fontes editáveis; regenere estas linhas se mudá-los. */
  --mask-torn-bottom: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1536 40%22 preserveAspectRatio=%22none%22%3E%3Cpolygon fill=%22%23000%22 points=%220,0 16,28.5 34,20.2 42,25.0 51,12.2 58,27.5 70,3.0 89,13.7 102,4.5 121,3.7 130,28.5 137,18.2 155,3.4 168,3.3 178,10.1 188,17.1 203,17.7 214,4.9 226,12.4 234,17.8 246,15.9 265,23.8 285,18.4 305,12.1 318,24.2 331,4.3 346,16.7 362,22.4 377,19.1 385,5.3 404,6.6 420,6.3 441,13.8 449,23.4 465,11.5 482,18.6 502,3.9 510,28.5 531,21.5 539,3.7 554,20.1 574,10.0 592,26.8 609,2.6 629,12.0 638,15.8 650,23.5 660,22.7 678,12.9 699,4.3 719,13.2 733,26.7 752,26.2 766,21.8 783,21.1 801,28.8 811,4.3 821,8.5 834,2.3 845,9.4 851,6.1 868,19.1 884,28.7 906,28.6 913,14.8 931,13.1 949,4.9 967,3.7 975,29.6 995,6.5 1011,18.8 1020,2.0 1030,17.0 1047,19.2 1055,26.5 1073,6.2 1087,28.8 1104,15.3 1113,25.8 1133,15.5 1148,4.4 1157,23.0 1171,15.4 1182,16.5 1194,28.6 1216,12.1 1222,23.2 1237,29.4 1245,21.5 1259,16.5 1270,12.0 1283,16.9 1305,11.2 1318,19.2 1330,24.6 1348,22.7 1361,7.6 1382,12.0 1388,29.7 1402,15.2 1414,21.4 1431,14.5 1448,28.7 1465,4.3 1474,8.4 1486,11.5 1507,19.5 1513,15.4 1530,24.4 1536,25.4 1536,0%22/%3E%3C/svg%3E");
  --mask-brush: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 100%22 preserveAspectRatio=%22none%22%3E%3Cmask id=%22m%22%3E%3Cpolygon points=%2214.0,9.6 18.1,16.2 24.9,14.0 33.0,7.7 39.8,14.9 46.5,17.3 53.1,13.9 60.6,16.9 65.6,16.5 74.6,13.3 83.4,11.5 91.1,7.5 101.0,10.4 108.7,11.4 115.0,12.1 124.6,12.6 131.7,11.2 139.5,7.7 148.0,8.0 155.5,10.5 161.8,15.2 170.6,9.6 176.6,16.2 185.9,12.0 194.9,9.0 199.7,10.2 206.2,17.1 212.8,17.5 219.9,10.2 228.8,7.5 236.2,7.1 242.7,17.3 251.4,10.9 260.9,15.9 266.6,10.0 270.9,8.4 277.9,10.5 283.1,10.6 288.1,11.1 294.7,11.1 300.2,12.9 309.8,11.1 318.7,14.3 323.3,8.9 327.9,16.7 335.9,16.2 343.0,16.4 350.4,16.1 356.7,11.0 366.6,11.5 373.7,12.3 383.2,12.7 387.2,12.0 389.0,19.6 388.7,27.2 398.4,34.8 387.2,42.4 395.2,50.0 387.6,57.6 397.1,65.2 388.3,72.8 389.5,80.4 383.2,84.0 373.7,87.9 366.6,89.6 356.7,88.1 350.4,84.7 343.0,91.8 335.9,95.2 327.9,91.3 323.3,87.5 318.7,89.3 309.8,84.9 300.2,86.7 294.7,86.6 288.1,86.2 283.1,89.9 277.9,89.1 270.9,92.7 266.6,87.2 260.9,88.9 251.4,91.0 242.7,84.8 236.2,85.3 228.8,92.2 219.9,82.7 212.8,90.2 206.2,92.4 199.7,85.8 194.9,89.1 185.9,87.8 176.6,83.9 170.6,89.2 161.8,90.1 155.5,86.1 148.0,92.6 139.5,89.5 131.7,91.2 124.6,84.6 115.0,88.6 108.7,85.5 101.0,82.3 91.1,91.7 83.4,90.5 74.6,91.4 65.6,88.3 60.6,91.4 53.1,86.2 46.5,83.5 39.8,92.1 33.0,90.8 24.9,91.5 18.1,93.0 14.0,88.6 13.2,88.0 13.7,80.4 12.1,72.8 9.0,65.2 13.3,57.6 9.3,50.0 12.7,42.4 3.9,34.8 13.4,27.2 1.1,19.6%22 fill=%22%23fff%22/%3E%3C/mask%3E%3Crect width=%22400%22 height=%22100%22 fill=%22%23000%22 mask=%22url(%23m)%22/%3E%3C/svg%3E");
  --mask-rough-rect: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 212 370%22 preserveAspectRatio=%22none%22%3E%3Cpolygon points=%2212.0,3.2 16.7,3.1 21.4,4.0 26.1,2.1 30.8,4.3 35.5,4.5 40.2,2.5 44.9,4.6 49.6,4.0 54.3,3.1 59.0,2.9 63.7,2.5 68.4,1.4 73.1,2.3 77.8,4.4 82.5,3.3 87.2,1.5 91.9,3.9 96.6,1.5 101.3,2.6 106.0,4.3 110.7,2.2 115.4,4.9 120.1,4.0 124.8,4.0 129.5,2.5 134.2,3.9 138.9,2.0 143.6,3.9 148.3,2.5 153.0,3.9 157.7,3.5 162.4,4.3 167.1,2.7 171.8,1.5 176.5,1.8 181.2,1.7 185.9,4.0 190.6,4.0 195.3,2.7 199.0,4.0 203.5,5.5 206.2,8.8 207.4,12.0 209.2,16.9 208.3,21.9 207.5,26.8 207.6,31.8 209.2,36.7 210.3,41.7 209.6,46.6 207.2,51.5 209.6,56.5 209.4,61.4 208.4,66.4 209.1,71.3 209.8,76.3 210.3,81.2 210.3,86.1 209.9,91.1 209.4,96.0 209.3,101.0 210.6,105.9 208.6,110.9 208.8,115.8 208.6,120.7 208.9,125.7 209.0,130.6 206.1,135.6 209.6,140.5 210.3,145.5 210.3,150.4 208.0,155.3 210.3,160.3 209.3,165.2 209.0,170.2 209.7,175.1 207.9,180.1 208.1,185.0 209.0,189.9 210.5,194.9 207.5,199.8 209.7,204.8 207.3,209.7 208.3,214.7 208.2,219.6 209.4,224.5 209.5,229.5 209.6,234.4 206.4,239.4 209.7,244.3 208.5,249.3 209.4,254.2 209.9,259.1 210.4,264.1 208.9,269.0 208.6,274.0 209.9,278.9 209.5,283.9 210.0,288.8 208.1,293.7 210.5,298.7 208.4,303.6 208.5,308.6 209.2,313.5 207.5,318.5 210.0,323.4 209.9,328.3 209.1,333.3 209.6,338.2 210.4,343.2 209.1,348.1 209.4,353.1 209.1,358.1 206.8,361.8 203.8,364.8 200.0,367.2 195.3,367.0 190.6,368.5 185.9,368.0 181.2,366.2 176.5,366.7 171.8,366.3 167.1,366.8 162.4,366.9 157.7,367.4 153.0,365.5 148.3,366.1 143.6,366.5 138.9,367.7 134.2,366.2 129.5,366.8 124.8,367.1 120.1,367.4 115.4,368.1 110.7,366.1 106.0,368.3 101.3,368.4 96.6,368.2 91.9,367.7 87.2,368.1 82.5,365.8 77.8,365.5 73.1,368.3 68.4,367.0 63.7,367.6 59.0,364.4 54.3,367.0 49.6,366.0 44.9,368.6 40.2,365.6 35.5,367.8 30.8,367.0 26.1,365.4 21.4,366.0 16.7,366.7 12.2,366.8 8.3,364.7 5.7,361.3 3.0,358.0 3.8,353.1 2.1,348.1 1.7,343.2 2.1,338.2 4.3,333.3 5.0,328.3 2.6,323.4 1.6,318.5 2.5,313.5 3.4,308.6 2.4,303.6 4.5,298.7 3.8,293.7 4.0,288.8 3.8,283.9 3.0,278.9 1.4,274.0 4.4,269.0 4.5,264.1 3.1,259.1 2.8,254.2 3.3,249.3 3.4,244.3 2.8,239.4 5.9,234.4 4.5,229.5 3.4,224.5 4.4,219.6 4.4,214.7 3.1,209.7 2.9,204.8 3.1,199.8 2.7,194.9 3.1,189.9 2.9,185.0 2.5,180.1 2.7,175.1 2.9,170.2 2.3,165.2 1.7,160.3 3.5,155.3 2.8,150.4 2.2,145.5 1.5,140.5 6.7,135.6 3.2,130.6 5.6,125.7 2.4,120.7 3.4,115.8 3.5,110.9 4.4,105.9 2.6,101.0 3.2,96.0 3.4,91.1 3.6,86.1 1.7,81.2 4.3,76.3 4.3,71.3 2.4,66.4 4.4,61.4 4.3,56.5 2.4,51.5 3.5,46.6 4.2,41.7 1.7,36.7 3.2,31.8 3.6,26.8 1.7,21.9 3.4,16.9 3.3,12.3 5.3,8.3 8.9,5.9%22 fill=%22%23000%22/%3E%3C/svg%3E");
  --mask-torn-rect: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 600 370%22 preserveAspectRatio=%22none%22%3E%3Cpolygon points=%226.0,9.0 11.3,6.2 16.7,3.2 22.0,10.3 27.4,5.9 32.7,8.4 38.1,1.5 43.4,7.0 48.8,6.0 54.1,7.2 59.5,9.4 64.8,5.5 70.1,9.2 75.5,8.4 80.8,1.8 86.2,3.6 91.5,9.4 96.9,8.7 102.2,6.8 107.6,7.0 112.9,10.3 118.3,1.6 123.6,5.5 128.9,5.0 134.3,8.9 139.6,2.2 145.0,7.7 150.3,3.2 155.7,4.3 161.0,1.9 166.4,1.8 171.7,6.1 177.1,2.6 182.4,3.3 187.7,5.2 193.1,7.9 198.4,9.9 203.8,1.6 209.1,8.2 214.5,6.3 219.8,3.0 225.2,5.1 230.5,2.9 235.9,8.0 241.2,4.3 246.5,5.2 251.9,5.2 257.2,1.9 262.6,9.6 267.9,6.5 273.3,4.6 278.6,7.6 284.0,9.0 289.3,4.1 294.7,4.1 300.0,5.0 305.3,9.9 310.7,4.1 316.0,9.5 321.4,7.7 326.7,6.0 332.1,9.6 337.4,3.9 342.8,4.2 348.1,9.9 353.5,7.3 358.8,12.3 364.1,3.2 369.5,6.0 374.8,6.5 380.2,6.9 385.5,6.6 390.9,3.1 396.2,8.4 401.6,4.8 406.9,6.2 412.3,2.5 417.6,3.7 422.9,4.2 428.3,2.2 433.6,3.1 439.0,10.4 444.3,7.0 449.7,9.8 455.0,3.8 460.4,1.9 465.7,7.5 471.1,8.2 476.4,8.2 481.7,4.4 487.1,8.0 492.4,6.3 497.8,8.0 503.1,8.0 508.5,10.2 513.8,5.7 519.2,10.1 524.5,9.7 529.9,9.6 535.2,2.4 540.5,3.4 545.9,10.1 551.2,5.5 556.6,2.9 561.9,10.3 567.3,2.4 572.6,9.4 578.0,5.0 583.3,3.3 588.7,7.3 594.7,6.0 594.1,11.1 589.0,16.2 594.0,21.3 590.9,26.5 594.3,31.6 596.1,36.7 596.9,41.8 592.7,46.9 591.1,52.0 591.0,57.1 597.7,62.3 596.5,67.4 597.7,72.5 598.0,77.6 589.6,82.7 595.0,87.8 591.0,92.9 597.4,98.1 594.5,103.2 597.4,108.3 593.2,113.4 596.8,118.5 589.7,123.6 589.7,128.7 590.5,133.9 597.6,139.0 591.7,144.1 596.4,149.2 591.8,154.3 593.9,159.4 593.1,164.5 594.8,169.7 596.1,174.8 592.0,179.9 594.7,185.0 591.3,190.1 596.8,195.2 592.8,200.3 593.7,205.5 594.9,210.6 596.3,215.7 596.5,220.8 591.3,225.9 590.2,231.0 590.8,236.1 595.6,241.3 591.4,246.4 591.5,251.5 595.3,256.6 589.9,261.7 593.2,266.8 594.6,271.9 594.9,277.1 598.2,282.2 595.2,287.3 596.3,292.4 594.1,297.5 589.7,302.6 591.5,307.7 590.3,312.9 596.7,318.0 589.0,323.1 590.9,328.2 591.5,333.3 590.5,338.4 591.3,343.5 590.3,348.7 590.4,353.8 596.9,358.9 594.0,359.6 588.7,367.7 583.3,359.8 578.0,366.4 572.6,367.7 567.3,366.5 561.9,361.0 556.6,365.4 551.2,360.0 545.9,362.4 540.5,360.8 535.2,365.5 529.9,362.9 524.5,365.7 519.2,364.5 513.8,363.9 508.5,361.2 503.1,358.9 497.8,367.3 492.4,361.6 487.1,366.1 481.7,362.0 476.4,365.7 471.1,367.5 465.7,365.6 460.4,368.2 455.0,368.5 449.7,368.3 444.3,365.1 439.0,366.6 433.6,366.6 428.3,366.9 422.9,365.8 417.6,365.4 412.3,362.2 406.9,358.0 401.6,363.6 396.2,365.2 390.9,362.2 385.5,363.2 380.2,360.5 374.8,367.0 369.5,365.1 364.1,367.1 358.8,367.9 353.5,366.9 348.1,359.5 342.8,362.6 337.4,366.7 332.1,364.5 326.7,365.1 321.4,360.4 316.0,361.8 310.7,366.6 305.3,366.1 300.0,362.2 294.7,368.5 289.3,367.8 284.0,366.6 278.6,368.3 273.3,360.3 267.9,367.7 262.6,360.6 257.2,359.8 251.9,365.2 246.5,368.1 241.2,364.7 235.9,363.1 230.5,361.2 225.2,361.3 219.8,360.9 214.5,361.9 209.1,360.5 203.8,360.2 198.4,362.6 193.1,365.4 187.7,365.7 182.4,366.2 177.1,365.2 171.7,365.5 166.4,367.6 161.0,361.9 155.7,364.3 150.3,367.3 145.0,360.5 139.6,361.3 134.3,364.1 128.9,366.5 123.6,363.3 118.3,361.8 112.9,359.6 107.6,361.3 102.2,367.9 96.9,363.9 91.5,360.0 86.2,362.6 80.8,365.6 75.5,361.2 70.1,361.5 64.8,364.9 59.5,360.3 54.1,363.8 48.8,361.0 43.4,361.2 38.1,361.2 32.7,363.5 27.4,362.6 22.0,364.1 16.7,362.5 11.3,365.4 6.2,364.0 6.9,358.9 5.8,353.8 6.0,348.7 6.9,343.5 3.6,338.4 6.8,333.3 3.4,328.2 6.2,323.1 6.7,318.0 3.5,312.9 2.0,307.7 7.2,302.6 8.0,297.5 9.7,292.4 2.3,287.3 3.4,282.2 8.5,277.1 9.2,271.9 8.7,266.8 1.8,261.7 2.4,256.6 3.3,251.5 1.8,246.4 8.5,241.3 9.0,236.1 5.1,231.0 5.4,225.9 9.7,220.8 1.6,215.7 3.0,210.6 7.1,205.5 6.2,200.3 5.6,195.2 5.5,190.1 4.1,185.0 5.3,179.9 10.0,174.8 4.0,169.7 11.2,164.5 2.9,159.4 3.4,154.3 4.3,149.2 7.4,144.1 8.2,139.0 2.8,133.9 8.5,128.7 4.7,123.6 9.0,118.5 8.2,113.4 9.2,108.3 4.6,103.2 4.8,98.1 2.8,92.9 9.3,87.8 1.9,82.7 8.6,77.6 2.9,72.5 2.6,67.4 4.8,62.3 4.7,57.1 10.4,52.0 3.3,46.9 6.4,41.8 5.8,36.7 9.2,31.6 10.1,26.5 1.7,21.3 2.1,16.2 8.3,11.1%22 fill=%22%23000%22/%3E%3C/svg%3E");
  --mask-grunge: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22300%22 height=%22300%22%3E%3Cfilter id=%22f%22 x=%220%22 y=%220%22 width=%22100%25%22 height=%22100%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.9%22 numOctaves=%222%22 seed=%224%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix type=%22matrix%22 values=%220 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -5 3.9%22/%3E%3C/filter%3E%3Crect width=%22300%22 height=%22300%22 filter=%22url(%23f)%22/%3E%3C/svg%3E");

  /* Tipografia */
  --font-display: "Oswald", "Oswald Fallback", sans-serif;
  --font-text: "Roboto Condensed", "Roboto Condensed Fallback", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }

/* ---------- Página ---------- */
.page {
  container-type: inline-size;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}

.page > *, main > * {
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Bordas rasgadas: cada seção avança sobre a próxima com uma máscara irregular */
.hero, .section, .section2, .section3, .sec-turmas-hero, .sec-turmas, .sec-proximas, .sec-fotos {
  z-index: 1;
  /* sobreposição = altura total da máscara (40), para a parte recortada
     revelar sempre a seção seguinte, nunca o fundo da página */
  margin-bottom: calc(-1 * var(--tear));
  -webkit-mask: var(--mask-torn-bottom) bottom / 100% var(--tear) no-repeat,
                linear-gradient(#000, #000) top / 100% calc(100% - var(--tear) + 1px) no-repeat;
          mask: var(--mask-torn-bottom) bottom / 100% var(--tear) no-repeat,
                linear-gradient(#000, #000) top / 100% calc(100% - var(--tear) + 1px) no-repeat;
}
/* Respiro de 2rem em todas as seções */
.hero, .section, .section2, .section3, .section4 { padding: 2rem; }
.hero { z-index: 5; } .section { z-index: 4; } .section2 { z-index: 3; } .section3 { z-index: 2; }
.sec-fotos { z-index: 2; } .sec-turmas-hero { z-index: 5; } .sec-turmas { z-index: 4; } .sec-proximas { z-index: 3; }

/* Fundos: AVIF primeiro; JPG como reserva para navegadores sem suporte.
   A 1ª declaração (url jpg) vale onde image-set() não é entendido. */
/* Topo (header + nav): proporcional à referência, mas nunca acima de 90px */
.nav      { height: min(calc(130 * var(--u)), 90px); background-color: var(--paper); z-index: 6; }
/* Hero: a arte de fundo fica na cena animada (.hero-scene-box, mais abaixo) */
.hero     { height: calc(790 * var(--u)); background-color: var(--ochre); }
.section  { height: calc(510 * var(--u)); background-color: var(--paper);
            background-image: url("img/bg-turmas.jpg");
            background-image: image-set("img/bg-turmas.avif" type("image/avif"), "img/bg-turmas.jpg" type("image/jpeg")); }
.section2 { height: calc(520 * var(--u)); background-color: var(--charcoal);
            background-image: url("img/bg-eventos.jpg");
            background-image: image-set("img/bg-eventos.avif" type("image/avif"), "img/bg-eventos.jpg" type("image/jpeg")); }
.section3 { height: calc(540 * var(--u)); background-color: var(--paper);
            background-image: url("img/bg-sobre.jpg");
            background-image: image-set("img/bg-sobre.avif" type("image/avif"), "img/bg-sobre.jpg" type("image/jpeg")); }
.section4 { height: calc(385 * var(--u)); background-color: var(--ochre);
            background-image: url("img/bg-contato.jpg");
            background-image: image-set("img/bg-contato.avif" type("image/avif"), "img/bg-contato.jpg" type("image/jpeg")); }
.rail2    { height: calc(40 * var(--u)); background-color: var(--ink);
            background-image: url("img/rail2.jpg");
            background-image: image-set("img/rail2.avif" type("image/avif"), "img/rail2.jpg" type("image/jpeg"));
            background-position: left center; background-size: auto 100%; background-repeat: repeat-x; }


/* =====================================================================
   ETAPA 3 — Estrutura e componentes
   Coordenadas em --u = px da referência (1536 de largura), relativas
   ao topo de cada seção.
   ===================================================================== */

body { font-family: var(--font-text); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Utilitários de tipo (mesmo id do wireframe = mesma classe) ---------- */
.h1, .h2, .h3, .btn, .btn2, .btn3, .btn5, .lnk, .logo {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  text-transform: none;
}

/* Desgaste de impressão nos títulos grandes */
.grunge {
  -webkit-mask: var(--mask-grunge) 0 0 / calc(260 * var(--u)) repeat;
          mask: var(--mask-grunge) 0 0 / calc(260 * var(--u)) repeat;
  /* a máscara recorta na caixa do elemento: folga invisível para não cortar
     descendentes (o "j" de Dija) nem letras que passam da largura */
  padding: .08em .06em .26em;
  margin: -.08em -.06em -.26em;
}

/* Pincelada atrás do conteúdo (cor via --brush) */
.brush { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; }
.brush::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brush, var(--purple));
  -webkit-mask: var(--mask-brush) center / 100% 100% no-repeat;
          mask: var(--mask-brush) center / 100% 100% no-repeat;
}

/* Ícones e imagens decorativas */
.ico, .img { display: inline-block; flex: none; }

/* ---------- NAV ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(88 * var(--u)) 0 calc(95 * var(--u));
}
.logo { font-size: clamp(24px, calc(58 * var(--nf)), 40.15px); letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: calc(57 * var(--u)); margin-left: auto; }
/* Instagram à direita do menu, na cor do botão MATRICULE-SE */
.nav-social {
  flex: none; display: flex; align-items: center; justify-content: center;
  margin-left: calc(26 * var(--nf));
  width: clamp(36px, calc(56 * var(--nf)), 44px); height: clamp(36px, calc(56 * var(--nf)), 44px);
  color: var(--rust); border-radius: 50%;
  transition: color .15s ease, transform .15s ease;
}
.nav-social .ico-instagram { color: inherit; width: 77%; height: 77%; } /* 10% maior que os 70% iniciais */
.nav-social:hover, .nav-social:focus-visible { color: #b8341f; transform: scale(1.08); }
.nav .lnk, .nav .btn { font-size: clamp(17px, calc(42 * var(--nf)), 29.08px); color: var(--ink); white-space: nowrap; }
.nav .btn.is-active { color: var(--rust-text); position: relative; }
.nav .btn.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(-12 * var(--nu));
  height: calc(4 * var(--nu)); border-radius: 2px; background: var(--rust-text);
}
.nav .btn2 {
  --brush: var(--rust);
  font-size: clamp(14px, calc(33.6 * var(--nf)), 23.26px); color: var(--ochre-text); white-space: nowrap;
  width: calc(280 * var(--nf)); height: calc(86 * var(--nf));
  margin-left: calc(28 * var(--u));
}

:root {
  /* Ícones SVG (etapa 4) — fontes editáveis em assets/icons/. Cor = currentColor. */
  --icon-star: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cpolygon points=%2250.0,8.0 62.3,35.0 90.9,38.7 69.0,58.2 74.7,86.0 50.0,72.0 24.1,87.6 32.9,57.6 6.3,37.8 38.8,36.6%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%227%22 stroke-linejoin=%22round%22/%3E%3Cpolygon points=%2250.0,42.0 53.8,46.7 58.6,49.2 55.2,53.7 54.7,58.5 50.0,57.5 44.1,60.1 46.7,53.1 38.6,48.3 47.4,48.4%22 fill=%22%23000%22/%3E%3C/svg%3E");
  --icon-rays: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cg stroke=%22%23000%22 stroke-linecap=%22round%22 fill=%22none%22%3E%3Cpath d=%22M12 18 L70 40%22 stroke-width=%2210%22/%3E%3Cpath d=%22M8 54 L84 52%22 stroke-width=%2211%22/%3E%3Cpath d=%22M14 90 L70 68%22 stroke-width=%2210%22/%3E%3C/g%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 90%22%3E%3Cg stroke=%22%23000%22 stroke-linecap=%22round%22 fill=%22none%22%3E%3Cpath d=%22M10 12 L58 36%22 stroke-width=%228%22/%3E%3Cpath d=%22M6 46 L70 44%22 stroke-width=%229%22/%3E%3Cpath d=%22M14 80 L56 58%22 stroke-width=%228%22/%3E%3Cpath d=%22M58 14 L80 40%22 stroke-width=%227%22/%3E%3C/g%3E%3C/svg%3E");
  --icon-rays2: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 110%22%3E%3Cg stroke=%22%23000%22 stroke-linecap=%22round%22 fill=%22none%22%3E%3Cpath d=%22M20 7 L50 37%22 stroke-width=%226%22/%3E%3Cpath d=%22M14 31 L50 46%22 stroke-width=%227%22/%3E%3Cpath d=%22M8 55 L50 55%22 stroke-width=%228%22/%3E%3Cpath d=%22M14 79 L50 64%22 stroke-width=%227%22/%3E%3Cpath d=%22M20 103 L50 73%22 stroke-width=%226%22/%3E%3C/g%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 70%22%3E%3Cpolyline points=%2231,6 9,35 31,64%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%227%22 stroke-linecap=%22square%22 stroke-linejoin=%22miter%22/%3E%3C/svg%3E");
  --icon-heart: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 92%22%3E%3Cpath d=%22M50 84 C20 62 6 46 8 28 C10 12 28 4 41 14 C46 18 49 23 50 27 C52 21 56 15 62 12 C76 5 93 14 92 31 C91 48 76 63 50 84 Z%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%228%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  --icon-heart-fill: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 92%22%3E%3Cpath d=%22M50 86 C18 63 4 47 6 28 C8 10 28 2 42 13 C46 16 49 21 50 25 C52 19 56 13 62 10 C77 3 95 13 94 31 C93 49 77 64 50 86 Z%22 fill=%22%23000%22/%3E%3C/svg%3E");
  --icon-heart-rays: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 40%22%3E%3Cg stroke=%22%23000%22 stroke-linecap=%22round%22 fill=%22none%22 stroke-width=%223.5%22%3E%3Cpath d=%22M6 11 L36 17%22/%3E%3Cpath d=%22M4 21 L38 21%22/%3E%3Cpath d=%22M6 31 L36 25%22/%3E%3Cpath d=%22M114 11 L84 17%22/%3E%3Cpath d=%22M116 21 L82 21%22/%3E%3Cpath d=%22M114 31 L84 25%22/%3E%3Cpath d=%22M60 35 C50 28 44 23 44 16 C44 10 50 7 55 9 C58 10 59 12 60 14 C61 12 63 9 66 8 C71 7 76 10 76 16 C76 23 70 28 60 35 Z%22 stroke-width=%223.8%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3C/svg%3E");
  --icon-instagram: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cg fill=%22none%22 stroke=%22%23000%22 stroke-width=%224%22%3E%3Crect x=%225%22 y=%225%22 width=%2238%22 height=%2238%22 rx=%2211%22/%3E%3Ccircle cx=%2224%22 cy=%2224%22 r=%228.5%22/%3E%3C/g%3E%3Ccircle cx=%2235%22 cy=%2213%22 r=%222.8%22 fill=%22%23000%22/%3E%3C/svg%3E");
  --icon-pin: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 40 52%22%3E%3Cpath d=%22M20 2C10 2 3 9.6 3 19c0 12.5 17 31 17 31s17-18.5 17-31C37 9.6 30 2 20 2Zm0 24a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z%22 fill=%22%23000%22/%3E%3C/svg%3E");
  --icon-whatsapp: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cpath d=%22M24 5 A19 19 0 0 0 7.6 33.6 L5 43 L14.7 40.5 A19 19 0 1 0 24 5 Z%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%224%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M17.5 14.5 C15.6 15.3 14.6 18 15.6 21.3 C16.9 25.6 21.7 31 27 32.6 C30.4 33.6 32.9 32.4 33.6 30.6 L33.9 28.6 L29.4 26.4 L27.4 28.6 C25 27.7 21.4 24.3 20.4 21.6 L22.2 19.4 L20.3 14.6 Z%22 fill=%22%23000%22/%3E%3C/svg%3E");
}

/* ---------- Ícones vetoriais (cor pelo `color` de cada elemento) ---------- */
.ico[class*="ico-"] { outline: none; opacity: 1; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ico-star, .ico-star-sm { --icon: var(--icon-star); }
.ico-rays     { --icon: var(--icon-rays); }
.ico-arrow    { --icon: var(--icon-arrow); }
.ico-rays2    { --icon: var(--icon-rays2); }
.ico-chevron  { --icon: var(--icon-chevron); }
.ico-heart    { --icon: var(--icon-heart); }
.ico-heart2   { --icon: var(--icon-heart-fill); }
.ico-heart-rays { --icon: var(--icon-heart-rays); color: var(--ink); }
.ico-instagram { --icon: var(--icon-instagram); color: var(--ink); }
.ico-whatsapp  { --icon: var(--icon-whatsapp); color: var(--ink); }

/* Imagens raster da etapa 4 (geradas pelo usuário) */
.ico.ico-sun, .ico.ico-moon, .ico.ico-star-big, .ico.ico-sun2,
.img-scroll, .img-musicos, .img-flores, .img-escultura {
  -webkit-mask: none; mask: none; outline: none; opacity: 1;
  background: var(--img) center / contain no-repeat;
}
.ico.ico-sun    { --img: url("img/sun.avif"); }
.ico.ico-moon   { --img: url("img/moon.avif"); }
.card-icon.ico-moon { width: calc(64 * var(--u)); }
.ico.ico-sun2   { --img: url("img/sun2.avif"); }
.img-scroll     { --img: url("img/scroll.avif"); }
.img-musicos    { --img: url("img/musicos.avif"); mix-blend-mode: lighten; } /* fundo preto da arte some sobre o fundo escuro */
.img-flores     { --img: url("img/flores-clean.avif"); z-index: 2; } /* cópia sem o véu de fundo */
.ico.ico-star-big { --img: url("img/star-big.avif"); }
.img-escultura    { --img: url("img/escultura-clean.avif"); background-size: 100% auto; background-position: center top; } /* cópia do original com o fundo semitransparente removido */

/* =====================================================================
   LAYOUT DAS SEÇÕES (desktop ≥ 768px)
   Tudo em fluxo (flexbox): textos e listas vindos do WordPress podem
   crescer sem quebrar o layout. As alturas do mock viram min-height.
   Medidas em --u = px da referência (1536 de largura).
   ===================================================================== */

/* Utilitário: título de seção com tracinhos dos dois lados */
.ico-rays { width: calc(36 * var(--u)); height: calc(32 * var(--u)); color: #b9531d; }
.is-flipped { transform: scaleX(-1); }

/* ---------- HERO ---------- */
.hero {
  display: flex; align-items: flex-start;
  height: auto; min-height: calc(790 * var(--u));
  padding: max(2rem, calc(6 * var(--u))) 2rem calc(var(--tear) + 2rem) calc(110 * var(--u));
}
.hero-text {
  position: relative; z-index: 2;
  width: calc(550 * var(--u));
  display: flex; flex-direction: column; align-items: center;
}
.hero-name { text-align: center; overflow-wrap: anywhere; }
.hero-name .h1 { display: block; font-weight: 700; letter-spacing: -.005em; }
.hero-name-1 { font-size: clamp(100px, calc(199.8 * var(--u)), 499.5px); color: var(--purple-text); line-height: .86; }
.hero-name-2 { font-size: clamp(71px, calc(142.2 * var(--u)), 355.5px); color: var(--rust); line-height: .9; margin-top: calc(-4 * var(--u)); }

.rail {
  --brush: var(--purple);
  margin-top: calc(52 * var(--u));
  min-width: calc(516 * var(--u)); min-height: calc(56 * var(--u));
  padding: calc(6 * var(--u)) calc(34 * var(--u));
  gap: calc(14 * var(--u));
  text-align: center;
}
.rail .t3 { font-family: var(--font-text); font-weight: 600; font-size: clamp(13.5px, calc(27 * var(--u)), 67.5px); color: var(--cream-text); letter-spacing: .01em; }
.rail .ico-star { width: calc(22 * var(--u)); height: calc(22 * var(--u)); color: var(--cream-text); }

.hero-tagline { align-self: flex-start; display: flex; align-items: center; gap: calc(7 * var(--u)); margin: calc(30 * var(--u)) 0 0 calc(8 * var(--u)); max-width: calc(542 * var(--u)); }
.hero-tagline-text { display: flex; flex-direction: column; }
.hero-tagline .ico-arrow { width: calc(40 * var(--u)); height: calc(36 * var(--u)); color: #b9531d; }
.hero-tagline .h3 { font-family: var(--font-text); font-weight: 700; font-size: clamp(29px, calc(58 * var(--u)), 145px); line-height: 1.12; color: var(--ink); letter-spacing: -.005em; }
.hero-tagline .ico-heart { width: calc(36 * var(--u)); height: calc(32 * var(--u)); margin-left: calc(6 * var(--u)); color: #b9531d; vertical-align: middle; }

.hero-cta {
  --brush: var(--purple);
  margin-top: calc(17 * var(--u));
  min-width: calc(394 * var(--u)); min-height: calc(90 * var(--u));
  padding: 0 calc(40 * var(--u));
  font-size: clamp(18.4px, calc(36.8 * var(--u)), 92px); color: var(--ochre-text);
}

/* Foto: absoluta à direita, ancorada na base (encosta na borda rasgada) */
.media { position: absolute; z-index: 1; left: calc(700 * var(--u)); bottom: 0; width: calc(620 * var(--u)); height: calc(720 * var(--u)); }
.media picture, .media3-photo picture { display: block; width: 100%; height: 100%; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* ---------- TURMAS ---------- */
.section {
  display: flex; align-items: flex-start;
  height: auto; min-height: calc(510 * var(--u));
  padding: max(2rem, calc(57 * var(--u))) 2rem calc(var(--tear) + max(2rem, calc(43 * var(--u)))) calc(110 * var(--u));
}
.turmas-title { flex: none; width: calc(300 * var(--u)); margin-top: calc(9 * var(--u)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.turmas-title .h2 { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: clamp(26px, calc(52 * var(--u)), 130px); color: var(--ink); }
.turmas-title .h1 { font-size: clamp(45px, calc(90 * var(--u)), 225px); color: var(--purple-text); margin-top: calc(10 * var(--u)); letter-spacing: -.005em; }
.turmas-title .t1 { font-size: clamp(14px, calc(22 * var(--u)), 55px); line-height: 1.3; color: var(--text); margin-top: calc(18 * var(--u)); }
.img-scroll { width: calc(226 * var(--u)); height: calc(92 * var(--u)); margin-top: calc(40 * var(--u)); }

.cards {
  display: flex; flex-wrap: wrap; gap: calc(30 * var(--u));
  margin-left: calc(45 * var(--u));
  max-width: calc((212 * 4 + 30 * 3) * var(--u));
}
.cards-empty { margin-left: calc(45 * var(--u)); font-size: clamp(14px, calc(24 * var(--u)), 60px); color: var(--text); }
.card {
  --card-bg: var(--card-red); --card-fg: var(--cream-text);
  position: relative; isolation: isolate;
  width: calc(212 * var(--u)); min-height: calc(370 * var(--u));
  display: flex; flex-direction: column; align-items: center;
  padding: calc(20 * var(--u)) calc(12 * var(--u)) calc(22 * var(--u));
  color: var(--card-fg); text-align: center; overflow-wrap: anywhere;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 50% 40%, rgba(255,255,255,.06), rgba(0,0,0,.12)), var(--card-bg);
  -webkit-mask: var(--mask-rough-rect) center / 100% 100% no-repeat;
          mask: var(--mask-rough-rect) center / 100% 100% no-repeat;
}
.card--teal   { --card-bg: var(--card-teal); }
.card--purple { --card-bg: var(--card-purple); }
.card--ochre  { --card-bg: var(--card-ochre); --card-fg: var(--ink); }

.card-icon { width: calc(46 * var(--u)); height: calc(46 * var(--u)); } /* metade do mock (92) */

/* Home: card + botão abaixo (o item da lista agrupa os dois) */
.card-item { display: flex; flex-direction: column; width: calc(212 * var(--u)); }
.card-item .card { width: auto; flex: 1; }
.card-address {
  margin-top: calc(12 * var(--u)); padding-top: calc(10 * var(--u));
  border-top: max(1px, calc(1.5 * var(--u))) solid currentColor; border-top-color: color-mix(in srgb, currentColor 35%, transparent);
  display: flex; flex-direction: column; gap: calc(2 * var(--u));
  font-style: normal; font-size: clamp(11px, calc(15 * var(--u)), 38px); line-height: 1.25;
}
.card-address strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12em; letter-spacing: .02em; }
.card-cta { margin-top: calc(10 * var(--u)); }
.card .h3 { font-size: clamp(23px, calc(46 * var(--u)), 115px); margin-top: calc(10 * var(--u)); }
.card .t1 { font-family: var(--font-text); font-weight: 500; font-size: clamp(16.5px, calc(33 * var(--u)), 82.5px); margin-top: calc(12 * var(--u)); }
.card .t1::after {
  content: ""; display: block; width: calc(165 * var(--u)); max-width: 100%; height: max(1px, calc(1.5 * var(--u)));
  margin: calc(14 * var(--u)) auto 0; background: currentColor; opacity: .35;
}
.card .t2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, calc(30 * var(--u)), 75px); line-height: 1.22; margin-top: calc(16 * var(--u)); }
.card .t2 span { display: block; }
.card-desc { font-size: clamp(13px, calc(19 * var(--u)), 48px); line-height: 1.3; margin-top: calc(12 * var(--u)); opacity: .9; }
.card .t2, .card-desc { margin-bottom: calc(14 * var(--u)); }
.card .ico-star-sm { width: calc(28 * var(--u)); height: calc(28 * var(--u)); margin-top: auto; }
/* Títulos de seção: duas linhas (pequena + grande) dentro de um só <h1>/<h2> */
.turmas-heading, .sobre-heading { display: flex; flex-direction: column; }
.turmas-heading { align-items: center; }
.turmas-heading .h1, .sobre-heading .h1 { display: block; }

/* ---------- EVENTOS ---------- */
.section2 {
  height: auto; min-height: calc(520 * var(--u));
  padding: max(2rem, calc(15 * var(--u))) max(2rem, calc(111 * var(--u))) calc(var(--tear) + 2rem) calc(115 * var(--u));
}
.carousel { position: relative; display: flex; align-items: center; }
.slides { flex: 1; min-width: 0; }
.slide { display: none; }
.slide.is-active { display: flex; align-items: flex-start; }

.eventos-text { flex: none; width: calc(570 * var(--u)); margin: calc(51 * var(--u)) 0 0 calc(-5 * var(--u)); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--cream-text); }
.eventos-text .h1 { display: flex; align-items: center; gap: calc(26 * var(--u)); font-size: clamp(59px, calc(118 * var(--u)), 295px); color: #fbe6d1; letter-spacing: .005em; }
.ico-rays2 { width: calc(46 * var(--u)); height: calc(86 * var(--u)); color: var(--ochre); }
.eventos-text .h3 { font-size: clamp(17px, calc(34 * var(--u)), 85px); color: #d39a3e; margin-top: calc(20 * var(--u)); letter-spacing: .01em; }
.eventos-text .t1 { font-size: clamp(14px, calc(28 * var(--u)), 70px); line-height: 1.25; margin-top: calc(14 * var(--u)); }
.eventos-text .btn3 {
  --brush: #e5940f;
  min-width: calc(232 * var(--u)); min-height: calc(62 * var(--u)); padding: 0 calc(30 * var(--u));
  margin-top: calc(18 * var(--u));
  font-size: clamp(13.6px, calc(27.2 * var(--u)), 68px); color: var(--ink);
}

.media2 { flex: 1; min-width: 0; margin-left: calc(10 * var(--u)); aspect-ratio: 680 / 440; }
.media2 img { display: block; width: 100%; height: 100%; object-fit: contain; }
.img-musicos { display: block; width: 100%; height: 100%; color: var(--cream-text); }

.btn4 {
  flex: none; position: relative; z-index: 2;
  width: calc(50 * var(--u)); height: calc(70 * var(--u));
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--cream-text);
}
.btn4[hidden] { display: flex; visibility: hidden; } /* um só evento: setas somem, mas o espaço fica */
.btn4 .ico { width: calc(30 * var(--u)); height: calc(56 * var(--u)); }

/* ---------- SOBRE ---------- */
.section3 {
  display: flex; align-items: flex-start;
  height: auto; min-height: calc(540 * var(--u));
  padding: max(2rem, calc(14 * var(--u))) 2rem calc(var(--tear) + 2rem) calc(132 * var(--u));
}
.media3 {
  position: relative; flex: none;
  width: calc(414 * var(--u)); height: calc(408 * var(--u));
  padding: calc(16 * var(--u));
  transform: rotate(-1.2deg);
  isolation: isolate;
}
.media3::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper-light);
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(0,0,0,.25);
  -webkit-mask: var(--mask-torn-rect) center / 100% 100% no-repeat;
          mask: var(--mask-torn-rect) center / 100% 100% no-repeat;
}
.media3-photo { display: block; width: 100%; height: 100%; overflow: hidden; }
/* Enquadramento aprovado: zoom 1,4× ancorado no topo (cabeça inteira, até a cintura) */
.media3-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.4); transform-origin: 25% 0; }
.media3 .img-flores { position: absolute; z-index: 2; left: calc(-77 * var(--u)); top: calc(186 * var(--u)); width: calc(245 * var(--u)); height: calc(305 * var(--u)); transform: rotate(1.2deg); }

.sobre-text { position: relative; z-index: 2; flex: 0 1 calc(420 * var(--u)); min-width: 0; margin: calc(8 * var(--u)) 0 0 calc(74 * var(--u)); }
.sobre-text .h2 { display: flex; align-items: center; gap: calc(16 * var(--u)); margin-left: calc(-55 * var(--u)); width: calc(475 * var(--u)); font-size: clamp(29px, calc(58 * var(--u)), 145px); color: var(--ink); }
.sobre-text .h2 .ico-rays.is-flipped { margin-left: auto; }
.sobre-text .h1 { font-size: clamp(37px, calc(74 * var(--u)), 185px); color: var(--purple-text); margin-top: calc(6 * var(--u)); }
.sobre-text .t1, .sobre-text .entry-content { font-size: clamp(12px, calc(24 * var(--u)), 60px); line-height: 1.22; color: var(--text); margin-top: calc(14 * var(--u)); max-width: calc(395 * var(--u)); }
.sobre-text .h3 { font-size: clamp(17px, calc(34 * var(--u)), 85px); line-height: 1.15; color: var(--purple-text); margin-top: calc(14 * var(--u)); }
.sobre-text .h3 span { display: block; }
.sobre-text .h3-accent { color: var(--rust-text); margin-top: calc(16 * var(--u)); }
.sobre-cta {
  --brush: var(--purple);
  margin-top: calc(18 * var(--u));
  min-width: calc(250 * var(--u)); min-height: calc(64 * var(--u)); padding: 0 calc(34 * var(--u));
  font-size: clamp(16px, calc(28 * var(--u)), 70px); color: var(--ochre-text);
}

.media4 { position: absolute; left: calc(1165 * var(--u)); top: 0; }
.img-escultura { width: calc(320 * var(--u)); height: calc(505 * var(--u)); }

/* Página /bio: texto longo ocupa mais largura; escultura sai do caminho */
.section3--page .sobre-text { flex-basis: calc(440 * var(--u)); } /* não invade a escultura (x=1165) */
.section3--page .sobre-text .entry-content { max-width: none; }

/* ---------- CONTATO ---------- */
.section4 {
  display: flex; align-items: flex-start;
  height: auto; min-height: calc(385 * var(--u));
  padding: max(2rem, calc(25 * var(--u))) 2rem 1rem calc(228 * var(--u));
}
.contato-info { flex: none; width: calc(320 * var(--u)); margin-top: calc(47 * var(--u)); }
.contato-info .h1 { font-size: clamp(43px, calc(86 * var(--u)), 215px); color: var(--ink); letter-spacing: -.005em; }
.ico-heart-rays { display: block; width: calc(84 * var(--u)); height: calc(28 * var(--u)); margin: calc(10 * var(--u)) 0 0 calc(90 * var(--u)); }
.contato-info .t3 { font-family: var(--font-text); font-weight: 500; font-size: clamp(12px, calc(22 * var(--u)), 55px); line-height: 1.22; color: var(--ink); margin-top: calc(14 * var(--u)); text-transform: uppercase; }
.contato-social { margin-top: calc(16 * var(--u)); display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.contato-social li { display: flex; align-items: center; gap: calc(16 * var(--u)); }
.contato-social .ico { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.contato-social .t2 { font-size: clamp(13px, calc(26 * var(--u)), 65px); font-weight: 500; color: var(--ink); }

.form {
  position: relative; flex: none;
  width: calc(600 * var(--u)); min-height: calc(362 * var(--u));
  margin-left: calc(42 * var(--u));
  padding: calc(25 * var(--u)) calc(38 * var(--u)) calc(24 * var(--u)) calc(27 * var(--u));
  display: flex; flex-direction: column; gap: calc(12 * var(--u));
  isolation: isolate;
}
.form::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper-light);
  -webkit-mask: var(--mask-torn-rect) center / 100% 100% no-repeat;
          mask: var(--mask-torn-rect) center / 100% 100% no-repeat;
}
.in {
  display: block; width: 100%; height: calc(36 * var(--u)); min-height: 30px;
  padding: 0 calc(14 * var(--u));
  font-family: var(--font-text); font-weight: 500; font-size: clamp(12px, calc(21 * var(--u)), 52.5px); color: var(--ink);
  background: rgba(255,255,255,.12);
  border: max(1px, calc(1.5 * var(--u))) solid rgba(62,41,14,.85); border-radius: calc(3 * var(--u));
  outline: none;
}
.in::placeholder { color: var(--ink); opacity: 1; }
.in:focus { border-color: var(--purple); box-shadow: 0 0 0 calc(2 * var(--u)) rgba(77,28,71,.25); }
textarea.in { height: calc(92 * var(--u)); padding-top: calc(8 * var(--u)); resize: vertical; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn5 {
  --brush: #0b0907;
  align-self: center; margin: calc(6 * var(--u)) 0 0 calc(-40 * var(--u));
  min-width: calc(416 * var(--u)); min-height: calc(76 * var(--u)); padding: 0 calc(40 * var(--u));
  gap: calc(28 * var(--u));
  font-size: clamp(16.8px, calc(33.6 * var(--u)), 84px); color: var(--ochre-text);
  background: none; border: 0; cursor: pointer;
}
.btn5[disabled] { opacity: .6; cursor: wait; }
.btn5 .ico-heart2 { width: calc(34 * var(--u)); height: calc(30 * var(--u)); color: var(--cream-text); }
.form-status { min-height: 1.3em; text-align: center; font-weight: 600; font-size: clamp(13px, calc(20 * var(--u)), 50px); }
.form-status.is-ok { color: #1f6b3a; }
.form-status.is-error { color: var(--rust); }

/* ---------- LISTA DE EVENTOS (/eventos) ---------- */
.eventos-page-head { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--cream-text); margin-top: calc(40 * var(--u)); }
.eventos-page-head .h1 { display: flex; align-items: center; gap: calc(26 * var(--u)); font-size: clamp(59px, calc(118 * var(--u)), 295px); color: #fbe6d1; }
.eventos-page-head .t1 { font-size: clamp(15px, calc(26 * var(--u)), 65px); line-height: 1.3; max-width: calc(820 * var(--u)); margin-top: calc(14 * var(--u)); }
.eventos-list { display: flex; flex-direction: column; gap: calc(60 * var(--u)); margin: calc(50 * var(--u)) 0 calc(30 * var(--u)); }
.evento-item { display: flex; align-items: center; gap: calc(50 * var(--u)); }
.evento-item:nth-child(even) { flex-direction: row-reverse; }
.evento-item .media2 { flex: 0 0 calc(560 * var(--u)); margin: 0; }
.evento-item .eventos-text { flex: 1; width: auto; margin: 0; align-items: flex-start; text-align: left; }
.evento-item .eventos-text .h3 { margin-top: 0; font-size: clamp(20px, calc(42 * var(--u)), 105px); }

/* ---------- PÁGINAS GENÉRICAS (page, post, blog, 404) ---------- */
.section-page {
  z-index: 4; height: auto; min-height: calc(420 * var(--u));
  padding: calc(60 * var(--u)) 2rem calc(var(--tear) + 3rem);
  display: flex; flex-direction: column; align-items: center;
  background-color: var(--paper);
  background-image: url("img/bg-turmas.jpg");
  background-image: image-set("img/bg-turmas.avif" type("image/avif"), "img/bg-turmas.jpg" type("image/jpeg"));
  -webkit-mask: var(--mask-torn-bottom) bottom / 100% var(--tear) no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - var(--tear) + 1px) no-repeat;
          mask: var(--mask-torn-bottom) bottom / 100% var(--tear) no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - var(--tear) + 1px) no-repeat;
  margin-bottom: calc(-1 * var(--tear));
}
.page-title { font-size: clamp(40px, calc(90 * var(--u)), 160px); color: var(--purple-text); text-align: center; max-width: 900px; }
.page-meta { margin-top: .6rem; font-size: 15px; color: var(--text); opacity: .8; }
.entry-content { font-family: var(--font-text); color: var(--text); }
.section-page .entry-content { width: 100%; max-width: 760px; margin-top: 2rem; font-size: clamp(16px, calc(21 * var(--u)), 22px); line-height: 1.6; background: rgba(248,227,200,.75); padding: clamp(1.25rem, 3vw, 2.5rem); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); font-weight: 600; color: var(--purple-text); line-height: 1.15; }
.entry-content h2 { font-size: 1.6em; } .entry-content h3 { font-size: 1.3em; }
.entry-content a { color: var(--rust-text); text-decoration: underline; }
.entry-content img { height: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.posts-list { width: 100%; max-width: 760px; margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.post-card { background: rgba(248,227,200,.85); padding: 1.25rem 1.5rem; }
.post-card .h3 { font-size: clamp(22px, calc(34 * var(--u)), 40px); color: var(--purple-text); }
.post-card p { margin-top: .5rem; font-size: 17px; line-height: 1.5; color: var(--text); }
.pagination { margin-top: 2rem; display: flex; gap: 1rem; font-family: var(--font-display); font-size: 20px; }
.pagination a { color: var(--rust-text); }
.page-cta { --brush: var(--purple); margin-top: 2rem; min-height: 64px; padding: 0 40px; font-size: 24px; color: var(--ochre-text); }

/* Rodapé */
.site-footer { background: var(--ink); color: var(--cream-text); text-align: center; font-size: 14px; padding: .9rem 1rem; }
.site-footer a { text-decoration: underline; }


/* =====================================================================
   PÁGINA /TURMAS — em andamento + próximas turmas, por local e dia
   ===================================================================== */
.sec-turmas, .sec-proximas {
  height: auto;
  padding: max(2.5rem, calc(50 * var(--u))) max(2rem, calc(110 * var(--u))) calc(var(--tear) + max(2.5rem, calc(50 * var(--u))));
  display: flex; flex-direction: column; align-items: center;
}
/* Papel liso no topo cobre a franja colorida da arte; a borda rasgada do hero faz a transição */
.sec-turmas {
  --cover: linear-gradient(var(--paper) 0 150px, rgba(241, 220, 192, 0) 230px);
  background-color: var(--paper);
  background-image: var(--cover), url("img/bg-turmas.jpg");
  background-image: var(--cover), image-set("img/bg-turmas.avif" type("image/avif"), "img/bg-turmas.jpg" type("image/jpeg"));
}

/* Hero da página /turmas: título + carrossel de divulgação, sobre a arte amarela da home */
.sec-turmas-hero {
  height: auto; display: flex; flex-direction: column; align-items: center;
  padding: max(2rem, calc(40 * var(--u))) max(2rem, calc(110 * var(--u))) calc(var(--tear) + max(2.5rem, calc(50 * var(--u))));
  /* véu amarelo suaviza a arte para o título e o carrossel se destacarem */
  --veil: linear-gradient(rgba(224, 162, 63, .82), rgba(224, 162, 63, .5));
  background-color: var(--ochre);
  background-image: var(--veil), url("img/bg-hero.jpg");
  background-image: var(--veil), image-set("img/bg-hero.avif" type("image/avif"), "img/bg-hero.jpg" type("image/jpeg"));
}
.sec-turmas-hero--no-promo { padding-bottom: calc(var(--tear) + max(3rem, calc(80 * var(--u)))); }
.sec-turmas-hero .turmas-page-head .t1 { color: var(--ink); font-weight: 500; }
.sec-turmas-hero .promo-carousel { margin-top: calc(26 * var(--u)); }
.sec-turmas-hero .btn4 { color: var(--ink); background: rgba(248, 227, 200, .9); border-radius: 50%; width: calc(56 * var(--u)); height: calc(56 * var(--u)); min-width: 40px; min-height: 40px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.sec-turmas-hero .btn4 .ico { width: calc(18 * var(--u)); height: calc(32 * var(--u)); min-width: 12px; min-height: 22px; }
.sec-turmas-hero .carousel-dots span { background: rgba(18, 8, 6, .3); }
.sec-turmas-hero .carousel-dots span.is-active { background: var(--purple); }

/* Botões-âncora para as duas seções */
.turmas-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(30 * var(--u)) calc(40 * var(--u)); }
.turmas-jump-btn {
  --brush: var(--purple);
  min-width: calc(440 * var(--u)); min-height: calc(96 * var(--u)); padding: 0 calc(46 * var(--u));
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, calc(34 * var(--u)), 85px); letter-spacing: .01em;
  color: var(--ochre-text); text-align: center;
  transition: transform .15s ease;
}
.turmas-jump-btn--next { --brush: var(--ink); }
.turmas-jump-btn:hover, .turmas-jump-btn:focus-visible { transform: translateY(-2px) scale(1.02); }

/* Rolagem suave até as âncoras (respeita quem prefere menos movimento) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#turmas-em-andamento, #proximas-turmas { scroll-margin-top: 1rem; }
.sec-proximas {
  color: var(--cream-text);
  background-color: var(--charcoal);
  background-image: url("img/bg-eventos.jpg");
  background-image: image-set("img/bg-eventos.avif" type("image/avif"), "img/bg-eventos.jpg" type("image/jpeg"));
}
.turmas-page-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: calc(820 * var(--u)); }
.turmas-page-head .h2 { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: clamp(26px, calc(52 * var(--u)), 130px); color: var(--ink); }
.turmas-page-head .h1 { font-size: clamp(54px, calc(110 * var(--u)), 275px); color: var(--purple-text); margin-top: calc(8 * var(--u)); }
.turmas-page-head .t1 { margin-top: calc(18 * var(--u)); font-size: clamp(16px, calc(24 * var(--u)), 60px); line-height: 1.35; color: var(--text); }

.turmas-group-title {
  display: flex; align-items: center; justify-content: center; gap: calc(22 * var(--u));
  margin-top: calc(56 * var(--u)); text-align: center;
  font-size: clamp(30px, calc(62 * var(--u)), 155px); color: var(--rust); letter-spacing: .005em;
}
.sec-proximas .turmas-group-title { margin-top: 0; color: #fbe6d1; }
.proximas-intro { margin-top: calc(14 * var(--u)); text-align: center; font-size: clamp(16px, calc(26 * var(--u)), 65px); line-height: 1.3; }
.turmas-empty { margin-top: calc(24 * var(--u)); text-align: center; font-size: clamp(16px, calc(24 * var(--u)), 60px); }

/* Locais */
.locais { width: 100%; max-width: calc(1316 * var(--u)); margin-top: calc(34 * var(--u)); display: flex; flex-direction: column; gap: calc(40 * var(--u)); }
.local { background: rgba(248, 227, 200, .78); padding: calc(28 * var(--u)) calc(34 * var(--u)) calc(32 * var(--u)); border-radius: calc(4 * var(--u)); box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(0,0,0,.12); }
.locais--dark .local { background: rgba(18, 16, 14, .82); box-shadow: 0 calc(4 * var(--u)) calc(18 * var(--u)) rgba(0,0,0,.35); outline: 1px solid rgba(251, 226, 198, .22); }
.local-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(8 * var(--u)) calc(28 * var(--u)); padding-bottom: calc(16 * var(--u)); border-bottom: max(1px, calc(2 * var(--u))) dashed rgba(143, 53, 16, .35); }
.locais--dark .local-head { border-bottom-color: rgba(251, 226, 198, .3); }
.local-name { font-size: clamp(24px, calc(44 * var(--u)), 110px); color: var(--purple-text); }
.locais--dark .local-name { color: var(--ochre); }
.local-address { display: flex; align-items: flex-start; gap: calc(8 * var(--u)); font-size: clamp(15px, calc(21 * var(--u)), 52px); line-height: 1.3; color: var(--text); }
.locais--dark .local-address { color: var(--cream-text); }
.local-address a { text-decoration: underline; text-underline-offset: .18em; }
.ico-pin { --icon: var(--icon-pin); width: calc(17 * var(--u)); min-width: 13px; height: calc(22 * var(--u)); min-height: 17px; margin-top: .1em; color: var(--rust); }
.locais--dark .ico-pin { color: var(--ochre); }

/* Dia da semana: nome à esquerda, cards à direita */
.local-day { display: flex; align-items: flex-start; gap: calc(30 * var(--u)); margin-top: calc(24 * var(--u)); }
.local-day-name { flex: none; width: calc(190 * var(--u)); padding-top: calc(10 * var(--u)); font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, calc(34 * var(--u)), 85px); line-height: 1; color: var(--ink); }
.locais--dark .local-day-name { color: var(--cream-text); }
.mini-cards { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: calc(22 * var(--u)); }
.mini-card { width: calc(240 * var(--u)); min-width: 160px; min-height: calc(260 * var(--u)); padding: calc(16 * var(--u)) calc(10 * var(--u)) calc(20 * var(--u)); justify-content: flex-start; }
.mini-card .card-icon { width: calc(58 * var(--u)); height: calc(58 * var(--u)); min-width: 40px; min-height: 40px; }
.mini-card .card-icon.ico-moon { width: calc(80 * var(--u)); min-width: 56px; }
.mini-card .h3 { font-size: clamp(20px, calc(34 * var(--u)), 85px); margin-top: calc(10 * var(--u)); }
.mini-card .t2 { font-size: clamp(14px, calc(24 * var(--u)), 60px); margin: calc(4 * var(--u)) 0 0; }
.mini-card .t2 { margin-bottom: 0; }
.mini-card .t1 { font-size: clamp(16px, calc(26 * var(--u)), 65px); margin-top: calc(10 * var(--u)); }
.mini-card .t1::after { display: none; }
.mini-card-cta {
  --brush: var(--ink);
  margin-top: auto; align-self: stretch;
  min-height: calc(48 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u));
  gap: calc(8 * var(--u));
  font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, calc(19 * var(--u)), 48px); letter-spacing: .02em; line-height: 1.1;
  color: var(--ochre-text); text-align: center; text-wrap: balance; /* uma linha com a Oswald; quebra se faltar espaço */
}
.mini-card-cta .ico-whatsapp { color: currentColor; width: calc(20 * var(--u)); height: calc(20 * var(--u)); min-width: 15px; min-height: 15px; }
.mini-card-cta:hover, .mini-card-cta:focus-visible { color: var(--cream-text); }
.mini-card .t1, .mini-card-start { margin-bottom: calc(14 * var(--u)); }
.mini-card-start { margin-top: calc(10 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, calc(19 * var(--u)), 48px); letter-spacing: .02em; background: rgba(0,0,0,.22); border-radius: 2px; }

/* Carrossel de divulgação 16:9 */
.promo-carousel { width: 100%; max-width: calc(1240 * var(--u)); margin-top: calc(30 * var(--u)); gap: calc(14 * var(--u)); }
.promo-slide.is-active { display: block; }
.promo-slide a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(0,0,0,.35); box-shadow: 0 calc(8 * var(--u)) calc(30 * var(--u)) rgba(0,0,0,.45); }
.promo-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: calc(16 * var(--u)); }
.carousel-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(251, 226, 198, .35); }
.carousel-dots span.is-active { background: var(--ochre); }


/* =====================================================================
   GALERIA DE FOTOS (/eventos)
   ===================================================================== */
.sec-fotos {
  height: auto; display: flex; flex-direction: column; align-items: center;
  padding: max(2.5rem, calc(60 * var(--u))) max(1.5rem, calc(110 * var(--u))) calc(var(--tear) + max(2.5rem, calc(50 * var(--u))));
  background-color: var(--paper);
  background-image: url("img/bg-sobre.jpg");
  background-image: image-set("img/bg-sobre.avif" type("image/avif"), "img/bg-sobre.jpg" type("image/jpeg"));
  background-position: left center;
}
.fotos-title { display: flex; align-items: center; gap: calc(20 * var(--u)); font-size: clamp(44px, calc(96 * var(--u)), 240px); color: var(--purple-text); }
.fotos-intro { max-width: calc(860 * var(--u)); margin-top: calc(14 * var(--u)); text-align: center; font-size: clamp(16px, calc(24 * var(--u)), 60px); line-height: 1.4; color: var(--text); }

/* Filtros */
.fotos-filtros {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: calc(14 * var(--u)) calc(22 * var(--u));
  margin-top: calc(30 * var(--u)); padding: calc(18 * var(--u)) calc(24 * var(--u));
  background: rgba(248, 227, 200, .85); box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(0,0,0,.12);
}
.fotos-filtro { display: flex; flex-direction: column; gap: 4px; }
.fotos-filtro span { font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, calc(18 * var(--u)), 45px); letter-spacing: .04em; color: var(--rust-text); text-transform: uppercase; }
.fotos-filtro select {
  min-width: calc(220 * var(--u)); min-height: 42px; padding: 0 12px;
  font-family: var(--font-text); font-size: clamp(15px, calc(19 * var(--u)), 48px); color: var(--ink);
  background: var(--paper-light); border: max(1px, calc(1.5 * var(--u))) solid rgba(62,41,14,.85); border-radius: 3px;
}
.fotos-filtrar { --brush: var(--purple); min-height: 46px; padding: 0 28px; border: 0; background: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, calc(20 * var(--u)), 50px); color: var(--ochre-text); }
.js .fotos-filtrar { display: none; } /* com JS, filtra ao trocar a seleção */
.fotos-limpar { align-self: center; font-size: clamp(14px, calc(18 * var(--u)), 45px); color: var(--rust-text); text-decoration: underline; }
.fotos-count { margin-top: calc(18 * var(--u)); font-size: clamp(14px, calc(18 * var(--u)), 45px); color: var(--text); }
.fotos-vazio { margin-top: calc(26 * var(--u)); font-size: clamp(16px, calc(22 * var(--u)), 55px); color: var(--text); }

/* Lista de fotos: 4 por linha no desktop, 2 no celular (flex, sem grid) */
.fotos-lista { --gap: calc(22 * var(--u)); width: 100%; max-width: calc(1316 * var(--u)); margin-top: calc(14 * var(--u)); display: flex; flex-wrap: wrap; gap: var(--gap); }
.foto { flex: 0 1 calc((100% - 3 * var(--gap)) / 4); min-width: 0; }
.foto-link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0,0,0,.08); box-shadow: 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(0,0,0,.2); }
.foto-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.foto-link:hover img, .foto-link:focus-visible img { transform: scale(1.04); }
.foto-badge {
  position: absolute; left: calc(10 * var(--u)); top: calc(10 * var(--u));
  padding: 4px 10px; background: var(--ochre); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(12px, calc(16 * var(--u)), 40px); letter-spacing: .06em;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.foto-evento { margin-top: 6px; font-family: var(--font-display); font-weight: 500; font-size: clamp(14px, calc(18 * var(--u)), 45px); color: var(--text); }
.fotos-paginas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: calc(30 * var(--u)); }
.fotos-paginas a { min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; color: var(--rust-text); background: rgba(248,227,200,.85); }
.fotos-paginas a.is-current { background: var(--purple); color: var(--ochre-text); }

/* Foto ampliada */
.foto-zoom { max-width: min(92vw, 1400px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.foto-zoom::backdrop { background: rgba(10, 6, 4, .88); }
.foto-zoom img { display: block; max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.foto-zoom-legenda { margin-top: 10px; text-align: center; font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; color: var(--cream-text); }
.foto-zoom-fechar { position: absolute; right: -6px; top: -48px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream-text); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }


/* =====================================================================
   HERO — CENA ANIMADA
   O fundo e as camadas (sóis, pássaros, cactos, folhas) ficam numa caixa
   com a proporção da arte (2912×1440) que cobre o hero como um
   "background-size: cover"; tudo é posicionado em % dessa caixa, então
   continua alinhado em qualquer largura de tela.
   Animações: só transform/opacity (GPU). Só começam com .anim-on (posto
   pelo app.js depois do carregamento), pausam com .is-paused (hero fora da
   tela) e não existem para quem pede "reduzir movimento".
   ===================================================================== */
.hero-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-scene-box {
  --scene-x: 50%;
  position: absolute; left: var(--scene-x); top: 50%;
  min-width: 100%; min-height: 100%; aspect-ratio: 2912 / 1440;
  transform: translate(calc(-1 * var(--scene-x)), -50%);
  background-color: var(--ochre);
  background-image: url("img/anim/fundo.jpg");
  background-image: image-set("img/anim/fundo.avif" type("image/avif"), "img/anim/fundo.jpg" type("image/jpeg"));
  background-size: 100% 100%;
}
.sc { position: absolute; display: block; height: auto; max-width: none; user-select: none; }

/* Posições medidas na arte original (% da caixa) */
.sc-sun--right { width: 27%; left: 84%; top: -21.7%; }
.sc-sun--left  { width: 24%; left: -10.6%; top: -20.1%; }
.sc-cactos-left { width: 11.5%; left: .5%; bottom: 3%; transform-origin: 50% 100%; }
.sc-cacto      { width: 6.8%; left: 40.3%; bottom: 3%; transform-origin: 50% 100%; }
.sc-folhas     { transform-origin: 50% 100%; }
.sc-folhas--left   { width: 14%; left: -1%; bottom: -1.5%; }
.sc-folhas--center { width: 10%; left: 38.6%; bottom: -1%; }

/* Pássaros: a "faixa" tem a largura da caixa, então translateX em % = % da cena */
.bird-lane { position: absolute; left: 0; top: var(--y); width: 100%; height: 0; transform: translateX(var(--x0)); }
.bird-bob  { position: absolute; left: 0; top: 0; width: var(--w); aspect-ratio: 185 / 173; }
.bird      { position: absolute; inset: 0; width: 100%; }
.bird--down { opacity: 0; }
/* Posição parada = a do desenho original; tamanhos (--w) pela metade do original, a pedido */
.bird-lane--1 { --x0: 44%; --y: 25%; --w: 4%;   --d: 26s; --delay: -9s; }
.bird-lane--2 { --x0: 35.5%; --y: 5%; --w: 3%;  --d: 31s; --delay: 3s; }
.bird-lane--3 { --x0: 38%; --y: 15%; --w: 2.5%;   --d: 37s; --delay: 11s; }
.bird-lane--4 { --x0: 45%; --y: 9%;  --w: 1.3%; --d: 23s; --delay: 17s; }

@media (prefers-reduced-motion: no-preference) {
  .anim-on .sc-sun--right { animation: sun-spin 140s linear infinite; }
  .anim-on .sc-sun--left  { animation: sun-spin 180s linear infinite reverse; }
  .anim-on .sc-folhas--left   { animation: sway 4.6s ease-in-out -1.3s infinite alternate; }
  .anim-on .sc-folhas--center { animation: sway 3.8s ease-in-out infinite alternate; }
  .anim-on .sc-cacto       { animation: sway-soft 7s ease-in-out infinite alternate; }
  .anim-on .sc-cactos-left { animation: sway-soft 8.5s ease-in-out -2s infinite alternate; }
  .anim-on .bird-lane { animation: fly var(--d) linear var(--delay) infinite both; }
  .anim-on .bird-bob  { animation: bob 2.6s ease-in-out infinite alternate; }
  .anim-on .bird--up   { animation: flap-up .56s steps(1, end) infinite; }
  .anim-on .bird--down { animation: flap-down .56s steps(1, end) infinite; }
  .anim-on .bird-lane--2 .bird-bob { animation-duration: 3.1s; }
  .anim-on .bird-lane--3 .bird-bob { animation-duration: 2.2s; animation-delay: -1s; }
  .anim-on .bird-lane--4 .bird--up, .anim-on .bird-lane--4 .bird--down { animation-duration: .42s; }
  .anim-on .sc-sun, .anim-on .sc-folhas, .anim-on .sc-cacto, .anim-on .sc-cactos-left, .anim-on .bird-lane { will-change: transform; }
  .hero-scene-box.is-paused, .hero-scene-box.is-paused * { animation-play-state: paused !important; }
}
@keyframes sun-spin  { to { transform: rotate(360deg); } }
@keyframes sway      { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes sway-soft { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } }
@keyframes fly       { from { transform: translateX(-14%); } to { transform: translateX(106%); } }
@keyframes bob       { from { transform: translateY(-35%); } to { transform: translateY(35%); } }
@keyframes flap-up   { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes flap-down { 0% { opacity: 0; } 50% { opacity: 1; } }


/* =====================================================================
   CELULAR (< 768px)
   Layout empilhado. Fontes com clamp(mín, vw, máx) para crescer
   suavemente entre 320px e 767px.
   ===================================================================== */

/* Botão hambúrguer: só aparece no celular */
.nav-toggle { display: none; }

@media (max-width: 767.98px) {
  :root { --tear: 22px; }

  /* ---------- NAV ---------- */
  .nav { height: 64px; padding: 0 16px; }
  /* celular: logo | Instagram | ☰ (o menu abre por baixo) */
  .nav-social { order: 2; margin-left: auto; margin-right: 4px; width: 44px; height: 44px; }
  .nav-toggle { order: 3; }
  .logo { font-size: clamp(22px, 6vw, 30px); }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 9px; margin-right: -9px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 16px 20px; background: var(--paper);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav .lnk, .nav .btn { font-size: clamp(20px, 5.4vw, 26px); padding: 14px 0; border-bottom: 1px solid rgba(18,8,6,.12); }
  .nav .btn.is-active::after { display: none; }
  .nav .btn2 { width: 100%; height: 58px; margin: 16px 0 0; font-size: clamp(18px, 4.8vw, 22px); }

  .rail2 { height: 22px; }

  /* ---------- HERO ---------- */
  .hero {
    flex-direction: column; align-items: center; text-align: center;
    min-height: 0; padding: 2rem 2rem calc(2rem + var(--tear));
  }
  .hero-text { width: auto; max-width: 100%; }
  .hero-scene-box { --scene-x: 28%; } /* mesmo enquadramento de antes no celular */
  .bird-lane { display: none; } /* celular: o texto ocupa o céu do hero; pássaros sobre ele atrapalhariam a leitura */
  .hero-name-1 { font-size: clamp(79px, 24.3vw, 153px); }
  .hero-name-2 { font-size: clamp(56px, 17.1vw, 110px); margin-top: -2px; }
  .rail { min-width: 0; width: min(100%, 440px); min-height: clamp(42px, 11vw, 54px); margin-top: 14px; gap: 10px; padding: 6px 22px; }
  .rail .t3 { font-size: clamp(14px, 3.8vw, 19px); }
  .rail .ico-star { width: 16px; height: 16px; }
  .hero-tagline { align-self: center; margin: 20px 0 0; max-width: 100%; text-align: left; }
  .hero-tagline .ico-arrow { width: 26px; height: 24px; }
  .hero-tagline .h3 { font-size: clamp(25px, 7.2vw, 38px); }
  .hero-tagline .ico-heart { width: 24px; height: 22px; }
  .hero-cta { min-width: min(82%, 330px); min-height: clamp(58px, 15vw, 74px); margin-top: 20px; font-size: clamp(20px, 5.6vw, 27px); }
  /* Foto: só a parte de cima (rosto em destaque); encosta na borda rasgada */
  .media {
    position: relative; z-index: 1; left: auto; bottom: auto;
    width: 100%; max-width: 480px; height: auto; aspect-ratio: 3 / 4;
    margin: 12px 0 calc(-1 * (2rem + var(--tear)));
    overflow-x: visible; overflow-y: clip;
  }
  .media picture { position: absolute; inset: 0; }
  .media img {
    position: absolute; top: 0; left: 50%;
    width: calc(min(92%, 440px) * 1.5); height: auto; max-width: none;
    transform: translateX(-50%);
  }

  /* ---------- TURMAS ---------- */
  /* topo e base maiores: no celular as franjas da arte (transições para o hero e para Eventos)
     ficam mais grossas e cobriam o título e os botões */
  .section { flex-direction: column; align-items: stretch; min-height: 0; padding: 5rem 2rem calc(5rem + var(--tear)); }
  .turmas-title { width: auto; margin: 0 auto 26px; }
  .turmas-title .h2 { font-size: clamp(28px, 7.6vw, 40px); gap: 8px; }
  .turmas-title .h1 { font-size: clamp(54px, 15vw, 80px); margin-top: 4px; }
  .turmas-title .t1 { font-size: clamp(16px, 4.4vw, 19px); }
  .ico-rays { width: 26px; height: 24px; }
  .img-scroll { width: 170px; height: 70px; margin-top: 14px; }
  .cards { margin: 0 auto; max-width: 500px; gap: 14px; }
  .cards-empty { margin: 0; text-align: center; font-size: 17px; }
  .card { flex: 1 1 calc(50% - 7px); width: auto; min-height: 0; padding: 18px 8px 20px; }
  .card-item { flex: 1 1 calc(50% - 7px); width: auto; min-width: 0; }
  .card-item .card { flex: 1; }
  .card-address { font-size: 13px; margin-top: 10px; padding-top: 8px; }
  .card-cta { margin-top: 8px; }
  .card-icon { width: 32px; height: 32px; }
  .card .h3 { font-size: clamp(25px, 6.8vw, 34px); margin-top: 8px; }
  .card .t1 { font-size: clamp(17px, 4.7vw, 23px); margin-top: 6px; }
  .card .t1::after { width: 76%; margin-top: 10px; height: 1px; }
  .card .t2 { font-size: clamp(15px, 4.1vw, 20px); margin-top: 10px; }
  .card-desc { font-size: 15px; }
  .card .ico-star-sm { width: 22px; height: 22px; }
  .card .t2, .card-desc { margin-bottom: 14px; }
  .sobre-heading { align-items: center; }
  .card .card-icon.ico-moon { width: 41px; }

  /* ---------- EVENTOS ---------- */
  .section2 { min-height: 0; padding: 2rem 2rem calc(2rem + var(--tear)); }
  .slide.is-active { flex-direction: column; align-items: center; }
  .eventos-text { width: auto; margin: 0; padding: 0 28px; }
  .eventos-text .h1 { font-size: clamp(58px, 17vw, 92px); gap: 12px; }
  .ico-rays2 { width: 28px; height: 54px; }
  .eventos-text .h3 { font-size: clamp(18px, 5vw, 24px); margin-top: 12px; }
  .eventos-text .t1 { font-size: clamp(16px, 4.4vw, 20px); line-height: 1.35; margin-top: 12px; }
  .eventos-text .btn3 { min-width: 210px; min-height: 56px; margin-top: 20px; font-size: clamp(17px, 4.6vw, 21px); }
  .media2 { width: 100%; flex: none; margin: 26px 0 0; }
  .btn4 { position: absolute; bottom: 22%; width: 40px; height: 56px; }
  .btn4 .ico { width: 20px; height: 40px; }
  .carousel-prev { left: -26px; }
  .carousel-next { right: -26px; }

  .eventos-page-head .h1 { font-size: clamp(58px, 17vw, 92px); gap: 12px; }
  .eventos-page-head .t1 { font-size: clamp(16px, 4.4vw, 19px); }
  .eventos-list { gap: 40px; margin-top: 30px; }
  .evento-item, .evento-item:nth-child(even) { flex-direction: column; gap: 18px; }
  .evento-item .media2 { flex: none; width: 100%; }
  .evento-item .eventos-text { align-items: center; text-align: center; padding: 0; }

  /* ---------- SOBRE ---------- */
  .section3 {
    flex-direction: column; align-items: center; min-height: 0;
    padding: 2rem 2rem calc(2rem + var(--tear)); background-position: 8% center;
  }
  .media3 { width: min(84%, 360px); height: auto; aspect-ratio: 414 / 408; padding: 12px; }
  .media3 .img-flores { left: -22px; top: 48%; width: 50%; height: 58%; }
  .sobre-text, .section3--page .sobre-text { flex: none; width: auto; max-width: 560px; margin: 30px 0 0; text-align: center; }
  .sobre-text .h2, .sobre-text .h1 { justify-content: center; margin-left: 0; width: auto; }
  .sobre-text .h2 .ico-rays.is-flipped { margin-left: 0; }
  .sobre-text .h2 { font-size: clamp(30px, 8.4vw, 44px); gap: 10px; }
  .sobre-text .h1 { font-size: clamp(46px, 13vw, 68px); }
  .sobre-text .t1, .sobre-text .entry-content { max-width: none; font-size: clamp(16px, 4.4vw, 19px); line-height: 1.45; margin-top: 16px; }
  .section3--page .sobre-text .entry-content { text-align: left; }
  .sobre-text .h3 { font-size: clamp(21px, 5.8vw, 28px); margin-top: 18px; }
  .sobre-text .h3-accent { margin-top: 14px; }
  .sobre-cta { min-width: 210px; min-height: 56px; margin-top: 18px; font-size: clamp(18px, 5vw, 22px); }
  .media4 { position: relative; left: auto; margin-top: 26px; }
  .img-escultura { display: block; width: min(56vw, 240px); height: auto; aspect-ratio: 320 / 505; }

  /* ---------- CONTATO ---------- */
  .section4 { flex-direction: column; align-items: center; min-height: 0; padding: 2rem; background-position: 12% center; }
  .contato-info { width: auto; margin: 0; text-align: center; }
  .contato-info .h1 { font-size: clamp(56px, 16vw, 84px); }
  .ico-heart-rays { width: 70px; height: 24px; margin: 8px auto 0; }
  .contato-info .t3 { font-size: clamp(15px, 4.2vw, 18px); margin-top: 14px; }
  .contato-social { align-items: center; margin-top: 18px; }
  .contato-social li { gap: 12px; }
  .contato-social .ico { width: 26px; height: 26px; }
  .contato-social .t2 { font-size: clamp(17px, 4.7vw, 21px); }
  .form { width: 100%; max-width: 520px; min-height: 0; margin: 28px 0 0; padding: 24px 18px 26px; gap: 12px; }
  .in { height: 48px; font-size: 16px; padding: 0 14px; }       /* 16px evita zoom automático no iOS */
  textarea.in { height: 130px; padding-top: 12px; }
  .btn5 { min-width: min(100%, 340px); min-height: 66px; margin: 10px auto 0; gap: 16px; font-size: clamp(19px, 5.2vw, 23px); }
  .btn5 .ico-heart2 { width: 24px; height: 22px; }
  .form-status { font-size: 16px; }

  /* ---------- PÁGINA /TURMAS ---------- */
  .sec-turmas, .sec-proximas { padding: 2rem 1rem calc(var(--tear) + 2rem); }
  .sec-turmas-hero { padding: 2rem 1rem calc(var(--tear) + 2rem); background-position: 28% center; }
  .turmas-jump { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 420px; }
  .turmas-jump-btn { min-width: 0; min-height: 64px; padding: 0 20px; font-size: clamp(20px, 5.6vw, 25px); }
  .mini-card-cta { min-height: 44px; font-size: clamp(13px, 3.6vw, 16px); padding: 6px 8px; } /* área de toque ≥ 44px */
  .mini-card .t1, .mini-card-start { margin-bottom: 12px; }
  .turmas-page-head .h2 { font-size: clamp(28px, 7.6vw, 40px); gap: 8px; }
  .turmas-page-head .h1 { font-size: clamp(56px, 16vw, 84px); }
  .turmas-page-head .t1, .proximas-intro, .turmas-empty { font-size: clamp(16px, 4.4vw, 19px); }
  .turmas-group-title { font-size: clamp(28px, 8.4vw, 42px); gap: 10px; margin-top: 36px; }
  .sec-proximas .turmas-group-title { margin-top: 0; }
  .locais { margin-top: 22px; gap: 22px; }
  .local { padding: 18px 14px 20px; }
  .local-head { flex-direction: column; gap: 6px; padding-bottom: 12px; }
  .local-name { font-size: clamp(24px, 7vw, 32px); }
  .local-address { font-size: 16px; }
  .local-day { flex-direction: column; gap: 10px; margin-top: 18px; }
  .local-day-name { width: auto; padding-top: 0; font-size: clamp(21px, 6vw, 26px); }
  .mini-cards { width: 100%; gap: 12px; }
  .mini-card { flex: 0 1 calc(50% - 6px); width: auto; min-width: 0; min-height: 0; padding: 14px 8px 16px; } /* 2 por linha; card sozinho não estica */
  .mini-card .h3 { font-size: clamp(20px, 5.6vw, 26px); }
  .mini-card .t2 { font-size: clamp(14px, 3.9vw, 17px); }
  .mini-card .t1 { font-size: clamp(16px, 4.4vw, 19px); }
  .mini-card-start { font-size: 14px; }
  .promo-carousel { margin-top: 20px; }
  .promo-carousel .btn4 { position: absolute; top: 50%; bottom: auto; transform: translateY(-50%); background: rgba(0,0,0,.45); border-radius: 50%; width: 40px; height: 40px; }
  .promo-carousel .btn4 .ico { width: 14px; height: 24px; }
  .promo-carousel .carousel-prev { left: 6px; }
  .promo-carousel .carousel-next { right: 6px; }

  /* ---------- GALERIA DE FOTOS ---------- */
  .sec-fotos { padding: 2rem 1rem calc(var(--tear) + 2rem); }
  .fotos-title { font-size: clamp(44px, 13vw, 64px); gap: 10px; }
  .fotos-intro { font-size: clamp(16px, 4.4vw, 19px); }
  .fotos-filtros { width: 100%; flex-direction: column; align-items: stretch; padding: 14px; }
  .fotos-filtro select { min-width: 0; width: 100%; font-size: 16px; } /* 16px evita zoom no iOS */
  .fotos-lista { --gap: 10px; }
  .foto { flex-basis: calc((100% - var(--gap)) / 2); }
  .foto-badge { left: 6px; top: 6px; padding: 3px 7px; font-size: 12px; }
  .foto-zoom-fechar { right: 4px; top: -52px; }

  /* ---------- PÁGINAS GENÉRICAS ---------- */
  .section-page { padding: 2.5rem 1.25rem calc(var(--tear) + 2.5rem); }
}
