/* =========================================================
   NF-E / CFOP PAGE
========================================================= */

.af-nfe-page {
  background: #f5f7fb;
  padding-bottom: 80px;
}

/* =========================================================
   HERO
========================================================= */

.af-nfe-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 72px;
  background:
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #ffffff 100%
    );
}

.af-nfe-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top center,
      rgba(0,113,227,.10),
      transparent 58%
    );

  pointer-events: none;
}

.af-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HERO ALINHADO COM O CONTEÚDO */

.af-nfe-hero .af-container {
  max-width: 1180px;
}

.af-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 26px;

  font-size: 13px;
  color: #6e6e73;

  flex-wrap: wrap;
}

.af-breadcrumb a {
  color: #0071e3;
  text-decoration: none;
}

.af-breadcrumb a:hover {
  text-decoration: underline;
}

.af-badge {
  display: inline-flex;
  align-items: center;

  padding:
    7px
    13px;

  border-radius: 999px;

  background:
    rgba(0,113,227,.08);

  color: #0071e3;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;

  margin-bottom: 22px;
}

.af-nfe-hero h1 {
  max-width: 880px;

  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;

  color: #111111;

  margin-bottom: 24px;
}

.af-nfe-subtitle {
  max-width: 760px;

  font-size: 18px;
  line-height: 1.75;

  color: #4b5563;

  margin-bottom: 42px;
}

/* =========================================================
   QUICK INFO
========================================================= */

.af-nfe-quick-info {
  max-width: 980px;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 18px;
}

.af-nfe-quick-info div {
  padding: 22px;

  background: #ffffff;

  border:
    1px solid rgba(0,0,0,.055);

  border-radius: 24px;

  box-shadow:
    0 10px 26px rgba(15,23,42,.045);
}

.af-nfe-quick-info strong {
  display: block;

  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;

  color: #6b7280;

  margin-bottom: 10px;
}

.af-nfe-quick-info span {
  font-size: 16px;
  font-weight: 750;

  color: #111827;
}

/* =========================================================
   CONTENT GRID
========================================================= */

.af-nfe-content {
  padding-top: 56px;
}

.af-nfe-grid {
  display: grid;

  grid-template-columns:
    260px
    minmax(0, 1fr);

  gap: 34px;

  align-items: start;
}

/* =========================================================
   SIDEBAR
========================================================= */

.af-nfe-sidebar {
  position: sticky;
  top: 94px;
}

.af-sidebar-card {
  background: #ffffff;

  border:
    1px solid rgba(0,0,0,.055);

  border-radius: 28px;

  padding: 24px;

  box-shadow:
    0 10px 28px rgba(15,23,42,.045);
}

.af-sidebar-card strong {
  display: block;

  font-size: 14px;
  font-weight: 750;

  margin-bottom: 16px;

  color: #111827;
}

.af-sidebar-card a {
  display: block;

  padding:
    10px
    0;

  color: #4b5563;

  text-decoration: none;

  font-size: 14px;
  line-height: 1.45;

  transition: .25s ease;
}

.af-sidebar-card a:hover,
.af-sidebar-card a.active {
  color: #0071e3;
  font-weight: 700;

  transform:
    translateX(4px);
}

/* =========================================================
   MAIN
========================================================= */

.af-nfe-main {
  min-width: 0;
}

/* =========================================================
   SECTION CARD
========================================================= */

.af-section-card {
  background: #ffffff;

  border:
    1px solid rgba(0,0,0,.055);

  border-radius: 32px;

  padding: 40px;

  margin-bottom: 28px;

  box-shadow:
    0 10px 30px rgba(15,23,42,.045);
}

.af-section-card h2 {
  font-size: clamp(27px, 3.4vw, 36px);

  line-height: 1.12;
  letter-spacing: -0.035em;

  margin-bottom: 22px;

  color: #111111;
}

.af-section-card p {
  font-size: 17px;
  line-height: 1.85;

  color: #374151;

  margin-bottom: 22px;
}

.af-section-card ul {
  padding-left: 22px;
}

.af-section-card li {
  margin-bottom: 13px;

  font-size: 16.5px;
  line-height: 1.7;

  color: #374151;
}

/* =========================================================
   CHECK LIST
========================================================= */

.af-check-list {
  list-style: none;
  padding: 0 !important;
}

.af-check-list li {
  position: relative;
  padding-left: 34px;
}

.af-check-list li::before {
  content: "✓";

  position: absolute;
  left: 0;
  top: 0;

  color: #0071e3;
  font-weight: 800;
}

/* =========================================================
   WARNING LIST
========================================================= */

.af-warning-list li::marker {
  color: #ff9500;
}

/* =========================================================
   ALERTS
========================================================= */

.af-alert {
  display: flex;
  flex-direction: column;
  gap: 10px;

  padding:
    22px
    24px;

  border-radius: 24px;

  margin:
    28px
    0;
}

.af-alert strong {
  font-size: 15px;
  font-weight: 800;
}

.af-alert span {
  font-size: 16px;
  line-height: 1.7;
}

.af-alert-info {
  background:
    rgba(0,113,227,.075);

  border:
    1px solid rgba(0,113,227,.14);
}

.af-alert-info strong {
  color: #0071e3;
}

.af-alert-warning {
  background:
    rgba(255,149,0,.10);

  border:
    1px solid rgba(255,149,0,.18);
}

.af-alert-warning strong {
  color: #c56f00;
}

/* =========================================================
   TABLES
========================================================= */

.af-table {
  width: 100%;

  border-collapse: separate;
  border-spacing: 0;

  overflow: hidden;

  border-radius: 22px;

  margin-top: 28px;

  background: #ffffff;

  border:
    1px solid rgba(0,0,0,.055);
}

.af-table thead {
  background:
    rgba(0,113,227,.065);
}

.af-table th {
  padding:
    17px
    20px;

  text-align: left;

  font-size: 13px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .045em;

  color: #111827;

  border-bottom:
    1px solid rgba(0,0,0,.06);
}

.af-table td {
  padding:
    17px
    20px;

  font-size: 15px;
  line-height: 1.65;

  color: #374151;

  border-bottom:
    1px solid rgba(0,0,0,.045);
}

.af-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.af-table tr:last-child td {
  border-bottom: none;
}

.af-table a {
  color: #0071e3;
  font-weight: 700;
  text-decoration: none;
}

.af-table a:hover {
  text-decoration: underline;
}

/* =========================================================
   RELATED CARDS
========================================================= */

.af-related-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 18px;

  margin-top: 30px;
}

.af-related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 24px;

  border-radius: 24px;

  background: #f8fbff;

  border:
    1px solid rgba(0,113,227,.08);

  text-decoration: none;

  transition: .25s ease;
}

.af-related-card:hover {
  transform:
    translateY(-4px);

  box-shadow:
    0 12px 28px rgba(0,113,227,.09);

  border-color:
    rgba(0,113,227,.18);
}

.af-related-card strong {
  font-size: 21px;
  color: #0071e3;
}

.af-related-card span {
  font-size: 15px;
  line-height: 1.6;

  color: #4b5563;
}

/* =========================================================
   FAQ
========================================================= */

.af-section-card details {
  background: #f8fafc;

  border:
    1px solid rgba(0,0,0,.055);

  border-radius: 22px;

  padding:
    20px
    24px;

  margin-bottom: 16px;
}

.af-section-card summary {
  cursor: pointer;

  font-size: 16.5px;
  font-weight: 800;

  color: #111827;
}

.af-section-card details p {
  margin-top: 18px;
  margin-bottom: 0;
}

/* =========================================================
   CTA
========================================================= */

.af-nfe-cta {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #0071e3,
      #0a84ff
    );

  border-radius: 36px;

  padding:
    52px
    42px;

  color: #ffffff;

  margin-top: 40px;
}

.af-nfe-cta h2 {
  font-size: clamp(30px, 4vw, 44px);

  line-height: 1.1;
  letter-spacing: -0.035em;

  margin-bottom: 20px;
}

.af-nfe-cta p {
  max-width: 720px;

  font-size: 17px;
  line-height: 1.8;

  color:
    rgba(255,255,255,.88);

  margin-bottom: 32px;
}

.af-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding:
    0
    28px;

  border-radius: 999px;

  background: #ffffff;

  color: #0071e3;

  text-decoration: none;

  font-size: 15px;
  font-weight: 800;

  transition: .25s ease;
}

.af-btn-primary:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 10px 24px rgba(255,255,255,.18);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 980px) {

  .af-nfe-grid {
    grid-template-columns: 1fr;
  }

  .af-nfe-sidebar {
    position: relative;
    top: auto;
  }

  .af-sidebar-card {
    display: none;
  }

  .af-nfe-quick-info {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {

  .af-container {
    width: min(100% - 28px, 1180px);
  }

  .af-nfe-hero {
    padding:
      92px
      0
      50px;
  }

  .af-nfe-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .af-nfe-subtitle {
    font-size: 16px;
    line-height: 1.7;
  }

  .af-nfe-quick-info {
    grid-template-columns: 1fr;
  }

  .af-section-card {
    padding:
      30px
      22px;

    border-radius: 26px;
  }

  .af-section-card h2 {
    font-size: 28px;
  }

  .af-section-card p,
  .af-section-card li {
    font-size: 16px;
  }

  .af-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .af-nfe-cta {
    padding:
      40px
      26px;

    border-radius: 28px;
  }

}
/* =========================================================
   ÍNDICE MANUAL NF-E
========================================================= */

.af-nfe-book-index {
  display: flex;
  flex-direction: column;
  gap: 14px;

  margin-top: 42px;
}

.af-nfe-book-item {
  display: grid;

  grid-template-columns:
    140px
    1fr;

  gap: 20px;

  align-items: center;

  padding:
    18px
    24px;

  background: #ffffff;

  border:
    1px solid rgba(0,0,0,.055);

  border-radius: 20px;

  text-decoration: none;

  box-shadow:
    0 8px 24px rgba(15,23,42,.04);

  transition: .25s ease;
}

.af-nfe-book-item:hover {

  transform:
    translateX(4px);

  border-color:
    rgba(0,113,227,.18);

  box-shadow:
    0 14px 32px rgba(0,113,227,.08);
}

.af-nfe-book-item strong {

  color: #0071e3;

  font-size: 16px;
  font-weight: 800;

  line-height: 1.2;
}

.af-nfe-book-item span {

  color: #374151;

  font-size: 15px;
  line-height: 1.6;
}

/* MOBILE */

@media (max-width: 768px) {

  .af-nfe-book-item {

    grid-template-columns: 1fr;

    gap: 8px;

    padding:
      18px
      18px;
  }

}