/* INES – foglio di stile del sito. Nessuna dipendenza esterna. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #0e1a2b;
  --ground: #f3f5f7;
  --paper: #ffffff;
  --muted: #3b4a5e;
  --soft: #4a5568;
  --line: #d8dee6;
  --line-strong: #c4cdd9;
  --accent: #2e7d1f;
  --accent-dark: #25661a;
  --on-navy: #c9d4e3;
  --on-navy-soft: #9fb0c6;
  --navy-line: #2a3a52;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: var(--muted); }

:focus-visible { outline: 3px solid #0b67a8; outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Intestazione */

.site-header { background: var(--ground); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 1.625rem; letter-spacing: 0.04em;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 44px; height: 44px; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 0.9375rem; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; padding: 12px 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Pulsanti */

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 12px 20px; border-radius: 6px; border: 0; cursor: pointer; font-family: inherit; font-size: inherit;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.125rem; }
.btn-block { display: block; width: 100%; }

/* Tipografia */

.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1 {
  font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 4.6vw, 3.625rem); text-wrap: balance;
}
.page-hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; }
h2 {
  font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); text-wrap: balance;
}
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.lead { font-size: 1.1875rem; color: var(--muted); text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; color: var(--soft); }
.num { font-variant-numeric: tabular-nums; }

/* Sezioni */

.section { padding: 96px 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--ink); color: #fff; }
.section--navy .lead { color: var(--on-navy); }
.section > .wrap > h2 { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.stack-sm { display: flex; flex-direction: column; gap: 20px; }

.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 48px 64px; align-items: start; }
.cols-2--center { align-items: center; }

/* Hero della home */

.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { max-width: 540px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.ledger {
  background: var(--ink); color: #fff; border-radius: 10px; padding: 28px;
  display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 48px rgba(14, 26, 43, 0.22);
}
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ledger-head p:first-child { font-family: var(--display); font-weight: 600; font-size: 1.125rem; }
.ledger-head p:last-child { font-size: 0.8125rem; color: var(--on-navy-soft); }
.ledger ul { list-style: none; padding: 0; font-size: 0.9375rem; }
.ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--navy-line); }
.ledger li > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.ledger strong { font-weight: 600; }
.ledger small { color: var(--on-navy-soft); font-size: 0.8125rem; }
.ledger .amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ledger li.sub { padding: 12px 0 12px 20px; color: var(--on-navy); }
.ledger li.sub .amount { font-weight: 500; }

/* Fascia dei fatti in evidenza */

.facts { background: var(--ink); color: #fff; }
.facts ul {
  list-style: none; padding: 40px 24px; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 40px;
}
.facts li { display: flex; align-items: center; gap: 18px; }
.facts li > div { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.facts span:not(.ico) { color: var(--on-navy); font-size: 0.9375rem; }
.facts .ico { width: 56px; height: 56px; border-radius: 14px; background: #38b6ff; color: var(--ink); }
.facts .ico svg { width: 28px; height: 28px; }

/* Icone */

.ico {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; background: #e3f3fd; color: #0b67a8;
}
.ico svg { display: block; width: 26px; height: 26px; }
.ico--green { background: #e6f6dd; color: var(--accent); }
.ico--plain { background: #e7ebf0; color: var(--ink); }
.ico--lg { width: 56px; height: 56px; border-radius: 14px; }
.ico--lg svg { width: 28px; height: 28px; }

/* Blocchi di contenuto */

.point { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.point .ico { margin-bottom: 8px; }
.point p { color: var(--muted); }

.benefit { display: flex; flex-direction: column; gap: 12px; }
.benefit .ico { margin-bottom: 6px; }
.benefit .n { font-size: 0.9375rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.benefit h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.benefit p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.card .ico { margin-bottom: 8px; }
.card h2, .card h3 { font-family: var(--display); font-size: 1.3125rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); font-size: 1rem; flex-grow: 1; }
.card .more { font-weight: 600; font-size: 0.9375rem; padding: 10px 0; align-self: flex-start; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--accent); }
.steps p { color: var(--muted); }
.steps--box { gap: 20px; }
.steps--box li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.steps--box li::before {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: #fff;
  font-size: 1.5rem; display: grid; place-items: center; margin-bottom: 8px;
}

.rules { list-style: none; padding: 0; }
.rules li { padding: 20px 0; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 4px; }
.rules li:last-child { border-bottom: 1px solid var(--line-strong); }
.rules--icons li { flex-direction: row; gap: 18px; align-items: flex-start; }
.rules--icons li > div { display: flex; flex-direction: column; gap: 4px; }
.rules h3 { font-size: 1.125rem; }
.rules p { color: var(--muted); font-size: 1rem; }

/* Prezzo */

.price-card { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.section--paper .price-card, .page-body .price-card { border: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price strong { font-family: var(--display); font-weight: 700; font-size: 3.5rem; line-height: 1; letter-spacing: -0.02em; }
.price span { font-size: 1.125rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 1rem; }
.ticks li { padding-left: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232e7d1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat 0 0.2em / 20px 20px; }
.price-card .extra { border-top: 1px solid var(--line); padding-top: 16px; }

/* Domande frequenti */

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0 64px; }
.faq > div { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.faq h3 { font-size: 1.125rem; }
.faq p { color: var(--muted); font-size: 1rem; }

/* Modulo */

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--soft); }
.field input {
  font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid #8794a6; border-radius: 6px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #fdecec; border: 1px solid #b42318; color: #7a1710; border-radius: 6px; padding: 14px 16px; font-size: 1rem; }
.alert[hidden] { display: none; }

/* Pagine interne */

.breadcrumb { padding: 20px 0 0; font-size: 0.9375rem; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.page-hero { padding: 40px 0 64px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-hero .lead { max-width: 760px; }
.page-hero .btn { align-self: flex-start; }

.page-hero .wrap.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 56px; align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 20px; }
.split-copy .btn { align-self: flex-start; }
.figure { margin: 0; }
.figure--left .illus { margin: 0; max-width: 440px; }
.illus { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }

.page-body { padding: 72px 0; }
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px 64px; }
.blocks:has(.block--card) { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.block { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 20px; }
.block--card { border: 1px solid var(--line); border-radius: 10px; background: var(--ground); padding: 28px; }
.block--card .ico { margin-bottom: 8px; background: #fff; }
.ico--sm { width: 36px; height: 36px; border-radius: 9px; }
.ico--sm svg { width: 20px; height: 20px; }
.role { display: flex; align-items: center; gap: 12px; }
.block-head { display: flex; align-items: center; gap: 14px; }
.block h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.block p, .block li { color: var(--muted); }
.block ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 20px; }
.prose h3 { margin-top: 8px; }
.prose a { overflow-wrap: anywhere; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

.table-box { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; background: var(--paper); }
caption { text-align: left; font-weight: 600; padding-bottom: 12px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-size: 0.9375rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.note { border-left: 0; background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; color: var(--muted); font-size: 1rem; }

.cta-band { padding: 80px 0; }
.cta-band .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--on-navy); color: var(--ink); }

/* Piè di pagina */

.site-footer { background: var(--ink); color: var(--on-navy); font-size: 0.9375rem; border-top: 1px solid var(--navy-line); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { color: #fff; font-size: 1.375rem; }
.footer-brand .brand img { width: 40px; height: 40px; }
.site-footer h2 { font-family: var(--text); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li a { color: var(--on-navy); display: inline-block; padding: 7px 0; text-decoration: none; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid var(--navy-line); padding-top: 24px; color: var(--on-navy-soft); }
.legal a { color: #fff; }
.legal a:hover { color: var(--on-navy); }

/* Consenso ai cookie */

.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.site-footer .linkbtn { color: var(--on-navy); padding: 7px 0; text-decoration: none; }
.site-footer .linkbtn:hover { color: #fff; text-decoration: underline; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 760px; margin: 0 auto;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(14, 26, 43, 0.25); padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; font-size: 0.9375rem;
}
.cookie-banner p { flex: 1 1 320px; color: var(--muted); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { min-width: 120px; min-height: 44px; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ground); color: var(--ink); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .page-body { padding: 48px 0; }
  .nav { gap: 0 20px; }
  .form, .price-card, .ledger { padding: 24px; }
  .price strong { font-size: 2.75rem; }
}

@media print {
  .site-header .nav, .cta-band, .site-footer { display: none; }
  body { background: #fff; }
}
