:root {
      --preto: #000000;
      --principal: #ff3d00;
      --principal-hover: #e53900;
      --texto: #222222;
      --texto-secundario: #666666;
      --fundo: #f4f4f4;
      --branco: #ffffff;
      --borda: #e6e6e6;
      --sucesso: #0b7a38;
      --erro: #b3261e;
    }

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

    html {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    body {
      width: 100%;
      max-width: 100%;
      min-height: 100vh;
      display: flex;
      overflow-x: hidden;
      flex-direction: column;
      font-family: "Segoe UI", Arial, sans-serif;
      color: var(--texto);
      background: var(--fundo);
    }

    button,
    input,
    textarea {
      font: inherit;
    }

    img {
      display: block;
      max-width: 100%;
    }

    /* CABEÇALHO */

    .topo {
      position: sticky;
      top: 0;
      z-index: 1000;
      display: grid;
      width: 100%;
      max-width: 100%;
      grid-template-columns: auto minmax(0, 1fr) minmax(200px, 320px);
      align-items: center;
      gap: 20px;
      overflow: hidden;
      padding: 12px 24px;
      background: var(--preto);
      color: #ffffff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    }

    .logo {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      text-decoration: none;
    }

    .logo img {
      width: auto;
      height: 46px;
      max-width: 190px;
      object-fit: contain;
    }

    .menu {
      display: flex;
      min-width: 0;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 24px;
    }

    .menu a {
      color: #ffffff;
      font-size: 18px;
      font-weight: 700;
      text-decoration: none;
      transition: color 0.2s;
    }

    .menu a:hover,
    .menu a:focus-visible,
    .menu a.ativo {
      color: var(--principal);
    }

    .busca-box {
      display: flex;
      width: 100%;
      max-width: 320px;
      min-width: 0;
      justify-self: end;
      overflow: hidden;
      border-radius: 8px;
      background: #ffffff;
    }

    .busca-box input {
      width: 100%;
      min-width: 0;
      padding: 11px 13px;
      border: 0;
      outline: 0;
      color: #222222;
      background: #ffffff;
      font-size: 15px;
    }

    .busca-box button {
      flex-shrink: 0;
      padding: 0 16px;
      border: 0;
      background: #242424;
      color: #ffffff;
      cursor: pointer;
      transition: background 0.2s;
    }

    .busca-box button:hover,
    .busca-box button:focus-visible {
      background: var(--principal);
    }

    /* CONTEÚDO */

    main {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      flex: 1;
      padding: 42px 20px;
    }

    .contato-wrapper {
      width: 100%;
      max-width: 1040px;
      margin: 0 auto;
    }

    .contato-topo {
      margin-bottom: 26px;
      text-align: center;
    }

    .contato-topo h1 {
      font-size: 36px;
      line-height: 1.2;
    }

    .contato-topo p {
      max-width: 680px;
      margin: 10px auto 0;
      color: var(--texto-secundario);
      font-size: 17px;
      line-height: 1.7;
    }

    .contato-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
      gap: 24px;
      align-items: start;
    }

    .contato-info,
    .form-card {
      padding: 28px;
      border: 1px solid var(--borda);
      border-radius: 16px;
      background: var(--branco);
      box-shadow: 0 7px 22px rgba(0, 0, 0, 0.07);
    }

    .contato-info h2,
    .form-card h2 {
      margin-bottom: 14px;
      font-size: 24px;
    }

    .contato-info p {
      color: var(--texto-secundario);
      font-size: 16px;
      line-height: 1.7;
    }

    .contato-lista {
      display: grid;
      gap: 12px;
      margin-top: 22px;
    }

    .contato-item {
      padding: 14px;
      border: 1px solid #eeeeee;
      border-radius: 10px;
      background: #fafafa;
    }

    .contato-item strong {
      display: block;
      margin-bottom: 4px;
    }

    .contato-item span {
      color: var(--texto-secundario);
      font-size: 14px;
      line-height: 1.5;
    }

    .campo {
      margin-top: 16px;
    }

    .campo:first-of-type {
      margin-top: 0;
    }

    .campo label {
      display: block;
      margin-bottom: 7px;
      font-size: 15px;
      font-weight: 700;
    }

    .campo input,
    .campo textarea {
      width: 100%;
      padding: 13px 14px;
      border: 1px solid #cccccc;
      border-radius: 8px;
      outline: none;
      background: #ffffff;
      color: var(--texto);
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .campo textarea {
      min-height: 145px;
      resize: vertical;
      line-height: 1.5;
    }

    .campo input:focus,
    .campo textarea:focus {
      border-color: var(--principal);
      box-shadow: 0 0 0 3px rgba(255, 61, 0, 0.12);
    }

    .campo small {
      display: block;
      margin-top: 6px;
      color: var(--texto-secundario);
      font-size: 12px;
    }

    .btn-enviar {
      width: 100%;
      margin-top: 20px;
      padding: 14px 18px;
      border: 0;
      border-radius: 9px;
      background: var(--principal);
      color: #ffffff;
      font-size: 17px;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
    }

    .btn-enviar:hover,
    .btn-enviar:focus-visible {
      background: var(--principal-hover);
      transform: translateY(-1px);
    }

    .btn-enviar:disabled {
      background: #aaaaaa;
      cursor: wait;
      transform: none;
    }

    .mensagem-status {
      display: none;
      margin-top: 16px;
      padding: 13px 14px;
      border-radius: 8px;
      font-size: 14px;
      line-height: 1.5;
    }

    .mensagem-status.sucesso {
      display: block;
      border: 1px solid #b8dfc6;
      background: #edf9f1;
      color: var(--sucesso);
    }

    .mensagem-status.erro {
      display: block;
      border: 1px solid #efc1bd;
      background: #fff1f0;
      color: var(--erro);
    }

    .campo-armadilha {
      position: absolute;
      left: -9999px;
      opacity: 0;
      pointer-events: none;
    }

    /* RODAPÉ */

    footer {
      margin-top: auto;
      padding: 24px;
      background: #000000;
      color: #ffffff;
      text-align: center;
    }

    footer p {
      font-size: 14px;
    }

    /* RESPONSIVO */

    @media (max-width: 1100px) {
      .topo {
        grid-template-columns: auto minmax(0, 1fr);
      }

      .busca-box {
        width: 100%;
        max-width: none;
        grid-column: 1 / -1;
        justify-self: stretch;
      }

      .menu {
        justify-content: flex-end;
        gap: 18px;
      }
    }

    @media (max-width: 800px) {
      .contato-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 760px) {
      .topo {
        display: flex;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        padding: 14px 18px;
      }

      .menu {
        justify-content: center;
        gap: 18px;
      }

      .menu a {
        font-size: 16px;
      }

      .busca-box {
        width: 100%;
      }

      main {
        padding: 28px 12px;
      }

      .contato-topo h1 {
        font-size: 30px;
      }
    }

    @media (max-width: 500px) {
      .contato-info,
      .form-card {
        padding: 20px;
        border-radius: 13px;
      }

      .contato-topo h1 {
        font-size: 27px;
      }

      .contato-topo p {
        font-size: 15px;
      }
    }
