/**
 * Custom Block Styles
 * 
 * Este arquivo contém estilos personalizados para blocos Gutenberg.
 * Classes adicionadas aqui estarão sempre disponíveis no site.
 */

/* ========================================
   BLOCK: CONTENT SECTION
   ======================================== */

.form-row {
  margin-bottom: 1rem;
}

/* Campos lado a lado (email e telefone) */
.form-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Mobile - Coluna única */
@media (max-width: 768px) {
  .form-row-double {
    grid-template-columns: 1fr;
  }
}


.position-relative * {
  position: relative;
  z-index: 1;
}

.giro-elemento-1 {
  max-width: 30%;
  position: absolute;
  right: -2%;
  bottom: -10%;
  z-index: 0;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.giro-elemento-2 {
  max-width: 20%;
  position: absolute;
  left: -5%;
  top: 60%;
  z-index: 0;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.giro-elemento-3 {
  width: 230px;
  max-width: 100%;
  position: absolute;
  left: 2%;
  top: -20px;
  z-index: 0;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.giro-elemento-4 {
  width: 230px;
  max-width: 100%;
  position: absolute;
  left: -250px;
  bottom: -20px;
  z-index: 0;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

@media (max-width: 767px) {
  .giro-elemento-1 {
    width: 100px;
  }
  
  .giro-elemento-2 {
    width: 100px;
  }

  .giro-elemento-3 {
    width: 100px;
  }

  .giro-elemento-4 {
    width: 100px;
  }

  .wp-block-column .wp-block-columns {
    gap: 0 !important;
  }

  .cover-section p,
  .cover-section ul,
  .cover-section ul li,
  .cover-section h1,
  .cover-section h2,
  .cover-section h3,
  .cover-section h4 {
    text-align: center !important;
  }

  .cover-section blockquote p {
    font-size: 24px !important;
    line-height: 30px !important;
  }

  .cover-section p,
  .cover-section ul,
  .cover-section ul li{
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .cover-section::after {
    content: '';
    background: #00000064;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}

.blocks-flex hr {
  padding: 10px !important;
}
.blocks-flex .wp-block-group .wp-block-cover {
  margin-bottom: 2em;
  border-radius: 20px;
  -webkit-border-radius: 10px !important;
  -moz-border-radius: 10px !important;
  border-radius: 10px !important;
  overflow: hidden;
  position: relative;
  color: #fff;
}
.blocks-flex .wp-block-group .wp-block-cover .wp-block-cover__inner-container {
  color: #fff;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: absolute;
  padding: 30px;
}
.blocks-flex .wp-block-group .wp-block-cover .wp-block-cover__inner-container h4 {font-size: 26px !important; line-height: 32px !important; color: #fff;}
.blocks-flex .wp-block-group .wp-block-cover::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: #00000035;
  z-index: 1;
}

.cover-section {
  width: 94vw !important; /* Largura total da viewport */
  max-width: none !important;
  margin-left: calc(-47vw + 50%) !important; /* Centraliza e expande */
  margin-right: calc(-47vw + 50%) !important;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  padding-left: 2.5vw; /* 2.5% de cada lado para ter 95% total */
  padding-right: 2.5vw;
  z-index: 2;
}





/* Imagem de fundo */
.cover-section .wp-block-cover__image-background {
    object-position: center;
}

/* Overlay escuro */
.cover-section .wp-block-cover__background {
    opacity: 0.4;
}

/* Conteúdo interno - Limitado como container-custom */
.cover-section .wp-block-cover__inner-container {
    max-width: 80rem; /* 1280px - mesmo que max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 1rem; /* py-16 px-4 */
    position: relative;
    z-index: 2;
}

/* ============================================
   BLOCKQUOTE (Citação no topo)
   ============================================ */

.cover-section .wp-block-quote {
    border: none;
    margin: 0 0 3rem 0;
    padding: 0;
    position: relative;
}

.cover-section .wp-block-quote p {
    font-size: 2.2rem; /* 40px */
    line-height: 1;
    font-weight: 800;
    color: white;
    margin: 0;
}

/* Aspas decorativas - AGORA COM SVG */
.cover-section .wp-block-quote::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -1rem;
    width: 80px;
    height: 80px;
    background-image: url('../img/SVG/aspas.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

/* ============================================
   COLUNAS (Lista + Parágrafo)
   ============================================ */

.cover-section .wp-block-columns {
    gap: 3rem;
    margin-top: 3rem;
}

.cover-section .wp-block-column {
    color: white;
}

/* Lista (Coluna esquerda) */
.cover-section .wp-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cover-section .wp-block-list li {
    font-size: 1.5rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
    list-style: circle;
    padding-left: 20px;
}

/* Parágrafo (Coluna direita) */
.cover-section .wp-block-column p {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   RESPONSIVO
   ============================================ */

/* Tablets */
@media (min-width: 640px) {
    .cover-section .wp-block-cover__inner-container {
        padding: 4rem 1.5rem; /* px-6 */
    }
    
    .cover-section .wp-block-quote p {
        font-size: 3rem; /* 48px */
    }
    
    .cover-section .wp-block-quote::before {
        width: 100px;
        height: 100px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .cover-section .wp-block-cover__inner-container {
        padding: 5rem 2rem; /* py-20 px-8 */
    }
    
    .cover-section .wp-block-quote p {
        font-size: 3.5rem; /* 56px */
    }
    
    .cover-section .wp-block-columns {
        gap: 4rem;
    }
    
    .cover-section .wp-block-quote::before {
        width: 120px;
        height: 120px;
        top: -3rem;
    }
}

/* Mobile - Colunas empilhadas */
@media (max-width: 781px) {
    .cover-section .wp-block-columns {
        flex-direction: column;
    }
    
    .cover-section .wp-block-quote p {
        font-size: 2rem; /* 32px */
    }
    
    .cover-section .wp-block-quote::before {
        width: 60px;
        height: 60px;
        top: -1rem;
    }
}


.color-section-1 {position: relative; color: #ede6d9; padding-bottom: 50px;}
.color-section-1 * {position: relative; z-index: 1;}
.color-section-1::before {
  content: '';
  background: #006349;
  width: 100vw;
  height: calc(100% + 300px);
  left: 0;
  bottom: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: absolute;
  z-index: 0;
}
.color-section-1 h1, 
.color-section-1 h2, 
.color-section-1 h3, 
.color-section-1 h4{
  color: #c3e535;
}


.wp-block-group h1:first-child,
.wp-block-group h2:first-child,
.wp-block-group h3:first-child,
.wp-block-group h4:first-child {
    padding-bottom: 10px !important;
}



/* ========================================
   GRÁFICO CIRCULAR - SEM BORDAS
   ======================================== */

.grafico {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 !important;
}

.grafico .wp-block-group__inner-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.grafico p {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #c3e535;
  line-height: 1.3;
  z-index: 2;
}

/* ========================================
   1 PARTE
   ======================================== */
.grafico[data-parts="1"] .wp-block-group__inner-container {
  background: #006349;
}

.grafico[data-parts="1"] p:nth-child(1) {
  inset: 0;
}

/* ========================================
   2 PARTES
   ======================================== */
.grafico[data-parts="2"] .wp-block-group__inner-container {
  background: linear-gradient(90deg, #006349 50%, #007d5c 50%);
}

.grafico[data-parts="2"] p:nth-child(1) {
  left: 0;
  right: 50%;
  top: 0;
  bottom: 0;
}

.grafico[data-parts="2"] p:nth-child(2) {
  left: 50%;
  right: 0;
  top: 0;
  bottom: 0;
}

/* ========================================
   3 PARTES
   ======================================== */
.grafico[data-parts="3"] .wp-block-group__inner-container {
  background: conic-gradient(
    from 0deg,
    #006349 0deg 120deg,
    #007d5c 120deg 240deg,
    #00916f 240deg 360deg
  );
}

.grafico[data-parts="3"] p:nth-child(1) {
  top: 10%;
  right: 10%;
  width: 40%;
  height: 40%;
}

.grafico[data-parts="3"] p:nth-child(2) {
  top: 10%;
  left: 10%;
  width: 40%;
  height: 40%;
}

.grafico[data-parts="3"] p:nth-child(3) {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 35%;
}

/* ========================================
   4 PARTES
   ======================================== */
.grafico[data-parts="4"] .wp-block-group__inner-container {
  background: conic-gradient(
    from 0deg,
    #006349 0deg 90deg,
    #007d5c 90deg 180deg,
    #00916f 180deg 270deg,
    #00a583 270deg 360deg
  );
}

.grafico[data-parts="4"] p:nth-child(1) {
  top: 5%;
  left: 50%;
  width: 45%;
  height: 45%;
  transform: translateX(-50%);
}

.grafico[data-parts="4"] p:nth-child(2) {
  top: 50%;
  right: 5%;
  width: 45%;
  height: 45%;
  transform: translateY(-50%);
}

.grafico[data-parts="4"] p:nth-child(3) {
  bottom: 5%;
  left: 50%;
  width: 45%;
  height: 45%;
  transform: translateX(-50%);
}

.grafico[data-parts="4"] p:nth-child(4) {
  top: 50%;
  left: 5%;
  width: 45%;
  height: 45%;
  transform: translateY(-50%);
}

/* ========================================
   5 PARTES
   ======================================== */
.grafico[data-parts="5"] .wp-block-group__inner-container {
  background: conic-gradient(
    from 0deg,
    #006349 0deg 72deg,
    #007d5c 72deg 144deg,
    #00916f 144deg 216deg,
    #00a583 216deg 288deg,
    #00b996 288deg 360deg
  );
}

.grafico[data-parts="5"] p {
  width: 35%;
  height: 35%;
}

.grafico[data-parts="5"] p:nth-child(1) {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.grafico[data-parts="5"] p:nth-child(2) {
  top: 20%;
  right: 8%;
}

.grafico[data-parts="5"] p:nth-child(3) {
  bottom: 18%;
  right: 15%;
}

.grafico[data-parts="5"] p:nth-child(4) {
  bottom: 18%;
  left: 15%;
}

.grafico[data-parts="5"] p:nth-child(5) {
  top: 20%;
  left: 8%;
}

/* ========================================
   6 PARTES
   ======================================== */
.grafico[data-parts="6"] .wp-block-group__inner-container {
  background: conic-gradient(
    from 0deg,
    #006349 0deg 60deg,
    #007d5c 60deg 120deg,
    #00916f 120deg 180deg,
    #00a583 180deg 240deg,
    #00b996 240deg 300deg,
    #00cdaa 300deg 360deg
  );
}

.grafico[data-parts="6"] p {
  width: 33%;
  height: 33%;
}

.grafico[data-parts="6"] p:nth-child(1) {
  top: 8%;
  right: 12%;
}

.grafico[data-parts="6"] p:nth-child(2) {
  top: 33%;
  right: 2%;
}

.grafico[data-parts="6"] p:nth-child(3) {
  bottom: 8%;
  right: 12%;
}

.grafico[data-parts="6"] p:nth-child(4) {
  bottom: 8%;
  left: 12%;
}

.grafico[data-parts="6"] p:nth-child(5) {
  top: 33%;
  left: 2%;
}

.grafico[data-parts="6"] p:nth-child(6) {
  top: 8%;
  left: 12%;
}

/* ========================================
   7 PARTES
   ======================================== */
.grafico[data-parts="7"] .wp-block-group__inner-container {
  background: conic-gradient(
    from 0deg,
    #006349 0deg 51.4deg,
    #007d5c 51.4deg 102.8deg,
    #00916f 102.8deg 154.3deg,
    #00a583 154.3deg 205.7deg,
    #00b996 205.7deg 257.1deg,
    #00cdaa 257.1deg 308.6deg,
    #00e1bd 308.6deg 360deg
  );
}

.grafico[data-parts="7"] p {
  width: 30%;
  height: 30%;
}

.grafico[data-parts="7"] p:nth-child(1) {
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
}

.grafico[data-parts="7"] p:nth-child(2) {
  top: 12%;
  right: 10%;
}

.grafico[data-parts="7"] p:nth-child(3) {
  top: 35%;
  right: 3%;
}

.grafico[data-parts="7"] p:nth-child(4) {
  bottom: 12%;
  right: 10%;
}

.grafico[data-parts="7"] p:nth-child(5) {
  bottom: 12%;
  left: 10%;
}

.grafico[data-parts="7"] p:nth-child(6) {
  top: 35%;
  left: 3%;
}

.grafico[data-parts="7"] p:nth-child(7) {
  top: 12%;
  left: 10%;
}

/* ========================================
   8 PARTES
   ======================================== */
.grafico[data-parts="8"] .wp-block-group__inner-container {
  background: conic-gradient(
    from 0deg,
    #006349 0deg 45deg,
    #007d5c 45deg 90deg,
    #00916f 90deg 135deg,
    #00a583 135deg 180deg,
    #00b996 180deg 225deg,
    #00cdaa 225deg 270deg,
    #00e1bd 270deg 315deg,
    #00f5d1 315deg 360deg
  );
}

.grafico[data-parts="8"] p {
  width: 28%;
  height: 28%;
}

.grafico[data-parts="8"] p:nth-child(1) {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.grafico[data-parts="8"] p:nth-child(2) {
  top: 15%;
  right: 10%;
}

.grafico[data-parts="8"] p:nth-child(3) {
  top: 36%;
  right: 2%;
}

.grafico[data-parts="8"] p:nth-child(4) {
  bottom: 15%;
  right: 10%;
}

.grafico[data-parts="8"] p:nth-child(5) {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.grafico[data-parts="8"] p:nth-child(6) {
  bottom: 15%;
  left: 10%;
}

.grafico[data-parts="8"] p:nth-child(7) {
  top: 36%;
  left: 2%;
}

.grafico[data-parts="8"] p:nth-child(8) {
  top: 15%;
  left: 10%;
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 768px) {
  .grafico {
    max-width: 350px;
  }
  
  .grafico p {
    font-size: 0.875rem;
    padding: 1rem;
  }
}


/* ========================================
   ANIMAÇÕES FADE IN - COM SCROLL TRIGGER
   ======================================== */

/* Estado inicial - elementos invisíveis até serem ativados */
.fade-in,
.fade-in-top,
.fade-in-left,
.fade-in-right,
.fade-in-bottom,
.fade-in-zoom {
  opacity: 0;
}

/* Animações quando ativadas */
.fade-in.fade-in-active {
  animation: fadeIn 1.2s ease-out forwards;
}

.fade-in-top.fade-in-active {
  animation: fadeInTop 1.2s ease-out forwards;
}

.fade-in-left.fade-in-active {
  animation: fadeInLeft 1.2s ease-out forwards;
}

.fade-in-right.fade-in-active {
  animation: fadeInRight 1.2s ease-out forwards;
}

.fade-in-bottom.fade-in-active {
  animation: fadeInBottom 1.2s ease-out forwards;
}

.fade-in-zoom.fade-in-active {
  animation: fadeInZoom 1.2s ease-out forwards;
}

/* Keyframes */

/* Fade In Simples (só opacity) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade In de Cima */
@keyframes fadeInTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In da Esquerda */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In da Direita */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In de Baixo */
@keyframes fadeInBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Zoom (leve) */
@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sem animação */
.fade-in-none {
  animation: none;
  opacity: 1;
}


@media (max-width: 998px) { 
  .footer .wp-block-columns {
    flex-direction: column;
    text-align: center;
  }
  .footer .wp-block-columns img {
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .cover-section {
    width: 100% !important; /* Não usar vw */
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
  }
  
  .cover-section .wp-block-cover__inner-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}