/* Good Service Italia — stili aggiuntivi per le pagine SEO.
   Si carica DOPO /assets/style.css (lo stesso foglio della home, non modificato).
   Contiene solo: testata pagina, breadcrumb, tipografia articolo, tabelle, FAQ,
   segnaposto [DA COMPLETARE], link correlati e fascia preventivo. */

/* Testata di pagina (versione compatta dell'hero della home) */
.page-hero { position: relative; background: var(--ink); color: var(--white); padding-block: clamp(2.4rem, 6vw, 4.5rem) clamp(2.8rem, 6vw, 4.8rem); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem; border: 2px solid rgba(244,160,35,.22); border-radius: 50%; pointer-events: none; }
.page-hero .section-shell { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--accent); margin-bottom: 1rem; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; }
.page-hero .hero-actions { margin-top: 1.8rem; }
.page-hero .hero-primary { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.02rem; }

/* Breadcrumb (non usa <nav> per non ereditare gli stili del menu) */
.breadcrumb { margin-bottom: 1.6rem; font-size: .84rem; color: #becbd3; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before { content: "›"; color: var(--accent); }
.breadcrumb a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: #becbd3; }

/* Corpo articolo */
.article-wrap { padding-block: clamp(3rem, 7vw, 5.5rem); }
.article { max-width: 800px; font-size: 1.06rem; }
.article > :first-child { margin-top: 0; }
.article h2 { margin: 3rem 0 1rem; font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; letter-spacing: -.03em; }
.article h3 { margin: 2.2rem 0 .7rem; font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.25; }
.article p { margin: 0 0 1.1rem; }
.article ul, .article ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.article li { margin-bottom: .45rem; }
.article ul li::marker { color: var(--accent-deep); }
.article ol li::marker { color: var(--accent-deep); font-weight: 800; }
.article a:not(.button) { color: var(--accent-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article a:not(.button):hover { color: var(--ink); }
.article { overflow-wrap: break-word; }
.article li a, .article p a { overflow-wrap: anywhere; }
.article strong { color: var(--ink); }
.article blockquote { margin: 1.6rem 0; padding: 1.4rem 1.6rem; }
.article blockquote > p { font: 500 1.02rem/1.6 "DM Sans", sans-serif; }
.article blockquote > p + p { margin-top: .6rem; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article .button { margin: .4rem .5rem .4rem 0; text-decoration: none; }

/* Tabelle */
.table-wrap { overflow-x: auto; margin: 1.4rem 0 1.8rem; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.article table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; background: var(--white); }
.article th, .article td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article thead th { background: var(--ink); color: var(--white); font-family: "Manrope", sans-serif; font-weight: 700; }
.article tbody tr:nth-child(even) td { background: var(--paper); }

/* Scheda riassuntiva (case study) */
.summary-box { margin: 0 0 2rem; padding: 1.4rem 1.6rem; background: var(--paper); border-left: 4px solid var(--accent); }
.summary-box h2 { margin-top: 0; font-size: 1.3rem; }

/* FAQ */
.faq { margin-top: 1rem; display: grid; gap: .9rem; }
.faq-item { padding: 1.2rem 1.4rem; background: var(--paper); border-left: 4px solid var(--accent); }
.faq-item h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* Segnaposto da completare: ben visibili prima della pubblicazione */
mark.da-completare { background: #fff176; color: #3a2f00; padding: .05em .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; outline: 1px dashed #c9a400; font-weight: 600; }
.foto-placeholder { display: grid; gap: .4rem; margin: 1.6rem 0; padding: 2.2rem 1.4rem; text-align: center; border: 2px dashed #c9a400; background: #fffbe0; }
.foto-placeholder span { color: var(--muted); font-size: .9rem; }

/* Link correlati */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 1.35rem; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.related li { margin: 0; }
.related a { display: block; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink) !important; text-decoration: none !important; font-weight: 700; }
.related a::after { content: " →"; color: var(--accent-deep); }
.related a:hover { border-color: var(--accent); box-shadow: 0 10px 26px rgba(7,28,44,.08); }

/* Fascia preventivo (riusa .quote e .company-contact-card della home) */
.quote.seo-cta .quote-inner { align-items: center; }
.seo-cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.seo-cta-actions .hero-primary { min-height: 58px; }
.button-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--ink); color: var(--white); }

/* Link alle pagine nel footer */
.footer-seo-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding-bottom: 1.6rem; color: #aab8c1; font-size: .86rem; }
.footer-seo-links a:hover { color: var(--accent); }

@media (max-width: 680px) {
  .page-hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .article { font-size: 1rem; }
  .article h2 { margin-top: 2.4rem; }
  .seo-cta-actions .button { width: 100%; }
}

/* Foto dei cantieri nelle pagine */
.article-photo { margin: 2rem 0; }
.article-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; border-radius: 12px; }
.article-photo figcaption { margin-top: .6rem; font-size: .9rem; text-align: center; opacity: .75; }
