/* Colégio Ômega — Nossa História (visual de álbum antigo) */
.historia { --papel: #F5EFE3; --papel2: #EDE3D0; --sepia: #6B4F2E; --tinta: #3A2A18; --acc: #FF822B; --acc2: #FFAA6D; --btn-tx: #0B2A3F; }
.hi-tit { display: inline-block; font-family: 'Caveat', cursive; font-weight: 700; font-size: 28px; color: #E8650F; margin-bottom: 4px; }
.historia h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: var(--tinta); letter-spacing: 0; }
.historia .sec-cab { margin-bottom: 40px; }
.hi-sub { color: var(--sepia); opacity: .8; margin-top: 6px; }

/* topo */
.hi-hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #2A1E12; color: #FFF8EC; }
.hi-hero-foto { position: absolute; inset: 0; }
.hi-hero-foto img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.75) contrast(1.05) brightness(.85); animation: kenburns 30s ease-in-out infinite alternate; }
.hi-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(42, 30, 18, .35) 0%, rgba(42, 30, 18, .85) 80%); }
.hi-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; opacity: .35; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.hi-hero-in { position: relative; z-index: 2; padding: 60px 16px; }
.hi-selo { display: inline-block; border: 2px solid rgba(255, 248, 236, .7); padding: 6px 18px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; font-size: 14px; transform: rotate(-2deg); animation: sobe .8s both; }
.hi-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(64px, 11vw, 150px); font-weight: 700; line-height: .95; margin: 22px 0 12px; animation: sobe .8s .15s both; }
.hi-hero h1 small { display: block; font-family: 'Caveat', cursive; font-size: .42em; color: var(--acc2); line-height: 1; }
.hi-hero-in > p { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(20px, 2.4vw, 28px); opacity: .92; animation: sobe .8s .3s both; }
.hi-rolar { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-top: 30px; border-radius: 50%; border: 2px solid rgba(255, 248, 236, .6); color: #FFF8EC; text-decoration: none; font-size: 22px; animation: hi-pula 2s infinite; }
@keyframes hi-pula { 50% { transform: translateY(8px); } }

/* polaroid */
.hi-polaroid { margin: 0; background: #fff; padding: 14px 14px 52px; box-shadow: 0 18px 40px rgba(58, 42, 24, .25); transform: rotate(var(--r, -3deg)); position: relative; transition: transform .4s; }
.hi-polaroid:hover { transform: rotate(0) scale(1.02); }
.hi-polaroid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: sepia(.35) contrast(1.05); display: block; }
.hi-polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: 'Caveat', cursive; font-size: 26px; color: var(--tinta); }
.hi-polaroid::before { content: ''; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: rgba(255, 220, 160, .55); transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .08); }

/* como tudo começou */
.hi-comeco { padding: clamp(72px, 10vw, 130px) 0; background: var(--papel); }
.hi-comeco-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hi-comeco h2 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 20px; }
.hi-comeco p { color: #5A4632; font-size: 18px; margin-bottom: 16px; }
.hi-capitular::first-letter { float: left; font-family: 'Playfair Display', Georgia, serif; font-size: 78px; line-height: .8; padding: 8px 10px 0 0; color: #E8650F; }

/* linha do tempo */
.hi-linha { padding: clamp(72px, 10vw, 130px) 0; background: linear-gradient(180deg, var(--papel) 0%, #fff 30%); }
.hi-linha h2 { font-size: clamp(36px, 4.6vw, 56px); }
.hi-trilha { position: relative; max-width: 1040px; margin: 0 auto; }
.hi-trilha-fio { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--papel2); border-radius: 4px; }
.hi-trilha-fio i { display: block; width: 100%; height: 0; background: linear-gradient(180deg, #FF822B, #0D4D7D); border-radius: 4px; transition: height .2s linear; }
.hi-cap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 70px; }
.hi-cap-n { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; border: 4px solid #FF822B; display: grid; place-items: center; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 22px; color: var(--tinta); z-index: 2; box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.hi-cap.dir .hi-polaroid { order: 2; }
.hi-cap .hi-polaroid { max-width: 380px; justify-self: center; }
.hi-cap.esq .hi-cap-txt { text-align: left; }
.hi-cap.dir .hi-cap-txt { text-align: right; }
.hi-cap-txt h3 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 2.6vw, 34px); color: var(--tinta); margin-bottom: 10px; }
.hi-cap-txt p { color: #5A4632; font-size: 17px; }
.hi-cap.hoje .hi-cap-n { background: #FF822B; color: #fff; border-color: #fff; }
.hi-cap.hoje .hi-polaroid img { filter: none; }

/* citação */
.hi-citacao { padding: clamp(72px, 10vw, 120px) 0; background: #08263A; color: #fff; text-align: center; position: relative; overflow: hidden; }
.hi-citacao::before { content: '“'; position: absolute; left: 50%; top: -40px; transform: translateX(-50%); font-family: 'Playfair Display', Georgia, serif; font-size: 360px; line-height: 1; color: rgba(255, 130, 43, .14); }
.hi-citacao blockquote { position: relative; margin: 0 auto 18px; max-width: 900px; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25; }
.hi-citacao p { position: relative; color: #FFAA6D; font-size: 18px; max-width: 640px; margin: 0 auto; }

/* mural de memórias */
.hi-mural { padding: clamp(72px, 10vw, 130px) 0; background: var(--papel); background-image: radial-gradient(rgba(107, 79, 46, .08) 1px, transparent 1px); background-size: 18px 18px; }
.hi-mural h2 { font-size: clamp(36px, 4.6vw, 56px); }
.hi-mural-grade { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 26px; padding: 10px; }
.hi-mural-grade .hi-pol { width: calc(25% - 20px); }
.hi-pol.foto { background: #fff; padding: 12px 12px 46px; margin: 0; border-radius: 2px; overflow: visible; box-shadow: 0 14px 30px rgba(58, 42, 24, .22); transform: rotate(var(--r)); transition: transform .35s, box-shadow .35s, opacity .7s var(--d, 0ms); position: relative; }
.hi-pol.foto.revela { transform: rotate(var(--r)) translateY(28px); }
.hi-pol.foto.revela.in { transform: rotate(var(--r)); }
.hi-pol.foto:hover { transform: rotate(0) scale(1.08) !important; z-index: 3; box-shadow: 0 26px 50px rgba(58, 42, 24, .35); }
.hi-pol.foto::after { display: none; }
.hi-pol img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: sepia(.45) contrast(1.05); transition: filter .35s; display: block; }
.hi-pol:hover img { filter: none; transform: none; }
.hi-pol span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: 'Caveat', cursive; font-size: 22px; color: var(--tinta); }
.hi-pol:nth-child(3n)::before { content: ''; position: absolute; top: -10px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFAA6D, #E8650F); box-shadow: 0 3px 5px rgba(0, 0, 0, .25); z-index: 2; }
.hi-pol:nth-child(3n+1)::before { content: ''; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: rgba(255, 220, 160, .6); transform: rotate(4deg); z-index: 2; }

/* o Ômega hoje */
.hi-hoje { padding: clamp(72px, 10vw, 120px) 0; }
.hi-hoje h2 { font-family: var(--disp); color: var(--navy); }
.hi-hoje-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hi-hoje-f { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; }
.hi-hoje-f img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hi-hoje-f:hover img { transform: scale(1.07); }
.hi-hoje-f span { position: absolute; left: 14px; bottom: 12px; color: #fff; font-family: var(--disp); font-weight: 700; font-size: 22px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

/* chamada final */
.hi-cta { padding: 0 0 clamp(40px, 6vw, 70px); }
.hi-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--papel); border-radius: 28px; padding: clamp(28px, 5vw, 56px); border: 2px dashed rgba(107, 79, 46, .3); }
.hi-cta h2 { font-size: clamp(30px, 3.6vw, 44px); }
.hi-cta p { color: #5A4632; margin-top: 6px; }
.hi-cta-bts { display: flex; gap: 12px; flex-wrap: wrap; }
.hi-cta .btn-claro { --btn-tx: var(--tinta); border-color: var(--tinta); color: var(--tinta); }

@media (max-width: 900px) {
  .hi-comeco-in { grid-template-columns: 1fr; }
  .hi-comeco .hi-polaroid { max-width: 420px; margin: 0 auto; }
  .hi-trilha-fio { left: 30px; }
  .hi-cap { grid-template-columns: 1fr; gap: 20px; padding-left: 74px; margin-bottom: 50px; }
  .hi-cap-n { left: 30px; top: 0; margin: 0 0 0 -28px; width: 56px; height: 56px; font-size: 18px; }
  .hi-cap.dir .hi-polaroid { order: 0; }
  .hi-cap.dir .hi-cap-txt { text-align: left; }
  .hi-cap .hi-polaroid { justify-self: start; max-width: 100%; }
  .hi-mural-grade { gap: 26px 16px; }
  .hi-mural-grade .hi-pol { width: calc(50% - 8px); }
  .hi-hoje-grade { grid-template-columns: 1fr 1fr; }
}
