/* ==========================================================
   ODRYON · foglio di stile del sito
   ==========================================================
   Colori e font: Styles/Colori/odryon-tokens.css e
   Styles/Fonts/odryon-type.css nel repository odryon-branding.
   Ogni abbinamento di testo rispetta WCAG AAA (7:1).

   Regole del brand che il CSS non deve mai violare:
   1. Mai testo bianco su lime, mai testo lime su bianco.
   2. Su lime solo testo --ink o --black.
   3. Lime come testo solo su --ink.

   Indice: 1 font · 2 variabili · 3 base · 4 layout · 5 componenti
           6 sezioni · 7 pagine · 7a richiesta · 7b blog · 8 movimento · 9 schermi stretti
   ========================================================== */

/* 1. FONT (ospitati qui: nessuna richiesta a servizi esterni) */

@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/poppins-900.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-next-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-next-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-700.woff2") format("woff2"); }

/* 2. VARIABILI */

:root {
  --lime: #ccff00;
  --ink: #454545;
  --white: #ffffff;
  --black: #000000;
  --ink-soft: #525252;     /* testo secondario su bianco, paper, lime-wash. NON su lime */
  --on-ink-soft: #dddddd;  /* testo secondario su ink */
  --paper: #f5f5f5;
  --lime-wash: #f7ffd6;
  --line: #d9d9d9;         /* bordi decorativi, mai testo */
  --line-on-ink: #6a6a6a;
  --ok: #0f663a;
  --ok-on-ink: #92efc1;
  --warn-on-ink: #fad6bd;
  --error: #af1919;

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --font-tech: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --container: 1180px;
  --gutter: 24px;
  --band-y: clamp(4rem, 3rem + 4vw, 7rem);
  --radius: 14px;
  --radius-small: 8px;
  --header-h: 76px;
  --spring: cubic-bezier(.34, 1.36, .64, 1);   /* solo per gli ingressi decorativi */
  --ease-out: cubic-bezier(.23, 1, .32, 1);     /* interfaccia: risponde subito */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1); /* elementi che si spostano sullo schermo */
  --shadow-ink: 69, 69, 69;                    /* ombre colorate col grigio del brand, non nere */
}

/* 3. BASE */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; text-wrap: balance; margin: 0; }
h1 { font-weight: 900; font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; }
h2 { font-weight: 700; font-size: clamp(1.9375rem, 1.4rem + 2.2vw, 2.6875rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 24ch; }
h3 { font-weight: 700; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; }

p, li { max-width: 66ch; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }

ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.5; }

.label {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  margin: 0 0 .75rem;
}

.stat { font-family: var(--font-tech); font-weight: 700; font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: .75rem 1rem; border-radius: var(--radius-small); font-weight: 700;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* 4. LAYOUT */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.band { padding-block: var(--band-y) calc(var(--band-y) * 1.12); }
.band--lime  { background: var(--lime); color: var(--ink); }
.band--ink   { background: var(--ink); color: var(--white); }
.band--paper { background: var(--paper); }
.band--wash  { background: var(--lime-wash); }

/* su fondo scuro: etichette lime, testo secondario chiaro, focus lime */
.band--ink .label,
.band--ink .lead { color: var(--on-ink-soft); }
.band--ink .label { color: var(--lime); }
.band--ink :focus-visible { outline-color: var(--lime); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split--center { align-items: center; }

.section-title { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-title h2 + .lead,
h2 + .lead { margin-top: 1rem; }
.split .section-title { margin-bottom: 0; }

/* 5. COMPONENTI */

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border: 2px solid var(--ink); border-radius: var(--radius-small);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--black); border-color: var(--black); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--small { min-height: 44px; padding: .55rem 1.1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
  border-bottom: 3px solid var(--lime); padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform 200ms var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Schede */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.band--paper .card { border-color: transparent; }
.card--line { border-top: 5px solid var(--lime); }
.card__title { margin-bottom: .6rem; }
.card__num { color: var(--ink-soft); }

/* Etichette di tema */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tags li {
  font-family: var(--font-tech); font-weight: 700; font-size: 1rem;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: .25rem .8rem; line-height: 1.4;
}
.tags--large li { background: var(--white); }
.tags--on-ink li { border-color: var(--lime); color: var(--lime); }

/* Elenco numerato con numero in colonna */
.numbered { display: grid; gap: 1.75rem; }
.numbered__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.numbered__num { margin: .2rem 0 0; }
.numbered__title { margin-bottom: .35rem; }
.band--ink .numbered__item p { color: var(--on-ink-soft); }
.numbered--compact { gap: 1rem; margin-block: 1.25rem 2rem; }

/* Riquadro garanzia */
.guarantee {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius); padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}
.guarantee .label { color: var(--lime); }
.guarantee__title { color: var(--lime); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); margin-bottom: .75rem; }
.guarantee p:not(.label) { color: var(--on-ink-soft); }
.guarantee--inline { display: flex; gap: 1.25rem; align-items: baseline; margin-top: 2rem; }
.guarantee--inline .label { margin: 0; flex-shrink: 0; }

/* 6. SEZIONI */

/* Testata */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(var(--shadow-ink), .10); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.site-header__logo img { width: 137px; height: auto; }

.site-nav__list { display: flex; align-items: center; gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.site-nav__link {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: .4rem 0;
  border-bottom: 3px solid transparent;
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { border-bottom-color: var(--lime); }

.nav-toggle { display: none; }

/* Apertura */
.hero { padding-block: clamp(4rem, 2.5rem + 6vw, 8.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.hero h1 { margin-bottom: 1.5rem; }
.hero__lead { max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  border-top: 2px solid var(--ink);
}
.hero__stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero__stat { padding: 1.25rem 1.25rem 0 0; }
.hero__stat + .hero__stat { padding-left: 1.25rem; border-left: 2px solid var(--ink); }
.hero__stat .label { margin-bottom: .4rem; }
.hero__stat .stat { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1; }
.hero__stat .stat--text { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); }
.hero__unit { font-family: var(--font-tech); font-weight: 700; font-size: 1.125rem; }

.hero--page h1 { font-size: clamp(2.3125rem, 1.5rem + 3.4vw, 4rem); max-width: 20ch; }

/* Passi del metodo */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: passo; }
.step { background: var(--white); border-radius: var(--radius); padding: 1.75rem 1.5rem; position: relative; }
.step__num {
  display: inline-block; font-size: 2.25rem; line-height: 1;
  background: var(--lime); padding: .35rem .55rem; border-radius: var(--radius-small);
  margin-bottom: 1.25rem;
}

/* Fascia finale */
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.cta-band h2 { margin-bottom: .75rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Piede */
.site-footer { background: var(--ink); color: var(--white); padding-block: 4.5rem 2rem; }
.site-footer :focus-visible { outline-color: var(--lime); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer__brand img { width: 137px; margin-bottom: 1.25rem; }
.site-footer__brand p { color: var(--on-ink-soft); max-width: 34ch; }
.site-footer__title { font-family: var(--font-tech); font-weight: 700; font-size: 1rem; color: var(--lime); margin-bottom: 1rem; }
.site-footer__list { display: grid; gap: .6rem; }
.site-footer__list li { color: var(--on-ink-soft); }
.site-footer__list a { color: var(--white); text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-on-ink); }
.site-footer__bottom p { color: var(--on-ink-soft); font-size: 1rem; }

/* 6b. EFFETTI DAL MODELLO GRAFICO
   Scena 3D nelle aperture, fascia che scorre, settori interattivi,
   console, impulsi. Tutto si ferma con "riduci movimento". */

@keyframes odr-pulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes odr-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(900%); } }
@keyframes odr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes odr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes odr-menu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes console-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pulse { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink); margin-right: .6rem; vertical-align: .1em; animation: odr-pulse 2.2s ease-in-out infinite; }
.pulse--lime { background: var(--lime); }

/* Apertura con canvas 3D: il testo sta sopra, la scena dietro */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero--home { min-height: min(92vh, 980px); min-height: min(92dvh, 980px); display: flex; align-items: center; }
.hero--page { min-height: 62vh; min-height: 62dvh; display: flex; align-items: center; }
.hero--home .hero__inner, .hero--page .hero__inner { width: 100%; }
.hero--home h1 { max-width: min(16ch, 60%); }
.hero--page h1 { max-width: min(20ch, 62%); }
.hero--home .hero__lead, .hero--page .hero__lead { max-width: min(58ch, 58%); }

/* Fascia che scorre */
.marquee { padding-block: 1.1rem; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: odr-marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex-shrink: 0; }
.marquee__list li { font-family: var(--font-tech); font-weight: 700; font-size: 1rem; color: var(--lime); white-space: nowrap; padding-right: 1.5rem; max-width: none; }
.marquee__list li::after { content: "·"; margin-left: 1.5rem; color: var(--on-ink-soft); }

/* Settori interattivi in home */
.sectors { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.sectors__list { display: grid; gap: .6rem; }
.sector-item { border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color 200ms ease, background-color 200ms ease; }
.sector-item.is-active { border-color: var(--ink); background: var(--lime-wash); }
.sector-item__head { margin: 0; font: inherit; }
.sector-item__toggle {
  width: 100%; text-align: left; cursor: pointer; background: none; border: 0; color: inherit;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; row-gap: .2rem;
  padding: 1.4rem 1.5rem; border-radius: var(--radius); font: inherit;
}
.sector-item__num { grid-row: span 2; margin: .3rem 0 0; color: var(--ink-soft); }
.sector-item__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.25; }
.sector-item__who { font-weight: 700; color: var(--ink-soft); }
.sector-item__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 280ms var(--ease-in-out); }
.sector-item__inner { overflow: hidden; padding: 0 1.5rem 1.5rem calc(1.5rem + 4rem); }
.js .sector-item:not(.is-active) .sector-item__body { grid-template-rows: 0fr; }
.js .sector-item:not(.is-active) .sector-item__inner { padding-bottom: 0; }
.sector-item .tags { margin-bottom: 1.25rem; }

.sectors__panel {
  position: sticky; top: calc(var(--header-h) + 24px);
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  background: var(--ink); color: var(--white);
  box-shadow: 0 40px 100px -50px rgba(var(--shadow-ink), .75);
}
.sectors__panel::before { /* griglia leggera, come lo sfondo del modello */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--line-on-ink) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .25;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 80%);
}
.sectors__scan, .console__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(204, 255, 0, .10), transparent);
  animation: odr-scan 6s linear infinite;
}
.sector-slide {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  opacity: 0; transform: translateY(8px) scale(.99); filter: blur(2px);
  transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out), filter 240ms ease;
}
.sector-slide.is-active { opacity: 1; transform: none; filter: none; }
.sector-slide .label { color: var(--lime); }
.sector-slide__num { font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: 1; color: var(--lime); margin-bottom: 1rem; }
.sector-slide__headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + .9vw, 1.875rem); line-height: 1.2; color: var(--white); }
.sector-slide__stats { display: grid; gap: .75rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line-on-ink); }
.sector-slide__stats div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.sector-slide__stats dt { color: var(--on-ink-soft); }
.sector-slide__stats dd { color: var(--lime); font-size: 1.125rem; text-align: right; }
.sector-slide__caption { margin: 1.5rem 0 0; }

/* Console della difesa attiva */
.numbered--lines .numbered__item { padding-top: 1.25rem; border-top: 1px solid var(--line-on-ink); }
.console {
  position: relative; overflow: hidden; margin: 0;
  border: 1px solid var(--line-on-ink); border-radius: 22px;
  background: linear-gradient(160deg, #3a3a3a, #2f2f2f);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  box-shadow: 0 40px 100px -40px rgba(20, 20, 20, .55);
}
.console.is-in { animation: odr-float 7s ease-in-out .8s infinite; }
.console__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-family: var(--font-tech); font-weight: 700; font-size: 1rem; }
.console__title { color: var(--on-ink-soft); }
.console__live { color: var(--lime); }
.console__kpi { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.1rem; }
.console__kpi div { border: 1px solid var(--line-on-ink); border-radius: 12px; padding: .9rem; background: rgba(255, 255, 255, .03); }
.console__kpi dt { font-family: var(--font-tech); font-size: 1rem; color: var(--on-ink-soft); }
.console__kpi dd { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.2; color: var(--white); }
.console__kpi .console__ok { color: var(--lime); }
.console__log {
  position: relative; z-index: 2; display: grid; align-content: start; gap: .35rem;
  border: 1px solid var(--line-on-ink); border-radius: 12px; padding: 1rem;
  font-family: var(--font-tech); font-size: 1rem; line-height: 1.5;
  height: 11.5rem; overflow: hidden;
}
.console__line { display: flex; gap: .8rem; max-width: none; }
.console__line time { color: var(--on-ink-soft); flex-shrink: 0; }
.console__line span { color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__line--ok span { color: var(--ok-on-ink); }
.console__line--warn span { color: var(--warn-on-ink); }
.console__line.is-new { animation: console-in 350ms var(--ease-out); }
.console__note { position: relative; z-index: 2; margin-top: 1rem; color: var(--on-ink-soft); font-size: 1rem; }

/* Piccoli movimenti */
.card, .step { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .step:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -22px rgba(var(--shadow-ink), .45); }
}

.site-header { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; }
  .marquee__list { flex-wrap: wrap; row-gap: .4rem; }
  .marquee__list--copy { display: none; }
}

@media (max-width: 1000px) {
  .sectors { grid-template-columns: 1fr; }
  .sectors__panel { position: relative; top: 0; aspect-ratio: auto; min-height: 400px; }
}

@media (max-width: 860px) {
  .hero--home { min-height: auto; padding-top: clamp(9rem, 40vw, 12rem); }
  .hero--page { min-height: auto; padding-top: clamp(10rem, 44vw, 14rem); }
  .hero--home h1, .hero--page h1, .hero--home .hero__lead, .hero--page .hero__lead { max-width: none; }
  .sector-item__inner { padding-left: 1.5rem; }
  .console__line span { white-space: normal; }
  .console__log { height: 15rem; }
}


/* Servizi di un settore: elenco su due colonne con numero grande, non sei schede identiche */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 1rem + 4vw, 5rem); margin: 0; padding: 0; list-style: none; }
.service-list__item { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.75rem; border-top: 2px solid var(--ink); }
.service-list__num { font-size: 2.5rem; line-height: 1; margin: 0; }
.service-list__title { margin-bottom: .5rem; }

/* Bordo che si illumina sotto il cursore (solo mouse): il lime segue il puntatore */
@media (hover: hover) and (pointer: fine) {
  .spot { position: relative; }
  .spot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    padding: 2px;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(204, 255, 0, .95), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 200ms ease;
  }
  .spot:hover::after { opacity: 1; }
}

/* Grana leggera sulle superfici piene: toglie l'effetto "vettoriale piatto" */
.band--lime, .band--ink, .site-footer { position: relative; isolation: isolate; }
.band--lime::before, .band--ink::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: multiply;
}
.band--ink::before, .site-footer::before { mix-blend-mode: screen; opacity: .05; }

/* Fascia che scorre: pulsante pausa (WCAG 2.2.2) */
.marquee { display: flex; align-items: center; gap: 1rem; }
.marquee__viewport { overflow: hidden; flex: 1; min-width: 0; }
.marquee__toggle {
  flex-shrink: 0; margin-right: var(--gutter);
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; color: var(--lime); border: 2px solid var(--line-on-ink); border-radius: 50%;
  cursor: pointer; transition: border-color 200ms ease;
}
.marquee__toggle:hover { border-color: var(--lime); }
.marquee__toggle svg { width: 16px; height: 16px; }
.marquee.is-paused .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__toggle .icon-play { display: none; }
.marquee.is-paused .icon-play { display: block; }
.marquee.is-paused .icon-pause { display: none; }

/* Pagina 404 */
.notfound__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Colonna di sinistra che resta ferma mentre a destra scorre l'elenco */
.split--sticky > .section-title { position: sticky; top: calc(var(--header-h) + 2rem); }
.stack { display: grid; gap: 1rem; }
@media (max-width: 860px) { .split--sticky > .section-title { position: static; } }

/* Riga sopra l'H1: parola chiave per Google, aspetto da etichetta */
.h1-kicker { display: block; margin-bottom: 1rem; font-size: 1rem; line-height: 1.4; letter-spacing: .02em; max-width: none; }
.hero .h1-kicker + * { margin-top: 0; }

/* Paghi solo quello che usi */
.savings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.savings__list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: risparmio; }
.savings__item { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.75rem; border-left: 6px solid var(--lime); }
.savings__item h3 { margin-bottom: .4rem; }
.savings__note { margin-top: 1.25rem; font-family: var(--font-tech); font-weight: 700; font-size: 1rem; }
@media (max-width: 860px) { .savings { grid-template-columns: 1fr; } }

/* 7. PAGINE */

/* Home: alternative a confronto. La scheda di Odryon su lime (testo --ink) */
.card--odryon { background: var(--lime); border-color: var(--lime); }
.band--paper .card--odryon { border-color: var(--lime); }

/* Settori: pagina indice */
.card__title--h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.card__link { text-decoration: none; }
.card__link:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 4px; }
.card__lead { font-weight: 700; }
.card .tags { margin-bottom: 1.5rem; }
.card__more { margin-top: auto; }
.cards > .card { display: flex; flex-direction: column; }



/* Settori: schede dei quattro settori */
.sector-tabs { padding-block: 0; position: sticky; top: var(--header-h); z-index: 40; }
.sector-tabs__list { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: thin; }
.sector-tabs__link {
  display: block; white-space: nowrap; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 1rem 1.1rem; color: var(--white);
}
.sector-tabs__link:hover { text-decoration: underline; }
.sector-tabs__link[aria-current="page"] { background: var(--lime); color: var(--ink); }

/* Domande frequenti: domanda a sinistra, risposta a destra, tutto visibile */
.faq-list { display: grid; margin: 0; }
.faq-list__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem clamp(1.5rem, 1rem + 3vw, 4rem); padding-block: 1.75rem; border-top: 1px solid var(--line); }
.faq-list__item:last-child { border-bottom: 1px solid var(--line); }
.faq-list dt { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; }
.faq-list dd { margin: 0; }

/* Chi siamo: perimetro e impegni */
.scope__col { border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.scope__col--yes { background: var(--lime-wash); }
.scope__col--no { background: var(--paper); }
.check-list, .cross-list { display: grid; gap: .75rem; margin-top: 1rem; }
.check-list li, .cross-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: .2rem; top: .3rem;
  width: .55rem; height: 1rem; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.cross-list li::before, .cross-list li::after {
  content: ""; position: absolute; left: .1rem; top: .75rem;
  width: 1rem; height: 3px; background: var(--ink-soft);
}
.cross-list li::before { transform: rotate(45deg); }
.cross-list li::after { transform: rotate(-45deg); }

.commitment { border-top: 2px solid var(--lime); padding-top: 1.25rem; }
.commitment__value { color: var(--lime); font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem); line-height: 1.1; margin-bottom: .75rem; }
.commitment dd { color: var(--on-ink-soft); }

/* Contatti */
.contact__list { display: grid; gap: 2rem; }
.contact__big {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.375rem, 1.2rem + .9vw, 1.875rem); line-height: 1.2;
  text-decoration: none; border-bottom: 3px solid var(--lime); margin-bottom: .4rem;
}
.contact__big--text { border-bottom: 0; margin-bottom: .4rem; }
.contact__panel { background: var(--paper); border-radius: var(--radius); padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.contact__title { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); margin-bottom: 1rem; }

.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form__field { display: grid; gap: .4rem; }
.form label { font-weight: 700; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink-soft); border-radius: var(--radius-small);
  padding: .7rem .85rem; min-height: 50px;
}
.form [aria-invalid="true"] { border-color: var(--error); }
.form__check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.form__check input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--ink); }
.form__check label { font-weight: 400; }
.form__check .form__error { grid-column: 2; }
.form__error { color: var(--error); font-weight: 700; margin: 0; }
.form__note { font-size: 1rem; color: var(--ink-soft); }
.form__trap { position: absolute; left: -9999px; }
.notice { border-radius: var(--radius-small); padding: 1rem 1.25rem; font-weight: 700; }
.notice--error { background: #fdeaea; color: var(--error); }
.notice--ok { background: var(--lime-wash); }

/* 7a. MODULO DI RICHIESTA (/richiesta)
   Una domanda per schermata, subito sotto la testata: niente da scorrere.
   Superficie lime piena (testo solo --ink), risposte su schede bianche;
   la scelta diventa grigia con il testo bianco. Con JavaScript
   (.is-a-schermate) si vede una schermata alla volta, con entrate a molla;
   senza, tutte le domande sono in colonna. Con "riduci movimento" niente animazioni. */

.rq-stage {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--lime); color: var(--ink);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h));
  padding-block: clamp(1rem, .6rem + 1.5vw, 2rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}
.rq-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.rq { max-width: 760px; margin-inline: auto; }
@media (min-width: 1100px) { .rq { margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); } }

.rq__titolo { font-size: clamp(1.125rem, .95rem + .8vw, 1.5rem); line-height: 1.25; font-weight: 700; max-width: none; margin-bottom: clamp(.75rem, .5rem + 1vw, 1.5rem); }
.rq__titolo .label { display: block; margin-bottom: .25rem; font-size: .9375rem; }

.rq__form { position: relative; }
.rq__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rq__barra-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.rq__barra-wrap[hidden] { display: none; }
.rq__indietro {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 1.125rem var(--font-display); cursor: pointer; transition: background-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.rq__indietro:hover { background: var(--ink); color: var(--white); }
.rq__indietro:active { transform: scale(.94); }
.rq__indietro[disabled] { opacity: .25; pointer-events: none; }
.rq__barra { flex: 1; height: 8px; border-radius: 999px; background: rgba(var(--shadow-ink), .16); overflow: hidden; }
.rq__barra span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 400ms var(--ease-out); }
.rq__conta { margin: 0; min-width: 4.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.rq__eco { min-height: 1.6em; margin: 0 0 .5rem; font-weight: 700; font-size: 1.0625rem; }
.rq__eco.is-viva { animation: rq-eco 3.2s var(--ease-out) both; }

.rq__passo { display: grid; gap: .9rem; }
.rq__form:not(.is-a-schermate) .rq__passo + .rq__passo { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.rq__passo[hidden] { display: none; }
.rq__legend { padding: 0; display: grid; gap: .35rem; }
.rq__legend:focus { outline: none; }
.rq__gruppo { margin: 0; font-size: .9375rem; }
.rq__domanda { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.625rem, 1.2rem + 2vw, 2.625rem); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.rq__aiuto { margin: -.35rem 0 0; font-size: 1.0625rem; }

.rq__opzioni { display: grid; gap: .65rem; margin-top: .35rem; }
@media (min-width: 700px) { .rq__opzioni--4, .rq__opzioni--2 { grid-template-columns: 1fr 1fr; } .rq__opzioni--3 { grid-template-columns: repeat(3, 1fr); } }
.rq__opzione {
  position: relative; display: flex; align-items: center; gap: .85rem;
  min-height: 64px; padding: .85rem 1rem; border-radius: var(--radius);
  background: var(--white); color: var(--ink); border: 2px solid transparent;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.3; cursor: pointer; user-select: none;
  box-shadow: 0 1px 0 rgba(var(--shadow-ink), .08);
  transition: transform 160ms var(--ease-out), box-shadow 180ms var(--ease-out), opacity 200ms ease, color 160ms ease, border-color 160ms ease;
}
.rq__opzione { overflow: hidden; isolation: isolate; }
.rq__opzione::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: circle(0 at var(--rx, 50%) var(--ry, 50%)); transition: clip-path 420ms var(--ease-out);
}
.rq__opzione input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .rq__opzione:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 12px 24px -12px rgba(var(--shadow-ink), .55); }
  .rq__opzione:hover .rq__lettera { background: var(--ink); color: var(--white); }
}
.rq__opzione:active { transform: scale(.96); transition-duration: 100ms; }
.rq__opzione:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.rq__lettera {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  border: 2px solid var(--ink); font-family: var(--font-tech); font-size: .9375rem; transition: background-color 160ms, color 160ms, border-color 160ms;
}
.rq__etichetta { flex: 1; }
.rq__spunta { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; opacity: 0; }
/* la scelta: il grigio si allarga dal punto del clic, le altre risposte si fanno da parte */
.rq__opzione:has(input:checked) { color: var(--white); border-color: var(--ink); transition-delay: 0s, 0s, 0s, 80ms; }
.rq__opzione:has(input:checked)::before { clip-path: circle(150% at var(--rx, 50%) var(--ry, 50%)); }
.rq__opzioni:has(input:checked) .rq__opzione:not(:has(input:checked)) { opacity: .45; transform: scale(.98); box-shadow: none; }
.rq__opzione:has(input:checked) .rq__lettera { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.rq__opzione:has(input:checked) .rq__spunta { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 320ms var(--ease-out) 60ms; }
.rq__opzione.is-scelta { animation: rq-pop 340ms var(--spring); }
.rq__passo[aria-invalid="true"] .rq__opzione { border-color: #9b1616; }

.rq__input {
  width: 100%; max-width: 560px; padding: .85rem 1rem; border-radius: var(--radius-small);
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  font: 700 clamp(1.25rem, 1.1rem + .6vw, 1.5rem) var(--font-text);
}
.rq__input--piccolo { font-size: 1.125rem; font-weight: 400; }
.rq__input--area { min-height: 6.5rem; font-size: 1.125rem; font-weight: 400; resize: vertical; }
.rq__input[aria-invalid="true"] { border-color: #9b1616; }
.rq__extra-label { font-weight: 700; margin-top: .25rem; }
.rq-stage .form__error { color: #9b1616; font-weight: 700; margin: 0; }   /* --error-on-lime: 7:1 sul lime */
.rq__azioni { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .25rem; }
.rq__tasto { font-family: var(--font-tech); font-size: .8125rem; opacity: .75; margin-left: .35rem; }
.rq__salta { justify-self: start; background: none; border: 0; padding: .25rem 0; font: 700 1rem var(--font-text); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rq__privacy { margin-top: .25rem; }
.rq__privacy a { color: var(--ink); }
.rq__invia { font-size: 1.0625rem; }
.rq__nota { margin: 0; font-size: .9375rem; }
.rq__urgente { background: var(--ink); color: var(--white); border-radius: var(--radius-small); padding: .9rem 1.1rem; }
.rq__urgente a { color: var(--lime); }
.rq__urgente[hidden] { display: none; }
.rq__telefono { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); font-size: 1rem; }
.rq__telefono a { font-weight: 700; }
.richiesta__contatti { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem; }
.richiesta__facoltativa { font-weight: 400; font-size: 1rem; }

/* Entrate e uscite delle schermate (classi messe da main.js) */
.rq__passo.is-entra .rq__legend, .rq__passo.is-entra .rq__aiuto { animation: rq-su 320ms var(--ease-out) both; }
.rq__passo.is-entra .rq__opzione, .rq__passo.is-entra .rq__input, .rq__passo.is-entra .rq__azioni { animation: rq-su 360ms var(--spring) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }
.rq__passo.is-indietro .rq__legend, .rq__passo.is-indietro .rq__opzione { animation-name: rq-giu; }
.rq__passo.is-esce { animation: rq-esce 150ms var(--ease-out) both; }
/* Con la tastiera (A-D, Invio) niente animazione di entrata: chi usa i tasti va veloce */
.rq__form.is-tastiera .rq__passo.is-entra * { animation: none !important; }
@keyframes rq-su { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rq-giu { from { opacity: 0; transform: translateY(-12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rq-esce { to { opacity: 0; transform: translateY(-8px); } }
@keyframes rq-pop { 0% { transform: scale(.96); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes rq-eco { 0% { opacity: 0; transform: translateY(6px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (max-width: 560px) {
  .rq__titolo { font-size: 1rem; }
  .rq__titolo .label { font-size: .8125rem; }
  .rq__opzione { min-height: 56px; padding: .7rem .85rem; font-size: 1rem; }
  .rq__domanda { font-size: 1.5rem; }
  .rq-stage__canvas { opacity: .4; }   /* sul telefono la forma sta dietro al testo: piu leggera */
}
@media (prefers-reduced-motion: reduce) {
  .rq__passo.is-entra *, .rq__passo.is-esce, .rq__opzione.is-scelta, .rq__eco.is-viva { animation: none !important; }
  .rq__barra span, .rq__opzione, .rq__spunta { transition-property: opacity, background-color, color !important; }
}

/* 7b. BLOG
   Indice (/blog) e articolo (/blog/<slug>). Il corpo dell'articolo arriva da
   Blog/tools/md2sito.py con le classi blog-*: lettura su bianco, lime solo come
   superficie (box "In breve", riquadro della chiamata), mai come colore del testo. */

.hero--blog { min-height: 46vh; min-height: 46dvh; }

.blog-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blog-scheda { display: flex; flex-direction: column; overflow: hidden; }
.blog-scheda__img { margin: calc(-1 * clamp(1.5rem, 1.2rem + 1vw, 2rem)) calc(-1 * clamp(1.5rem, 1.2rem + 1vw, 2rem)) 1.25rem; max-width: none;
                    width: calc(100% + 2 * clamp(1.5rem, 1.2rem + 1vw, 2rem)); aspect-ratio: 1200 / 630; object-fit: cover; }
.blog-scheda__meta { color: var(--ink-soft); font-size: .9375rem; }
.blog-scheda__titolo { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); }
.blog-vuoto { max-width: 62ch; }
.blog-vuoto h2 { margin-bottom: 1rem; }
.blog-bozza { display: inline-block; background: var(--ink); color: var(--lime); font-family: var(--font-tech); font-weight: 700;
              font-size: .875rem; padding: .15rem .6rem; border-radius: 999px; margin: 0 0 1rem .5rem; }

.blog-testa { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.blog-testa h1 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem); max-width: 22ch; margin-bottom: 1.25rem; }
.blog-testa__meta { margin: 0; }
.blog-briciole ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-family: var(--font-tech); font-weight: 700; font-size: .9375rem; margin-bottom: 1.5rem; }
.blog-briciole li + li::before { content: "/"; margin-right: .5rem; }
.blog-briciole a { text-decoration-thickness: 1px; }

.blog-corpo-band { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.blog-copertina { width: 100%; border-radius: var(--radius); margin-bottom: 2.5rem; aspect-ratio: 1200 / 630; object-fit: cover; }

.blog-indice { background: var(--paper); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.blog-indice ol { list-style: decimal; padding-left: 1.4rem; display: grid; gap: .35rem; }

.blog-prosa > * + * { margin-top: 1.25rem; }
.blog-prosa p { margin: 0; }
.blog-prosa h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.125rem); margin-top: 3rem; max-width: none; }
.blog-prosa h3 { margin-top: 2rem; }
.blog-prosa h2 + *, .blog-prosa h3 + * { margin-top: .75rem; }
.blog-prosa ul, .blog-prosa ol { display: grid; gap: .5rem; padding-left: 1.4rem; }
.blog-prosa ul { list-style: square; }
.blog-prosa ol { list-style: decimal; }
.blog-prosa li::marker { color: var(--ink); font-weight: 700; }
.blog-prosa a { text-decoration-color: var(--ink); }
.blog-prosa a:hover { text-decoration-color: var(--lime); text-decoration-thickness: 4px; }
.blog-prosa strong { font-weight: 700; }
.blog-prosa mark { background: var(--warn-on-ink); color: var(--black); padding: 0 .2em; }

.blog-in-breve { background: var(--lime-wash); border-left: 6px solid var(--lime); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; }
.blog-in-breve > * + * { margin-top: .75rem; }
.blog-in-breve p:first-child strong:only-child { font-family: var(--font-tech); }

.blog-tabella { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-small); }
.blog-tabella table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.blog-tabella th, .blog-tabella td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.blog-tabella th { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; }
.blog-tabella tr:last-child td { border-bottom: 0; }

.blog-figura img { border-radius: var(--radius-small); }
.blog-figura figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: .5rem; }
.blog-figura { margin-inline: 0; }

.blog-cta { background: var(--lime); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); margin-top: 3rem !important; }
.blog-cta h2 { margin-top: 0; }
.blog-cta > * + * { margin-top: 1rem; }
.blog-bottone { display: flex; flex-wrap: wrap; gap: .75rem; }
.blog-cta .blog-bottone + .blog-bottone { margin-top: .75rem; }

.blog-autore { border-top: 2px solid var(--ink); padding-top: 1.25rem; font-size: 1rem; }
.blog-nota { font-size: 1rem; color: var(--ink-soft); }
.blog-verifica { margin-top: 2rem; color: var(--ink-soft); font-size: .9375rem; }

@media (max-width: 1000px) { .blog-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .blog-griglia { grid-template-columns: 1fr; } }

/* Ogni cosa che si preme risponde subito (Emil Kowalski: scale 0.97 su :active) */
.nav-toggle, .sector-item__toggle { transition: transform 160ms var(--ease-out); }
.marquee__toggle { transition: transform 160ms var(--ease-out), border-color 200ms ease; }
.nav-toggle:active, .marquee__toggle:active { transform: scale(.97); }
.sector-item__toggle:active { transform: scale(.99); }

/* 8. MOVIMENTO
   Gli elementi .reveal entrano a molla quando arrivano in vista.
   Un elemento viene nascosto (.is-pending) solo dopo che il browser
   ha confermato che e' fuori schermo: se lo script o l'osservatore
   non partono, il contenuto resta visibile. */

.reveal.is-pending { opacity: 0; transform: translateY(12px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 400ms var(--ease-out), transform 450ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card.reveal.is-in:hover, .step.reveal.is-in:hover { transform: translateY(-2px); transition-delay: 0s; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, background-color, border-color, color !important; transition-duration: 150ms !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* 9. SCHERMI STRETTI */

@media (max-width: 1000px) {
  .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stat:nth-child(n+3) { border-top: 2px solid var(--ink); margin-top: 1.25rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .faq-list__item, .service-list { grid-template-columns: 1fr; }
  .faq-list__item { gap: .5rem; }

  .split, .grid--2 { grid-template-columns: 1fr; }

  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    min-height: 44px; padding: .5rem .9rem;
    background: transparent; color: var(--ink);
    border: 2px solid var(--ink); border-radius: var(--radius-small);
    font: 700 1rem var(--font-display); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
    transition: transform .3s var(--spring), background-color .2s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* con JavaScript il menu si apre dal pulsante; senza, resta sempre visibile */
  .js .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .js .site-nav.is-open { display: block; animation: odr-menu 200ms var(--ease-out); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav__link:hover, .site-nav__link[aria-current="page"] { border-bottom-color: var(--line); background: var(--lime-wash); }
  .site-nav .btn { width: 100%; margin-top: 1rem; }
  .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: 1rem; }

  .guarantee--inline { flex-direction: column; gap: .5rem; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4, .steps, .site-footer__grid { grid-template-columns: 1fr; }
  .hero__stats, .hero__stats--3 { grid-template-columns: 1fr; }
  .hero__stat, .hero__stat + .hero__stat { padding-left: 0; border-left: 0; }
  .hero__stat + .hero__stat { border-top: 2px solid var(--ink); margin-top: 1.25rem; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
}

/* 10. APERTURA DELLA HOME COMPATTA (15/10/2026)
   Titolo, testo, pulsante e i quattro impegni stanno nella prima schermata
   anche su un portatile 1366x768: gli impegni sono la prova, non vanno sotto la piega.
   In fondo al file perche' vince sulle regole delle sezioni 6 e 9. */
.hero--home {
  min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h));
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.hero--home h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); max-width: min(18ch, 62%); margin-bottom: 1rem; }
.hero--home .h1-kicker { margin-bottom: .75rem; }
.hero--home .hero__actions { margin-top: 1.5rem; }
.hero--home .hero__stats { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.hero--home .hero__stat { padding-top: 1rem; }
.hero--home .hero__stat .stat { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
@media (max-width: 860px) {
  .hero--home { min-height: auto; padding-top: clamp(5.5rem, 26vw, 8rem); }
  .hero--home h1 { max-width: none; }
}
@media (max-width: 560px) {
  /* sul telefono: la forma 3D resta leggera dietro al testo, e lo spazio va agli impegni */
  .hero--home { padding-top: 1.5rem; }
  .hero--home .h1-kicker { font-size: .8125rem; margin-bottom: .5rem; }
  .hero--home h1 { font-size: 1.875rem; }
  .hero--home .hero__lead { font-size: 1rem; }
  .hero--home .hero__actions .btn--outline { display: none; }
  .hero--home .hero__stat { padding-top: .75rem; }
  .hero--home .hero__stat .label { font-size: .8125rem; }
  .hero--home .hero__stat .stat { font-size: 1.75rem; }
  .hero--home .hero__unit { font-size: .9375rem; }
  .hero--home .hero__actions { margin-top: 1.25rem; }
  .hero--home .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero--home .hero__stat + .hero__stat { border-top: 0; margin-top: 0; }
  .hero--home .hero__stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero--home .hero__stat:nth-child(even) { padding-left: 1rem; border-left: 2px solid var(--ink); }
  .hero--home .hero__stat:nth-child(n+3) { border-top: 2px solid var(--ink); margin-top: 1rem; }
}

/* Sotto il pulsante: come si ottiene, in una riga */
.hero__come { margin: .75rem 0 0; font-size: 1rem; }
@media (max-width: 560px) { .hero__come { font-size: .9375rem; margin-top: .5rem; } }

/* Blog: risposta in apertura (articoli del pannello) e fascia dell'anteprima */
.blog-prosa .blog-apertura { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); line-height: 1.5; }
.blog-anteprima { position: sticky; top: var(--header-h); z-index: 30; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; align-items: center;
  background: var(--ink); color: var(--white); padding: .75rem var(--gutter); font-size: 1rem; }
.blog-anteprima p { margin: 0; }
.blog-anteprima strong { color: var(--lime); }
.blog-anteprima a { color: var(--lime); font-weight: 700; }
.blog-prosa blockquote { margin: 0; padding: 1rem 1.25rem; border-left: 6px solid var(--lime); background: var(--lime-wash); border-radius: 0 var(--radius-small) var(--radius-small) 0; }

/* Tabelle negli articoli caricati (il pannello toglie le classi: si stila la tabella nuda) */
.blog-prosa table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.blog-prosa th, .blog-prosa td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.blog-prosa th { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; }

.guide-tutte { margin-top: 1.75rem; }
