/*------ reset -------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
}

ul {
    list-style-type: none;
}

/*------ variables -------------*/
:root {
    --header-height: 4.5rem;

    /*--- colors ---*/
    --hue: 42;
    --base-color: hsl(var(--hue) 36% 57%);
    --base-color-second: hsl(var(--hue) 65% 88%);
    --base-color-alt: hsl(var(--hue) 57% 53%);
    --title-color: hsl(var(--hue) 41% 10%);
    --text-color: hsl(0 0% 46%);
    --text-color-light: hsl(0 0% 98%);
    --body-color: hsl(0 0% 98%);

    --title-font-size:1.875rem;
    --subtitle-font-size: 1rem;

    --title-font: "Poppins", sans-serif;
    --body-font: "DM SANS", sans-serif;
}
/*------ base -------------*/
html {
    scroll-behavior: smooth;
}

body {
    font: 400 1rem var(--body-font);
    color: var(--text-color);
    background-color:var(--body-color);
    -webkit-font-smoothing: antialiased;
}

.title {
    font: 700 var(--title-font-size) var(--title-font);
    color: var(--title-color);
    -webkit-font-smoothing: auto;
}

.button {
    background-color: var(--base-color);
    color: var(--text-color-light);
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    border-radius: 0.25rem;
    font: 500 1rem var(--body-font);
    transition: background 0.3s;
}

.button:hover {
    background-color: var(--base-color-alt);
}

.divider-1 {
    height: 1px;
    background: linear-gradient(
        270deg,
        hsla(var(--hue), 36%, 57%, 1) 0%, 
        rgba(var(--hue), 244, 230, 0.34) 100%
    );
}

.divider-2 {
    height: 1px;
    background: linear-gradient(
        270deg,
        rgba(var(--hue), 244, 230, 0.34),
        hsla(var(--hue), 36%, 57%, 1)
    );
}

/*------ layout -------------*/
#header {
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    background-color: var(--body-color);
}

#header.scroll {
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.2);
} 

/*------ navigation -------------*/
nav {
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav .menu {
    opacity: 0;
    visibility: hidden;
    top: -20rem;
    transition: 0.2s;
}


nav ul li {
    text-align: center;

}

nav ul li a {
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--base-color);
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--base-color);
    position: absolute;
    left: 0;
    bottom: -1.5rem;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
    transition: width 0.2s;
}

nav .menu ul {
    display: none;
}
/*------ mostrar menu -------------*/
nav.show .menu{
    opacity: 1;
    visibility: visible;
    background: var(--body-color);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    place-content: center;
}

nav.show ul {
    display: grid;
    gap: 4rem;
}
/*------ toggle menu -------------*/
.toggle {
    color: var(--base-color);
    font-size: 1.5rem;
    cursor: pointer;
}
nav .icon-close{
    visibility: hidden;
    position: absolute;
    opacity: 0;
    right: 1.5rem;
    top: -1.5rem;
    transition: 0.3s;
}

nav.show .icon-close {
    visibility: visible;
    opacity: 1;
    top: 1.5rem;
}

/*------ logo -------------*/
.logo{
    font: 700 1.31rem "Poppins", sans-serif;
    color: var(--title-color);
    display: flex;
    align-items: center;
}

.logo img{
    width: 3.9rem;
    margin-right: 0.5rem;
}

.logo span {
    color: var(--base-color);
}

.logo-alt span {
    color: var(--body-color);
  }

.container {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: calc(5rem + var(--header-height)) 0;
}

.section header {
    margin-bottom: 4rem;
}

.section header strong {
    color: var(--base-color);
}

.section .title {
    margin-bottom: 1rem;
}

.section .subtitle {
    font-size: var(--subtitle-font-size);
}
/*------ home -------------*/
#home {
    overflow: hidden;
}

#home .container {
    margin: 0;
}

#home .image {
    position: relative;
}

#home .image::before {
    content:'';
    height: 100%;
    width: 100%;
    background-color: var(--base-color-second);
    position: absolute;
    top: -16.8%;
    left: 16.8%;
    z-index: 0;
    
}

#home .image img{
    position: relative;
    right: 2.93rem;
}

#home .image img, #home .image::before  {
    border-radius: 0.25rem;
}

#home .text {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    text-align: center;
}

#home .text h1 {
    margin-bottom: 1rem;
}

#home .text p {
    margin-bottom: 2rem;
    max-width: 100%;
}

/*------ about -------------*/
#sobre {
    background: white;
  }
  
  #sobre .container {
    margin: 0;
  }
  
  #sobre .image {
    position: relative;
  }
  
  #sobre .image::before {
    content: '';
    height: 100%;
    width: 100%;
    background: var(--base-color-second);
    position: absolute;
    top: -8.3%;
    left: -33%;
    z-index: 0;
  }
  
  #sobre .image img {
    position: relative;
  }
  
  #sobre .image img,
  #sobre .image::before {
    border-radius: 0.25rem;
  }
  
  #sobre .text {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  /*------ eventos -------------*/
  .cards.grid {
      gap: 1.5rem;
  }
  
  .card {
      padding: 3.625rem 2rem;
      box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
      border-bottom: 0.25rem solid var(--base-color);
      border-radius: 0.25rem 0.25rem 0 0;
      text-align: center;
  }

  .card i {
      display: block;
      margin-bottom: 1.5rem;
      font-size: 5rem;
      color: var(--base-color);
  }

  .card .title {
      font-size: 1.5rem;
      margin-bottom: 0.75rem;
  }

    /*------ testimonials -------------*/
    #testimonials {
        background: white;
      }
      
      #testimonials .container {
        margin-left: 0;
        margin-right: 0;
        position: relative;
        overflow: hidden;
      }
      
      #testimonials header {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        margin-bottom: 0;
      }
      
      #testimonials blockquote {
        padding: 2rem;
        box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
        border-radius: 0.25rem;
      }
      
      #testimonials blockquote p {
        position: relative;
        text-indent: 1.875rem;
        margin-bottom: 1.5rem;
        color: var(--title-color);
      }
      
      #testimonials blockquote p span {
        font: 700 2.5rem serif;
        position: absolute;
        top: -0.375rem;
        left: -1.875rem;
        color: var(--base-color);
      }
      
      #testimonials cite {
        display: flex;
        align-items: center;
      }
      
      #testimonials cite img {
        width: 2rem;
        height: 2rem;
        object-fit: cover;
        clip-path: circle();
        margin-right: 0.5rem;
      }
/* swiper */
.swiper-slide {
    height: auto;
    padding: 3rem 1rem;
  }
  
  .swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
  }
  
  span.swiper-pagination-bullet-active {
    background: var(--base-color);
  }

  /*------ contact -------------*/
  #contato .grid{
      gap: 4rem;
  }

  #contato .text p {
      margin-bottom: 2rem;
  }

  #contato .button i, #contato ul li i {
      font-size: 1.5rem;
      margin-right: 0.625rem;
  }

  #contato ul.grid {
      gap: 2rem;
  }

  #contato ul li {
    display: flex;
    align-items: center;
  }

  #contato ul li i {
      color: var(--base-color);
  }

    /*------ footer -------------*/
  footer {
      background: var(--base-color);
  }

  footer.section {
      padding: 4rem 0;
  }

  footer .brand img{
    width: 3.5rem;
    margin-right: -0.2rem;
}

  footer .logo {
      display: inline-block;
      margin-bottom: 1.5rem;
  }

  footer .brand p {
      color: var(--text-color-light);
      margin-bottom: 0.75rem;
  }

  footer i {
      font-size: 1.5rem;
      color: var(--text-color-light);
  }

  footer .social {
    display: flex;
    gap: 2rem;
  }

  footer .social a {
      padding: 0.25rem;
      transition: 0.3s;
      display: inline-block;
  }

  footer .social a:hover {
    transform: translateY(-8px);
}

   /*------ back to top -------------*/
  .back-to-top {
    background: var(--base-color);
    color: var(--text-color-light);
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    padding: 0.3rem;
    clip-path: circle();
    font-size: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(100%);
  }

  .back-to-top.show {
      visibility: visible;
      opacity: 1;
      transform: translateY(0);
      
  }

     /*------ responsivo -------------*/

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    main {
        margin-top: var(--header-height);
    }

    .section {
        padding: 10rem 0;

    }

    .section header, #testimonials header {
        max-width: 32rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .button {
        height: 3.125rem;
    }

    nav .menu {
        opacity: 1;
        visibility: visible;
        top: 0;
    }

    nav .menu ul {
        display: flex;
        gap: 2rem;
    }

    nav .menu ul li a.title {
        font: 400 1rem var(--body-font);
        -webkit-font-smoothing: antialiased;
    }

    nav .icon-menu {
        display: none;
    }

    #home .container {
        grid-auto-flow: column;
        justify-content: space-between;
        margin: 0 auto;
    }

    #home .image {
        order: 1;
    }

    #home .text {
        order: 0;
        max-width: 24rem;
        text-align: left;
    }

    /* */
    #sobre .container {
        grid-auto-flow: column;
        margin: 0 auto;

    }

    /* */
    #testimonials .container {
        margin-left: auto;
        margin-right: auto;
    }

    .cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .card {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /* */
    #contato .container {
        grid-auto-flow: column;
        align-items: center;
    }
    #contato .text {
        max-width: 25rem;
    }

    /* */
    footer.section {
        padding: 3.75rem;
    }

    footer .container {
        grid-auto-flow: column;
        align-items: center;
        justify-content: space-between;
    }

    footer .brand img{
        width: 5rem;
        margin-right: -0.2rem;
    }

    footer .logo {
        font-size: 2.25rem;
    }


}

@media (min-width: 992px) {
    :root {
        --title-font-size:2.25rem;
        --subtitle-font-size: 1.125rem;
    }

    .section header, #testimonials header {
        max-width: 32rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #home .container {
        grid-auto-flow: column;
        justify-content: space-between;
        margin: 0 auto;
    }

    #home .image {
        order: 1;
    }

    #home .text {
        order: 0;
        max-width: 24rem;
        text-align: left;
    }

    /* */
    #sobre .container {
        grid-auto-flow: column;
        margin: 0 auto;
        align-items: center;

    }

    /* */
   
    /* */
    #testimonials .container {
        margin-left: auto;
        margin-right: auto;
    }

    .cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .card {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /* */
    #contato .container {
        grid-auto-flow: column;
        align-items: center;
    }
    #contato .text {
        max-width: 25rem;
    }

    /* */
    footer.section {
        padding: 3.75rem;
    }

    footer .container {
        grid-auto-flow: column;
        align-items: center;
        justify-content: space-between;
    }

    footer .brand img{
        width: 5rem;
        margin-right: -0.2rem;
    }

    footer .logo {
        font-size: 2.25rem;
    }


}