@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

@font-face {
  font-family: "Axiforma";
  src: url(/font/Axiforma/Axiforma-Regular.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  font-family: "Axiforma", sans-serif;
}

:root {
  --primary-color: #ce2616;
  --secondary-color: #a31d11;
  --background-color: #f5f5f5;
  --text-color: #123;
  --radius: 25px;
  --font-size-p: 20px;
  --font-size-h2: 40px;
}

::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

h2 {
  font-size: var(--font-size-h2);
}

/* ✅ Corrigido: regra fazia referência a summary p, que não existe */
details p {
  font-size: var(--font-size-p);
  line-height: 1.5;
}

/* Pre Loader */
.loading-page {
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

#svg {
  height: 150px;
  width: 150px;
  stroke: var(--background-color);
  fill-opacity: 0;
  stroke-width: 2px;
  stroke-dasharray: 4500;
  animation: draw 8s ease;
}

@keyframes draw {
  0% {
    stroke-dashoffset: 4500;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.name-container {
  height: 30px;
  overflow: hidden;
}

.logo-name {
  color: var(--background-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.btn2 {
  margin-top: 8px;
  padding: 10px 20px;
  background: var(--background-color);
  color: var(--primary-color);
  border-radius: var(--radius);
  position: relative;
  align-self: flex-start;
  font-weight: 500;
  font-size: 18px;
  transition: all .3s ease;
}

.btn2:hover {
  transform: scale(1.05);
}

h1 {
  opacity: 0;
  font-size: 40px;
  color: var(--background-color);
}

.active {
  opacity: 1;
}

header {
  padding: 20px 30px;
  width: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

header img {
  width: 200px;
  opacity: 0;
}

header nav ul {
  display: flex;
  gap: 20px;
}

header nav ul li {
  opacity: 0;
}

header nav ul a {
  color: var(--text-color);
  transition: all 0.1s ease;
}

header nav ul a:hover {
  color: var(--primary-color);
}

.btn {
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--background-color);
  border-radius: var(--radius);
  position: relative;
  transition: all .2s ease;
  font-size: 18px;
  opacity: 0;
}

.btn:hover {
  transform: scale(1.05);
}

/* Section 1 */
article {
  width: 100%;
  height: 90vh;
  background-image: radial-gradient(var(--primary-color) 50%, var(--secondary-color) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

/* ---- FUNDO DO HERO (carrossel de background) ---- */
article {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .fundo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  transform: scale(1.03);
}

.hero-bg .fundo.active {
  opacity: 1;
}

/* overlay vermelho por cima */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(206, 38, 22, 0.75);
  z-index: 1;
}

article>*:not(.hero-bg):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}

#titulo {
  display: inline-block;
  margin: 0 5px;
  vertical-align: bottom;
  min-width: 50px;
}

.image {
  position: absolute;
  transition: opacity 0.5s ease-in-out;
  width: 100%;
  max-width: 500px;
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
}

.image.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

article p {
  opacity: 0;
  color: var(--background-color);
  font-size: var(--font-size-p);
  line-height: 1.2;
}

article .btn2 {
  opacity: 0;
}

.s1-div-pai {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   Sobre Nós
   ========================= */
.sobre-nos {
  width: 100%;
  min-height: 100vh;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 5%;
}

.sn-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
}

.sn-img-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sn-img-wrapper img {
  width: 100%;
  max-width: 500px;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.sn-badge {
  opacity: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.sn-title {
  opacity: 0;
  color: var(--text-color);
  font-size: 2.8rem;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.sn-desc {
  opacity: 0;
  font-size: var(--font-size-p);
  color: #444;
  margin-bottom: 16px;
  line-height: 1.6;
}

.sn-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.sn-feature-item {
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: default;
}

.sn-feature-item:hover {
  background-color: #fff0f0;
}

.sn-feature-item h3 {
  font-size: var(--font-size-p);
  color: var(--text-color);
  font-weight: 700;
  margin: 0 0 6px 0;
  transition: color 0.3s ease;
}

.sn-feature-item:hover h3 {
  color: var(--primary-color);
}

.sn-feature-item p {
  font-size: var(--font-size-p);
  color: #777;
  margin: 0;
}

@media screen and (max-width: 900px) {
  .sn-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .sn-content {
    align-items: center;
    text-align: center;
  }

  .sn-features {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Section 2 */
.s2 {
  height: auto;
  width: 100%;
  padding: 50px 0;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 50px;
  position: relative;
}

.s2-div-pai {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
  height: auto;
}

.s2-div-filho-conteiner {
  display: flex;
  flex-direction: column;
  height: auto;
  gap: 10px;
  width: 500px;
  border-radius: var(--radius);
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--background-color);
  z-index: 1;
}

.s2-div-filho-quadrado-1,
.s2-div-filho-quadrado-2,
.s2-div-filho-quadrado-3,
.s2-div-filho-quadrado-4 {
  width: 80px;
  height: 80px;
  background-color: #f4d9d7;
  margin: 0 50px;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.s2-div-filho-quadrado-1 img,
.s2-div-filho-quadrado-2 img,
.s2-div-filho-quadrado-3 img,
.s2-div-filho-quadrado-4 img {
  width: 35px;
  margin: 10px;
}

.line {
  width: 5px;
  height: 70%;
  background-color: rgb(218, 209, 209);
  position: absolute;
  bottom: 12%;
  z-index: 0;
}

.fake {
  width: 500px;
  height: 100px;
  background-color: transparent;
}

.red-gradient {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle,
      rgba(206, 38, 22, 0.4) 50%,
      rgba(206, 38, 22, 0) 70%);
  filter: blur(100px);
  z-index: 0;
}

.red-gradient:first-child {
  top: 10%;
  left: 5%;
}

.red-gradient:nth-child(2) {
  bottom: 10%;
  right: 5%;
}

/* Section 3 */
.s3 {
  height: 80vh;
  width: 100%;
  padding: 50px 0;
  background-color: var(--background-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.s3-div {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.s3-div p,
.s3-div span {
  color: var(--background-color);
  font-size: var(--font-size-p);
}

.s3-div:first-child {
  background-color: var(--primary-color);
  width: 600px;
  height: 400px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
}

.s3-div img {
  width: 500px;
  border-radius: var(--radius);
}

.s3-div-pai {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  gap: 10px;
}

.s3-div-filho {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
}

.s3-div-neto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: auto;
  height: 100px;
  border-radius: var(--radius);
  padding: 15px;
  background-color: var(--primary-color);
}

.s3-div-filho:nth-child(2) .s3-div-neto {
  background-color: var(--primary-color);
  width: 410px;
}

/* =========================
   Sessão 5 - Depoimentos
   ========================= */
.s5 {
  padding: 80px 0;
  background-image: radial-gradient(var(--primary-color) 50%, var(--secondary-color) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.s5-div-pai h2#s5-h2 {
  color: var(--background-color) !important;
  text-align: center;
  font-size: 2rem;
  padding: 0 20px;
}

/* ✅ Ajuste: track agora pode virar "carrossel swipe" no mobile */
.s5-track {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  align-items: stretch;
}

.s5-div-filho {
  width: 380px;
  flex: 0 0 auto;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
  transition: all 0.3s ease;
}

/* deixa o iframe responsivo dentro do card */
.s5-div-filho iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}

.s5-div-filho:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.s6 {
  width: 100%;
  height: auto;
  padding: 30px 0;
  background-image: radial-gradient(var(--primary-color) 50%, var(--secondary-color) 100%);
}

.s6-div-pai {
  display: flex;
  justify-content: center;
  align-items: center;
}

.s6-div-pai h2 {
  color: var(--background-color);
}

.s6-div-filho {
  margin: 32px 0;
}

details {
  background-color: var(--background-color);
  padding: 16px 24px;
  margin: 8px;
  border-radius: var(--radius);
  width: 40vw;
  cursor: pointer;
}

summary {
  position: relative;
}

summary::before {
  content: "+";
  position: absolute;
  left: 98%;
  transition: transform 0.2s;
}

/* Footer */
footer {
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 64px;
}

footer ul {
  display: flex;
  margin-top: 8px;
  flex-direction: column;
  gap: 4px;
}

footer ul li a {
  color: var(--text-color);
  margin-left: 8px;
  position: relative;
  transition: all 0.2s ease;
}

footer ul li a:hover {
  color: var(--primary-color);
}

.footer-div-pai {
  display: flex;
  justify-content: space-around;
}

footer img {
  width: 180px;
}

/* =========================
   Responsividade Global
   ========================= */

@media screen and (max-width: 1024px) {
  .s1-div-pai h1 {
    font-size: 2.2rem;
  }

  .sn-container,
  .s3-div:first-child {
    width: 90%;
  }

  details {
    width: 45vw;
  }
}

@media screen and (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 15px 20px;
  }

  header img {
    width: 140px;
  }

  header nav ul {
    display: none;
  }

  header .header-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  article {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 120px 20px 60px 20px;
    text-align: center;
    justify-content: center;
    gap: 40px;
  }

  .s1-div-pai {
    width: 100%;
    align-items: center;
    z-index: 2;
  }

  .s1-div-pai h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .s1-div-pai p {
    font-size: 16px;
  }

  .s1-div-pai br {
    display: none;
  }

  .s1-div-pai .btn2 {
    align-self: center;
  }

  .image {
    position: absolute;
    width: 100%;
    max-width: none;
    height: auto;
    opacity: 0;
    border-width: 1px;
  }

  .image.active {
    position: relative;
    opacity: 1;
  }

  .arrow,
  .arrow-rotate {
    display: none;
  }

  .sobre-nos {
    padding: 60px 20px;
  }

  .sn-container {
    flex-direction: column;
    gap: 40px;
  }

  .sn-img-wrapper img {
    height: 400px;
  }

  .sn-title {
    font-size: 2.2rem;
  }

  .sn-features {
    grid-template-columns: 1fr;
  }

  .s2 {
    height: auto;
    padding: 60px 20px;
    gap: 30px;
  }

  .s2-div-pai {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .fake,
  .line {
    display: none;
  }

  .s2-div-filho-conteiner {
    width: 100%;
    text-align: center;
    order: 2;
  }

  .s2-div-filho-quadrado-1,
  .s2-div-filho-quadrado-2,
  .s2-div-filho-quadrado-3,
  .s2-div-filho-quadrado-4 {
    margin: 0 0 20px 0;
    order: 1;
  }

  .s3 {
    height: auto;
    flex-direction: column;
    padding: 60px 20px;
    gap: 40px;
  }

  .s3-div {
    width: 100%;
  }

  .s3-div:first-child {
    width: 100%;
    height: auto;
    padding: 30px 20px;
  }

  .s3-div img {
    width: 100%;
    height: auto;
  }

  .s3-div-filho {
    flex-direction: column;
    width: 100%;
  }

  .s3-div-filho:nth-child(2) .s3-div-neto,
  .s3-div-neto {
    width: 100%;
  }

  /* ✅ Depoimentos: swipe horizontal de verdade */
   .s5 {
    padding: 60px 20px;
  }

  /* track vira coluna */
  .s5-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    overflow: visible;          /* remove scroll horizontal */
    scroll-snap-type: none;     /* desliga snap */
    -webkit-overflow-scrolling: auto;
  }

  /* cards ocupam 100% da largura */
  .s5-div-filho {
    width: 100%;
    max-width: 500px;          /* opcional: limita pra ficar bonito */
    margin: 0 auto;            /* centraliza */
  }

  .s6 {
    padding: 60px 20px;
  }

  .s6-div-pai {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .s6-div-filho {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  details {
    width: 100%;
    max-width: 500px;
    margin: 10px 0;
  }

  footer {
    height: auto;
    padding: 50px 20px 20px 20px;
    gap: 40px;
  }

  .footer-div-pai {
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-div-pai:last-child {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
  }

  footer img {
    width: 140px;
  }
}