:root {
  --title-color: #08507b;
  --default-color: #096697;
  color: #096697
}

.container-page {
  width: 95vw;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, h4, h5 {
  font-family: 'Powell', serif;
  margin: 0 0 1em;
  font-weight: bold;
}

h1 {
  color: var(--title-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  font-size: 2rem;

  @media(max-width: 768px) {
    font-size: 1.625rem;
  }
}

h1::before,
h1::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  background-image: url("../img/icon-title.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

h1::before {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

body {
  background: url(../img/bg-body.jpg);
  background-size: 900px auto;
  background-repeat: repeat;
  background-position: top center;

  @media(max-width: 768px) {
    background-size: 500px auto;
  }

  width: 100dvw;
  overflow-x: hidden;
}

.site-header {
  font-family: 'Powell', serif;
  position: relative;
  z-index: 5;
  margin-bottom: -3em;
  top: 1em;
  font-size: 1.625em;
  nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 4em;
    position: relative;

    .logo {
      width: 200px;
      img {
        width: 100%;
        display: block;
        aspect-ratio: 197/28;
        flex-shrink: 0;
      }

      @media(max-width: 1000px) {
        width: 140px;
      }
    }

    .links {
      /* border: 1px solid red; */
      display: flex;
      justify-content: center;
      gap: 0 2em;
    }

    a {
      display: block;
      font-weight: bold;
      cursor: pointer;
      pointer-events: auto;
      position: relative;

      &::after {
        transition: .15s ease;
        display: none;
        position: absolute;
        content: '';
        width: 3em;
        height: 1em;
        bottom: -0.75em;
        left: 50%;
        transform: translateX(-50%);
        background: url(../img/arabesco.png);
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
      }

      &:hover{
        &::after {
          display: block;
        }
      }

    }

  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 36px;
  padding: 6px;
  border: 1px solid rgba(8, 80, 123, 0.35);
  border-radius: 6px;
  background: rgba(252, 252, 251, 0.85);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--title-color);
  -webkit-transition: -webkit-transform .15s ease, opacity .15s ease;
  transition: transform .15s ease, opacity .15s ease;
}

@media(max-width: 1000px) {
  .site-header {
    margin-bottom: -4.5em;
    top: 1em;
    font-size: 1.25em;

    nav {
      justify-content: space-between;
      gap: 1em;
    }

    .menu-toggle {
      display: flex;
    }

    nav .links {
      position: absolute;
      top: calc(100% + 0.75rem);
      right: 0;
      z-index: 6;
      display: none;
      min-width: min(82vw, 320px);
      padding: 1rem;
      border: 6px solid #fff;
      border-radius: 1rem;
      background: rgba(245, 245, 245, 0.96);
      box-shadow: 0 12px 24px 0 rgba(0,0,0,0.25);
      text-align: center;
      flex-direction: column;
      gap: 0.85em;
    }

    nav .links.is-open {
      display: flex;
    }

    nav .links a::after {
      content: none;
    }

    .menu-toggle.is-open span:nth-child(1) {
      -webkit-transform: translateY(8px) rotate(45deg);
      transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
      -webkit-transform: translateY(-8px) rotate(-45deg);
      transform: translateY(-8px) rotate(-45deg);
    }
  }
}

.hero {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  
  .bg {
    /* position: absolute; */
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 1.5;
    min-height: 800px;
    pointer-events: none;

    @media(max-width: 768px) {
      aspect-ratio: 0.8;
      min-height: unset;
    }
  }
}

.content-panel {
  --panel-border: 74px;
  --panel-corner-cut: min(48px, calc(var(--panel-border) * 0.65));
  --panel-padding: clamp(1.5rem, 3vw, 2.5rem);

  position: relative;
  z-index: 2;
  min-height: 400px;
  top: -4em;
  padding: var(--panel-padding);
  background: transparent;

  h1 { 
    font-size: 2em;
    text-align: center;
    font-style: italic;

    @media(max-width: 768px) {
      font-size: 1.375em;
    }
  }
}

.content-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgb(252,252,251);
  pointer-events: none;
  -webkit-clip-path: polygon(
    var(--panel-corner-cut) 0,
    calc(100% - var(--panel-corner-cut)) 0,
    100% var(--panel-corner-cut),
    100% calc(100% - var(--panel-corner-cut)),
    calc(100% - var(--panel-corner-cut)) 100%,
    var(--panel-corner-cut) 100%,
    0 calc(100% - var(--panel-corner-cut)),
    0 var(--panel-corner-cut)
  );
  clip-path: polygon(
    var(--panel-corner-cut) 0,
    calc(100% - var(--panel-corner-cut)) 0,
    100% var(--panel-corner-cut),
    100% calc(100% - var(--panel-corner-cut)),
    calc(100% - var(--panel-corner-cut)) 100%,
    var(--panel-corner-cut) 100%,
    0 calc(100% - var(--panel-corner-cut)),
    0 var(--panel-corner-cut)
  );
}

.content-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: var(--panel-border) solid transparent;
  border-image-source: url("../img/azulejo-moldura.png");
  border-image-slice: 74;
  border-image-repeat: stretch;
}

.container-localizacao {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-wrap: wrap;

  @media(max-width: 992px) {
    grid-template-columns: 1fr;
    .coluna-mapa {
      aspect-ratio: 1.5;
    }
  }


  .coluna-info {
    padding: 3em 0;
    @media(max-width: 768px) {
      padding: 1em 0 3em;
    }
  }

  .coluna-mapa { 
    overflow: hidden;
    border-radius: 2em;
    border: 10px solid #fff;
    box-shadow: 0 12px 24px 0 rgba(0,0,0,0.25);

    iframe {
      margin: 0;
      width: 100%;
      height: 100%;
    }
  }

  .informacoes {
    text-align: center;
    font-family: 'Powell', serif;
    font-size: 1.75em;

    @media(max-width: 768px) {
      font-size: 1.375em;
    }

    p {
      line-height: 1.25;
    }

    .arabesco {
      width: auto;
      height: 1.5em;
      margin-left: auto;
      margin-right: auto;
      margin-top: 0.5em;
    }

    .card-contato {
      /* border: 1px dashed red; */
      margin-top: 1em;
      width: 90%;
      margin-left: auto;
      position: relative;

      @media(max-width: 768px) {
        width: 95%;
      }

      .bg {
        width: 100%;
      }

      .texto {
        /* border: 1px dashed red; */
        font-style: italic;
        position: absolute;
        color: #fff;
        z-index: 2;
        top: 20%;
        left: 20%;
        width: 70%;
        text-align: center;
        
        @media(max-width: 1200px) {
          font-size: 1.5rem;
        }
        
        @media(max-width: 992px) {
          font-size: 2rem !important;
        }

        @media(max-width: 600px) {
          font-size: 1.375rem !important;
        }

      }
    
      
    }
  }
}

.divider {
  /* border: 1px dashed red; */
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 3em;
  margin-bottom: 3em;

  .line {
    height: 2px;
    background: #044318;
    flex-grow: 1;
    margin-top: 8px;
  }

  img {
    width: auto;
    height: 2em;
    flex-grow: 0;
    flex-shrink: 0;
  }
}

.obs-horario {
  font-family: 'Powell', serif;
  text-align: center;
  margin-top: -2em;
  font-size: 1.125em;
}
.container-programacao {
  margin-top: 2.5em;
  margin-bottom: 4em;
  display: grid;
  grid-template-columns: 1fr 2.5fr 1fr;
  gap: 3.5em 0;
  @media(max-width: 992px) {
    grid-template-columns: 1fr;
  }


  .coluna-horarios {
    /* border: 1px dashed red; */
    display: flex;
    flex-direction: column;
    gap: 1em 0;
    padding: 0 1em;

    .item {
      font-family: 'Powell', serif;
      /* border: 1px dashed red; */
      width: 100%;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
      background: url(../img/bg-item-programacao.png);
      background-size: 100% 2.75em;
      background-repeat: no-repeat;
      background-position: top center;
      font-size: 1.2em;

      display: flex;
      justify-content: center;
      color: #fff;
      height: 2.75em;
      padding-top: 0.75em;

      span {
        color: #fcaa0d;
        margin-right: 0.375em
      }
    }
  }

  .coluna-logo {
    h2 {
      text-align: center;
      font-size: 1.325em;
      margin-bottom: 1em;
    }

    img {
      margin-left: auto;
      margin-right: auto;
      width: 120px;
      height: auto;
      max-width: 90%;
    }
  }
}

.ilustracao {
  /* border: 1px dashed red; */
  max-width: none;
  margin-left: -2%;
  margin-bottom: -1em;
  width: calc(100% + 4%);
}

section.contato {
  position: relative;
  isolation: isolate;
  z-index: 3;
  margin-top: -10em;
  border-radius: 2em;
  border: 10px solid #fff;
  box-shadow: 0 12px 24px 0 rgba(0,0,0,0.25);
  width: 85vw;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background: #f5f5f5;
  padding-top: 1em;
  padding-left: 1em;
  padding-right: 1em;
  
  h1 {
    margin-bottom: 0.25em;
  }
  h2 {
    font-size: 1.25em;
    font-style: italic;
    text-align: center;
    line-height: 1.1;
  }

  form {
    margin-top: 2em;
    margin-bottom: 2em;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1em;
    font-family: 'Powell', serif;

    input, select {
      -webkit-appearance: none;
      appearance: none;
      border: 1px solid #226fa5;
      border-radius: 6px;
      padding: 4px 8px;
      height: 2em;
      text-align: center;
      color: var(--default-color);
      font-size: 1.25em;
      &::placeholder {
        color: #66aecd
      }
    }
    select {
      padding-left: 2rem;
      padding-right: 2rem;
      background-color: #fff;
      background-image:
        linear-gradient(45deg, transparent 50%, #226fa5 50%),
        linear-gradient(135deg, #226fa5 50%, transparent 50%);
      background-position:
        calc(100% - 17px) 50%,
        calc(100% - 11px) 50%;
      background-size:
        6px 6px,
        6px 6px;
      background-repeat: no-repeat;
    }
    select:invalid {
      color: #66aecd;
    }
    select option {
      color: var(--default-color);
    }
    input[type="submit"] {
      margin-top: 1rem;
      font-size: 1.3em;
      width: 50%;
      background: #095e90;
      color: #fff;
      align-self: center;
      transition: filter .15s ease;
      font-weight: bold;

      &:hover{
        -webkit-filter: brightness(1.1);
        filter: brightness(1.1);
      }

      &:disabled {
        cursor: wait;
        -webkit-filter: grayscale(0.35);
        filter: grayscale(0.35);
        opacity: 0.7;
      }
    }
  }
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
}

.form-modal[hidden] {
  display: none;
}

.form-modal__dialog {
  width: min(90vw, 420px);
  padding: 2rem;
  border: 8px solid #fff;
  border-radius: 1.25rem;
  background: #f5f5f5;
  box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.25);
  text-align: center;
}

.form-modal__dialog h2 {
  margin-bottom: 0.75rem;
  color: var(--title-color);
  font-style: italic;
}

.form-modal__dialog p {
  margin-bottom: 1.5rem;
  color: var(--default-color);
  font-family: 'Powell', serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.form-modal__dialog button {
  min-width: 120px;
  padding: 0.45rem 1.25rem;
  border-radius: 6px;
  background: #095e90;
  color: #fff;
  font-family: 'Powell', serif;
  font-size: 1.125rem;
  font-weight: bold;
}

section.arvore-left img {
  width: 1800px;
  max-width: none;
  position: absolute;
  z-index: 3;
  left: 50%;
  -webkit-transform: translateX(calc(-50% - 1450px)) rotate(-10deg);
  transform: translateX(calc(-50% - 1450px)) rotate(-10deg);
  pointer-events: none;
}



section.arvore-right img {
  width: 2000px;
  max-width: none;
  position: relative;
  right: -50%;
  margin-bottom: -1000px;
  pointer-events: none;
}

section.arvore-bottom {
  /* border: 1px dashed red; */
  margin-top: -900px;
  @media(max-width: 1300px) {
    margin-top: -700px; 
  }
  img {
    width: 2000px;
    max-width: none;
    position: relative;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    pointer-events: none;

    @media(max-width: 1300px) {
      width: 1500px;
    }
  }
}

section.patrocinadores {
  margin-top: 2em;
  margin-bottom: 4em;

  .container-patrocinadores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;

    img {
      width: 150px;
      aspect-ratio: 120/80;
      object-fit: contain;
      object-position: center center;

      @media(max-width: 768px) {
        width: 110px;
      }
    }

  }

}

footer {
  font-family: 'Powell', serif;
  .img-footer {
    width: 100%;
  }

  .content-footer {
    background: url(../img/textura-footer.png);
    background-repeat: repeat;
    color: #fff;
    padding: 2.5em 0;

    .contatos-footer {
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 1.5em 2em;
      justify-content: space-between;
      font-size: 1.625em;
      @media(max-width: 768px) {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
      }

      .coluna {
        flex-shrink: 1;
        flex-grow: 0;
      }

      .coluna-telefone {
        h3 {
          font-size: 1em;
          margin-top: 0;
          margin-bottom: 0.125em;
        }
        p {
          line-height: 1.25;
        } 
      }

      .coluna-redes-sociais {
        display: flex;
        gap: 0 1.5em;

        a {
          width: 34px;
          height: 34px;
          display: inline-block;
          text-decoration: none;
          transition: filter .15s ease;
          &:hover {
            -webkit-filter: brightness(1.1);
            filter: brightness(1.1);
          }

          img {
            display: block;
            width: 34px;
            height: 34px;
            object-fit: contain;
          }
        }
      }
    }

  }
}
