@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --table: #edf0f0;      /* piano luminoso del banco di cernita */
  --white: #ffffff;
  --rubber: #1b1d1f;     /* gomma nera */
  --rubber-2: #26292c;
  --steel: #566067;
  --steel-light: #c9d0d2;
  --line: #cbd2d4;
  --line-dark: #3a3f43;
  --orange: #ee7a1f;     /* arancione delle etichette aziendali */
  --orange-deep: #a8480a;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 72px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--table);
  color: var(--rubber);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 {
  font-stretch: 112%;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 1.1rem + 3.9vw, 3.9rem); line-height: 1.02; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.3rem; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 10px 16px; background: var(--rubber); color: var(--white); border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; color: var(--steel); max-width: 34em; }
.muted { color: var(--steel); }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-thickness 0.15s;
}
.link:hover { text-decoration-thickness: 4px; }

/* ---------- Pulsanti ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button .icon { flex: none; }
.button-accent { background: var(--orange); color: var(--rubber); }
.button-accent:hover { background: var(--rubber); color: var(--white); }
.button-outline { border-color: var(--rubber); }
.button-outline:hover { background: var(--rubber); color: var(--white); }
.button-outline-light { border-color: rgb(255 255 255 / 0.35); color: var(--white); }
.button-outline-light:hover { background: var(--white); color: var(--rubber); border-color: var(--white); }
.cta .button-accent:hover { background: var(--white); color: var(--rubber); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Testata ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(237 240 240 / 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(27 29 31 / 0.5); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.45rem; font-weight: 700; font-stretch: 116%; letter-spacing: -0.02em;
  text-decoration: none; line-height: 1;
}
.brand-mark { color: var(--orange); flex: none; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgb(255 255 255 / 0.8); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--orange);
}
.nav-links a.nav-contact { margin-left: 10px; padding-inline: 18px; background: var(--rubber); color: var(--white); }
.nav-links a.nav-contact::after { display: none; }
.nav-links a.nav-contact:hover { background: var(--orange); color: var(--rubber); }

.lang-switch { display: flex; padding: 3px; gap: 2px; background: rgb(255 255 255 / 0.7); border: 1px solid var(--line); border-radius: 8px; }
.lang-switch a { display: block; padding: 5px 9px; border-radius: 5px; font-size: 0.8125rem; font-weight: 650; text-decoration: none; color: var(--steel); }
.lang-switch a:hover { color: var(--rubber); }
.lang-switch a[aria-current="true"] { background: var(--rubber); color: var(--white); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px;
  background: none; border: 2px solid var(--rubber); border-radius: var(--radius);
  font: inherit; font-weight: 600; color: inherit; cursor: pointer;
}
.menu-toggle-bars { position: relative; width: 18px; height: 2px; background: currentColor; transition: background-color 0.15s; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform 0.2s; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 8px var(--gutter) 28px;
    background: var(--table); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgb(27 29 31 / 0.35);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 15px 4px; font-size: 1.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:hover { background: none; }
  .nav-links a[aria-current="page"]::after { left: 0; right: auto; top: 50%; bottom: auto; width: 4px; height: 22px; transform: translate(-14px, -50%); }
  .nav-links a.nav-contact { margin: 18px 0 0; padding: 15px 18px; text-align: center; border-bottom: 0; border-radius: var(--radius); }
  .lang-switch { align-self: flex-start; }
  .lang-switch a { padding: 9px 16px; font-size: 0.9375rem; }
}

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 104px); overflow: hidden; }
.hero::before {
  /* carta millimetrata del banco di controllo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgb(27 29 31 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(27 29 31 / 0.06) 1px, transparent 1px);
  background-size: 23px 23px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 78% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 55% 75% at 78% 50%, #000 30%, transparent 80%);
}
.hero-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text .lead { margin-top: 24px; }
.hero-text .actions { margin-top: 36px; }
.hero-figure { min-width: 0; }

.inspection { display: block; width: 100%; overflow: visible; }
.inspection-arm { stroke: #a5afb3; }
.inspection-shadow { fill: rgb(27 29 31 / 0.14); }
.inspection-flash { fill: var(--orange); }
.inspection-rim { stroke: #a5afb3; }
.inspection-label rect { fill: var(--orange); }
.inspection-label text { fill: var(--rubber); font-size: 16px; font-weight: 650; }

/* La lente controlla i pezzi uno alla volta e si ferma su quello con la bava. */
@media (prefers-reduced-motion: no-preference) {
  .inspection-lens { animation: scan 2.6s cubic-bezier(0.45, 0, 0.25, 1) 0.3s both; }
  .inspection-flash, .inspection-label { animation: found 0.3s ease-out 2.75s both; }
}
@keyframes scan {
  0% { transform: translate(-276px, 0); opacity: 0; }
  8% { transform: translate(-276px, 0); opacity: 1; }
  24%, 34% { transform: translate(-184px, 0); }
  50%, 60% { transform: translate(-92px, 0); }
  80%, 100% { transform: none; opacity: 1; }
}
@keyframes found {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}
.inspection-label { transform-box: fill-box; transform-origin: left center; }

@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-figure { max-width: 520px; }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 80% 40% at 40% 78%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 40% at 40% 78%, #000 30%, transparent 80%); }
}

/* ---------- Loghi che scorrono ---------- */

.partners-band { background: var(--white); border-block: 1px solid var(--line); padding-block: 28px 20px; }
.partners-band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.partners-band-head h2 { font-size: 1.1rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--steel); }
.partners-band-head .link { font-size: 0.9375rem; }

.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track li { display: flex; align-items: center; height: 104px; padding-inline: clamp(28px, 4vw, 48px); flex: none; }
.marquee-track img { display: block; max-width: none; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-toggle {
  position: absolute; right: 8px; bottom: 6px;
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--steel); cursor: pointer;
  opacity: 0; transition: opacity 0.15s;
}
.marquee:hover .marquee-toggle, .marquee-toggle:focus-visible, .marquee.is-paused .marquee-toggle { opacity: 1; }
.marquee-toggle .i-play, .marquee.is-paused .marquee-toggle .i-pause { display: none; }
.marquee.is-paused .marquee-toggle .i-play { display: inline; }
@media (hover: none) { .marquee-toggle { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
  .marquee-track li[aria-hidden="true"], .marquee-toggle { display: none; }
}

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

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-top: clamp(16px, 3vw, 40px); }
.section-white { background: var(--white); }
.section-dark { background: var(--rubber); color: var(--white); }
.section-dark p { color: var(--steel-light); }
.section-dark .link { color: var(--white); }

.section-head { margin-bottom: clamp(36px, 4vw, 56px); max-width: 44em; }
.section-head p { margin-top: 14px; font-size: 1.15rem; color: var(--steel); }

.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 56px); overflow: hidden; }
.page-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; align-items: center; }
.page-head .lead { margin-top: 20px; }
.page-drawing { display: block; width: 100%; color: #a5afb3; }
.page-drawing-axis { color: #b8c0c3; }
.page-drawing-dim { stroke: var(--orange-deep); color: var(--orange-deep); }
.page-drawing-text { font-family: inherit; }
.page-drawing-text text:nth-child(-n+2) { fill: var(--orange-deep); }

@media (max-width: 760px) {
  .page-head-row { grid-template-columns: 1fr; }
  .page-drawing { display: none; }
}

/* ---------- Lavorazioni ---------- */

.photo { display: block; width: 100%; aspect-ratio: 346 / 196; object-fit: cover; object-position: top; background: var(--line); }

.tag { display: block; margin-top: 6px; font-weight: 600; color: var(--orange-deep); }

.process-step {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 6px solid var(--rubber); border-radius: 50%;
  background: var(--table);
  font-weight: 700; font-size: 1.05rem; line-height: 1;
}

.process { --gap: clamp(20px, 2.5vw, 32px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: none; }
.process > li { position: relative; display: flex; flex-direction: column; padding-top: 70px; }
.process > li::before { content: ""; position: absolute; left: 0; right: calc(-1 * var(--gap)); top: 22px; border-top: 2px solid var(--rubber); }
.process > li:last-child::before { right: 0; }
.process .process-step { position: absolute; left: 0; top: 0; }

.process-card {
  display: flex; flex-direction: column; flex: 1;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
}
.process-card .photo { transition: transform 0.4s ease; }
.process-card:hover { box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgb(27 29 31 / 0.45); transform: translateY(-3px); }
.process-card:hover .photo { transform: scale(1.04); }
.process-card > .photo { border-radius: 0; }
.process-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; background: var(--white); position: relative; }
.process-title { font-size: 1.45rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.1; }
.process-text { margin-top: 10px; color: var(--steel); flex: 1; }
.process-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; }
.process-more .icon-arrow { color: var(--orange-deep); transition: transform 0.2s; }
.process-card:hover .process-more .icon-arrow { transform: translateX(4px); }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 40px; }
  .process > li { padding: 0 0 0 64px; }
  .process > li::before { left: 22px; right: auto; top: 0; bottom: -40px; border-top: 0; border-left: 2px solid var(--rubber); }
  .process > li:last-child::before { bottom: auto; height: 46px; }
}

.service-list { display: grid; gap: clamp(48px, 7vw, 96px); }
.service-list > li { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.service-list > li:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.service-list > li:nth-child(even) .service-media { order: 2; }
.service-list > li:nth-child(even) .service-text { justify-self: end; }
.service-media { position: relative; isolation: isolate; }
.service-media::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 2px solid var(--rubber); border-radius: var(--radius-lg);
}
.service-list > li:nth-child(even) .service-media::after { inset: 14px 14px -14px -14px; }
.service-media .photo { border-radius: var(--radius-lg); }
.service-text { max-width: 34em; }
.service-text h2 { margin-top: 18px; }
.service-text .tag + p { margin-top: 14px; font-size: 1.125rem; }

@media (max-width: 760px) {
  .service-list > li, .service-list > li:nth-child(even) { grid-template-columns: 1fr; }
  .service-list > li:nth-child(even) .service-media { order: 0; }
  .service-list > li:nth-child(even) .service-text { justify-self: start; }
  .service-media { max-width: 460px; margin-right: 14px; }
  .service-list > li:nth-child(even) .service-media::after { inset: 14px -14px -14px 14px; }
}

.note { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: start; margin-top: clamp(56px, 7vw, 96px); padding: clamp(24px, 4vw, 40px); background: var(--white); border-radius: var(--radius-lg); border-left: 6px solid var(--orange); }
.note h2 { font-size: 1.5rem; }
.note p { max-width: 40em; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; } }

/* ---------- Chi siamo ---------- */

.about-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-row h2 + p { margin-top: 22px; font-size: 1.15rem; max-width: 34em; }
.about-row p + p { margin-top: 26px; }

.stats { display: grid; }
.stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 16px; border-top: 1px solid currentColor; }
.stats > div:last-child { border-bottom: 1px solid currentColor; }
.stats dt { font-size: 1rem; }
.stats dd { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); font-weight: 650; font-stretch: 122%; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.section-dark .stats > div { border-color: var(--line-dark); }
.section-dark .stats dt { color: var(--steel-light); }
.section-dark .stats dd { color: var(--orange); }

.about-page { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-page .stats > div { border-color: var(--line); }
.prose-large { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); line-height: 1.5; max-width: 32em; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.values li { padding-top: 22px; border-top: 6px solid var(--rubber); }
.values p { margin-top: 10px; color: var(--steel); }
.section-dark .values { margin-top: clamp(56px, 7vw, 96px); }
.section-dark .values li { border-top-color: var(--orange); }
.section-dark .values p { color: var(--steel-light); }

.where { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); }
.where p + p { margin-top: 12px; }
.where-address { font-weight: 600; font-size: 1.2rem; }

@media (max-width: 860px) {
  .about-row, .about-page, .where { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Partner ---------- */

.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner-grid li {
  display: grid; place-items: center; min-height: 170px; padding: 28px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 var(--line);
}
.partner-grid img { display: block; max-width: 100%; height: auto; }

@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .partner-grid li { min-height: 120px; padding: 18px; } }

/* ---------- Contatti ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.contact-card { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 1px 0 var(--line); }
.contact-card-wide { grid-column: span 3; }
.contact-card > .icon { color: var(--orange-deep); }
.contact-card h2 { margin-top: 14px; font-size: 1.05rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--steel); }
.contact-card p { margin-top: 10px; }
.contact-card .button { margin-top: 6px; }
.contact-card-main { background: var(--rubber); color: var(--white); box-shadow: none; }
.contact-card-main > .icon { color: var(--orange); }
.contact-card-main h2 { color: var(--steel-light); }
.contact-big { font-size: 1.5rem; font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.contact-big:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.contact-email { font-size: 1.2rem; white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card, .contact-card-wide { grid-column: auto; }
}

/* ---------- Testi lunghi (privacy) ---------- */

.prose { max-width: 44em; }
.prose h2 { font-size: 1.35rem; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; }
.prose p.muted { margin-top: 48px; font-size: 0.9375rem; }

/* ---------- Invito al contatto ---------- */

.cta { position: relative; overflow: hidden; background: var(--rubber); color: var(--white); padding-block: clamp(56px, 8vw, 96px); }
.cta::after {
  /* un O-ring fuori scala che esce dal bordo */
  content: ""; position: absolute; right: -140px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  border: 56px solid var(--rubber-2); border-radius: 50%; pointer-events: none;
}
.cta-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, auto); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta h2 { max-width: 20em; }
.cta p { margin-top: 14px; color: var(--steel-light); font-size: 1.15rem; }
.cta-actions { display: grid; gap: 12px; }
.cta-actions .button { justify-content: flex-start; }

@media (max-width: 860px) {
  .cta-row { grid-template-columns: 1fr; }
  .cta::after { right: -220px; top: auto; bottom: -260px; transform: none; }
}

/* ---------- Piè di pagina ---------- */

.site-footer { background: var(--rubber); color: var(--steel-light); border-top: 1px solid var(--line-dark); padding-block: 56px 28px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.brand-footer { color: var(--white); }
.footer-tagline { margin-top: 16px; max-width: 24em; }
.site-footer h2 { font-size: 1rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--white); margin-bottom: 12px; }
.site-footer li { padding-block: 4px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 0.9rem; }

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

/* ---------- Barra rapida su telefono ---------- */

.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: rgb(27 29 31 / 0.96); border-top: 1px solid var(--line-dark);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: var(--radius); font-weight: 600; text-decoration: none; color: var(--white); border: 2px solid rgb(255 255 255 / 0.3);
  }
  .mobile-bar a:first-child { background: var(--orange); color: var(--rubber); border-color: var(--orange); }
}

/* ---------- 404 ---------- */

.not-found { min-height: 100vh; display: grid; align-items: center; padding-block: 64px; }
.not-found .brand { margin-bottom: 48px; color: var(--rubber); }
.not-found [lang] { padding-block: 28px; border-top: 1px solid var(--line); }
.not-found h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.not-found p { margin-top: 10px; color: var(--steel); }
.not-found .button { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
