/* ============================================================
   LucchiMeter — main.css "Vernice Cremonese"
   Design system: rosso vernice (terracotta) + inchiostro ardesia
   su carta calda. Display Cormorant Garamond, corpo Crimson Pro,
   interfaccia Archivo, cifre JetBrains Mono.
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Palette */
  --ink: #23262B;          /* testo principale, ardesia scura */
  --ink-soft: #43474E;
  --mute: #6E727A;
  --paper: #FAFAF7;        /* fondo pagina */
  --paper-alt: #F1EFE9;    /* sezioni alternate */
  --dark: #20242B;         /* hero scura e footer */
  --dark-soft: #2A2F38;
  --line: #DFDDD5;
  --line-dark: #3A404B;

  --accent: #A8431F;       /* rosso vernice cremonese */
  --accent-hover: #8C3719;
  --accent-tint: #F3E3DA;
  --accent-on-dark: #D98E6B;

  --amber: #D9A441;        /* cifre display, omaggio all'LCD */
  --accent-pro: #34557A;
  --accent-basic: #B07F1E;

  /* Compat: vecchi nomi usati come riferimento */
  --text: var(--ink);
  --text-mute: var(--mute);
  --bg: var(--paper);
  --bg-alt: var(--paper-alt);
  --bg-dark: var(--dark);
  --border: var(--line);
  --accent-light: var(--accent-tint);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-ui: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max-width: 1140px;
  --max-width-narrow: 780px;
  --gap: 1.5rem;
  --radius: 2px;           /* spigoli quasi vivi: stampa, non app */
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Tipografia --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: 3rem 0 1rem;
}
h3 {
  font-size: 1.45rem;
  margin: 1.5rem 0 0.5rem;
}
p { margin: 0 0 1rem; }
.ui { font-family: var(--font-ui); }

/* Eyebrow editoriale: trattino + maiuscoletto */
.lead {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lead::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.section--center .lead,
.page-intro .lead,
.hero .lead { justify-content: center; }

/* --- Contenitori --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.site-header {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.main-nav {
  flex: 1;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}
.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mute);
}
.lang-switch a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* --- Bottoni --- */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #FDFCFA; }
.btn-primary:hover { background: var(--accent-hover); color: #FDFCFA; text-decoration: none; }
.btn-ghost { border: 1px solid var(--ink-soft); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; text-decoration: none; }

/* --- Hero base (pagine generiche) --- */
.hero {
  padding: 5rem 0 2rem;
  text-align: center;
}
.hero h1 { margin-top: 0; }
.hero .tagline {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.3rem;
  color: var(--mute);
  line-height: 1.55;
}

/* --- Hero split scura: la bottega di notte --- */
.hero--split {
  background: linear-gradient(175deg, var(--dark) 0%, var(--dark-soft) 100%);
  padding: 4.5rem 0 4rem;
  text-align: left;
}
.hero--split .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero--split h1 {
  color: var(--paper);
  margin-bottom: 1.5rem;
}
.hero--split h1 em { color: var(--accent-on-dark); }
.hero--split .lead { color: var(--accent-on-dark); }
.hero--split .lead::before { background: var(--accent-on-dark); }
.hero--split .tagline {
  margin: 0 0 2.25rem;
  max-width: none;
  font-size: 1.25rem;
  color: #B9BDC4;
}
.hero--split .cta-row { justify-content: flex-start; }
.hero--split .btn-ghost {
  border-color: rgba(250, 250, 247, 0.4);
  color: var(--paper);
}
.hero--split .btn-ghost:hover {
  border-color: var(--accent-on-dark);
  color: var(--accent-on-dark);
}
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(250, 250, 247, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.hero-photo figcaption {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: #8E939B;
  font-style: italic;
  font-family: var(--font-body);
  text-align: center;
}

/* Ingresso morbido (rispetta prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  .hero--split .hero-copy > * {
    animation: rise-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .hero--split .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero--split .hero-copy > :nth-child(2) { animation-delay: 0.14s; }
  .hero--split .hero-copy > :nth-child(3) { animation-delay: 0.23s; }
  .hero--split .hero-copy > :nth-child(4) { animation-delay: 0.32s; }
  .hero--split .hero-photo {
    animation: rise-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards;
  }
}

/* --- Hero image (banda fotografica) --- */
.hero-image { padding: 2rem 0 4rem; }
.hero-image figure { margin: 0; }
.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.hero-image figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--mute);
  font-style: italic;
}

/* --- Sezioni --- */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--paper-alt); }
.section h2 { margin-top: 0; }
.section--center { text-align: center; }
.section--center .card-grid,
.section--center .pull-quote { text-align: left; }
.section-intro {
  max-width: 680px;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
  color: var(--mute);
}

/* --- Card --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}
.card {
  display: block;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(35, 38, 43, 0.09);
  text-decoration: none;
  color: var(--ink);
}
.card h3 { margin: 0 0 0.5rem; color: var(--ink); }
.card:hover h3 { color: var(--accent); }
.card p { margin: 0; font-size: 1rem; color: var(--mute); }

/* Card con immagine */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media .card-img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
  background: var(--paper-alt);
  filter: saturate(0.92);
  transition: filter 0.25s ease;
}
.card--media:hover .card-img { filter: saturate(1.05); }
.card--media .card-body { padding: 1.3rem 1.5rem 1.5rem; }

/* --- Citazioni: editoriali, senza scatola --- */
.pull-quote {
  margin: 2.5rem 0;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 2px solid var(--accent);
  background: transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  position: relative;
}
.pull-quote .who {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.pull-quote .who::before { content: ""; }
.pull-quote .who a { color: var(--accent); }

/* --- Intro di pagina (pagine interne) --- */
.page-intro {
  padding: 4.5rem 0 2rem;
  text-align: center;
}
.page-intro h1 { margin-top: 0; position: relative; padding-bottom: 1.25rem; }
.page-intro h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.page-intro p {
  max-width: 720px;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: var(--mute);
}

/* --- Articoli lunghi --- */
.article { padding: 2rem 0 4rem; }
.article .container-narrow > h2 { margin-top: 3.5rem; }
.article .container-narrow > h2:first-child { margin-top: 0; }

/* --- Formula: omaggio al display dello strumento --- */
.formula-box {
  background: var(--dark);
  border-left: 3px solid var(--amber);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  border-radius: var(--radius);
}
.formula-box .formula {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--amber);
  margin: 0.5rem 0;
  text-align: center;
  font-weight: 500;
}
.formula-box .formula-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8E939B;
  margin: 0;
  text-align: center;
}
.formula-box .formula-example {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.98rem;
  color: #B9BDC4;
}

/* --- Callout --- */
.callout {
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  background: var(--paper-alt);
  font-size: 1.05rem;
}
.callout strong { color: var(--accent); font-family: var(--font-ui); font-size: 0.95em; }
.callout--note { border-left-color: var(--accent-pro); background: #EDF0F4; }
.callout--note strong { color: var(--accent-pro); }
.callout--important { border-left-color: var(--amber); background: #F8F0DD; }
.callout--important strong { color: #8A6510; }

/* --- Tabelle dati --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--mute);
  font-style: italic;
}
.data-table thead th {
  background: var(--dark);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.8rem 1rem;
}
.data-table tbody td,
.data-table tbody th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table tbody th { font-weight: 600; background: var(--paper); }
.data-table tbody tr:nth-child(even) { background: var(--paper-alt); }
.data-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.data-table .qual {
  font-style: italic;
  font-family: var(--font-body);
  color: var(--mute);
  font-size: 0.98rem;
}

/* --- Lista risorse --- */
.res-list { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.res-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-ui);
}
.res-list li:last-child { border-bottom: none; }
.res-list a { font-weight: 500; font-size: 0.98rem; }
.res-list a::before {
  content: "↓ ";
  color: var(--accent);
  margin-right: 0.1em;
  font-weight: 700;
}
.res-list .meta {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--mute);
  margin-left: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.res-list .descr {
  flex-basis: 100%;
  font-size: 1rem;
  color: var(--mute);
  font-family: var(--font-body);
  font-style: italic;
  margin: 0.15rem 0 0;
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.gallery figure:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(35, 38, 43, 0.08);
}
.gallery figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--paper-alt);
}
.gallery figcaption {
  padding: 0.9rem 1.1rem 1.1rem;
  font-size: 0.98rem;
  color: var(--mute);
  line-height: 1.5;
  font-family: var(--font-body);
  font-style: italic;
  flex: 1;
}
.gallery figcaption strong {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

/* --- Sommario ancore --- */
.anchors-toc {
  margin: 2rem 0 3rem;
  padding: 1.5rem 0;
  background: transparent;
  border-left: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.anchors-toc h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  font-weight: 600;
}
.anchors-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: anchors;
  column-count: 2;
  column-gap: 2rem;
}
.anchors-toc li {
  counter-increment: anchors;
  margin: 0.45rem 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  break-inside: avoid;
}
.anchors-toc li::before {
  content: counter(anchors, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-right: 0.6rem;
}
.anchors-toc a { color: var(--ink); }
.anchors-toc a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .anchors-toc ol { column-count: 1; }
}

/* --- Sezioni applicazioni --- */
.app-section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}
.app-section:last-of-type { border-bottom: none; }
.app-section h2 { margin: 0 0 1.5rem; scroll-margin-top: 5rem; }
.app-section .lead-small {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

/* --- Card prodotto (pagina Modelli) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--mute);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.product-card:hover {
  box-shadow: 0 12px 32px rgba(35, 38, 43, 0.10);
  transform: translateY(-3px);
}
.product-card--pro { border-top-color: var(--accent-pro); }
.product-card--basic { border-top-color: var(--accent-basic); }
.product-card h2 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
}
.product-card--pro h2 { color: var(--accent-pro); }
.product-card--basic h2 { color: var(--accent-basic); }
.product-card .positioning {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--mute);
  font-style: italic;
  margin: 0 0 1.5rem;
}
.product-card .product-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: var(--paper-alt);
  border-radius: var(--radius);
}
.product-card .product-photo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-card ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.product-card ul.features li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
.product-card ul.features li:last-child { border-bottom: none; }
.product-card ul.features li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-weight: 400;
}
.product-card--pro ul.features li::before { color: var(--accent-pro); }
.product-card--basic ul.features li::before { color: var(--accent-basic); }
.product-card code {
  font-family: var(--font-mono);
  background: var(--paper-alt);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  font-size: 0.85em;
}
.product-card .price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.product-card--pro .price { color: var(--accent-pro); }
.product-card--basic .price { color: var(--accent-basic); }
.product-card .price small {
  font-size: 0.45em;
  font-weight: 400;
  font-family: var(--font-ui);
  color: var(--mute);
  letter-spacing: 0.04em;
}
.product-card .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-card .actions .btn { font-size: 0.75rem; padding: 0.65rem 1.2rem; }
.product-card--pro .btn-primary { background: var(--accent-pro); }
.product-card--pro .btn-primary:hover { background: #2A4664; }
.product-card--pro .btn-ghost { border-color: var(--accent-pro); color: var(--accent-pro); }
.product-card--basic .btn-primary { background: #8A6510; color: #FFF; }
.product-card--basic .btn-primary:hover { background: #75560D; }
.product-card--basic .btn-ghost { border-color: var(--accent-basic); color: #8A6510; }

/* --- Tabella confronto --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
.compare-table caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--mute);
  text-align: left;
  padding: 0.5rem 0;
  caption-side: top;
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--paper-alt);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.compare-table thead th.col-pro { color: var(--accent-pro); border-bottom: 2px solid var(--accent-pro); }
.compare-table thead th.col-basic { color: var(--accent-basic); border-bottom: 2px solid var(--accent-basic); }
.compare-table tbody th { background: var(--paper); font-weight: 600; width: 35%; }
.compare-table tbody tr:hover { background: var(--paper-alt); }
.compare-table .yes { color: var(--accent-pro); font-weight: 600; }
.compare-table .no { color: #B3B1AB; }

/* --- Consigli di scelta --- */
.advice-section { padding: 4rem 0; background: var(--paper-alt); }
.advice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.advice-card {
  background: var(--paper);
  padding: 1.6rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.advice-card--pro { border-left-color: var(--accent-pro); }
.advice-card--basic { border-left-color: var(--accent-basic); }
.advice-card h3 { margin-top: 0; }
.advice-card--pro h3 { color: var(--accent-pro); }
.advice-card--basic h3 { color: var(--accent-basic); }

/* --- Figure esplicative --- */
.figure { margin: 2.5rem auto; text-align: center; }
.figure img { display: inline-block; max-width: 100%; border-radius: var(--radius); }
.figure--framed img {
  border: 1px solid var(--line);
  background: #FFF;
  padding: 0.75rem;
}
.figure figcaption {
  margin: 0.85rem auto 0;
  max-width: 620px;
  font-size: 0.98rem;
  color: var(--mute);
  font-style: italic;
  font-family: var(--font-body);
}

/* --- Testo + immagine affiancati --- */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2.5rem 0;
}
.media-row .media-text > :first-child { margin-top: 0; }
.media-row .media-figure { margin: 0; text-align: center; }
.media-row .media-figure img {
  display: inline-block;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.media-row .media-figure--framed img { background: #FFF; padding: 0.75rem; }
.media-row .media-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--mute);
  font-style: italic;
  font-family: var(--font-body);
}

/* --- Teaser modelli (chiusura home) --- */
.model-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 840px;
  margin: 2.5rem auto;
  text-align: left;
}
.model-teaser {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.model-teaser:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(35, 38, 43, 0.10);
  text-decoration: none;
  color: var(--ink);
}
.model-teaser--pro { border-top-color: var(--accent-pro); }
.model-teaser--basic { border-top-color: var(--accent-basic); }
.model-teaser .teaser-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: var(--paper-alt);
  border-radius: var(--radius);
}
.model-teaser .teaser-photo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.model-teaser h3 { margin: 0 0 0.5rem; }
.model-teaser--pro h3 { color: var(--accent-pro); }
.model-teaser--basic h3 { color: var(--accent-basic); }
.model-teaser p { margin: 0 0 1rem; font-size: 1rem; color: var(--mute); }
.model-teaser .price {
  margin: auto 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}
.model-teaser--pro .price { color: var(--accent-pro); }
.model-teaser--basic .price { color: var(--accent-basic); }

/* --- Utility --- */
.cta-row--center { justify-content: center; margin-top: 2.5rem; }

/* --- Footer --- */
.site-footer {
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
  background: var(--dark);
  color: #A9ADB4;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  border-top: 3px solid var(--accent);
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--accent-on-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: #7C8088;
}

/* --- Responsive --- */
@media (max-width: 880px) {
  .hero--split .container { grid-template-columns: 1fr; gap: 2rem; }
  .hero--split { padding: 3rem 0 2.5rem; }
}
@media (max-width: 720px) {
  .site-header .container { flex-wrap: wrap; gap: 0.75rem; }
  .main-nav { order: 3; width: 100%; gap: 0.9rem; justify-content: flex-start; }
  .main-nav a { font-size: 0.72rem; }
  .hero { padding: 3rem 0 1rem; }
  .hero .tagline { font-size: 1.1rem; }
  .section { padding: 3rem 0; }
  h2 { margin: 2rem 0 1rem; }
  .media-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .pull-quote { font-size: 1.25rem; }
}
