/* ===== HERO ===== */

.factory-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 28px 100px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

/* vídeo */
.factory-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* HERO COPY */

.factory-hero-content{
max-width:1100px;
margin:auto;
position:relative;
z-index:3;
text-align:center;
}

.factory-hero .eyebrow{
display:block;
margin-bottom:18px;
font-size:.88rem;
letter-spacing:.28em;
text-transform:uppercase;
opacity:.9;
}

.factory-hero h1{
font-size:clamp(4rem,7vw,7rem);
line-height:.95;
letter-spacing:-0.05em;
font-weight:600;
max-width:1200px;
margin:0 auto 22px;
text-wrap:balance;
}

.factory-hero p{
font-size:clamp(1.15rem,1.7vw,1.55rem);
line-height:1.65;
max-width:920px;
margin:auto;
color:rgba(255,255,255,.84);
}

/* overlay escuro (cinematográfico) */
.factory-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(5, 12, 25, 0.55) 0%,
      rgba(5, 12, 25, 0.90) 100%
    ),
    linear-gradient(
      90deg,
      rgba(13, 35, 69, 0.30) 0%,
      rgba(13, 35, 69, 0.18) 100%
    );
}

/* conteúdo acima */
.page-hero-content {
  position: relative;
  z-index: 2;
}

/* ===== A FÁBRICA POR DENTRO (imagem + texto) ===== */
.about-image-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.about-image-layout .image-block {
  border: none;
  background: none;
  border-radius: 32px;
  overflow: hidden;
}
.about-image-layout .image-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
}
.about-image-layout .image-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-image-copy .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
}
.about-image-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0d2345;
  margin-bottom: 20px;
}
.about-image-copy h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.about-image-copy p {
  color: #5c6b82;
  line-height: 1.9;
  max-width: 540px;
}

/* ===== EDITORIAL INTRO ===== */

.factory-editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.editorial-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.editorial-copy p {
  color: #5c6b82;
  line-height: 1.8;
}

/* ===== PROCESS VISUAL ===== */

.process-gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.process-visual-card {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(13,35,69,0.08);
  box-shadow: 0 20px 60px rgba(13,35,69,0.06);
}

.process-visual-copy {
  padding: 24px;
}

.process-visual-copy h3 {
  font-size: 1.2rem;
  line-height: 1.4;
}

.process-visual-copy.compact h3 {
  font-size: 1.05rem;
}

/* ===== MACHINE SHOWCASE ===== */

.machine-showcase-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.machine-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.machine-copy p {
  color: #5c6b82;
  line-height: 1.8;
}

.machine-stack {
  display: grid;
  gap: 20px;
}

.machine-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(13,35,69,0.08);
}

/* ===== VIDEO FILM ===== */

.factory-film-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.film-main,
.film-side {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(13,35,69,0.08);
}

.film-side-column {
  display: grid;
  gap: 20px;
}

.large-video {
  min-height: 520px;
}

.small-video {
  min-height: 240px;
}

/* ===== CAROUSEL ===== */

.factory-carousel-section {
  overflow: hidden;
}

.factory-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 26px;
  flex: 1;
  box-shadow: 0 24px 80px rgba(13,35,69,0.14);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
}

.video-placeholder {
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dfe7f3, #eef3fa);
  color: #0d2345;
}

.carousel-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(13,35,69,0.2);
}

.dot.active {
  background: #0d2345;
}

/* ===== CTA ===== */

.factory-cta-section {
  padding-top: 60px;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 980px) {
  .about-image-layout,
  .factory-editorial-grid,
  .process-gallery-grid,
  .machine-showcase-layout,
  .factory-film-grid {
    grid-template-columns: 1fr;
  }
  .about-image-layout { gap: 28px; }
  .about-image-layout .image-media { aspect-ratio: 16 / 10; }

  .film-side-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .factory-hero {
    padding: 120px 18px 80px;
  }

  .large-video,
  .video-placeholder {
    min-height: 240px;
  }

  .carousel-btn {
    display: none;
  }
}