/* ==========================
   ESTILO GLOBAL
========================== */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #fff;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* ==========================
   GRID BASE
========================== */

.grid1, .grid2 {
  width: 100vw;
  box-sizing: border-box;
}

/* ==========================
   HEADER / GRID 1
========================== */

.grid1 {
  background-color: rgb(210, 253, 205);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #2e7d32;
  width: 80%;
  height: 50px;
  border-radius: 35px;
  margin: 30px auto;
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

header h4 {
  color: white;
  text-align: center;
  font-weight: 600;
}

.main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
  gap: 80px;
  flex: 1;
}

.left-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title h1 {
  font-size: 56px;
  margin-bottom: 10px;
  color: #052007;
}

.title h5 {
  font-size: 20px;
  font-weight: 500;
  color: #2e7d32;
}

.box-subscribe {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
}

form {
  background: #2e7d32;
  width: 324px;
  padding: 20px;
  border-radius: 35px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

form p {
  margin-top: 0;
}

.logo {
  width: 325px;
  height: auto;
  max-width: 100%;
  padding-left: 50px;
}

input[type="email"] {
  padding: 10px;
  width: 200px;
  border: solid 2px rgb(227, 220, 39);
  border-radius: 8px;
  outline: none;
}

button {
  background: rgb(227, 220, 39);
  color: #052007;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #d7cd09;
}

/* ==========================
   SCROLL ICON
========================== */

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  text-decoration: none;
  color: #2e7d32;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

/* ==========================
   GRID 2 (CONTEÚDO)
========================== */

.grid2 {
  background: linear-gradient(135deg, #45854d, #052007);
  padding: 40px;
  color: #fff;
  text-align: center;
}

.titleGrid2 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
}

.textGrid2 {
  line-height: 1.6;
  font-size: 18px;
}

.textGrid2 p {
  font-size: 20px;
  margin: 10px 0;

}

h2{
  font-size: 40px;
}


/* ==========================
   FOOTER
========================== */

footer {
    display: flex;
    width: 100%;
    background: rgb(154, 208, 148);
    color: #052007;
    text-align: center;
}

.divisaoFooter {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative; /* permite posicionar o insta à direita */
}

/* Mantém tudo centralizado */
.copyright {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

/* Ícone do Instagram alinhado à direita no PC */
.sociais {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
}


/* ==========================
   ÍCONES
========================== */

ul {
  list-style: none; 
}
 
.example-2 { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
}
 
.example-2 .icon-content { 
  margin: 0 10px; 
  position: relative; 
}
 
.example-2 .icon-content .tooltip { 
  position: absolute; 
  top: -30px; 
  left: 50%; 
  transform: translateX(-50%); 
  color: #fff; 
  padding: 6px 10px; 
  border-radius: 5px; 
  opacity: 0; 
  visibility: hidden; 
  font-size: 14px; 
  transition: all 0.3s ease; 
}
 
.example-2 .icon-content:hover .tooltip { 
  opacity: 1; 
  visibility: visible; 
  top: -50px; 
}
 
.example-2 .icon-content a { 
  position: relative; 
  overflow: hidden; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  width: 50px; 
  height: 50px; 
  border-radius: 50%; 
  color: #4d4d4d; 
  background-color: #fff; 
  transition: all 0.3s ease-in-out; 
}
 
.example-2 .icon-content a:hover { 
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
} 

.example-2 .icon-content a svg { 
  position: relative; 
  z-index: 1; 
  width: 30px; 
  height: 30px; 
}
 
.example-2 .icon-content a:hover { 
  color: white; 
  box-shadow: rgba(000,000,000,0.9); 
}
 
.example-2 .icon-content a .filled { 
  position: absolute; 
  top: auto; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  height: 0; 
  background-color: #000; 
  transition: all 0.3s ease-in-out; 
}
 
.example-2 .icon-content a:hover .filled { 
  height: 100%; 
}
 
.example-2 .icon-content a[data-social="instagram"] .filled, .example-2 .icon-content a[data-social="instagram"] ~ .tooltip { 
  background: linear-gradient( 45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f ); 
}

/* ==========================
   RESPONSIVIDADE
========================== */

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
  }

  header {
    width: 90%;
  }

  .logo {
    padding-left: 0;
    width: 250px;
  }

  .title h1 {
    font-size: 36px;
    text-align: center;
  }

  .title h5 {
    font-size: 18px;
    text-align: center;
  }

  form {
    width: 100%;
    max-width: 300px;
  }

   .box-subscribe input[type="email"] { 
    width: 100%; 
    font-size: 15px; 
    padding: 12px; 
    box-sizing: border-box; 
  }

  .box-subscribe button { 
    width: 100%; 
    margin-top: 10px; 
    font-size: 15px; 
    padding: 12px;  
  }

  h1{
    font-size: 56px;
  }

  h2{
    font-size: 36px;
  }
}

/* Celulares pequenos (<= 480px, como 320px de largura) */
/* ====== MOBILE ULTRA PEQUENO (320px) ====== */
@media (max-width: 480px) {

  .title h1 { 
    font-size: 24px; 
    text-align: center; 
    line-height: 1.2; 
  }
   
  .title h5 { 
    font-size: 14px; 
    text-align: center; 
  }
   
  form { 
    width: 90%; 
    margin: 0 auto; 
    padding: 15px; 
  }
   
  input[type="email"], button { 
    width: 100%; 
    font-size: 14px; 
  }
   
  .right-side img { 
    width: 70%; 
    margin-top: 10px; 
  }
   
  /* ----- GRID 2 ----- */ 
  .titleGrid2 { 
    font-size: 24px !important; 
    margin: 10px 0; 

  }
  

  .textGrid2 p { 
    font-size: 15px !important; 
    line-height: 1.4; 
  }
   
  .grid2 { 
    padding: 20px 15px !important; 

    h1{
      font-size: 45px;
    }
  }
   
  h2{
    font-size: 25px;
  }
    
    /* ----- FORM (box-subscribe) ----- */ 
  .box-subscribe input[type="email"] { 
    width: 100%; 
    font-size: 15px; 
    padding: 12px; 
    box-sizing: border-box; 
  }

  .box-subscribe button { 
    width: 100%; 
    margin-top: 10px; 
    font-size: 15px; 
    padding: 12px;  
  }
  
  footer {
    /* padding: 25px 10px; */
    text-align: center;
  }

  .divisaoFooter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: static;
  } 

    /* Container central */
  .copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
    margin: 0;
    padding: 0;
  }

  /* Instagram no meio */
  .sociais {
      position: static;     
      order: 2;             
      margin: 15px;
      margin-bottom: -60px;
      margin-left: -20px;
  }

  /* Copyright vai por último */
  .copyright p:last-child {
      order: 3;
  }
}