/* Escola Domingos Sávio — versão 2 (layout responsivo próprio) */
:root {
  --telha: #993b2c;
  --telha-escura: #6f2a1f;
  --amarelo: #f7c119;
  --verde: #2a8558;
  --verde-claro: #35ad79;
  --creme: #f7f4ef;
  --texto: #2b2522;
  --suave: #6b625d;
  --linha: #e6dfd6;
  --raio: 18px;
  --sombra: 0 10px 30px rgba(60, 30, 20, .08);
  --larg: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--larg); margin: 0 auto; padding: 0 20px; }
.secao { padding: 80px 0; }
.secao-creme { background: var(--creme); }
.olho { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--telha); margin-bottom: 12px; }
.intro { max-width: 720px; margin-bottom: 44px; }
.intro p { color: var(--suave); font-size: 1.08rem; }
.centro { text-align: center; margin-left: auto; margin-right: auto; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-zap { background: var(--verde); color: #fff; box-shadow: 0 8px 20px rgba(42, 133, 88, .3); }
.btn-zap:hover { background: #237049; }
.btn-telha { background: var(--telha); color: #fff; }
.btn-telha:hover { background: var(--telha-escura); }
.btn-contorno { border-color: var(--telha); color: var(--telha); background: transparent; }
.btn-contorno:hover { background: var(--telha); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--texto); }
.menu a:hover { color: var(--telha); }
.menu a.btn:hover { color: #fff; }
.menu .btn { padding: 11px 20px; font-size: .9rem; color: #fff; }
.menu-botao { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-botao span { display: block; width: 24px; height: 2px; background: var(--texto); margin: 5px 0; transition: .25s; }

/* Hero */
.hero { position: relative; --x: calc(50vw - 612px); background: linear-gradient(90deg, #f7f7f7 var(--x), rgba(247, 247, 247, 0) calc(var(--x) + 160px)), #f7f7f7 url(img/hero.webp) var(--x) center / auto 100% no-repeat; min-height: 600px; display: flex; align-items: center; }
.hero .wrap { padding-top: 60px; padding-bottom: 60px; }
.hero-texto { max-width: 520px; }
.selo { display: inline-flex; align-items: center; gap: 8px; background: var(--amarelo); color: #3a2a00; font-weight: 800; font-size: .85rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.selo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--telha); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; color: var(--telha); }
.hero p { font-size: 1.15rem; color: var(--suave); margin-bottom: 28px; }
.hero p strong { color: var(--texto); }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foto-m { display: none; }
@media (min-width: 1600px) { .hero { --x: calc(100vw - 1433px); } }

/* Números */
.numeros { background: var(--telha); color: #fff; }
.numeros ul { list-style: none; margin: 0 auto; padding: 34px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--larg); }
.numeros li { text-align: center; }
.numeros strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--amarelo); line-height: 1.1; }
.numeros span { font-size: .92rem; opacity: .92; }

/* Cards da proposta */
.grade-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.card img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.card-corpo { padding: 22px 22px 26px; }
.card-corpo p { color: var(--suave); font-size: .97rem; margin: 0; }
.card h3 { color: var(--telha); }

/* Etapas */
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.etapa { background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.etapa img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.etapa .card-corpo { flex: 1; display: flex; flex-direction: column; }
.etapa .tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--verde); }
.etapa h3 { font-size: 1.45rem; margin: 6px 0 10px; color: var(--texto); }
.etapa p { flex: 1; margin-bottom: 18px; }
.link-zap { font-weight: 700; color: var(--verde); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-zap:hover { text-decoration: underline; }

/* Aprovados */
.aprovados { background: var(--telha-escura) radial-gradient(circle at 85% 10%, rgba(247, 193, 25, .18), transparent 45%); color: #fff; }
.aprovados .olho { color: var(--amarelo); }
.aprovados .intro p { color: rgba(255, 255, 255, .8); }
.aprov-grade { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.aprov-bloco { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--raio); padding: 28px; }
.aprov-bloco .grande { font-size: 3.2rem; font-weight: 800; color: var(--amarelo); line-height: 1; margin-bottom: 6px; }
.aprov-bloco h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.aprov-bloco .sub { font-weight: 700; font-size: 1.1rem; margin: 0 0 18px; }
.aprov-bloco.destaque { background: var(--amarelo); border-color: var(--amarelo); color: var(--telha-escura); box-shadow: 0 20px 40px rgba(0, 0, 0, .18); }
.aprov-bloco.destaque .grande { color: var(--telha); font-size: 4rem; }
.aprov-bloco.destaque .lista-univ li { border-bottom-color: rgba(111, 42, 31, .18); }
.lista-univ { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 18px; font-size: .9rem; }
.lista-univ li { padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); break-inside: avoid; }
.lista-curso { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.lista-curso li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.lista-curso b { color: var(--amarelo); font-weight: 700; white-space: nowrap; }
.enem { display: grid; gap: 18px; }
.enem div { border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 16px; }
.enem div:last-child { border: 0; padding-bottom: 0; }
.enem strong { display: block; font-size: 2.6rem; font-weight: 800; color: var(--amarelo); line-height: 1; }
.nota-rodape { font-size: .82rem; opacity: .7; margin: 22px 0 0; }

/* Vídeo */
.video { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); background: #000; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--amarelo); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.video .play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--telha-escura); }
.video-inst { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.video-inst .video, .depo-lado .video { max-width: none; margin: 0; }
.video-inst h2 { color: var(--telha); }
.texto-suave { color: var(--suave); font-size: 1.08rem; margin-bottom: 26px; }
.video-menor .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.legenda-video { font-size: .88rem; color: var(--suave); margin: 10px 0 0; }
.depo-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }
.depo-lado { position: sticky; top: 100px; }
.depo-layout .depo-grade { grid-template-columns: 1fr 1fr; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Espaço */
.espacos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.espaco { grid-column: span 2; background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); }
.espaco.largo { grid-column: span 3; }
.espaco img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.espaco .card-corpo h3 { color: var(--telha); margin-bottom: 10px; }
.espaco ul { margin: 0; padding-left: 18px; color: var(--suave); font-size: .94rem; }
.espaco li { margin: 3px 0; }
.faixa-fotos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }
.faixa-fotos figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; }
.faixa-fotos img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.faixa-fotos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .85rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.cta-meio { text-align: center; margin-top: 44px; }

/* Depoimentos */
.depo-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.depo { background: #fff; border-radius: var(--raio); padding: 28px; box-shadow: var(--sombra); margin: 0; display: flex; flex-direction: column; }
.depo::before { content: "“"; font-size: 4rem; line-height: .7; color: var(--amarelo); font-weight: 800; font-family: Georgia, serif; }
.depo blockquote { margin: 10px 0 18px; flex: 1; font-size: 1rem; }
.depo figcaption { font-weight: 700; }
.depo figcaption span { display: block; font-weight: 400; color: var(--suave); font-size: .9rem; }

/* Matrícula */
.matricula { background: var(--creme); }
.mat-grade { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.mat-form { background: #fff; border-radius: var(--raio); padding: 32px; box-shadow: var(--sombra); margin-top: 26px; }
.mat-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.mat-form select { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--linha); border-radius: 12px; background: #fff; margin-bottom: 18px; color: var(--texto); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23993b2c' d='M5 7l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.mat-form select:focus { outline: none; border-color: var(--verde); }
.mat-form .btn { width: 100%; }
.mat-form small { display: block; text-align: center; color: var(--suave); margin-top: 12px; }
.docs { background: #fff; border-radius: var(--raio); padding: 32px; border: 2px dashed var(--linha); }
.docs h3 { color: var(--telha); }
.docs ul { padding-left: 20px; margin: 0 0 16px; }
.docs li { margin: 6px 0; }
.docs p { color: var(--suave); font-size: .93rem; margin: 0; }

/* Rodapé */
.rodape { background: var(--telha); color: rgba(255, 255, 255, .9); padding: 64px 0 28px; font-size: .97rem; }
.rod-grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.rodape h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.rodape a { color: #fff; }
.rodape p { margin: 0 0 8px; }
.rod-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: 1; margin-bottom: 14px; }
.redes { display: flex; gap: 12px; margin-top: 12px; }
.redes a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; }
.redes a:hover { background: rgba(255, 255, 255, .28); }
.redes svg { width: 20px; height: 20px; fill: #fff; }
.rodape .copy { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 40px; padding-top: 22px; font-size: .85rem; opacity: .8; }

/* WhatsApp flutuante */
.zap-flutuante { color: #fff; position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .15s; }
.zap-flutuante:hover { transform: scale(1.06); }
.zap-flutuante svg { width: 32px; height: 32px; fill: #fff; }

/* Aviso de cookies (compacto) */
.cookies { position: fixed; left: 18px; bottom: 18px; z-index: 70; max-width: 380px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); padding: 14px 16px; display: flex; align-items: center; gap: 14px; font-size: .85rem; line-height: 1.4; }
.cookies button { flex: none; background: var(--telha); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.cookies[hidden] { display: none; }

/* Animação de entrada */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .menu-botao { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--linha); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); display: none; }
  .menu.aberto { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--linha); font-size: 1.05rem; }
  .menu .btn { margin-top: 14px; padding: 14px; font-size: 1rem; border: 0; }
  .topo.aberto .menu-botao span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topo.aberto .menu-botao span:nth-child(2) { opacity: 0; }
  .topo.aberto .menu-botao span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grade-4 { grid-template-columns: repeat(2, 1fr); }
  .aprov-grade { grid-template-columns: 1fr; }
  .lista-univ { columns: 3; }
  .rod-grade { grid-template-columns: 1fr 1fr; }
  .video-inst, .depo-layout { grid-template-columns: 1fr; gap: 32px; }
  .depo-lado { position: static; }
  .depo-lado .video { max-width: 640px; }
  .hero { background: #f7f7f7; min-height: 0; display: block; }
  .hero .wrap { padding-top: 48px; padding-bottom: 0; }
  .hero-texto { max-width: 640px; }
  .hero-foto-m { display: block; width: 100%; max-width: 760px; margin: 36px auto 0; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .secao { padding: 60px 0; }
  .intro { margin-bottom: 32px; }
  .logo img { height: 40px; }
  .hero { background: #f7f7f7; min-height: 0; display: block; }
  .hero .wrap { padding-top: 34px; padding-bottom: 0; }
  .hero-foto-m { display: block; width: calc(100% + 40px); margin: 30px -20px 0; aspect-ratio: 900 / 689; object-fit: cover; }
  .botoes .btn { width: 100%; }
  .numeros ul { grid-template-columns: 1fr 1fr; padding: 28px 20px; gap: 22px 14px; }
  .grade-4, .grade-3, .depo-grade, .mat-grade, .aprov-grade, .rod-grade { grid-template-columns: 1fr; }
  .grade-4 { gap: 16px; }
  .card { flex-direction: row; }
  .card img { width: 38%; flex: none; aspect-ratio: auto; height: auto; object-fit: cover; }
  .card-corpo { padding: 18px; }
  .card-corpo p { font-size: .92rem; }
  .card h3 { font-size: 1.05rem; margin-bottom: 6px; }
  .lista-univ { columns: 2; }
  .espacos { grid-template-columns: 1fr; }
  .espaco, .espaco.largo { grid-column: auto; }
  .faixa-fotos { grid-template-columns: repeat(5, 70%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 22px -20px 0; padding: 0 20px 6px; }
  .faixa-fotos figure { scroll-snap-align: start; }
  .faixa-fotos img { aspect-ratio: 4 / 3; }
  .mat-form, .docs, .aprov-bloco { padding: 24px; }
  .cookies { left: 12px; right: 84px; bottom: 12px; max-width: none; padding: 10px 12px; font-size: .78rem; }
  .depo-layout .depo-grade { grid-template-columns: repeat(6, 85%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 14px; gap: 14px; }
  .depo { scroll-snap-align: start; }
  .rodape { padding-bottom: 96px; }
  .zap-flutuante { right: 12px; bottom: 12px; width: 56px; height: 56px; }
  .video .play { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
}
