﻿/* ================================================
       ESTILOS BASE
       ================================================ */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Roboto', sans-serif;
      background: #ffffff;
      margin: 0;
      padding: 0;
      min-height: 100vh;
      overflow-x: hidden;
    }

    :root {
      --layout-left-gutter: clamp(16px, 4vw, 72px);
      --layout-right-gutter: clamp(16px, 4vw, 64px);
      --sidebar-width: clamp(245px, 23vw, 340px);
      --sidebar-gap: clamp(16px, 2vw, 28px);
      --content-max-width: 740px;
      --below-navbar-gap: 50px;
    }
    /* ================================================
       NAVBAR DESKTOP - IGUAL AO INICIO.HTML
       ================================================ */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 90px;
      background: linear-gradient(to bottom, #000000 0%, #3A024E 80%);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 clamp(16px, 5vw, 80px);
      box-sizing: border-box;
      z-index: 1000;
      transition: transform 0.28s ease, opacity 0.28s ease;
      will-change: transform;
    }

    .navbar.is-hidden {
      transform: translateY(calc(-100% - 2px));
      opacity: 0.98;
      pointer-events: none;
    }

    .navbar-logo {
      display: flex;
      align-items: center;
      gap: 15px;
      text-decoration: none;
    }

    .navbar-logo img {
      width: 85px;
      height: 70px;
    }

    .navbar-logo span {
      font-size: 28px;
      font-weight: bold;
      color: white;
    }


    /* ================================================
       SEÇÃO DESKTOP
       ================================================ */
    .section {
      margin-top: 160px;
      padding: 0 0 44px 0;
      max-width: var(--content-max-width);
      margin-left: var(--layout-left-gutter);
      margin-right: auto;
      width: min(
        var(--content-max-width),
        calc(100vw - var(--layout-left-gutter) - var(--layout-right-gutter) - var(--sidebar-width) - var(--sidebar-gap))
      );
    }

      .topic-sidebar {
        position: fixed;
        top: var(--sidebar-top, 176px);
        left: auto;
        right: var(--layout-right-gutter);
        width: var(--sidebar-width);
        z-index: 990;
        background: #f5f5f7;
        border: 1px solid #dfcfff;
        border-radius: 12px;
        padding: 16px 14px;
        box-shadow: 0 4px 14px rgba(44, 13, 73, 0.09);
        max-height: var(--sidebar-max-height, calc(100vh - 200px));
        overflow: hidden;
      }

      .topic-sidebar h2 {
        margin: 0 0 12px 0;
        font-size: 18px;
        color: #2f2f2f;
      }

      .topic-sidebar a {
        display: block;
        text-decoration: none;
        color: #2f2f2f;
        font-weight: 500;
        border-radius: 8px;
        padding: 6px 8px;
        margin-bottom: 4px;
        transition: background 0.2s ease, transform 0.2s ease;
      }

      .topic-sidebar a:hover,
      .topic-sidebar a.active {
        background: rgba(110, 110, 120, 0.14);
        transform: translateX(2px);
      }

      .topic-sidebar a.active {
        color: #3b1859;
        font-weight: 700;
        border-left: 3px solid #6b2fb3;
      }

      .hero-section {
        position: relative;
        text-align: left;
        right: 0;
        color: #5E097E;
        margin-top: 0;
        margin-bottom: 28px;
      }

      .hero-section h1 {
          font-size: clamp(2rem, 3.4vw, 3.1rem);
          margin: 0 0 20px 0;
          font-weight: 700;
          color: #5E097E;
          line-height: 1.12;
      }

      .hero-section p {
          font-size: clamp(1.05rem, 1.5vw, 1.35rem);
          opacity: 0.95;
          margin: 0;
          color: #333333b2;
      }

    
    /* Breadcrumb / Migalha de pão (desktop) */
    .breadcrumb {
      display: flex; /* visível no desktop */
      position: fixed;
      top: 100px; /* ajustado via JS também */
      left: 0;
      right: 0;
      width: 100%;
      z-index: 995;
      justify-content: flex-start;
      margin-bottom: 0;
      padding: 8px 0;
      box-sizing: border-box;
      padding-left: clamp(16px, 5vw, 80px);
      background: linear-gradient(to bottom, #6b2fb3 0%, #5E097E 100%);
      box-shadow: 0 6px 18px rgba(10,6,20,0.04);
      transition: transform 0.28s ease, opacity 0.28s ease;
      will-change: transform;
    }

    .breadcrumb.is-hidden {
      transform: translateY(calc(-100% - var(--navbar-height, 90px)));
      opacity: 0;
      pointer-events: none;
    }

    .breadcrumb .crumbs {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
      white-space: nowrap;
      width: 100%;
      padding: 0 clamp(8px, 2vw, 24px);
      box-sizing: border-box;
      background: transparent;
      color: #fff;
      font-weight: 600;
    }

    .breadcrumb .sep { color: rgba(255,255,255,0.6); margin: 0 6px; flex: 0 0 auto; }

    .breadcrumb .crumbs a.item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #F1E7FF;
      text-decoration: none;
      padding: 6px 10px;
      border-radius: 8px;
      transition: background 0.18s ease, transform 0.12s ease;
      background: transparent;
      cursor: pointer;
      white-space: nowrap;
    }

    .breadcrumb .crumbs a.item:hover {
      background: rgba(152, 100, 212, 0.24);
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(106, 0, 255, 0.12);
    }

   
    .def-container {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      margin-bottom: 30px;
    }

    #introducao,
    #historia-origem,
    #conceitos-fundamentais,
    #figuras-formulas,
    #aplicacoes-cartografia,
    #teorema-pitagoras,
    #classificacao-triangulos,
    #transformacoes-geometricas,
    #ladrilhamento-plano,
    #exemplos-pratica,
    #onde-aplicar,
    #erros-dificuldades,
    #enem,
    #grade-bncc {
      scroll-margin-top: 170px;
    }

    .def-container .explicacao {
      width: 100%;
      margin: 0 auto;
      padding: 30px 20px;
      text-align: justify;
      font-size: clamp(1rem, 1.15vw, 1.08rem);
      color: #333;
      line-height: 1.75;
    }

    .def-container .explicacao strong {
      color: #5E097E;
      font-weight: 700;
    }

    .def-container .explicacao .formula {
      display: block;
      text-align: center;
      font-size: 22px;
      font-weight: 600;
      color: #5E097E;
      margin: 15px 0;
      padding: 12px;
      background-color: #ffffff;
      border-radius: 8px;
      border-left: 4px solid #5E097E;
    }

    /* Frações empilhadas para evitar notação x/y */
    .formula .frac,
    .inline-frac {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      line-height: 1.2;
      vertical-align: middle;
    }

    .formula .frac .num,
    .inline-frac .num {
      padding: 0 4px;
      border-bottom: 2px solid currentColor;
    }

    .formula .frac .den,
    .inline-frac .den {
      padding: 0 4px;
    }

    .def-container .explicacao p,
    .def-container .explicacao li {
      margin-top: 10px;
    }
    

    /* Accordion Styles */
    .accordion-section {
      margin: 20px 0;
    }

    .accordion-header {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      padding: 0;
      background: transparent;
      border: none;
      margin-bottom: 0;
      transition: all 0.3s ease;
      user-select: none;
    }

    /* unify desktop H3 styling for both accordion headers and explicacao titles */
    .accordion-header h3,
    .explicacao h3 {
      color: #5E097E;
      margin: 0;
      margin-left: 0;
      margin-top: 28px;
      font-size: clamp(1.35rem, 1.85vw, 1.65rem);
      font-weight: 600;
      text-align: left;
      transition: color 0.3s ease;
      line-height: 1.3;
    }

    .explicacao > h3#introducao {
      margin-top: 8px;
    }

    .explicacao h4{
      font-size: clamp(1.15rem, 1.55vw, 1.35rem);
      color: #7A1BB3;
      margin-top: 24px;
      margin-bottom: 4px;
      line-height: 1.3;
    }

     .explicacao ul {
        margin: 10px 0 10px 25px;
      }

    .image-placeholder {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 14px 0;
    }

    .image-placeholder img,
    .explicacao figure img {
      display: block;
      width: min(68%, 420px);
      height: auto;
      margin: 0 auto;
      border-radius: 12px;
      box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    }

    .explicacao figure {
      margin: 14px 0;
      text-align: center;
    }

    .explicacao figure figcaption {
      margin-top: 8px;
      font-size: 14px;
      color: #333;
      text-align: center;
    }

    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      margin: 14px 0;
      font-size: 16px;
      background: #ffffff;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .comparison-table th,
    .comparison-table td {
      border: 1px solid #d9d9e0;
      padding: 10px 12px;
      text-align: center;
    }

    .comparison-table th {
      background: #f3e9fb;
      color: #5E097E;
      font-weight: 700;
    }

    .didactic-note {
      margin-top: 12px;
      padding: 12px 14px;
      border-left: 4px solid #5E097E;
      background: #f8f1ff;
      border-radius: 8px;
    }

    .section-subtitle {
      margin-top: 14px;
      margin-bottom: 8px;
      font-size: 18px;
      color: #5E097E;
      font-weight: 700;
      text-align: left;
    }

    .didactic-figure {
      margin: 18px auto 22px;
      text-align: center;
      max-width: 920px;
    }

    .didactic-figure img {
      width: min(96%, 860px);
      height: auto;
      border-radius: 12px;
      border: 1px solid #d9d9e0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    .didactic-figure figcaption {
      margin-top: 10px;
      font-size: 15px;
      color: #2d2d2d;
      line-height: 1.4;
    }

    .didactic-figure-transformacoes {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
    }


    .explicacao figure.didactic-figure-transformacoes img{
      width: 700px;
      max-width: none;
    }


    .accordion-arrow {
      transition: transform 0.3s ease;
      font-size: 16px;
      color: #5E097E;
      margin: 0;
      margin-top: 28px;
    }

    .accordion-header.active .accordion-arrow {
      transform: rotate(180deg);
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
    }

    .accordion-content.active {
      max-height: 20000px;
    }

    .accordion-content-inner {
      padding: 0;
    }


    .accordion-header {
      cursor: default;
    }

    .accordion-arrow {
      display: none;
    }

    .accordion-content {
      max-height: none;
      overflow: visible;
    }

    @media (max-width: 900px) {
      .accordion-header {
        cursor: pointer;
      }

      .accordion-arrow {
        display: inline-block;
      }

      .accordion-content {
        max-height: 0;
        overflow: hidden;
      }

      .accordion-content.active {
        max-height: 20000px;
      }
    }

    .bncc-list {
      display: grid;
      grid-template-columns: repeat(2, max-content);
      column-gap: 24px;
      row-gap: 6px;
      width: fit-content;
      list-style-position: inside;
      padding-left: 0;
      margin: 8px 0 14px;
    }

    .bncc-list li {
      margin-top: 0;
      list-style: none;
    }

    .bncc-btn {
      background: #1a4fa3;
      color: #fff;
      border: none;
      padding: 8px 14px;
      border-radius: 6px;
      cursor: pointer;
      transition: 0.3s;
      font-weight: 500;
      font-size: 14px;
      min-width: 150px;
      text-align: center;
    }

    .bncc-btn:hover {
      background: #153d82;
    }

    .bncc-btn:focus-visible {
      outline: 2px solid #153d82;
      outline-offset: 2px;
    }

    .bncc-modal {
      display: none;
      position: fixed;
      z-index: 9999;
      inset: 0;
      background-color: rgba(0,0,0,0.6);
      backdrop-filter: blur(3px);
      justify-content: center;
      align-items: center;
      padding: 16px;
    }

    .bncc-modal-content {
      background: #fff;
      width: 90%;
      max-width: 700px;
      border-radius: 12px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.3);
      animation: fadeIn 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .bncc-modal-header {
      padding: 15px 20px;
      background: #1a4fa3;
      color: white;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }

    .bncc-modal-header h4 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #ffffff;
    }

    .bncc-modal-body {
      padding: 20px;
      max-height: 300px;
      overflow-y: auto;
      font-size: 15px;
      line-height: 1.6;
      color: #1f2937;
      text-align: left;
      white-space: pre-line;
    }

    .bncc-modal-footer {
      padding: 15px 20px;
      background: #f4f4f4;
      font-size: 12px;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      color: #374151;
    }

    .bncc-close {
      font-size: 24px;
      line-height: 1;
      cursor: pointer;
      color: #fff;
      background: transparent;
      border: none;
      padding: 0;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-15px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .bncc-ref-title {
      display: inline-block;
      margin-top: 16px;
      color: #5E097E;
      font-weight: 700;
    }

    .bncc-ref-link {
      color: #0000EE;
      font-weight: 400;
      text-decoration: underline;
      word-break: break-word;
    }

    .bncc-ref-link:hover {
      color: #0000EE;
    }

    .bncc-ref-link:visited {
      color: #551A8B;
    }

    .formula-promo-box {
      margin-top: 54px;
      border: 2px solid #6b2fb3;
      border-radius: 14px;
      padding: 22px 22px;
      background: linear-gradient(160deg, #f8f1ff 0%, #f4ecff 55%, #eef4ff 100%);
      box-shadow: 0 8px 24px rgba(55, 21, 92, 0.1);
    }

    .formula-cta {
      margin-top: 10px;
      padding: 0;
    }

    .formula-cta-label {
      margin: 0 0 8px 0;
      color: #4d2672;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .formula-cta h3 {
      margin: 0;
      color: #3f1d5c;
      font-size: clamp(1.2rem, 1.8vw, 1.55rem);
      line-height: 1.3;
    }

    .formula-cta p {
      margin-top: 10px;
      color: #2f2f2f;
    }

    .formula-cta-actions {
      margin-top: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .formula-cta-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 16px;
      border-radius: 10px;
      text-decoration: none;
      font-weight: 700;
      color: #ffffff;
      background: linear-gradient(135deg, #6b2fb3 0%, #4f1f87 100%);
      box-shadow: 0 8px 18px rgba(79, 31, 135, 0.28);
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }

    .formula-cta-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 22px rgba(79, 31, 135, 0.34);
      filter: brightness(1.04);
    }

    .formula-cta-link:focus-visible {
      outline: 3px solid rgba(65, 31, 115, 0.35);
      outline-offset: 2px;
    }

    .formula-cta-tagline {
      margin-left: auto;
      display: inline-block;
      padding: 0 0 2px 0;
      border: none;
      background: transparent;
      color: #4a226b;
      font-size: 13px;
      font-style: italic;
      font-weight: 700;
      letter-spacing: 0.01em;
      box-shadow: none;
      border-bottom: 2px solid rgba(79, 31, 135, 0.28);
      white-space: nowrap;
    }

    .formula-mini-topic {
      margin-top: 0;
      border-left: 4px solid #5E097E;
      background: transparent;
      border-radius: 0;
      padding: 2px 0 2px 14px;
    }

    .formula-mini-topic h4 {
      margin: 0;
      color: #4d2672;
      font-size: clamp(1rem, 1.3vw, 1.15rem);
      line-height: 1.35;
    }

    .formula-mini-topic p {
      margin: 8px 0 0 0;
      color: #2f2f2f;
      font-size: 15px;
      line-height: 1.6;
    }

    .author-box {
      margin-top: 100px;
      border: 2px solid #5E097E;
      border-radius: 12px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      background: #f8f4fc;
    }

    .author-text p {
      margin: 0;
      color: #2f2f2f;
      line-height: 1.45;
    }

    .author-text p + p {
      margin-top: 6px;
    }

    .author-brand {
      border-left: 3px solid #5E097E;
      padding-left: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      flex: 0 0 auto;
    }

    .author-brand img {
      width: 68px;
      height: 58px;
      object-fit: contain;
    }

    .author-brand span {
      margin-top: -5px;
      font-size: 15px;
      font-weight: 700;
      color: #00aeff;
      text-shadow: 0 0 8px rgba(0, 232, 255, 0.35);
    }

    .footer-desktop {
      background: linear-gradient(to bottom, #1a0025 0%, #2d0042 100%);
      color: white;
      padding: 44px clamp(16px, 5vw, 60px) 26px;
      margin-top: 56px;
    }

    .footer-content {
      max-width: 1400px;
      margin: 0 auto;
    }

    .footer-brand {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .footer-logo img {
      width: 70px;
      height: 60px;
    }

    .footer-logo span {
      font-size: 26px;
      font-weight: bold;
      color: #00aeff;
    }

    .footer-brand p {
      color: #c8b3d4;
      font-size: 15px;
      line-height: 1.6;
      margin: 0;
      max-width: 560px;
    }

    .footer-bottom {
      max-width: 1400px;
      margin: 26px auto 0;
      padding-top: 18px;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      text-align: center;
    }

    .footer-bottom p {
      color: #c8b3d4;
      font-size: 14px;
      margin: 0;
    }

    /* ================================================
       NOTEBOOKS (SIDEBAR MINIMALISTA)
       ================================================ */
    @media (min-width: 1201px) and (max-width: 1366px) {
      :root {
        --content-max-width: 700px;
        --sidebar-width: 250px;
        --sidebar-gap: 16px;
      }

      .topic-sidebar {
        border-radius: 10px;
        padding: 10px 10px;
        box-shadow: 0 2px 10px rgba(44, 13, 73, 0.08);
      }

      .topic-sidebar h2 {
        margin-bottom: 8px;
        font-size: 15px;
      }

      .topic-sidebar a {
        font-size: 13px;
        line-height: 1.2;
        padding: 4px 6px;
        margin-bottom: 2px;
      }

      .topic-sidebar a:hover,
      .topic-sidebar a.active {
        transform: none;
      }
    }

    /* ================================================
       MOBILE
       ================================================ */
    @media (max-width: 480px) {
      .topic-sidebar {
        display: none;
      }

      .section {
        max-width: 900px;
        width: min(900px, calc(100vw - 28px));
        margin-left: 14px;
        margin-right: 14px;
      }

      .navbar {
        height: 70px;
        padding: 0 16px;
      }

      .navbar-logo {
        gap: 8px;
      }

      .navbar-logo img {
        width: 55px;
        height: 50px;
      }

      .navbar-logo span {
        font-size: 18px;
      }

      .breadcrumb {
        top: 80px;
        padding-left: 16px;
      }

      .breadcrumb .crumbs {
        font-size: 10px;
        gap: 1px;
        padding: 0 4px;
        overflow-x: auto;
      }

      .section {
        margin-top: 132px;
        padding: 0 14px 24px;
      }

      .hero-section {
       
        right: 4px;
      }

      .hero-section h1 {
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 8px;
      }

        .hero-section p {
          font-size: 14px;
          margin-bottom: 0;
        }

      .accordion-header h3,
      .explicacao h3 {
        margin-left: 0;
        font-size: 19px;
      }

      .accordion-header {
        cursor: pointer;
      }

      .accordion-arrow {
        display: inline-block;
      }

      .accordion-content {
        max-height: 0;
        overflow: hidden;
      }

      .accordion-content.active {
        max-height: 20000px;
      }

      .explicacao h4 {
        font-size: 17px;
      }

      .explicacao > h3#introducao {
        margin-top: 6px;
      }

      .def-container .explicacao {
        padding: 22px 12px;
        font-size: 14px;
      }

      .def-container .explicacao .formula {
        font-size: 18px;
      }

      .comparison-table {
        font-size: 12px;
      }

      .comparison-table th,
      .comparison-table td {
        padding: 8px 6px;
      }

      .didactic-figure img {
        width: min(99%, 420px);
      }

      .didactic-figure figcaption {
        font-size: 13px;
      }

      .didactic-figure-transformacoes {
        overflow-x: visible;
      }

      .explicacao figure.didactic-figure-transformacoes img {
        width: min(92vw, 360px);
        min-width: 0;
        max-width: 100%;
      }

      .image-placeholder img,
      .explicacao figure img {
        width: min(90%, 320px);
      }

    
      .bncc-list {
        grid-template-columns: 1fr;
        width: 100%;
      }

      .bncc-btn {
        width: 100%;
      }

      .bncc-modal-content {
        width: 100%;
      }

      .formula-promo-box {
        margin-top: 30px;
        padding: 16px 14px;
      }

      .formula-cta {
        margin-top: 8px;
      }

      .formula-mini-topic {
        margin-top: 0;
        padding: 0 0 0 10px;
      }

      .formula-mini-topic h4 {
        font-size: 16px;
      }

      .formula-mini-topic p {
        font-size: 14px;
      }

      .formula-cta-label {
        font-size: 11px;
      }

      .formula-cta h3 {
        margin-top: 8px;
      }

      .formula-cta-actions {
        flex-direction: column;
        margin-top: 26px;
      }

      .formula-cta-link {
        width: 100%;
        padding: 11px 14px;
      }

      .formula-cta-tagline {
        align-self: flex-end;
        max-width: 100%;
        white-space: normal;
        text-align: right;
      }

      .author-box {
        padding: 12px 12px;
        gap: 10px;
      }

      .author-text {
        text-align: left;
        flex: 1 1 auto;
      }

      .author-text p {
        text-align: left;
      }

      .author-brand {
        padding-left: 8px;
        border-left-width: 2px;
      }

      .author-brand img {
        width: 52px;
        height: 44px;
      }

      .author-brand span {
        font-size: 12px;
      }

      .author-text p {
        font-size: 13px;
      }

      .footer-desktop {
        margin-top: 40px;
        padding: 34px 16px 22px;
      }

      .footer-logo img {
        width: 58px;
        height: 50px;
      }

      .footer-logo span {
        font-size: 21px;
      }

      .footer-brand p,
      .footer-bottom p {
        font-size: 13px;
      }
    }

    /* ================================================
       MINI TABLETS (RETRATO)
       ================================================ */
    @media (min-width: 481px) and (max-width: 900px) and (orientation: portrait) {
      .topic-sidebar {
        display: none;
      }

      .section {
        width: min(960px, calc(100vw - (var(--layout-left-gutter) * 2)));
        margin-left: var(--layout-left-gutter);
        margin-right: var(--layout-left-gutter);
      }

      .hero-section {
        margin-bottom: 24px;
      }

      .hero-section p {
        max-width: 62ch;
      }
    }

    /* ================================================
       TABLETS MAIORES (SIDEBAR PRESENTE)
       ================================================ */
    @media (min-width: 901px) and (max-width: 1200px) {
      :root {
        --layout-left-gutter: clamp(14px, 2.8vw, 34px);
        --layout-right-gutter: clamp(14px, 2.8vw, 34px);
        --content-max-width: 600px;
        --sidebar-width: 280px;
        --sidebar-gap: 18px;
      }

      .topic-sidebar h2 {
        font-size: 17px;
      }

      .topic-sidebar a {
        font-size: 14px;
      }

      .footer-desktop {
        padding-left: 28px;
        padding-right: 28px;
      }
    }

    /* ================================================
       MONITORES
       ================================================ */
    @media (min-width: 1367px) {
      :root {
        --layout-left-gutter: clamp(36px, 7vw, 140px);
        --layout-right-gutter: clamp(28px, 5vw, 110px);
         --content-max-width: 960px;
        --sidebar-width: 380px;
        --sidebar-gap: 22px;
        --below-navbar-gap: 70px;
      }

      .section {
        max-width: 1040px;
        padding: 0 0 52px 0;
      }

      .navbar {
        height: 100px;
      }

      .navbar-logo img {
        width: 95px;
        height: 80px;
      }

      .navbar-logo span {
        font-size: 32px;
      }

      .info-btn img {
        width: 40px;
        height: 40px;
      }
    }
