/* Tommaso Marinello — foglio di stile unico.
   Colori e font seguono 01_Brand/Design_System.md, con l'eccezione dei font
   decisa per il sito: General Sans + Instrument Serif corsivo. */

/* Font ospitati sul sito (02/11/2026): nessuna richiesta a Google Fonts o Fontshare.
   General Sans da Fontshare (ITF Free Font License), Instrument Serif da Google Fonts (OFL). */
@font-face { font-family: "General Sans"; src: url(fonts/general-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(fonts/general-sans-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(fonts/general-sans-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --dark: #141414;
  --text: #787878;
  --line: rgba(20, 20, 20, 0.08);
  --surface: #f3f3f3;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --white: #ffffff;
  --radius-card: 20px;
  --radius-small: 12px;
  --wrap: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Tocco: niente attesa del doppio tap, niente selezione del testo dei comandi */
a, button, summary { touch-action: manipulation; }
.btn, .burger, summary { -webkit-user-select: none; user-select: none; }

body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font-family: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Comparsa allo scorrimento.
   Lo stato nascosto esiste solo se il JavaScript è attivo (classe .js sull'html):
   senza JavaScript il sito resta leggibile e completo. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .nav a, .project__shot img { transition: none !important; }
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 { font-size: clamp(34px, 7vw, 86px); }
h2 { font-size: clamp(28px, 5.2vw, 68px); }
h3 { font-size: clamp(22px, 2.6vw, 40px); }
h4 { font-size: 20px; letter-spacing: -0.02em; }

p { margin: 0 0 16px; color: var(--text); }
p:last-child { margin-bottom: 0; }

/* Parola in corsivo tra parentesi: è la firma grafica del sito */
.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.dot { color: var(--accent); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Linee verticali di sfondo, come nel riferimento */
.section { position: relative; padding: 88px 0; }
.section--lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  pointer-events: none;
}
.section > .wrap { position: relative; }
.section--border { border-top: 1px solid var(--line); }

/* Occhiello con filo */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-transform: lowercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0) 0%, var(--accent) 100%);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(15, 118, 110, 0) 100%);
}

.center { text-align: center; }
.lead { font-size: 16px; max-width: 720px; margin: 20px auto 0; text-wrap: balance; }

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 12px 22px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.12s ease-out;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn::after { content: "→"; font-family: inherit; }
.btn--primary { background: var(--accent); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: var(--accent-dark); } }
.btn--dark { background: var(--dark); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn--dark:hover { background: var(--accent); } }
.btn--ghost { background: transparent; color: var(--dark); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { border-color: var(--dark); } }
.btn--small { font-size: 15px; padding: 10px 18px; gap: 18px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  opacity: 0.85;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { opacity: 1; color: var(--accent); } }
/* il bottone dentro il menu serve solo da telefono */
.nav > .btn { display: none; }
/* il bottone nel menu da telefono prendeva lo stile dei link (grigio, maiuscolo) e sembrava disattivato */
.nav > .btn { color: var(--white); opacity: 1; text-transform: none; letter-spacing: 0; padding: 15px 22px; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.header.is-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { padding: 80px 0 48px; }
.hero__title { max-width: 1000px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 72px; }
.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}
.hero__claim {
  max-width: 540px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dark);
}
.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat__num {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.4;
}
.stats__note { font-size: 13px; color: var(--text); margin-top: 10px; }

/* Frase di posizionamento */
.manifesto {
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.manifesto p { color: inherit; margin-bottom: 24px; }
.manifesto .serif { text-transform: none; }

/* Card case study */
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  padding: 48px;
  margin-top: 36px;
}
.case__meta {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.case__sub {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.45;
  max-width: 64ch;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 36px 0;
}
.kpi { background: var(--surface); border-radius: var(--radius-small); padding: 24px; }
.kpi__num {
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi__label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.4;
}
.case__body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.case__note { font-size: 13px; color: var(--text); margin-top: 24px; }
.case__chart {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
  margin: 0;
  background: var(--white);
  height: 380px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.case__chart img { width: 100%; height: 100%; object-fit: contain; }

/* Progetti di corso */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.project {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.project__shot {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  padding: 0;
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
}
.project__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project__text { padding: 24px; }
.project__text h3 { font-size: 20px; margin-bottom: 8px; }
.project__text p { font-size: 15px; }
.projects__note { margin-top: 20px; font-size: 13px; color: var(--text); text-align: center; }

/* Servizi, passi, FAQ: accordion nativo */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc--boxed .acc__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 6px;
  background: var(--white);
}
.acc--boxed { border-top: 0; }
.acc__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.acc--boxed .acc__item > summary { padding: 24px 28px; font-size: clamp(20px, 2.4vw, 34px); }
.acc__item > summary::-webkit-details-marker { display: none; }
.acc__item > summary::after {
  content: "[ + ]";
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-transform: none;
  flex: none;
}
.acc__item[open] > summary::after { content: "[ – ]"; }
.acc__item[open] > summary { color: var(--accent); }
.acc__body { padding: 0 0 24px; color: var(--text); max-width: 900px; }
.acc--boxed .acc__body { padding: 0 28px 28px; }

/* Come lavoro */
.steps { margin-top: 36px; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step__n { font-size: 13px; font-weight: 600; color: var(--dark); }
.step h3 { font-size: 20px; }
.step__sub { font-size: 15px; color: var(--text); margin: 4px 0 12px; }
.step p { font-size: 15px; }

/* Strumenti */
.tools { margin-top: 36px; }
.tool {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--surface);
}
.tool img { width: 40px; height: 40px; }
.tool h3 { font-size: 20px; }
.tool p { font-size: 15px; margin-bottom: 16px; }
.bar { height: 6px; border-radius: 10px; background: rgba(20, 20, 20, 0.12); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 10px; background: var(--accent); }

/* Chi sono */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quote {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}
/* Variante con la foto: il velo scuro in basso tiene leggibile il testo */
.quote--photo {
  background-image:
    linear-gradient(180deg, rgba(20, 20, 20, 0) 34%, rgba(20, 20, 20, 0.5) 62%, rgba(20, 20, 20, 0.9) 100%),
    url(img/tommaso.jpg);
  background-size: cover;
  background-position: 38% 18%;
  background-repeat: no-repeat;
  min-height: 520px;
}
.quote p { color: var(--white); font-size: 16px; }
.quote__who {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 88px 0 0; }
.footer .eyebrow { color: var(--white); justify-content: center; }
.footer__contacts {
  text-align: center;
  font-size: clamp(22px, 4.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}
.footer__contacts a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__contacts a:hover { color: var(--accent); } }
.footer__lead { color: rgba(255, 255, 255, 0.72); text-align: center; max-width: 520px; margin: 24px auto; }
.footer__cta { display: flex; justify-content: center; margin-bottom: 44px; }
.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 36px;
}
.footer__nav a {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  opacity: 0.85;
}
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover { color: var(--accent); opacity: 1; } }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 60px 0 72px;
  font-size: 14px;
  text-transform: uppercase;
}
.footer__meta strong { font-weight: 600; }
.footer__meta span { color: #959595; }

/* Popup immagine */
dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1000px, 94vw);
  width: min(1000px, 94vw);
  max-height: 88vh;
  max-height: 88svh;
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(20, 20, 20, 0.92); }
.lightbox__inner {
  background: var(--white);
  border-radius: var(--radius-small);
  max-height: 88vh;
  max-height: 88svh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.lightbox__inner img { width: 100%; }
/* grafici: larghezza minima leggibile, si scorrono di lato sul telefono */
.lightbox__inner.is-wide { overflow-x: auto; }
.lightbox__inner.is-wide img { width: 860px; max-width: none; }
.lightbox__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  border: 0;
  background: var(--white);
  color: var(--dark);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
}

/* Pagine interne */
.page-hero { padding: 72px 0 48px; text-align: center; }
.page-hero h1 { margin-bottom: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 24px; }
.pill {
  background: rgba(20, 20, 20, 0.04);
  border-radius: var(--radius-small);
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}
.article { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: clamp(24px, 3vw, 40px); margin: 48px 0 16px; }
.article h3 { font-size: 20px; margin: 36px 0 12px; }
.article ul, .article ol { color: var(--text); padding-left: 20px; margin: 0 0 16px; }
.article li { margin-bottom: 10px; }
.article figure { margin: 32px 0; }
.article figure img { border: 1px solid var(--line); border-radius: var(--radius-small); }
.article .btn { margin-top: 12px; }
.banner {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 8px;
  padding: 0;
  background: var(--white);
  font: inherit;
}
.zoom { cursor: zoom-in; display: block; width: 100%; padding: 0; background: var(--white); font: inherit; border: 1px solid var(--line); border-radius: var(--radius-small); overflow: hidden; }
.article .zoom { margin: 32px 0; }
.article .zoom img { border: 0; border-radius: 0; }

/* Form */
.form {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  max-width: 760px;
  margin: 40px auto 0;
  text-align: left;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: var(--radius-small);
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  color: var(--dark);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .btn { width: 100%; justify-content: center; }
.form__privacy { margin: 14px 0 0; font-size: 13px; }
.form__msg { margin-top: 16px; font-size: 15px; display: none; }
.form__msg.is-ok { display: block; color: var(--accent-dark); }
.form__msg.is-error { display: block; color: #b3261e; }

/* Bottone WhatsApp fisso, solo da telefono */
.wa-float {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(20, 20, 20, 0.25);
  align-items: center;
  justify-content: center;
}
.wa-float img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
body.is-modal .wa-float { display: none; }
body:has(dialog.lightbox[open]) .wa-float { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .case { padding: 24px; }
  .case__body { grid-template-columns: 1fr; gap: 32px; }
  .case__chart { max-width: 520px; width: 100%; height: 280px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project__shot { height: 280px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .quote { min-height: 320px; }
  .quote--photo { min-height: 460px; }
  .quote { margin: 0; }
  .hero__bottom { gap: 28px; }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .header.is-open .nav > .btn { display: inline-flex; justify-content: center; margin-top: 12px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .footer__meta { flex-direction: column; gap: 16px; text-align: center; }
}

/* Telefono */
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  /* solo il filo a sinistra: quello centrale tagliava a metà i testi centrati */
  .section--lines::before { background-size: 100% 100%; }

  h1 { font-size: clamp(32px, 9vw, 44px); }
  h2 { font-size: clamp(26px, 7.4vw, 38px); }
  .eyebrow { font-size: 15px; margin-bottom: 16px; }
  .eyebrow::before, .eyebrow--center::after { width: 36px; }
  .lead { font-size: 15px; }

  /* Hero: bottoni a tutta larghezza, numeri leggibili */
  .hero { padding: 36px 0 32px; }
  /* la riga sopra il titolo è lunga: tolgo il filo e le do tutta la larghezza */
  .hero .eyebrow { font-size: 14px; }
  .hero .eyebrow::before { display: none; }
  .hero__title { margin-bottom: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 40px; }
  .hero__actions .btn { justify-content: space-between; width: 100%; padding: 15px 22px; }
  .hero__bottom { gap: 28px; }
  .hero__claim { font-size: 14px; line-height: 1.55; letter-spacing: 0; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
  .stat__num { font-size: 27px; }
  .stat__label { font-size: 11px; line-height: 1.3; }
  .stats__note { font-size: 12px; }

  .manifesto { font-size: 21px; line-height: 1.45; text-align: left; }
  .manifesto p { margin-bottom: 18px; }

  /* Case study: numeri in riga, grafico ingrandibile */
  .case { padding: 20px; margin-top: 28px; }
  .case__meta { font-size: 12px; }
  .case__sub { font-size: 15px; margin-top: 10px; }
  .kpis { grid-template-columns: 1fr; gap: 8px; margin: 24px 0; }
  .kpi {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
  }
  .kpi__num { font-size: 30px; }
  .kpi__label { margin-top: 0; text-align: right; font-size: 12px; max-width: 58%; }
  .case__body { gap: 24px; }
  /* grafici e immagini alla loro proporzione, a tutta larghezza */
  .case__chart { height: auto; padding: 6px; }
  .case__chart img { height: auto; }
  .case__note { font-size: 12px; margin-top: 18px; }

  /* Progetti */
  .projects { gap: 16px; margin-top: 28px; }
  .project__shot { height: 200px; }
  .project__text { padding: 20px; }
  .project__text h3 { font-size: 18px; }
  .projects__note { font-size: 12px; }

  /* Accordion */
  .acc--boxed .acc__item > summary { padding: 18px 20px; font-size: 18px; }
  .acc--boxed .acc__body { padding: 0 20px 22px; }
  .acc__item > summary { padding: 18px 0; font-size: 17px; }
  .acc__body { font-size: 15px; padding-bottom: 20px; }

  /* Passi e strumenti */
  .step { padding: 22px 0; }
  .step h3 { font-size: 18px; }
  .tool { grid-template-columns: 36px 1fr; gap: 16px; padding: 20px 0; }
  .tool img { width: 36px; height: 36px; }
  .tool h3 { font-size: 18px; }
  .tool p { margin-bottom: 12px; }

  /* Chi sono */
  .about { grid-template-columns: 1fr; gap: 28px; }
  .quote { min-height: 260px; padding: 24px; }
  .quote--photo { min-height: 420px; }
  .quote p { font-size: 15px; }
  .quote__who { flex-direction: column; gap: 2px; }

  /* Footer */
  .footer { padding: 56px 0 0; }
  /* l’email in maiuscolo usciva dallo schermo sotto i 360 px */
  .footer__contacts { font-size: clamp(16px, 5.2vw, 21px); line-height: 1.3; overflow-wrap: anywhere; }
  .footer__lead { font-size: 15px; margin: 20px auto 24px; }
  .footer__cta { margin-bottom: 32px; }
  .footer__cta .btn, .page-hero .btn { width: 100%; justify-content: space-between; }
  .footer__nav { gap: 0 22px; padding-top: 20px; }
  .footer__nav a { font-size: 14px; padding: 10px 0; }
  .footer__meta { padding: 32px 0 8px; font-size: 13px; }

  /* Pagine interne */
  .page-hero { padding: 40px 0 32px; }
  .pills { gap: 8px; margin-bottom: 18px; }
  .pill { font-size: 13px; padding: 5px 12px; }
  .article h2 { font-size: 26px; margin: 36px 0 14px; }
  .article h3 { font-size: 18px; margin: 28px 0 10px; }
  .article p, .article li { font-size: 15px; }
  .article figure { margin: 24px 0; }

  /* Modulo */
  .form { padding: 20px; border-radius: 20px; margin-top: 28px; }
  .field { margin-bottom: 16px; }

  /* Popup e bottone fisso */
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  dialog.lightbox { width: 96vw; max-width: 96vw; }
  .wa-float { display: flex; }
  .footer { padding-bottom: 84px; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat__num { font-size: 24px; }
  .stat__label { font-size: 11px; }
  .kpi__num { font-size: 27px; }
}
