/* Pagine interne (landing SEO/GEO): stessa palette e font della home, nessuno script.
   Struttura: testata leggera, breadcrumb, hero con risposta breve, sezioni a domanda,
   tabelle, box "cosa non facciamo", FAQ con <details>, fascia preventivo, footer. (30/9/26) */

:root{
  --bg: #030F22; --bg-2: #041831; --navy: #022D69; --accent: #3E8BE0;
  --white: #F5F8FC; --muted: #8FA3BF; --grey: #8A8A8B;
  --line: rgba(245, 248, 252, 0.09);
  --font-display: 'Clash Display', 'Arial Narrow', sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
}
*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg); color: var(--white);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: var(--white); text-decoration: underline; text-decoration-color: rgba(245,248,252,0.35); text-underline-offset: 3px; }
a:hover{ text-decoration-color: var(--accent); }
.container{ width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.narrow{ max-width: 76ch; }

/* ---------- testata ---------- */
.phead{ border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.phead .container{ display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.phead .brand img{ height: 36px; width: auto; }
.phead nav{ display: flex; align-items: center; gap: 22px; }
.phead nav a{ text-decoration: none; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.phead nav a:hover{ color: var(--white); }
.phead .cta{
  color: var(--white); border: 1px solid rgba(245,248,252,0.35); padding: 9px 16px; border-radius: 2px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.phead .cta:hover{ border-color: var(--accent); background: rgba(62,139,224,0.12); }

/* ---------- breadcrumb ---------- */
.crumbs{ padding: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs ol{ list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before{ content: "›"; margin-right: 6px; color: var(--grey); }
.crumbs a{ color: var(--muted); text-decoration: none; }
.crumbs a:hover{ color: var(--white); }

/* ---------- hero ---------- */
.phero{ padding: 34px 0 44px; }
.phero-grid{ display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow{ font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin-bottom: 18px; }
.phero h1{
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.01em; margin-bottom: 20px;
}
.phero h1 em{ font-style: normal; color: var(--accent); }
.answer{ font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--white); margin-bottom: 18px; }
.meta{ color: var(--muted); font-size: 14px; }
.meta .sep::before{ content: " · "; }
.phero-img{ position: relative; border: 1px solid var(--line); overflow: hidden; }
.phero-img img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.phero-cta{ display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.btn{
  display: inline-block; text-decoration: none; padding: 14px 24px; border-radius: 2px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid transparent;
}
.btn-solid{ background: var(--white); color: var(--bg); }
.btn-solid:hover{ background: var(--accent); color: var(--white); }
.btn-ghost{ border-color: rgba(245,248,252,0.35); color: var(--white); }
.btn-ghost:hover{ border-color: var(--white); }

/* ---------- fascia dati ---------- */
.facts{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts ul{ list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li{ padding: 22px 24px 22px 0; border-right: 1px solid var(--line); }
.facts li:last-child{ border-right: none; }
.facts li + li{ padding-left: 24px; }
.facts strong{ display: block; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.1; margin-bottom: 4px; }
.facts strong sup{ font-size: 0.5em; color: var(--accent); }
.facts span{ color: var(--muted); font-size: 14px; }

/* ---------- corpo ---------- */
.pbody{ padding: 24px 0 40px; }
.pbody h2{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15;
  margin: 48px 0 16px; padding-top: 34px; border-top: 1px solid var(--line); max-width: 30ch; scroll-margin-top: 90px;
}
.pbody h2:first-of-type{ margin-top: 20px; }
.pbody h3{ font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 26px 0 8px; }
.pbody p{ margin-bottom: 14px; max-width: 76ch; }
.pbody p.lead{ font-size: 18.5px; }
.pbody ul, .pbody ol{ margin: 0 0 18px 22px; max-width: 76ch; }
.pbody li{ margin-bottom: 8px; }
.pbody li::marker{ color: var(--accent); }
.pbody b{ font-weight: 600; }
.pbody table{ border-collapse: collapse; width: 100%; max-width: 900px; margin: 10px 0 24px; font-size: 15.5px; }
.pbody th, .pbody td{ text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
.pbody th{ color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.pbody td:first-child{ font-weight: 600; }
.pbody .box{ border: 1px solid var(--line); background: var(--bg-2); padding: 22px 24px; margin: 18px 0 24px; max-width: 76ch; }
.pbody .box p:last-child, .pbody .box ul:last-child{ margin-bottom: 0; }
.pbody .box.no{ border-left: 3px solid var(--accent); }
.steps{ list-style: none; margin: 0 0 20px; max-width: 76ch; counter-reset: s; }
.steps li{ counter-increment: s; position: relative; padding: 0 0 18px 54px; margin: 0; }
.steps li::before{
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px;
  font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--accent);
}
.steps b{ display: block; font-weight: 600; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq{ max-width: 76ch; margin-bottom: 10px; }
.faq details{ border-top: 1px solid var(--line); }
.faq details:last-child{ border-bottom: 1px solid var(--line); }
.faq summary{
  list-style: none; cursor: pointer; padding: 16px 34px 16px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+"; position: absolute; right: 4px; top: 12px; color: var(--accent); font-size: 24px; font-weight: 400;
}
.faq details[open] summary::after{ content: "–"; }
.faq details div{ padding: 0 0 18px; color: var(--muted); }
.faq details div p{ max-width: none; }

/* ---------- pagine collegate ---------- */
.related{ margin: 30px 0 0; }
.related ul{ list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: none; }
.related li{ margin: 0; border: 1px solid var(--line); padding: 16px 18px; }
.related a{ text-decoration: none; font-weight: 600; }
.related a:hover{ color: var(--accent); }
.related span{ display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- fascia preventivo ---------- */
.pcta{ background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0; }
.pcta .container{ display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.pcta h2{ font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin-bottom: 12px; }
.pcta p{ color: var(--muted); max-width: 52ch; }
.pcta .actions{ display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pcta .actions a.mail{ color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.footer{ border-top: 1px solid var(--line); padding: 44px 0 30px; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-logo{ height: 40px; width: auto; margin-bottom: 14px; }
.footer p{ color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer-nav{ display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contacts a{ text-decoration: none; color: var(--muted); font-size: 15px; }
.footer-nav a:hover, .footer-contacts a:hover{ color: var(--white); }
.footer-contacts{ display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15px; }
.footer-contacts a{ overflow-wrap: anywhere; }
.footer-legal{ margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--grey); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal a{ color: var(--grey); text-decoration: none; }
.footer-legal a:hover{ color: var(--white); }

@media (max-width: 900px){
  .phead{ position: static; }
  .phead nav .hide-m{ display: none; }
  .phero-grid{ grid-template-columns: 1fr; gap: 26px; }
  .phero{ padding: 22px 0 34px; }
  .facts ul{ grid-template-columns: repeat(2, 1fr); }
  .facts li{ border-right: none; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .facts li:nth-child(odd){ border-right: 1px solid var(--line); padding-right: 18px; }
  .facts li:nth-child(even){ padding-left: 18px !important; }
  .facts li:nth-last-child(-n+2){ border-bottom: none; }
  .pbody table{ display: block; overflow-x: auto; }
  .related ul{ grid-template-columns: 1fr; }
  .pcta .container{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 26px; }
}

/* tabelle impilate su schermi stretti: ogni riga diventa una scheda, ogni cella porta la sua etichetta */
@media (max-width: 700px){
  .pbody table.stack{ display: block; overflow: visible; }
  .pbody table.stack thead{ display: none; }
  .pbody table.stack tbody, .pbody table.stack tr, .pbody table.stack td{ display: block; }
  .pbody table.stack tr{ border: 1px solid var(--line); padding: 6px 14px 10px; margin-bottom: 12px; background: var(--bg-2); }
  .pbody table.stack td{ border: none; padding: 6px 0; }
  .pbody table.stack td:first-child{ font-family: var(--font-display); font-size: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .pbody table.stack td[data-label]:not([data-label=""])::before{
    content: attr(data-label); display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px;
  }
  .pbody table.stack td:first-child::before{ display: none; }
}
