/* =================================================================
   IATE CLUBE DE ITACURUÇÁ — HERO institucional reutilizável
   Mesmo HTML/CSS/JS nas 3 páginas; varia só imagem + textos.
   Tratamento editorial: gradiente navy + vinheta + grão sutil,
   parallax + Ken Burns (respeitando prefers-reduced-motion).
   Depende das variáveis de css/styles.css.
   ================================================================= */

.hero2{
  position:relative;
  height:86vh;min-height:560px;max-height:1000px;
  display:flex;align-items:flex-end;
  overflow:hidden;isolation:isolate;
  background:var(--navy-950);color:#fff;
}

/* camada da imagem (com overscan para o parallax) */
.hero2__media{position:absolute;top:-12%;left:0;right:0;height:124%;z-index:-3;will-change:transform}
.hero2__img{
  width:100%;height:100%;object-fit:cover;object-position:center;display:block;
  transform:scale(1.05);
  animation:hero2Ken 24s ease-in-out infinite alternate;
}
@keyframes hero2Ken{from{transform:scale(1.05)}to{transform:scale(1.16)}}

/* fallback do leme se a imagem falhar */
.hero2__media.is-empty{
  background-color:var(--navy-900);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='2'%3E%3Ccircle cx='50' cy='50' r='46'/%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3Cg stroke-width='4'%3E%3Cline x1='50' y1='2' x2='50' y2='30'/%3E%3Cline x1='50' y1='70' x2='50' y2='98'/%3E%3Cline x1='2' y1='50' x2='30' y2='50'/%3E%3Cline x1='70' y1='50' x2='98' y2='50'/%3E%3Cline x1='15' y1='15' x2='35' y2='35'/%3E%3Cline x1='65' y1='65' x2='85' y2='85'/%3E%3Cline x1='85' y1='15' x2='65' y2='35'/%3E%3Cline x1='35' y1='65' x2='15' y2='85'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-position:center;background-repeat:no-repeat;background-size:340px;
}
.hero2__media.is-empty .hero2__img{opacity:0}

/* scrim editorial: gradientes + vinheta */
.hero2__scrim{
  position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:
    linear-gradient(90deg, rgba(8,24,38,.80) 0%, rgba(8,24,38,.36) 46%, rgba(8,24,38,.04) 82%),
    linear-gradient(0deg, rgba(8,24,38,.88) 0%, rgba(8,24,38,.30) 40%, rgba(8,24,38,.06) 66%, rgba(8,24,38,.42) 100%),
    radial-gradient(125% 135% at 50% 38%, transparent 50%, rgba(8,24,38,.55) 100%);
}
/* grão/textura muito sutil */
.hero2__grain{
  position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.05;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* conteúdo */
.hero2__inner{
  position:relative;z-index:1;width:100%;
  padding-top:clamp(120px,16vw,180px);
  padding-bottom:clamp(86px,11vw,128px);
}
.hero2__eyebrow{
  display:inline-flex;align-items:center;gap:14px;
  font-family:var(--sans);font-weight:400;font-size:.72rem;letter-spacing:.36em;text-transform:uppercase;
  color:var(--coral-bright);margin-bottom:22px;
}
.hero2__eyebrow::before{content:"";width:46px;height:1px;background:var(--coral)}
.hero2__title{
  font-family:var(--serif);font-weight:500;
  font-size:clamp(2.9rem,8vw,6rem);line-height:1.0;letter-spacing:.005em;
  text-shadow:0 2px 36px rgba(0,0,0,.4);margin:0;
}
.hero2__sub{
  margin-top:24px;max-width:46ch;
  font-family:var(--sans);font-weight:300;color:var(--white-90);
  font-size:clamp(1.02rem,1.5vw,1.22rem);line-height:1.7;
}
.hero2__cta{margin-top:38px}

/* responsivo */
@media (max-width:760px){
  .hero2{height:82vh;min-height:520px;align-items:flex-end}
  .hero2__sub{max-width:90%}
}

@media (prefers-reduced-motion:reduce){
  .hero2__img{animation:none;transform:none}
  .hero2__media{transform:none!important}
}
