/* Guide (/guide/ e /guide/<slug>/): schema approvato sulla tela il 29/10/2026.
   Si appoggia a styles.css (variabili), servizio.css (hero, FAQ, barra fissa) e campagne.css (sfondo dell'apertura). */

/* ---------- apertura ---------- */
.gd-hero .sv-hero-top.cs-hero-top { padding: clamp(128px, 10.5vw, 150px) 0 clamp(56px, 6vw, 84px); }
.gd-hero .cs-hero-bg img { object-position: var(--gd-pos, 70% 45%); }
.gd-hero .sv-hero-copy { width: min(1240px, calc(100% - 64px)); }
.gd-hero h1 { max-width: 1000px; font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.gd-tag { display: inline-flex; align-items: center; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; background: rgba(255,102,0,.16); color: #ffb48a; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.gd-dek { max-width: 720px; margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: rgba(250,247,241,.9); }
.gd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(250,247,241,.85); }
.gd-meta li + li::before { content: '·'; margin-right: 20px; color: rgba(250,247,241,.4); }
.gd-author-mini { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; color: var(--paper); }
.gd-author-mini img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid rgba(250,247,241,.7); }

/* ---------- corpo: indice a sinistra, testo a destra ---------- */
.gd-main { background: #fff; padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 104px); }
.gd-layout { width: min(1240px, calc(100% - 64px)); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 5vw, 72px); }
.gd-aside { position: sticky; top: 104px; flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.gd-toc { padding: 22px 14px; border-radius: 24px; border: 1px solid #e6eaf1; background: #fff; }
.gd-toc summary { padding: 0 12px 8px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); list-style: none; pointer-events: none; }
.gd-toc summary::-webkit-details-marker { display: none; }
.gd-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gd-toc a { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 12px; color: #33456a; font-size: 15px; line-height: 1.35; transition: background-color .2s, color .2s; }
.gd-toc a:hover { background: #f2f5fa; color: var(--ink); }
.gd-toc a[aria-current="true"] { background: #fff1e8; color: var(--ink); font-weight: 650; }
.gd-toc a span { flex: none; color: var(--orange-ink); font-size: 13px; font-weight: 650; }
.gd-aside-cta { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px; background: #0c1b33; color: var(--paper); }
.gd-aside-cta p:first-child { font-size: 20px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; }
.gd-aside-cta p + p { font-size: 15px; line-height: 1.5; color: rgba(250,247,241,.85); }
.gd-aside-cta .contact-cta { align-self: flex-start; }

.gd-article { flex: 999 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.gd-sec { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 110px; }
.gd-sec h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.gd-sec h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.gd-sec > p, .gd-sec > ul:not([class]), .gd-sec > ol:not([class]) { font-size: 18px; line-height: 1.7; color: #33456a; }
.gd-sec > ul:not([class]), .gd-sec > ol:not([class]) { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; }
.gd-sec strong { color: var(--ink); font-weight: 650; }
.gd-sec a:not([class]), .gd-link { color: var(--orange-ink); font-weight: 650; border-bottom: 2px solid rgba(196,67,21,.3); transition: color .2s, border-color .2s; }
.gd-sec a:not([class]):hover, .gd-link:hover { color: #9a330f; border-bottom-color: #9a330f; }
.gd-sec > .gd-note { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* in breve */
.gd-brief { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 34px); border-radius: 28px; background: #fff4ec; border: 1px solid #ffd9c2; }
.gd-brief-label { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.gd-brief p:not(.gd-brief-label) { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink); }

/* numeri */
.gd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gd-stats li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: #f2f5fa; }
.gd-stats strong { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.gd-stats span { font-size: 15px; line-height: 1.45; color: #33456a; }
.gd-stats .gd-src { margin-top: auto; font-size: 13px; color: var(--muted); }

/* card */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gd-cards li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; border: 1px solid #e6eaf1; }
.gd-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff1e8; color: var(--orange-ink); }
.gd-cards p { font-size: 16px; line-height: 1.6; color: #33456a; }

/* tabella */
.gd-table { overflow-x: auto; padding: 8px; border-radius: 24px; border: 1px solid #e6eaf1; }
.gd-table table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.5; }
.gd-table th { padding: 14px 18px; text-align: left; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid #e6eaf1; }
.gd-table td { padding: 18px; vertical-align: top; color: #33456a; border-bottom: 1px solid #e6eaf1; }
.gd-table tr:last-child td { border-bottom: 0; }
.gd-table td:first-child { font-weight: 650; color: var(--ink); }
.gd-table tr.is-hl td { background: #fff4ec; }
.gd-table tr.is-hl td:first-child { border-radius: 16px 0 0 16px; }
.gd-table tr.is-hl td:last-child { border-radius: 0 16px 16px 0; }

/* box verso la call, a metà guida */
.gd-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(26px, 3.5vw, 40px); border-radius: 28px; background: linear-gradient(160deg, #1d3b74 0%, var(--navy) 50%, #0f2147 100%); color: var(--paper); }
.gd-cta::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,102,0,.25); filter: blur(70px); pointer-events: none; }
.gd-cta > div { position: relative; z-index: 1; flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; }
.gd-cta h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.04em; }
.gd-cta p { font-size: 16px; line-height: 1.55; color: rgba(250,247,241,.86); }
.gd-cta p a { font-weight: 650; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.gd-cta .contact-cta { position: relative; z-index: 1; }

/* elenco con le spunte */
.gd-check { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gd-check li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.55; color: #33456a; }
.gd-check li::before { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* prezzo */
.gd-price { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 36px); padding: clamp(24px, 3.2vw, 36px); border-radius: 28px; background: #f2f5fa; }
.gd-price > div { display: flex; flex-direction: column; gap: 10px; }
.gd-price-label { font-size: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gd-price-big { font-size: clamp(48px, 5.5vw, 76px); line-height: .95; font-weight: 700; letter-spacing: -.06em; color: var(--ink); }
.gd-price-unit { font-size: 17px; color: #33456a; }
.gd-price-text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: #33456a; }
.gd-price ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gd-price li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: var(--ink); }
.gd-price li::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.gd-price-foot { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* passi numerati */
.gd-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: gd-step; }
.gd-steps li { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 22px; border: 1px solid #e6eaf1; counter-increment: gd-step; }
.gd-steps li::before { content: counter(gd-step); flex: none; min-width: 18px; font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--orange); }
.gd-steps li > div { display: flex; flex-direction: column; gap: 6px; }
.gd-steps strong { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.gd-steps p { font-size: 16px; line-height: 1.6; color: #33456a; }

/* caso reale, anonimo */
.gd-case { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3.2vw, 36px); border-radius: 28px; background: #0c1b33; color: var(--paper); }
.gd-case-sector { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255,102,0,.16); color: #ffb48a; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.gd-case h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.04em; }
.gd-case > p { font-size: 17px; line-height: 1.6; color: rgba(250,247,241,.86); }
.gd-case dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 6px 0 0; }
.gd-case dl > div { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: rgba(250,247,241,.07); border: 1px solid rgba(250,247,241,.12); }
.gd-case dt { order: 2; font-size: 14px; line-height: 1.4; color: rgba(250,247,241,.82); }
.gd-case dd { order: 1; margin: 0; font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: #ff8a3d; }

/* autore */
.gd-author { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: clamp(22px, 3vw, 30px); border-radius: 28px; border: 1px solid #e6eaf1; }
.gd-author img { width: 96px; height: 96px; flex: none; border-radius: 24px; object-fit: cover; object-position: 50% 18%; }
.gd-author > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.gd-author-label { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gd-author-name { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.gd-author p:not([class]) { font-size: 16px; line-height: 1.6; color: #33456a; }

/* domande frequenti: struttura di servizio.css, più compatta */
.gd-faq .sv-faq { max-width: none; margin: 0; }
.gd-faq .sv-faq-q { font-size: 18px; letter-spacing: -.02em; }
.gd-faq .sv-faq details > p { font-size: 16px; line-height: 1.6; }

/* fonti */
.gd-sources { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid #e6eaf1; }
.gd-sources h2 { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gd-sources ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.55; color: var(--muted); }
.gd-sources a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(82,97,118,.4); }
.gd-sources a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* leggi anche */
.gd-related { background: #f2f5fa; padding: clamp(56px, 7vw, 96px) 0; }
.gd-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gd-related-head h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.055em; }
.gd-related-head h2 span { color: var(--orange-ink); }

/* schede delle guide (leggi anche e pagina /guide/) */
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gd-card { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 26px; background: #fff; border: 1px solid #e6eaf1; color: var(--ink); transition: box-shadow .25s, transform .25s; }
.gd-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(20,45,83,.55); }
.gd-card-top { display: flex; align-items: center; gap: 12px; }
.gd-card-top .gd-ic { width: 48px; height: 48px; border-radius: 15px; }
.gd-card-tag { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.gd-card h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.035em; transition: color .2s; }
.gd-card:hover h3 { color: var(--orange-ink); }
.gd-card p { font-size: 16px; line-height: 1.55; color: #33456a; }
.gd-card-go { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 650; }
.gd-card:focus-visible { outline: 3px solid #ed8b5c; outline-offset: 3px; }

/* pagina /guide/ */
.gd-index .gd-hero h1 { font-size: clamp(48px, 7vw, 108px); line-height: .94; letter-spacing: -.065em; }
.gd-list { background: #f2f5fa; padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.gd-filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #c9d2e0; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.gd-chip:hover { border-color: var(--ink); }
.gd-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gd-chip:focus-visible { outline: 3px solid #ed8b5c; outline-offset: 3px; }
.gd-count { font-size: 15px; color: var(--muted); }
.gd-grid li[hidden] { display: none; }

/* ---------- telefono ---------- */
@media (max-width: 900px) {
  .gd-aside { position: static; flex-basis: 100%; max-width: none; }
  .gd-aside-cta { display: none; }
  .gd-toc summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding-bottom: 0; }
  .gd-toc summary::after { content: '+'; font-size: 20px; font-weight: 500; color: var(--ink); }
  .gd-toc[open] summary { padding-bottom: 8px; }
  .gd-toc[open] summary::after { content: '–'; }
  .gd-toc { padding: 18px 14px; }
  .gd-price { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gd-hero .sv-hero-copy, .gd-layout { width: calc(100% - 32px); }
  .gd-hero .sv-hero-top.cs-hero-top { padding: 112px 0 48px; }
  .gd-hero .cs-hero-bg img { object-position: var(--gd-pos-m, 72% 50%); }
  .gd-hero .cs-hero-bg::after { background: linear-gradient(180deg, rgba(12,27,51,.82) 0%, rgba(12,27,51,.9) 100%); }
  .gd-meta { gap: 10px 16px; }
  .gd-meta li + li::before { display: none; }
  .gd-meta li:first-child { flex-basis: 100%; }
  .gd-sec > p, .gd-sec > ul:not([class]), .gd-sec > ol:not([class]) { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-card, .gd-toc a, .gd-chip { transition: none; }
  .gd-card:hover { transform: none; }
}
