* { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --bg: #0A0A0A;
      --surface: #151210;
      --surface2: #201915;
      --accent: #F04801;
      --accent2: #FF8B4A;
      --text: #F4EEE8;
      --muted: #A5978D;
      --border: rgba(244,238,232,0.1);
      --font-head: 'Syne', sans-serif;
      --font-body: 'DM Sans', sans-serif;
    }

    html { scroll-behavior: smooth; overflow-x: hidden; }
    body { background: var(--bg); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }

    img,
    video {
      display: block;
      max-width: 100%;
    }

    /* NAV */
    nav {
      position: sticky; top: 0; z-index: 100;
      display: flex; justify-content: space-between; align-items: center;
      padding: 1.2rem 2.5rem;
      background: rgba(10,10,10,0.92);
      /* CORREÇÃO: fallback para navegadores sem suporte a backdrop-filter */
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }

    .logo {
      display: inline-flex; align-items: center;
      color: var(--text); text-decoration: none;
    }

    /*
     * CORREÇÃO: Removida a regra genérica ".logo img { height: 64px }" que
     * conflitava com as regras mais específicas abaixo. As alturas corretas
     * ficam apenas nos seletores específicos de cada contexto.
     */
    nav .logo img {
      display: block;
      width: auto;
      height: 120px;
    }

    footer .logo img {
      display: block;
      width: auto;
      height: 64px;
    }

    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
    .nav-links a:hover { color: var(--text); }

    .btn-nav {
      background: var(--accent); color: #0A0A0A;
      border: none; padding: 0.6rem 1.4rem; border-radius: 100px;
      font-family: var(--font-body); font-weight: 500; font-size: 0.9rem;
      cursor: pointer; transition: transform 0.15s, opacity 0.15s;
      text-decoration: none; display: inline-block;
    }
    .btn-nav:hover { transform: scale(1.04); }

    /* HERO */
    .hero {
      /*
       * CORREÇÃO: Removido o calc(100vh - 96px) que assumia altura fixa da nav.
       * Usamos uma variável CSS atualizada via JS, com fallback razoável de 80px.
       */
      --nav-height: 80px;
      min-height: calc(100vh - var(--nav-height));
      display: flex; align-items: flex-start;
      padding: 1.6rem 2.5rem 4rem;
      position: relative; overflow: hidden;
    }

    .hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
    .hero-circle {
      position: absolute; border-radius: 50%;
      filter: blur(80px); opacity: 0.18;
    }
    .hero-circle-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -100px; }
    .hero-circle-2 { width: 400px; height: 400px; background: #9a2f00; bottom: -100px; left: -80px; }

    .hero-inner { position: relative; z-index: 1; max-width: 900px; }

    .hero-tag {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--surface2); border: 1px solid var(--border);
      padding: 0.4rem 1rem; border-radius: 100px;
      font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem;
    }
    .hero-tag span {
      width: 6px; height: 6px; background: var(--accent);
      border-radius: 50%; display: inline-block;
      animation: pulse 2s infinite;
    }

    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

    .hero h1 {
      font-family: var(--font-head); font-weight: 800;
      font-size: clamp(2.4rem, 5.2vw, 4.30rem);
      line-height: 1.05; letter-spacing: -0.04em;
      margin-bottom: 1.5rem;
    }
    .hero-line { display: block; }
    .hero h1 em { color: var(--accent); font-style: normal; }
    .hero h1 .stroke { -webkit-text-stroke: 1px var(--text); color: transparent; }

    .hero-sub {
      font-size: 1.15rem; color: var(--muted); max-width: 560px;
      line-height: 1.7; margin-bottom: 2.5rem;
    }

    .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

    .btn-primary {
      background: var(--accent); color: #0A0A0A;
      border: none; padding: 0.9rem 2rem; border-radius: 100px;
      font-family: var(--font-body); font-weight: 500; font-size: 1rem;
      cursor: pointer; transition: transform 0.15s; text-decoration: none;
      display: inline-block;
    }
    .btn-primary:hover { transform: scale(1.03); }

    .btn-outline {
      background: transparent; color: var(--text);
      border: 1px solid var(--border); padding: 0.9rem 2rem; border-radius: 100px;
      font-family: var(--font-body); font-weight: 400; font-size: 1rem;
      cursor: pointer; transition: border-color 0.2s; text-decoration: none;
      display: inline-block;
    }
    .btn-outline:hover { border-color: rgba(240,237,230,0.4); }

    /* NUMBERS */
    .numbers {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 1px; background: var(--border);
      border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    }
    .number-card {
      background: var(--bg); padding: 2rem;
      display: flex; flex-direction: column; gap: 0.4rem;
    }
    .number-card .num {
      font-family: var(--font-head); font-size: 2.8rem; font-weight: 800;
      letter-spacing: -0.04em; color: var(--accent);
    }
    .number-card .label { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

    /* SECTION BASE */
    .section { padding: 5rem 2.5rem; max-width: 1100px; margin: 0 auto; }

    .section-label {
      font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--accent2); font-weight: 500; margin-bottom: 1rem;
    }

    .section-title {
      font-family: var(--font-head); font-weight: 800;
      font-size: clamp(2rem, 4vw, 3.2rem);
      letter-spacing: -0.03em; line-height: 1.1;
      margin-bottom: 3rem;
    }
    .section-title em { color: var(--accent); font-style: normal; }

    /* PROBLEMS */
    .problems-grid {
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px; background: var(--border);
      border: 1px solid var(--border);
    }

    .problem-card {
      background: var(--surface); padding: 2rem;
      transition: background 0.2s;
    }
    .problem-card:hover { background: var(--surface2); }

    .problem-number {
      font-family: var(--font-head); font-size: 2.5rem; font-weight: 800;
      color: transparent; margin-bottom: 1rem; letter-spacing: -0.05em;
      -webkit-text-stroke: 1px var(--border);
    }
    .problem-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.6rem; }
    .problem-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

    /* SERVICES */
    .services-wrap { background: var(--surface); padding: 5rem 2.5rem; }
    .services-inner { max-width: 1100px; margin: 0 auto; }

    .services-carousel-wrap {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 1rem;
      align-items: center;
      margin-top: 3rem;
    }

    /*
     * CORREÇÃO: Adicionado min-width: 0 na coluna 1fr do grid do carousel
     * para evitar overflow em alguns navegadores.
     */
    .services-carousel-wrap > *:nth-child(2) {
      min-width: 0;
    }

    .services-carousel {
      display: flex;
      gap: 1.5rem;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      scrollbar-width: none;
    }
    .services-carousel::-webkit-scrollbar { display: none; }

    .service-card {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.7rem 1.8rem 1.8rem;
      background:
        linear-gradient(180deg, rgba(240,237,230,0.015), transparent 45%),
        var(--bg);
      transition: border-color 0.2s, transform 0.2s, background 0.2s;
      min-width: calc((100% - 3rem) / 3);
      scroll-snap-align: start;
      min-height: 246px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }
    .service-card:hover {
      border-color: rgba(240,72,1,0.28);
      background:
        linear-gradient(180deg, rgba(240,72,1,0.04), transparent 45%),
        var(--bg);
      transform: translateY(-3px);
    }

    .service-index {
      display: inline-flex;
      align-items: center;
      margin-bottom: 1.8rem;
      color: rgba(240,237,230,0.34);
      font-family: var(--font-head);
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

    .service-index::after {
      content: "";
      width: 36px;
      height: 1px;
      background: rgba(240,237,230,0.14);
      margin-left: 0.75rem;
    }

    .carousel-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--text);
      font-size: 1.1rem;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, transform 0.2s;
    }
    .carousel-btn:hover {
      border-color: rgba(240,72,1,0.5);
      color: var(--accent);
      transform: scale(1.06);
    }

    .carousel-dots {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 1.25rem;
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      border: none;
      background: rgba(240,237,230,0.25);
      cursor: pointer;
      transition: transform 0.2s, background 0.2s;
    }
    .carousel-dot.active {
      background: var(--accent);
      transform: scale(1.15);
    }

    .service-card h3 {
      font-family: var(--font-head);
      font-size: 1.32rem;
      line-height: 1.12;
      font-weight: 700;
      letter-spacing: -0.035em;
      margin-bottom: 1.05rem;
      max-width: 14ch;
    }
    .service-card p {
      font-size: 1rem;
      color: var(--muted);
      line-height: 1.75;
      margin-top: auto;
      max-width: 30ch;
    }

    /* PROCESSO */
    .process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 3rem; }

    .step {
      display: grid; grid-template-columns: 60px 1fr;
      gap: 2rem; padding: 2rem 0;
      border-bottom: 1px solid var(--border);
      align-items: start;
    }
    .step:last-child { border-bottom: none; }

    .step-num {
      font-family: var(--font-head); font-size: 2rem; font-weight: 800;
      color: var(--accent); letter-spacing: -0.05em; line-height: 1;
    }
    .step-content h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.4rem; }
    .step-content p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

    /* PORTFOLIO */
    .portfolio-section {
      padding-top: 1rem;
    }

    .portfolio-header {
      display: flex;
      justify-content: flex-start;
      margin-bottom: 3rem;
    }

    .portfolio-heading {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      max-width: min(760px, 100%);
    }

    .portfolio-title {
      margin-bottom: 0;
      line-height: 1.02;
    }

    .portfolio-intro {
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.65;
      max-width: 34rem;
    }

    .portfolio-carousel-wrap {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 1rem;
      align-items: center;
    }

    /* CORREÇÃO: min-width: 0 na coluna 1fr do portfolio carousel também */
    .portfolio-carousel-wrap > *:nth-child(2) {
      min-width: 0;
    }

    .portfolio-grid {
      display: flex;
      gap: 1.25rem;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      scrollbar-width: none;
      padding: 0.5rem 0;
      align-items: stretch;
    }
    .portfolio-grid::-webkit-scrollbar { display: none; }

    .portfolio-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      min-height: 620px;
      min-width: clamp(280px, 46vw, 420px);
      max-width: 420px;
      display: flex;
      flex-direction: column;
      align-self: stretch;
      overflow: hidden;
      scroll-snap-align: center;
      opacity: 0.48;
      transform: scale(0.9);
      filter: saturate(0.75);
      transition: border-color 0.28s, transform 0.28s, background 0.28s, opacity 0.28s, filter 0.28s;
    }

    .portfolio-card:hover {
      border-color: rgba(240,72,1,0.35);
      background: var(--surface2);
      transform: translateY(-3px);
    }

    .portfolio-card-featured {
      background:
        radial-gradient(circle at top right, rgba(240,72,1,0.14), transparent 38%),
        var(--surface);
    }

    .portfolio-card.is-active {
      opacity: 1;
      transform: scale(1);
      filter: saturate(1);
      border-color: rgba(240,72,1,0.34);
    }

    .portfolio-card.is-near {
      opacity: 0.8;
      transform: scale(0.96);
      filter: saturate(0.9);
    }

    .portfolio-card.is-far {
      opacity: 0.5;
      transform: scale(0.9);
    }

    .portfolio-media {
      position: relative;
      min-height: 220px;
      border-bottom: 1px solid var(--border);
      background:
        linear-gradient(135deg, rgba(240,72,1,0.16), rgba(255,139,74,0.08)),
        #101010;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
    }

    .portfolio-media-video {
      min-height: 250px;
      background:
        radial-gradient(circle at top right, rgba(240,72,1,0.18), transparent 32%),
        linear-gradient(135deg, rgba(240,72,1,0.16), rgba(255,139,74,0.08)),
        #101010;
    }

    .portfolio-video {
      width: 100%;
      height: 100%;
      min-height: 220px;
      object-fit: cover;
      border-radius: 10px;
      display: block;
      background: #0b0b0b;
    }

    .portfolio-media-badge {
      position: absolute;
      top: 1rem;
      left: 1rem;
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 0.45rem 0.8rem;
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text);
      background: rgba(10,10,10,0.7);
      border: 1px solid rgba(240,237,230,0.12);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
    }

    .portfolio-media-placeholder {
      width: 100%;
      min-height: 150px;
      border: 1px dashed rgba(240,237,230,0.18);
      border-radius: 10px;
      background: rgba(10,10,10,0.3);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      text-align: center;
      padding: 1.5rem;
    }

    .portfolio-media-icon {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(240,237,230,0.08);
      color: var(--accent);
      font-size: 1.2rem;
      border: 1px solid rgba(240,237,230,0.1);
    }

    .portfolio-media-placeholder strong {
      font-family: var(--font-head);
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    .portfolio-media-placeholder span:last-child {
      color: var(--muted);
      font-size: 0.82rem;
      line-height: 1.5;
    }

    .portfolio-card-body {
      padding: 1.35rem 1.45rem 1.5rem;
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      justify-content: flex-start;
      gap: 0.9rem;
    }

    .portfolio-card-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      margin-bottom: 0.35rem;
    }

    .portfolio-tag,
    .portfolio-year {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 0.45rem 0.85rem;
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .portfolio-tag {
      background: rgba(240,72,1,0.1);
      color: var(--accent);
      border: 1px solid rgba(240,72,1,0.18);
    }

    .portfolio-year {
      color: var(--muted);
      background: rgba(240,237,230,0.04);
      border: 1px solid var(--border);
    }

    .portfolio-card h3 {
      font-family: var(--font-head);
      font-size: 1.1rem;
      line-height: 1.12;
      letter-spacing: -0.03em;
      margin-bottom: 0;
    }

    .portfolio-card p {
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.65;
      margin: 0;
    }

    /* CTA BAND */
    .cta-band {
      margin: 0 2.5rem; border-radius: 12px;
      background: var(--accent); padding: 4rem;
      display: flex; justify-content: space-between; align-items: center;
      flex-wrap: wrap; gap: 2rem;
    }
    .cta-band-text h2 {
      font-family: var(--font-head); font-weight: 800;
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      color: #0A0A0A; letter-spacing: -0.03em; margin-bottom: 0.5rem;
    }
    .cta-band-text p { color: rgba(10,10,10,0.65); font-size: 1rem; }

    .btn-dark {
      background: #0A0A0A; color: var(--accent);
      border: none; padding: 1rem 2.2rem; border-radius: 100px;
      font-family: var(--font-body); font-weight: 500; font-size: 1rem;
      cursor: pointer; transition: transform 0.15s; white-space: nowrap;
      text-decoration: none; display: inline-block;
    }
    .btn-dark:hover { transform: scale(1.03); }

    /* FAQ */
    .faq-item { border-bottom: 1px solid var(--border); padding: 1.4rem 0; }
    .faq-question {
      display: flex; justify-content: space-between; align-items: center;
      cursor: pointer; font-size: 1rem; font-weight: 500; gap: 1rem;
    }
    .faq-toggle {
      width: 28px; height: 28px; border-radius: 50%; background: var(--surface2);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; flex-shrink: 0; transition: transform 0.2s; color: var(--accent);
      user-select: none;
    }
    .faq-answer {
      font-size: 0.9rem; color: var(--muted); line-height: 1.7;
      /*
       * CORREÇÃO: max-height: 200px era pequeno demais e cortava respostas longas.
       * Aumentado para 600px — valor generoso que acomoda qualquer conteúdo
       * razoável mantendo a animação suave de abertura.
       */
      max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s;
    }
    .faq-answer.open { max-height: 600px; padding-top: 0.8rem; }
    .faq-toggle.open { transform: rotate(45deg); }

    /* CONTACT */
    .contact-section {
      padding-top: 1rem;
    }

    .contact-shell {
      border: 1px solid var(--border);
      border-radius: 18px;
      background:
        radial-gradient(circle at top right, rgba(240,72,1,0.09), transparent 30%),
        linear-gradient(180deg, rgba(240,237,230,0.02), transparent 35%),
        var(--surface);
      padding: 2.5rem;
      display: grid;
      grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
      gap: 2.4rem;
      align-items: start;
      overflow: hidden;
    }

    .contact-copy {
      color: var(--muted);
      font-size: 1rem;
      line-height: 1.8;
      max-width: 42ch;
    }

    .contact-side-link {
      display: inline-flex;
      align-items: center;
      margin-top: 1.5rem;
      padding: 0.8rem 1.15rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      color: var(--text);
      text-decoration: none;
      font-size: 0.9rem;
      transition: border-color 0.2s, color 0.2s, transform 0.2s;
    }

    .contact-side-link:hover {
      border-color: rgba(240,72,1,0.35);
      color: var(--accent);
      transform: translateY(-1px);
    }

    .contact-form {
      border: 1px solid var(--border);
      border-radius: 16px;
      background: rgba(10,10,10,0.52);
      padding: 1.5rem;
      display: grid;
      gap: 1.2rem;
      align-content: start;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }

    .contact-form-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.05rem;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }

    .contact-field {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }

    .contact-field-conditional {
      margin-top: -0.2rem;
    }

    .contact-field.is-hidden {
      display: none;
    }

    .contact-field-full {
      grid-column: 1 / -1;
    }

    .contact-field span {
      font-size: 0.74rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent2);
      font-weight: 500;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
      width: 100%;
      max-width: 100%;
      border: 1px solid rgba(240,237,230,0.12);
      border-radius: 12px;
      background: rgba(20,20,20,0.9);
      color: var(--text);
      font-family: var(--font-body);
      font-size: 1rem;
      line-height: 1.4;
      padding: 1rem 1.05rem;
      outline: none;
      transition: border-color 0.2s, background 0.2s;
      box-sizing: border-box;
    }

    .contact-field textarea {
      min-height: 150px;
      resize: vertical;
    }

    .contact-field input::placeholder,
    .contact-field textarea::placeholder {
      color: var(--muted);
    }

    .contact-field select {
      appearance: none;
      -webkit-appearance: none;
    }

    .contact-field input:focus,
    .contact-field select:focus,
    .contact-field textarea:focus {
      border-color: rgba(240,72,1,0.35);
      background: rgba(10,10,10,0.96);
    }

    .contact-consent {
      display: flex;
      align-items: flex-start;
      gap: 0.7rem;
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.6;
    }

    .contact-consent input {
      margin-top: 0.2rem;
      accent-color: var(--accent);
    }

    .contact-submit {
      width: 100%;
      border: none;
      border-radius: 999px;
      background: var(--accent);
      color: #0A0A0A;
      font-family: var(--font-body);
      font-size: 1rem;
      font-weight: 600;
      padding: 1rem 1.4rem;
      cursor: pointer;
      transition: transform 0.15s, opacity 0.15s;
    }

    .contact-submit:hover {
      transform: translateY(-1px);
      opacity: 0.96;
    }

    .contact-note {
      color: var(--muted);
      font-size: 0.82rem;
      line-height: 1.6;
    }

    /* FOOTER */
    footer {
      border-top: 1px solid var(--border); padding: 3rem 2.5rem;
      display: flex; justify-content: space-between; align-items: center;
      flex-wrap: wrap; gap: 1rem; margin-top: 5rem;
    }
    footer p { font-size: 0.82rem; color: var(--muted); }

    @media (max-width: 980px) {
      .problems-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
      nav {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
      }
      .nav-links { display: none; }
      nav .logo img { height: 68px; }
      .btn-nav {
        padding: 0.68rem 0.95rem;
        font-size: 0.8rem;
        max-width: 48vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .hero {
        min-height: auto;
        padding: 1.2rem 1rem 2.6rem;
      }
      .hero h1 {
        font-size: clamp(1.45rem, 7vw, 2.1rem);
        line-height: 0.98;
      }
      .hero-sub {
        font-size: 0.88rem;
        line-height: 1.5;
        max-width: none;
      }
      .hero-ctas {
        flex-direction: column;
      }
      .btn-primary,
      .btn-outline {
        width: 100%;
        text-align: center;
      }

      .numbers { padding: 0; }
      .number-card { padding: 1.35rem; }
      .number-card .num { font-size: 2.15rem; }

      .section,
      .services-wrap {
        padding: 3.3rem 1rem;
      }
      .section-title {
        font-size: clamp(1.42rem, 7vw, 1.9rem);
        line-height: 1.04;
        margin-bottom: 1.7rem;
      }
      .cta-band-text h2 br {
        display: none;
      }
      #processo .section-title {
        max-width: 12ch;
      }
      #processo .section-title em {
        display: block;
      }

      .problem-card {
        padding: 1.35rem;
      }
      .problems-grid {
        grid-template-columns: 1fr;
      }

      .services-carousel-wrap {
        grid-template-columns: 1fr;
        overflow: hidden;
      }
      .carousel-btn,
      .carousel-dots {
        display: none;
      }
      .services-carousel {
        display: flex;
        gap: 0.9rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
      }
      .service-card {
        flex: 0 0 calc(100vw - 2rem);
        width: calc(100vw - 2rem);
        min-width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        min-height: 212px;
        padding: 1.2rem 1rem 1.15rem;
        scroll-snap-align: start;
        box-sizing: border-box;
      }
      .service-index {
        margin-bottom: 0.9rem;
      }
      .service-card h3 {
        font-size: 0.95rem;
        line-height: 1.12;
        max-width: none;
        margin-bottom: 0.7rem;
      }
      .service-card p {
        font-size: 0.8rem;
        line-height: 1.52;
        max-width: none;
      }

      .step {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.8rem;
        padding: 1.35rem 0;
      }
      .step-num {
        font-size: 1.6rem;
        min-width: 42px;
      }
      .step-content h3,
      .faq-question,
      .problem-card h3 {
        font-size: 0.9rem;
        line-height: 1.35;
      }
      .step-content p,
      .faq-answer,
      .problem-card p {
        font-size: 0.78rem;
        line-height: 1.52;
      }

      .portfolio-section,
      .contact-section {
        padding-top: 0;
      }
      .contact-shell {
        grid-template-columns: 1fr;
      }
      .portfolio-heading {
        max-width: none;
      }
      .portfolio-intro,
      .contact-copy {
        max-width: none;
      }
      .portfolio-carousel-wrap {
        grid-template-columns: 1fr;
      }
      .portfolio-carousel-wrap .carousel-btn {
        display: none;
      }
      .portfolio-grid {
        gap: 1rem;
      }
      .portfolio-card {
        min-height: auto;
        min-width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        opacity: 1;
        transform: none;
        filter: none;
      }
      .portfolio-media,
      .portfolio-media-video,
      .portfolio-video {
        min-height: 190px;
      }
      .portfolio-card-body {
        padding: 1.05rem 1.05rem 1.15rem;
      }
      .portfolio-card h3 {
        font-size: 0.88rem;
        line-height: 1.15;
      }
      .portfolio-card p {
        font-size: 0.76rem;
        line-height: 1.45;
      }

      .contact-shell {
        padding: 1.35rem;
        gap: 1.4rem;
      }
      .contact-form {
        padding: 1.1rem;
      }
      .contact-form-grid {
        grid-template-columns: 1fr;
      }
      .contact-side-link {
        width: 100%;
        justify-content: center;
        text-align: center;
      }

      .cta-band {
        margin: 0 1rem;
        padding: 2.3rem 1.2rem;
      }
      .cta-band-text h2 { font-size: 1.28rem; }
      .cta-band-text p { font-size: 0.84rem; }
      footer {
        padding: 2rem 1rem;
        flex-direction: column;
        align-items: flex-start;
      }
    }

    @media (max-width: 480px) {
      nav {
        padding: 0.8rem 0.85rem;
      }
      nav .logo img { height: 58px; }
      .btn-nav {
        font-size: 0.72rem;
        max-width: 50vw;
      }
      .hero {
        padding: 1rem 0.85rem 2.2rem;
      }
      .hero h1 {
        font-size: clamp(1.22rem, 6.5vw, 1.72rem);
      }
      .hero-sub {
        font-size: 0.82rem;
      }
      .section,
      .services-wrap,
      .cta-band {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
      }
      .section-title {
        font-size: clamp(1.26rem, 6.4vw, 1.65rem);
      }
      #processo .section-title {
        max-width: 10ch;
      }
      .service-card,
      .portfolio-card {
        flex-basis: calc(100vw - 1.7rem);
        width: calc(100vw - 1.7rem);
        min-width: calc(100vw - 1.7rem);
        max-width: calc(100vw - 1.7rem);
      }
      .step {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0.8rem;
      }
      .step-num {
        font-size: 1.45rem;
        min-width: 40px;
      }
    }

    /*
     * CORREÇÃO: Script sugerido para atualizar --nav-height dinamicamente.
     * Adicionar no HTML, antes do </body>:
     *
     * <script>
     *   const nav = document.querySelector('nav');
     *   const update = () =>
     *     document.documentElement.style.setProperty('--nav-height', nav.offsetHeight + 'px');
     *   update();
     *   window.addEventListener('resize', update);
     * </script>
     */
