/* ==========================================================================
   Centro Lingue — sistema di design (revisione 3)
   Registro di categoria: agenzia di traduzioni corporate B2B, finitura alta.
   Deriva da DESIGN.md. Non introdurre colori o misure fuori dai token.
   ========================================================================== */

/* --- Font self-hosted (niente CDN: vedi CLAUDE.md, Deploy) -------------- */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-400-700.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext-400-700.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB;
}

/* --- Token -------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Colore */
  --bg: #ffffff;
  --surface: #f5f7fa;        /* sezioni alterne, testata pagine interne */
  --surface-2: #eef2f7;      /* barra alta, intestazioni di tabella */
  --line: #e2e8f0;           /* bordi di card e separatori */
  --line-strong: #cbd5e1;    /* bordi di bottoni secondari */
  --field: #8291a5;          /* bordi dei campi: ≥3:1 sul bianco */
  --ink: #0f1b2d;            /* titoli, testo forte */
  --ink-2: #334155;          /* testo corrente */
  --muted: #5b6778;          /* testo secondario (5.6:1) */
  --brand: #245288;          /* unico colore acceso: bottoni, link, icone */
  --brand-700: #1b416d;
  --brand-50: #eef3f9;
  --brand-100: #dbe6f2;
  --on-brand: #ffffff;

  /* Tipografia — una sola famiglia, gerarchia per scala e peso */
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-base: 1.0625rem; /* 17 */
  --t-md: 1.1875rem;   /* 19 */
  --t-lg: 1.375rem;    /* 22 */
  --t-xl: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);        /* 24–28 */
  --t-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);   /* 28–38 */
  --t-3xl: clamp(2.125rem, 1.4rem + 2.6vw, 3rem);      /* 34–48 */
  --t-4xl: clamp(2.375rem, 1.4rem + 3.4vw, 3.625rem);  /* 38–58 */

  /* Spazio e forma */
  --shell: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 5vw + 32px, 104px);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow: 0 2px 4px rgba(15, 27, 45, 0.04), 0 10px 28px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 4px 8px rgba(15, 27, 45, 0.05), 0 22px 48px rgba(15, 27, 45, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--brand);
}

::selection { background: var(--brand-100); color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 650; }
address { font-style: normal; }
code { font-family: inherit; font-size: 0.9em; font-weight: 600; }

a {
  color: var(--brand);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: var(--brand-700); text-decoration-color: currentColor; }
/* Un numero di telefono spezzato su due righe non si legge né si copia. */
a[href^="tel:"] { white-space: nowrap; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 17px; height: 17px; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link:hover { color: #fff; }

/* Codice lingua: piccola etichetta, mai monospace come costume. */
.code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--t-xs);
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* --- Bottoni ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease);
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--lg { min-height: 52px; padding: 14px 24px; font-size: var(--t-base); }

.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); color: var(--on-brand); }

.btn--secondary { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn--inverse { background: #fff; color: var(--brand); }
.btn--inverse:hover { background: var(--brand-50); color: var(--brand-700); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- Barra alta e testata ----------------------------------------------- */

.topbar {
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--t-xs);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar__contacts a,
.topbar__hours { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); text-decoration: none; }
.topbar__contacts a:hover { color: var(--brand); }
.topbar .icon { color: var(--brand); }

.langswitch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.langswitch a {
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.langswitch a:hover { color: var(--ink); }
.langswitch a[aria-current='true'] { background: var(--brand); color: #fff; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .masthead { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); }
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 80px;
}

/* Il marchio del cliente è usato così com'è (PRODUCT.md): niente filtri. */
.brand { display: block; flex: none; border-radius: 4px; }
.brand__logo { width: auto; height: 46px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 550;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.nav__links a:hover { background: var(--surface); color: var(--brand); }
.nav__links a[aria-current='page'] { color: var(--brand); }
.nav__links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -21px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.nav__cta { min-height: 42px; padding: 9px 18px; font-size: var(--t-sm); }
.nav__mobile-extra { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded='true'] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded='true'] .menu-toggle__close { display: block; }

@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav__links a { padding: 8px 9px; }
}

@media (max-width: 1023px) {
  .brand__logo { height: 38px; }
  .masthead__inner { min-height: 68px; }
  .menu-toggle { display: inline-flex; }

  /* Senza JavaScript il menu resta visibile sotto la testata. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .js .nav { display: none; }
  .js .nav[data-open='true'] { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--t-base); }
  .nav__links a:hover { background: none; }
  .nav__links a[aria-current='page']::after { display: none; }
  .nav__cta { margin-top: 20px; min-height: 50px; font-size: var(--t-base); }
  .nav__mobile-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
  }
  .nav__mobile-extra > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
  .nav__mobile-extra .langswitch a { min-width: 48px; padding: 9px 10px; font-size: var(--t-sm); }
}

@media (max-width: 720px) {
  .topbar__contacts a[href^='mailto'],
  .topbar__hours { display: none; }
}

/* --- Hero (home) -------------------------------------------------------- */

.hero { padding: clamp(40px, 4vw, 64px) 0 clamp(48px, 4vw, 64px); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}
.hero h1 { font-size: var(--t-4xl); line-height: 1.06; letter-spacing: -0.03em; max-width: 13em; }
.hero__lede { margin-top: 24px; max-width: 36em; font-size: var(--t-md); line-height: 1.6; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--t-sm);
}
.hero__phone .icon { color: var(--brand); }
.hero__phone a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hero__phone a:hover { color: var(--brand); }
.hero__phone span::before { content: '·'; margin-right: 10px; color: var(--line-strong); }

.hero__media { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.photo--hero { aspect-ratio: 1 / 1.06 !important; }

/* Scheda di glossario sovrapposta alla foto. */
.gcard {
  position: absolute;
  left: clamp(-56px, -3.5vw, -24px);
  bottom: 36px;
  width: 268px;
  padding: 18px 20px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.gcard__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: var(--t-xs);
  font-weight: 650;
}
.gcard__src {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--t-base);
  font-weight: 650;
  line-height: 1.3;
}
.gcard__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.gcard__list li { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); line-height: 1.35; color: var(--ink-2); }
.gcard__list .code { background: var(--surface-2); color: var(--ink-2); }
.gcard__note { margin-top: 12px; color: var(--muted); font-size: 0.75rem; }

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { justify-self: stretch; max-width: none; }
  .photo--hero { aspect-ratio: 4 / 3 !important; }
  .gcard { position: relative; left: auto; bottom: auto; width: auto; margin: -56px 16px 0; }
}

/* --- Fascia di fiducia -------------------------------------------------- */

.trust { border-block: 1px solid var(--line); background: var(--bg); }
.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 22px;
}
.trust__list li { display: flex; }
.trust__list a,
.trust__plain { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.trust__list a:hover strong { color: var(--brand); }
.trust__icon { width: 28px; height: 28px; color: var(--brand); }
.trust__list strong { display: block; font-size: var(--t-sm); line-height: 1.3; }
.trust__list span span { display: block; color: var(--muted); font-size: var(--t-xs); line-height: 1.4; }

@media (max-width: 1023px) {
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
}
@media (max-width: 480px) {
  .trust__list { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Testata delle pagine interne -------------------------------------- */

.pagehead { padding: 28px 0 clamp(48px, 5vw, 72px); background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 clamp(28px, 3vw, 44px); padding: 0; font-size: var(--t-xs); }
.crumbs li { display: flex; align-items: center; color: var(--muted); }
.crumbs li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 10px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current='page'] { color: var(--ink); font-weight: 550; }

.pagehead__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pagehead--media .pagehead__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.pagehead h1 { font-size: var(--t-3xl); letter-spacing: -0.028em; max-width: 18em; }
.pagehead__lede { margin-top: 20px; max-width: 40em; font-size: var(--t-md); line-height: 1.6; }
.pagehead__actions { margin-top: 28px; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.subnav a {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 550;
  text-decoration: none;
}
.subnav a:hover { border-color: var(--brand); color: var(--brand); }
.subnav a[aria-current='page'] { border-color: var(--brand); background: var(--brand); color: #fff; }

@media (max-width: 899px) {
  .pagehead--media .pagehead__inner { grid-template-columns: 1fr; }
}

/* --- Fotografie --------------------------------------------------------- */

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.pagehead .photo { border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* Segnaposto finché la foto non è consegnata: deve leggere come "manca",
   non come scelta di design. */
.photo--pending {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--brand-50), var(--brand-100));
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent);
}
.photo__pending {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  color: var(--brand-700);
  font-size: var(--t-sm);
  text-align: center;
  line-height: 1.5;
}
.photo__pending .icon { width: 32px; height: 32px; opacity: 0.7; }
.photo__pending code { color: var(--muted); }

/* --- Sezioni ------------------------------------------------------------ */

.section { padding-block: var(--section); }
.section--alt { background: var(--surface); }

.flow > .block + .block { margin-top: 48px; }
.flow > .block--heading + .block { margin-top: 36px; }
.flow > .block + .block--heading { margin-top: 72px; }

.sec-head h2,
.block-title { font-size: var(--t-2xl); max-width: 22em; }
.block-title { margin-bottom: 28px; font-size: var(--t-xl); }
.sec-head__sub { margin-top: 16px; max-width: 46em; color: var(--muted); font-size: var(--t-md); line-height: 1.6; }

.block-sub { margin: -12px 0 28px; max-width: 46em; color: var(--muted); }
.block-more { margin-top: 24px; }
.block-caption { margin-top: 14px; max-width: 60em; color: var(--muted); font-size: var(--t-sm); }

/* Risposta diretta: apre la pagina, citabile per intero. */
.answer { max-width: 44em; }
.answer p { color: var(--ink); font-size: var(--t-lg); line-height: 1.6; letter-spacing: -0.005em; }
.answer p + p { margin-top: 0.8em; }

.prose { max-width: 44em; }
.prose p + p { margin-top: 1em; }

/* --- Blocco: elenco con spunte ----------------------------------------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.45;
}
.icon--check { width: 20px; height: 20px; margin-top: 1px; color: var(--brand); stroke-width: 2.2; }

@media (max-width: 899px) { .checklist--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .checklist--2, .checklist--3 { grid-template-columns: 1fr; } }

/* --- Blocco: servizi ---------------------------------------------------- */

/* Servizi di punta: foto, descrizione e una riga di metodo. */
.services-lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lead-service {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s;
}
.lead-service:hover { border-color: var(--brand); color: inherit; }
.lead-service__photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.lead-service__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.lead-service:hover .lead-service__photo img { transform: scale(1.03); }
.lead-service__body { display: grid; align-content: start; gap: 12px; padding: clamp(24px, 3vw, 32px); }
.lead-service__h { color: var(--ink); font-size: var(--t-xl); font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; }
.lead-service__p { color: var(--ink-2); }
.lead-service__meta { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.lead-service__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--brand); font-weight: 600; }
.lead-service__more .icon { transition: transform 0.25s var(--ease); }
.lead-service:hover .lead-service__more .icon { transform: translateX(3px); }

/* Elenco compatto: righe separate da filetti, due colonne. */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}
.services--after { margin-top: 24px; }
.services li { border-bottom: 1px solid var(--line); }
.services li:nth-child(-n + 2) { border-top: 1px solid var(--line); }
.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: inherit;
  text-decoration: none;
}
.service__text { display: grid; gap: 4px; }
.service__h { color: var(--ink); font-size: var(--t-md); font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; transition: color 0.15s; }
.service__p { color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.service__arrow { color: var(--line-strong); transition: color 0.2s, transform 0.25s var(--ease); }
.service:hover { color: inherit; }
.service:hover .service__h { color: var(--brand); }
.service:hover .service__arrow { color: var(--brand); transform: translateX(3px); }

@media (max-width: 899px) { .services-lead { grid-template-columns: 1fr; } }
@media (max-width: 699px) {
  .services { grid-template-columns: 1fr; }
  .services li:nth-child(2) { border-top: 0; }
}

/* --- Blocco: fatti ------------------------------------------------------ */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
}
.fact { padding: 28px 28px 30px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.fact dt { color: var(--ink); font-size: var(--t-lg); font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; }
.fact dd { margin: 10px 0 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }

/* --- Blocco: glossario -------------------------------------------------- */

.terms {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.terms table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--t-sm); line-height: 1.45; }
.terms th, .terms td { padding: 14px 18px; text-align: left; vertical-align: top; }
.terms thead th { background: var(--surface); border-bottom: 1px solid var(--line); }
.terms tbody tr + tr > * { border-top: 1px solid var(--line); }
.terms tbody th { color: var(--ink); font-weight: 650; }
.terms td { color: var(--ink-2); }
.terms tbody th, .terms thead th:first-child { position: sticky; left: 0; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
.terms thead th:first-child { background: var(--surface); }

/* --- Blocco: passaggi --------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: none;
}
.steps li { position: relative; }
.steps__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 56px;
  right: -16px;
  height: 1px;
  background: var(--line-strong);
}
.steps p { margin-top: 10px; color: var(--muted); font-size: var(--t-sm); }

@media (max-width: 599px) {
  .steps li:not(:last-child)::after { display: none; }
}

/* --- Blocco: certificati ------------------------------------------------ */

.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cert {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.cert__doc { align-self: start; display: block; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.cert__doc:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--brand-100), var(--shadow-lg); }
.cert__doc img { border-radius: 6px; }
.cert__title { font-size: var(--t-lg); line-height: 1.3; }
.cert__std { display: block; color: var(--brand); }
.cert__data { margin: 18px 0 20px; display: grid; gap: 12px; }
.cert__data dt { color: var(--muted); font-size: var(--t-xs); }
.cert__data dd { margin: 2px 0 0; color: var(--ink); font-size: var(--t-sm); line-height: 1.45; }
.cert .link-arrow { font-size: var(--t-sm); }

@media (max-width: 899px) { .certs { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .cert { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 20px; } }

/* --- Blocco: lingue ----------------------------------------------------- */

.langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.langs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--t-sm);
  line-height: 1.3;
}
.langs .code { min-width: 3.4em; }
@media (max-width: 479px) { .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Blocco: copertura interpreti -------------------------------------- */

.coverage {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.coverage li { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.coverage__country { color: var(--ink); font-size: var(--t-md); font-weight: 650; line-height: 1.3; }
.coverage__pair { margin: 6px 0 10px; color: var(--brand); font-size: var(--t-sm); font-weight: 650; }
.coverage li p:last-child { color: var(--muted); font-size: var(--t-sm); }

/* --- Blocco: FAQ -------------------------------------------------------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap__head { position: sticky; top: 112px; }
.faq-wrap__head h2 { font-size: var(--t-2xl); }
.faq-wrap__head p { margin-top: 16px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--ink);
  font-size: var(--t-md);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq__icon { margin-top: 2px; color: var(--brand); transition: transform 0.3s var(--ease); }
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 48px 24px 0; }
.faq__answer p { max-width: 42em; }
.faq__answer p + p { margin-top: 0.8em; }

@media (max-width: 899px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap__head { position: static; }
  .faq__answer { padding-right: 0; }
}

/* --- Blocco: contatti --------------------------------------------------- */

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact li { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.contact__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r); background: var(--brand-50); color: var(--brand); }
.contact__k { color: var(--muted); font-size: var(--t-sm); font-weight: 600; }
.contact__v { margin-top: 4px; color: var(--ink); line-height: 1.55; }
.contact a { font-weight: 600; }

/* --- Moduli ------------------------------------------------------------- */

.form {
  display: grid;
  gap: 20px;
  max-width: 780px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.form__req { color: var(--muted); font-size: var(--t-sm); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.field__opt { color: var(--muted); font-weight: 400; }
.field__hint { margin: 6px 0 0; color: var(--muted); font-size: var(--t-xs); }
.field__hint a { color: inherit; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input[type='file'] { padding: 9px 12px; cursor: pointer; }
.field input[type='file']::file-selector-button {
  margin-right: 14px;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
}
.field input:hover,
.field textarea:hover { border-color: var(--ink-2); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #b42318; box-shadow: 0 0 0 4px #fde4e1; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: var(--t-sm); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.form__actions { padding-top: 4px; }
.form__note { color: var(--muted); font-size: var(--t-sm); }

@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }

/* --- Inviti al preventivo ----------------------------------------------- */

.inline-cta { padding-top: clamp(40px, 4vw, 56px); }
.inline-cta + .section { padding-top: clamp(40px, 4vw, 56px); }
.inline-cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 28px;
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
  background: var(--brand-50);
}
.inline-cta__box p { max-width: 46em; color: var(--ink); font-size: var(--t-md); font-weight: 600; line-height: 1.45; }

.cta { padding: clamp(24px, 3vw, 40px) 0 var(--section); }
.section--alt + .cta { padding-top: var(--section); }
.cta__box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px 56px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}
.cta h2 { color: #fff; font-size: var(--t-2xl); max-width: 20em; }
.cta p { margin-top: 16px; max-width: 40em; color: rgba(255, 255, 255, 0.86); font-size: var(--t-md); }
.cta__actions { display: grid; justify-items: start; gap: 14px; }
.cta__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; }
.cta__phone:hover { color: #fff; text-decoration: underline; }
.cta :focus-visible { outline-color: #fff; }

@media (max-width: 899px) { .cta__box { grid-template-columns: 1fr; } }

/* --- Footer ------------------------------------------------------------- */

.footer { padding: clamp(48px, 5vw, 72px) 0 32px; border-top: 1px solid var(--line); background: var(--bg); font-size: var(--t-sm); }
.footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px 48px; }
.footer__brand .brand__logo { height: 44px; }
.footer__brand p { margin-top: 20px; max-width: 34ch; color: var(--muted); }
.footer__certs { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.footer__certs li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.footer__certs .icon { color: var(--brand); }
.footer__col h2 { margin-bottom: 16px; font-size: var(--t-sm); font-weight: 650; letter-spacing: 0; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a, .footer__col li > span { color: var(--ink-2); text-decoration: none; }
.footer__col a:hover { color: var(--brand); text-decoration: underline; }
.footer address { color: var(--ink-2); line-height: 1.7; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-xs);
}
.footer__legal a { color: var(--muted); }

@media (max-width: 1023px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .footer__cols { grid-template-columns: 1fr; } }

/* --- Movimento ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --- Ritocchi mobile ---------------------------------------------------- */

@media (max-width: 559px) {
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__phone { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
  .hero__phone span { grid-column: 2; }
  .hero__phone span::before { content: none; }
  .pagehead__actions .btn { width: 100%; }
  .answer p { font-size: var(--t-md); }
}
