.guide-page { background: #f4f7fc; }
.guide-page .site-header { background: rgba(255, 255, 255, .94); }
.guide-page .brand-mark img { width: 22px; height: 22px; }
.guide-page .desktop-nav .is-current { color: var(--blue); }
.simple-mobile-menu { position: relative; display: none; }
.simple-mobile-menu summary { padding: 9px 12px; color: var(--navy); border: 1px solid var(--line); background: white; border-radius: 10px; font-size: .8rem; font-weight: 850; list-style: none; cursor: pointer; }
.simple-mobile-menu summary::-webkit-details-marker { display: none; }
.simple-mobile-menu nav { position: absolute; z-index: 60; top: calc(100% + 9px); right: 0; display: grid; width: 220px; padding: 8px; border: 1px solid var(--line); background: white; border-radius: 13px; box-shadow: 0 18px 45px rgba(18, 35, 74, .17); }
.simple-mobile-menu nav a { padding: 10px 11px; color: #4f5b70; border-radius: 8px; font-size: .8rem; font-weight: 750; text-decoration: none; }
.simple-mobile-menu nav a:hover { color: var(--blue); background: var(--blue-soft); }
.simple-mobile-menu nav .mobile-primary-link { margin-top: 5px; color: white; background: var(--blue); text-align: center; }

.breadcrumbs { display: flex; padding: 22px 0 0; align-items: center; flex-wrap: wrap; gap: 7px; color: #6c7689; font-size: .75rem; font-weight: 700; }
.breadcrumbs a { color: #41506b; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: #a3abba; }

.guide-hero { position: relative; padding: 44px 0 56px; overflow: hidden; }
.guide-hero::before { position: absolute; z-index: -1; top: -310px; right: -260px; width: 640px; height: 640px; content: ""; background: radial-gradient(circle, rgba(23, 73, 230, .15), transparent 67%); }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: end; gap: 55px; }
.guide-hero h1 { max-width: 820px; margin-top: 18px; font-size: clamp(2.45rem, 5.5vw, 4.55rem); }
.guide-lead { max-width: 740px; margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.72; }
.guide-meta { display: flex; margin-top: 20px; flex-wrap: wrap; gap: 8px 18px; color: #647087; font-size: .75rem; font-weight: 750; }
.guide-meta span { display: inline-flex; align-items: center; gap: 6px; }
.guide-meta i { display: inline-block; width: 5px; height: 5px; background: #a4adbd; border-radius: 50%; }
.guide-meta a { color: inherit; text-underline-offset: 3px; }
.guide-meta a:hover { color: var(--blue); }
.guide-hero-card { padding: 22px; color: white; background: linear-gradient(150deg, var(--navy-2), #07142f); border-radius: 18px; box-shadow: 0 22px 55px rgba(10, 28, 69, .2); }
.guide-hero-card > span { color: #9eb7ee; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.guide-hero-card strong { display: block; margin-top: 9px; font-size: 1rem; line-height: 1.45; }
.guide-hero-card ul { padding: 0; margin: 16px 0 0; list-style: none; }
.guide-hero-card li { position: relative; padding: 8px 0 8px 23px; color: #c7d3e9; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; line-height: 1.45; }
.guide-hero-card li::before { position: absolute; top: 10px; left: 0; content: "✓"; color: #69e0a9; font-weight: 900; }

.guide-cover { margin-top: -25px; margin-bottom: 45px; }
.guide-cover img { display: block; width: 100%; height: auto; border: 1px solid rgba(23, 73, 230, .12); border-radius: 24px; box-shadow: 0 24px 58px rgba(21, 43, 91, .13); }

.guide-body { display: grid; padding-bottom: 80px; grid-template-columns: minmax(0, 760px) 290px; align-items: start; gap: 42px; }
.guide-article { min-width: 0; }
.quick-answer { position: relative; padding: 28px 30px 27px; border: 2px solid var(--ink); background: var(--yellow); border-radius: 17px; box-shadow: 6px 6px 0 var(--ink); }
.quick-answer::before { display: block; margin-bottom: 9px; content: "RISPOSTA BREVE"; font-size: .68rem; font-weight: 950; letter-spacing: .11em; }
.quick-answer p { margin: 0; color: #20263a; font-size: 1rem; font-weight: 720; line-height: 1.68; }
.guide-content { margin-top: 44px; }
.guide-content h2 { margin: 46px 0 13px; scroll-margin-top: 96px; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.13; letter-spacing: -.038em; }
.guide-content h2:first-child { margin-top: 0; }
.guide-content h3 { margin: 28px 0 8px; font-size: 1.1rem; letter-spacing: -.015em; }
.guide-content p, .guide-content li { color: #4f5b70; font-size: .94rem; line-height: 1.78; }
.guide-content p { margin: 0 0 17px; }
.guide-content a:not(.button) { color: var(--blue); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-content ul:not(.check-list), .guide-content ol:not(.steps-list) { padding-left: 23px; margin: 15px 0 22px; }
.guide-content li + li { margin-top: 7px; }

.steps-list { padding: 0; margin: 22px 0 30px; counter-reset: guide-step; list-style: none; }
.steps-list li { position: relative; min-height: 73px; padding: 0 0 26px 58px; counter-increment: guide-step; }
.steps-list li:not(:last-child)::after { position: absolute; top: 43px; bottom: 4px; left: 20px; width: 1px; content: ""; background: #cbd5e7; }
.steps-list li::before { position: absolute; top: 0; left: 0; display: grid; width: 40px; height: 40px; place-items: center; content: counter(guide-step); color: white; background: var(--navy); border-radius: 12px; font-size: .78rem; font-weight: 900; box-shadow: 0 7px 17px rgba(13, 34, 84, .18); }
.steps-list strong { display: block; color: var(--ink); font-size: .96rem; }
.steps-list span { display: block; margin-top: 3px; }

.check-panel { margin: 28px 0; padding: 25px; border: 1px solid #d5deec; background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(25, 42, 78, .06); }
.check-panel h3 { margin: 0; font-size: 1.08rem; }
.check-list { display: grid; padding: 0; margin: 16px 0 0; grid-template-columns: 1fr 1fr; gap: 10px 18px; list-style: none; }
.check-list li { position: relative; padding-left: 25px; font-size: .83rem; font-weight: 700; line-height: 1.5; }
.check-list li::before { position: absolute; top: 1px; left: 0; display: grid; width: 17px; height: 17px; place-items: center; content: "✓"; color: #08754d; background: #dcf6e9; border-radius: 5px; font-size: .68rem; font-weight: 950; }

.notice-box { margin: 27px 0; padding: 20px 21px; border-left: 4px solid #d28a0c; background: #fff9e7; border-radius: 4px 13px 13px 4px; }
.notice-box strong { display: block; color: #6f4b08; font-size: .85rem; }
.notice-box p { margin: 5px 0 0; color: #665a3d; font-size: .83rem; line-height: 1.65; }
.notice-box.is-blue { border-color: var(--blue); background: #eef3ff; }
.notice-box.is-blue strong { color: #153b9d; }
.notice-box.is-blue p { color: #465675; }

.official-source { display: grid; margin: 31px 0; padding: 22px; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; border: 1px solid #cfd9ed; background: #f9fbff; border-radius: 15px; }
.source-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; font-weight: 950; }
.official-source span, .official-source strong { display: block; }
.official-source span { color: #788196; font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.official-source strong { margin-top: 3px; color: var(--ink); font-size: .88rem; }
.official-source a { min-width: max-content; font-size: .77rem; }

.guide-cta { display: grid; margin-top: 48px; padding: 32px; grid-template-columns: 1fr auto; align-items: center; gap: 25px; color: white; background: linear-gradient(135deg, #1749e6, #0b2e9a); border-radius: 19px; box-shadow: 0 22px 52px rgba(23, 73, 230, .21); }
.guide-cta h2 { margin: 0; color: white; font-size: 1.45rem; }
.guide-cta p { margin: 7px 0 0; color: #d7e1ff; font-size: .84rem; line-height: 1.6; }
.guide-cta .button { min-width: max-content; color: #12348d; background: white; box-shadow: 0 10px 25px rgba(3, 20, 65, .17); }

.guide-aside { position: sticky; top: 92px; display: grid; gap: 14px; }
.toc-card, .aside-trust { padding: 21px; border: 1px solid var(--line); background: white; border-radius: 15px; }
.toc-card > strong, .aside-trust > strong { display: block; font-size: .8rem; font-weight: 900; letter-spacing: .02em; }
.toc-card nav { display: grid; margin-top: 12px; gap: 2px; }
.toc-card a { padding: 8px 9px; color: #5a667c; border-radius: 7px; font-size: .77rem; font-weight: 700; text-decoration: none; }
.toc-card a:hover { color: var(--blue); background: var(--blue-soft); }
.aside-trust { border: 0; color: white; background: var(--navy); }
.aside-trust > strong { color: white; }
.aside-trust > strong a { color: inherit; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.aside-trust > strong a:hover { text-decoration-color: white; }
.aside-trust p { margin: 8px 0 0; color: #b9c7e2; font-size: .76rem; line-height: 1.6; }

.related-guides { padding-bottom: 84px; }
.related-guides-head { display: flex; margin-bottom: 20px; align-items: end; justify-content: space-between; gap: 20px; }
.related-guides h2 { margin: 4px 0 0; font-size: 1.85rem; letter-spacing: -.04em; }

.guides-index-hero { padding: 58px 0 40px; }
.guides-index-hero-inner { display: grid; grid-template-columns: 1fr 340px; align-items: end; gap: 55px; }
.guides-index-hero h1 { margin-top: 18px; }
.guides-index-hero aside { padding: 22px; border: 1px solid #cbd6ef; background: white; border-radius: 16px; box-shadow: 0 15px 38px rgba(25, 42, 78, .08); }
.guides-index-hero aside strong { display: block; font-size: .95rem; }
.guides-index-hero aside p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.guides-index { padding-bottom: 86px; }
.guide-tools { display: grid; margin: 8px 0 46px; padding: 22px; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr) auto; align-items: end; gap: 16px; border: 1px solid #d2dced; background: rgba(255, 255, 255, .88); border-radius: 18px; box-shadow: 0 15px 38px rgba(25, 42, 78, .07); }
.guide-tools label > span { display: block; margin-bottom: 8px; color: var(--ink); font-size: .75rem; font-weight: 900; }
.guide-tools input { width: 100%; min-height: 44px; padding: 0 14px; color: var(--ink); border: 1px solid #becae0; outline: none; background: white; border-radius: 11px; font: inherit; font-size: .84rem; }
.guide-tools input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 73, 230, .13); }
.guide-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.guide-filters button { min-height: 36px; padding: 0 11px; color: #556177; border: 1px solid #cbd5e7; background: white; border-radius: 999px; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; }
.guide-filters button:hover { color: var(--blue); border-color: #aebfe5; }
.guide-filters button.is-active { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 6px 15px rgba(23, 73, 230, .18); }
.guide-results { min-width: 92px; margin: 0 0 11px; color: #707b90; font-size: .72rem; font-weight: 800; text-align: right; }
.guide-empty { margin: -18px 0 44px; padding: 20px; color: #5b6679; border: 1px dashed #bdc9dd; background: white; border-radius: 13px; text-align: center; }
.guide-empty a { color: var(--blue); font-weight: 800; }
.guide-card[hidden], .category-section[hidden], .guide-empty[hidden] { display: none; }
.category-section + .category-section { margin-top: 54px; }
.category-section-head { display: flex; margin-bottom: 18px; align-items: center; justify-content: space-between; gap: 18px; }
.category-section h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.category-section-head > span { color: #778196; font-size: .75rem; font-weight: 750; }
.guides-index .guide-card-grid { grid-template-columns: repeat(3, 1fr); }

.article-disclaimer { margin-top: 35px; padding-top: 22px; color: #727d91; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.65; }

@media (max-width: 940px) {
  .simple-mobile-menu { display: block; }
  .guide-hero-grid, .guides-index-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .guide-hero-card, .guides-index-hero aside { max-width: 560px; }
  .guide-body { grid-template-columns: minmax(0, 1fr); }
  .guide-aside { position: static; grid-row: 1; grid-template-columns: 1fr 1fr; }
  .toc-card nav { grid-template-columns: 1fr 1fr; }
  .guides-index .guide-card-grid { grid-template-columns: 1fr 1fr; }
  .guide-tools { grid-template-columns: 1fr; align-items: start; }
  .guide-results { margin: 0; text-align: left; }
}

@media (max-width: 640px) {
  .breadcrumbs { padding-top: 16px; }
  .guide-hero { padding: 30px 0 42px; }
  .guide-hero h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .guide-lead { font-size: .96rem; }
  .guide-cover { margin-top: -15px; margin-bottom: 34px; }
  .guide-cover img { border-radius: 16px; box-shadow: 0 16px 38px rgba(21, 43, 91, .12); }
  .guide-body { padding-bottom: 62px; gap: 27px; }
  .guide-aside { grid-template-columns: 1fr; }
  .toc-card nav { grid-template-columns: 1fr; }
  .quick-answer { padding: 22px 20px; box-shadow: 4px 4px 0 var(--ink); }
  .guide-content { margin-top: 36px; }
  .guide-content h2 { margin-top: 39px; }
  .check-list { grid-template-columns: 1fr; }
  .official-source { grid-template-columns: 42px 1fr; }
  .official-source .button { grid-column: 1 / -1; }
  .guide-cta { padding: 25px 21px; grid-template-columns: 1fr; }
  .guide-cta .button { width: 100%; }
  .related-guides-head { align-items: flex-start; flex-direction: column; }
  .guides-index-hero { padding-top: 37px; }
  .guides-index .guide-card-grid { grid-template-columns: 1fr; }
  .category-section + .category-section { margin-top: 42px; }
}
