/* =========================================================
   Daniele Franchi Textile – foglio di stile unico
   Desktop di riferimento 1440 px. Varianti:
   - laptop piccolo  1025–1359 px
   - schermo XL      ≥ 1700 px
   - tablet          ≤ 1024 px (design 768)
   - telefono        ≤ 600 px  (design 390)
   ========================================================= */

/* Inter Tight (variabile 100–900), ospitato sul sito: nessuna chiamata a servizi esterni */
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --paper: #F6F4EF;
  --muted: #5C5A55;
  --muted-light: #C9C6BF;
  --orange: #FF6236;
  --stone: #D9D7D2;
  --white: #FFFFFF;

  --wrap: 1360px;
  --pad: 32px;
  --space: 96px;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "wght" 400;
}

h1, h2, h3, strong {
  font-weight: 900;
  font-variation-settings: "wght" 900;
}

a { color: var(--ink); }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

img, svg { display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  box-sizing: content-box;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 8px; color: var(--paper); }

.label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.muted { color: var(--muted-light); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
.btn .icon-arrow { transform: rotate(45deg); transition: transform .35s var(--ease); }
.btn:hover .icon-arrow, .btn:focus-visible .icon-arrow { transform: none; }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--orange); color: var(--ink); }

.btn--line { border: 1px solid var(--ink); color: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { background: var(--ink); color: var(--paper); }

.btn--nav { min-height: 48px; padding: 0 20px; font-size: 13px; }
.btn--big { min-height: 60px; padding: 0 28px; font-size: 15px; gap: 20px; }

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

/* ---------- Header ---------- */
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.logo {
  display: flex;
  gap: 0.28em;
  white-space: nowrap;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo__strong { font-variation-settings: "wght" 900; font-weight: 900; }

.menu-toggle { display: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav__link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}
.nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav__lang { color: var(--muted); }

.nav__sub { position: relative; }
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 20;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__sub:hover .nav__dropdown,
.nav__sub:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: block; padding: 9px 16px; text-decoration: none; }
.nav__dropdown a:hover, .nav__dropdown a:focus-visible { background: var(--ink); color: var(--paper); outline: none; }

.strip {
  border-top: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.strip a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 32px 64px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.hero__title {
  margin: 0;
  flex: 1 1 560px;
  max-width: 820px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.hero__side {
  flex: 0 1 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.hero__text { margin: 0; font-size: 18px; line-height: 1.5; }

/* ---------- Banner colorato ---------- */
.banner { display: flex; min-height: 460px; }
.banner__item {
  flex: 1 1 0;
  min-width: 0;
  background: var(--c);
  color: var(--fg, var(--ink));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 13px;
}
.banner__item--wide { flex-grow: 2; }
.banner__stack { flex: 1.4 1 0; min-width: 0; display: grid; grid-template-rows: 1fr 2fr; }
.banner__title { text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Dati chiave ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}
.stats__item { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stats__item:first-child { padding-left: 0; }
.stats__item + .stats__item { border-left: 1px solid var(--ink); }
.stats__big {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-variation-settings: "wght" 900;
  font-weight: 900;
}
.stats__note { font-size: 14px; color: var(--muted); }

/* ---------- Sezioni ---------- */
.section { padding-top: var(--space); }
.section__head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; }
.section__head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section__titles { display: flex; flex-direction: column; gap: 16px; }
.section__intro { margin: 0; max-width: 380px; font-size: 16px; }
.partners .section__intro { max-width: 400px; }

.h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.h2--tessuti { max-width: 904px; }
.h2--partner { max-width: 860px; }

/* ---------- Card categorie ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card {
  background: var(--c);
  color: var(--fg, var(--ink));
  min-height: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color .35s ease, color .35s ease;
}
.card__top { display: flex; flex-direction: column; gap: 8px; }
.card__title { margin: 0; font-size: 26px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.card__desc { font-size: 15px; }
.card__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.card__tag { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.card .icon-arrow-card { flex: none; transition: transform .35s var(--ease); }
/* Hover provvisorio: negativo (la scelta definitiva è ancora aperta) */
.card:hover, .card:focus-visible { background: var(--ink); color: var(--hover, var(--c)); }
.card:hover .icon-arrow-card, .card:focus-visible .icon-arrow-card { transform: rotate(-45deg); }
.after-cards { padding-top: 24px; }

/* ---------- Schede / fisarmoniche ---------- */
.acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.acc--partners { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.acc__item { background: var(--white); padding: 20px; }
.acc__head {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  cursor: default;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head::marker { content: ""; }
.acc__num { font-size: 26px; font-variation-settings: "wght" 900; font-weight: 900; }
.acc__title { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.acc__swatch { flex: 0 0 100%; height: 140px; margin-top: 16px; background: var(--sw); color: var(--ink); }
.acc__swatch--light { border: 1px solid var(--stone); }
.acc__swatch .acc-plus { display: none; }
.acc__body { margin: 16px 0 0; font-size: 15px; line-height: 1.55; }

.acc--partners .acc__item { padding: 18px; }
.acc--partners .acc__num { font-size: 22px; }
.acc--partners .acc__title { font-size: 14px; }
.acc--partners .acc__swatch { height: 64px; margin-top: 14px; }
.acc--partners .acc__body { margin-top: 14px; font-size: 14px; line-height: 1.5; }

/* ---------- Provenienza ---------- */
.origin { display: flex; flex-wrap: wrap; gap: 48px; }
.origin__head { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.origin__list { flex: 2 1 640px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.origin__list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding: 18px 0; border-bottom: 1px solid var(--ink);
}
.origin__sw { flex: 0 0 20px; width: 20px; height: 20px; }
.origin__list strong { flex: 0 0 300px; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.origin__text { flex: 1 1 260px; font-size: 15px; }

/* ---------- Come lavoriamo ---------- */
.steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.steps li { padding: 20px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--ink); }
.steps__num { font-size: 72px; line-height: 0.9; letter-spacing: -0.04em; font-variation-settings: "wght" 900; font-weight: 900; }
.steps h3 { margin: 0; font-size: 18px; text-transform: uppercase; }
.steps p { margin: 0; font-size: 15px; }

/* ---------- Per chi lavoriamo ---------- */
.partners { margin-top: var(--space); background: var(--stone); }
.partners__inner { padding-top: 80px; padding-bottom: 80px; }

/* ---------- Dove lavoriamo / fiere ---------- */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 48px; padding-bottom: var(--space); }
.places__col { display: flex; flex-direction: column; gap: 20px; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.rows li { padding: 16px 0; border-bottom: 1px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.rows strong { font-size: 20px; text-transform: uppercase; }
.rows span { font-size: 15px; }

/* ---------- Banda finale ---------- */
.cta { background: var(--orange); }
.cta__inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cta__text { flex: 1 1 600px; display: flex; flex-direction: column; gap: 20px; }
.cta__title { margin: 0; font-size: clamp(48px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; }
.cta__text p { margin: 0; max-width: 520px; font-size: 18px; }
.cta .btn--dark:hover, .cta .btn--dark:focus-visible { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--muted-light); }
.site-footer__inner { padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; font-size: 15px; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; }
.site-footer__name { font-size: 22px; line-height: 1.05; text-transform: uppercase; font-variation-settings: "wght" 900; font-weight: 900; }
/* Nome intero su una riga a ogni larghezza: 12.3 = larghezza della scritta / corpo (Inter Tight 900, -0.04em) */
.site-footer__big { font-size: min(calc((100vw - 2 * var(--pad)) / 12.3), calc(var(--wrap) / 12.3)); white-space: nowrap; line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; font-variation-settings: "wght" 900; font-weight: 900; }
.site-footer__legal { border-top: 1px solid var(--muted); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-light); }
.site-footer__legal a { color: var(--muted-light); }

/* =========================================================
   Pagina Tessuti e pagine categoria
   ========================================================= */
.btn .icon-arrow--down, .btn:hover .icon-arrow--down { transform: none; }
.strip__phone { display: none; }
.section--last { padding-bottom: var(--space); }

/* Barra sopra le categorie */
.bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px; padding: 24px 0 16px; border-top: 1px solid var(--ink);
}
.bar__note { color: var(--muted); }

/* Card della pagina Tessuti (con numero) e card "Potrebbero interessarti" */
.cards--tessuti { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards--tessuti .card__title { font-size: 28px; }
.cards--tessuti .card__tag { font-size: 13px; }
.cards--related { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards--related .card { min-height: 260px; }
.cards--related .card__bottom { justify-content: flex-end; }

/* A stock / Da produrre */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.modes__item { background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.modes__item--dark { background: var(--ink); color: var(--paper); }
.modes__big {
  font-size: 56px; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase;
  font-variation-settings: "wght" 900; font-weight: 900;
}
.modes__item p { margin: 0; font-size: 16px; max-width: 460px; }
.modes__note { margin: 0; padding-top: 16px; font-size: 15px; color: var(--muted); }

/* Titolo a sinistra, contenuto a destra (certificazioni) */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split__head { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.split__text { margin: 0; max-width: 380px; font-size: 16px; }
.split__link { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.split__body { flex: 2 1 640px; display: flex; flex-direction: column; gap: 24px; }

.certs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.certs li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px;
  padding: 16px 0; border-bottom: 1px solid var(--ink);
}
.certs__group { flex: 0 0 280px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.certs__name { flex: 1 1 260px; font-size: 18px; }
.certs__extra { margin: 0; font-size: 15px; }
.certs__extra .label { font-size: 13px; }

.recycled {
  background: #2F7D52; color: var(--paper); padding: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px;
}
.recycled__title { margin: 0; font-size: 32px; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }
.recycled p { margin: 0; max-width: 460px; font-size: 16px; }

.namelist { display: block; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.namelist li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding: 18px 0; border-bottom: 1px solid var(--ink);
}
.namelist strong { flex: 0 0 300px; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.namelist span { flex: 1 1 260px; font-size: 15px; }

/* Servizi: griglia su desktop/tablet, fisarmonica sul telefono */
.acc--servizi {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--ink); border: 1px solid var(--ink);
}
.acc--servizi .acc__item { background: var(--paper); padding: 24px 28px 32px; min-height: 200px; }
.acc--servizi .acc__head { flex-direction: column; align-items: flex-start; gap: 12px; }
.acc--servizi .acc__num {
  font-size: 13px; font-weight: 400; font-variation-settings: "wght" 400;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.acc--servizi .acc__title { font-size: 24px; line-height: 1; letter-spacing: -0.01em; }
.acc--servizi .acc__swatch { display: none; }
.acc--servizi .acc__body { margin-top: 12px; max-width: 360px; font-size: 15px; line-height: 1.5; }

/* Fascia colorata delle pagine categoria */
.fascia { display: flex; min-height: 420px; }
.fascia__item {
  flex: var(--w) 1 calc(var(--w) * 220px);
  min-width: 0;
  background: var(--c);
  color: var(--fg, var(--ink));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 24px; font-size: 13px;
}
.fascia__title { text-transform: uppercase; letter-spacing: 0.04em; }

/* Articoli: tabella su desktop */
.items-wrap { overflow-x: auto; }
.items { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; line-height: 1.45; text-align: left; }
.items thead th {
  padding: 0 16px 12px; border-bottom: 1px solid var(--ink);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 400; font-variation-settings: "wght" 400;
}
.items tbody th, .items td { padding: 18px 16px; border-bottom: 1px solid var(--ink); }
.items th:first-child { padding-left: 0; }
.items th:last-child, .items td:last-child { padding-right: 0; }
.items__name { font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; font-weight: 700; font-variation-settings: "wght" 700; }
.items__peso-card { display: none; }
.items-after { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; }
.items-after p { margin: 0; font-size: 16px; }

/* =========================================================
   Pagine legali (privacy, cookie) e pagina 404
   ========================================================= */
.hero--legal { align-items: flex-end; padding-bottom: 56px; }
.hero--legal .hero__title { flex-basis: 520px; }
.hero--legal .hero__side { justify-content: flex-end; gap: 20px; }
.hero--legal .hero__text { max-width: 560px; }
.legal__updated { color: var(--muted); }

.legal { display: flex; gap: 64px; align-items: flex-start; padding-bottom: var(--space); }
.legal__toc { flex: 0 0 300px; position: sticky; top: 24px; }
.legal__toc-title { display: block; padding-bottom: 12px; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }
.legal__toc li { border-top: 1px solid var(--ink); }
.legal__toc li a { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; font-size: 15px; line-height: 1.3; text-decoration: none; }
.legal__toc-num { flex: 0 0 24px; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.legal__other { margin-top: 20px; }

.legal__body { flex: 1 1 auto; min-width: 0; max-width: 840px; display: flex; flex-direction: column; }
.legal__sec { border-top: 1px solid var(--ink); padding: 20px 0 40px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 24px; scroll-margin-top: 24px; }
.legal__num { font-size: 28px; line-height: 1; font-variation-settings: "wght" 900; font-weight: 900; }
.legal__content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.legal__content p { margin: 0; font-size: 17px; line-height: 1.6; }
.legal__h2 { margin: 0; font-size: 28px; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; }
.legal__list { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.5; }
.legal__list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding: 6px 0; }
.legal__list li::before { content: "–"; }
.legal__rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }
.legal__rows li { border-top: 1px solid var(--ink); padding: 14px 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px 24px; }
.legal__rows strong { font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; }
.legal__rows span { font-size: 17px; line-height: 1.5; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; text-align: left; }
.legal__table thead th {
  padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 400; font-variation-settings: "wght" 400;
}
.legal__table tbody th, .legal__table td { width: 50%; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.legal__table tbody th { font-weight: 900; font-variation-settings: "wght" 900; }

.legal__box { background: var(--white); padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.legal__box-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.legal__mail { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; text-decoration: none; font-variation-settings: "wght" 900; font-weight: 900; }

.e404 { padding-top: 48px; padding-bottom: 64px; }
.e404__big {
  font-size: 360px; line-height: 0.8; letter-spacing: -0.05em; font-variation-settings: "wght" 900; font-weight: 900;
  padding-bottom: 32px; border-bottom: 1px solid var(--ink);
}
.hero.e404__hero { padding: 40px 0 0; align-items: flex-end; }
.e404__hero .hero__side { justify-content: flex-end; gap: 24px; }
.e404__tiles-wrap { padding-bottom: var(--space); }
.e404__bar { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.e404__tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.e404__tile {
  background: var(--c); color: var(--fg, var(--ink)); min-height: 220px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none;
  transition: background-color .35s ease, color .35s ease;
}
.e404__tile:hover, .e404__tile:focus-visible { background: var(--ink); color: var(--c); }
.e404__tile-num { font-size: 12px; letter-spacing: 0.04em; }
.e404__tile-name { font-size: 15px; line-height: 1.1; text-transform: uppercase; font-variation-settings: "wght" 900; font-weight: 900; }

/* =========================================================
   Contatti
   ========================================================= */
.hero--contact { padding-bottom: 64px; }
.contact { background: var(--orange); }
.contact__inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; }
.contact__mail-block { display: flex; flex-direction: column; gap: 10px; }
.contact__mail {
  font-size: clamp(28px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em; text-decoration: none;
  font-variation-settings: "wght" 900; font-weight: 900; overflow-wrap: anywhere;
}
.contact a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.contact__cell { background: var(--orange); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.contact__cell--phones { gap: 12px; }
.contact__phone { display: flex; flex-direction: column; gap: 2px; }
.contact__value { font-size: 24px; line-height: 1.15; text-decoration: none; font-variation-settings: "wght" 900; font-weight: 900; }
.contact__app { font-size: 13px; letter-spacing: 0.02em; }

.asklist { display: block; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.asklist li { display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--ink); }
.asklist__num { flex: 0 0 40px; font-size: 13px; letter-spacing: 0.04em; }
.asklist strong { font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.asklist__note { font-size: 15px; color: var(--muted); }
.rows--contact { display: block; }
.contact__b2b { flex: 1 1 100%; margin: 0; font-size: 14px; color: var(--muted); }

/* =========================================================
   Laptop piccolo (1025–1359 px)
   ========================================================= */
@media (min-width: 1025px) and (max-width: 1359px) {
  :root { --space: 80px; }
  .hero__title { font-size: 64px; max-width: 730px; }
  .steps__num { font-size: 64px; }
}

/* =========================================================
   Schermo XL (≥ 1700 px)
   ========================================================= */
@media (min-width: 1700px) {
  :root { --wrap: 1760px; --pad: 48px; --space: 128px; }
  .logo { font-size: 28px; }
  .hero { padding-top: 80px; padding-bottom: 64px; }
  .hero__title { flex-basis: 760px; max-width: 920px; font-size: 96px; line-height: 0.96; letter-spacing: -1.6px; }
  .hero__side { flex-basis: 520px; gap: 56px; }
  .hero__text { font-size: 21px; }
  .banner { min-height: 580px; }
  .stats__big { font-size: 60px; }
  .h2 { font-size: 84px; }
  .h2--tessuti { max-width: 1180px; }
  .h2--partner { max-width: 1100px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
  .card { min-height: 360px; }
  .acc--partners { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
  .card__title { font-size: 32px; }
  .steps__num { font-size: 104px; }
  .cta__title { font-size: 128px; }
}

/* =========================================================
   Tablet (≤ 1024 px) – design 768
   ========================================================= */
@media (max-width: 1024px) {
  .logo { font-size: 20px; }
  .nav { gap: 20px; }

  .hero { display: block; }
  .hero__title { max-width: 610px; font-size: clamp(44px, 7.2vw, 104px); line-height: 0.99; letter-spacing: -1.4px; }
  .br-desktop { display: none; }
  .hero__side { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 32px; padding-top: 40px; }
  .hero__text { flex: 1 1 420px; max-width: 560px; font-size: 19px; }

  .banner { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 120px 90px; min-height: 0; }
  .banner__stack { display: contents; }
  .banner__item { grid-column: span 2; padding: 14px 16px; }
  .banner > .banner__item:nth-child(1), .banner > .banner__item:nth-child(2) { grid-column: span 3; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--ink); }

  .cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(1), .steps li:nth-child(2) { padding-bottom: 28px; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--ink); }
  /* Pagina Tessuti e categorie */
  .acc--servizi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes__big { font-size: 44px; }
  .certs__group { flex-basis: 220px; }
  .namelist strong { flex-basis: 240px; }

  .fascia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 120px 90px; min-height: 0; }
  .fascia__item { padding: 14px 16px; }

  .cards--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--related .card { min-height: 220px; }
  .cards--related .card__title { font-size: 22px; }

  /* Articoli: ogni riga della tabella diventa una scheda */
  .items-wrap { overflow: visible; }
  .items, .items tbody { display: block; min-width: 0; }
  .items thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .items tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-bottom: 1px solid var(--ink); }
  .items tr {
    display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px 12px; align-content: start;
    border-top: 1px solid var(--ink); padding: 16px 0 18px;
  }
  .items tbody th, .items td { padding: 0; border: 0; }
  .items__name { grid-column: 1 / 3; grid-row: 1; padding-bottom: 4px; font-size: 20px; line-height: 1.05; font-weight: 900; font-variation-settings: "wght" 900; }
  .items__peso { grid-column: 3; grid-row: 1; font-size: 14px; white-space: nowrap; font-variation-settings: "wght" 900; font-weight: 900; }
  .items__peso-tab { display: none; }
  .items__peso-card { display: inline; }
  .items td[data-label] { grid-column: 1 / -1; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .items td[data-label]::before {
    content: attr(data-label); padding-top: 2px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  }
  /* Pagine legali e 404 */
  .legal { flex-direction: column; gap: 48px; }
  .legal__toc { flex: none; position: static; width: 100%; }
  .legal__toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .legal__body { max-width: none; width: 100%; }
  .e404__hero .hero__side, .hero--legal .hero__side { justify-content: flex-start; }
  .e404__big { font-size: 240px; }
  .e404__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .e404__tile { min-height: 160px; }
  /* Contatti */
  .contact__cell { padding: 20px; }
  .contact__value { font-size: 20px; line-height: 1.2; }
}

/* =========================================================
   Telefono (≤ 600 px) – design 390
   ========================================================= */
@media (max-width: 600px) {
  .site-header__bar { padding: 16px 0; gap: 12px; }
  .logo { font-size: 18px; min-width: 0; }

  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 48px; height: 48px; padding: 0;
    border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  }
  .menu-toggle__close { display: none; }
  .is-open .menu-toggle__open { display: none; }
  .is-open .menu-toggle__close { display: block; }

  .nav {
    flex: 0 0 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--ink); padding-bottom: 16px;
  }
  .js .nav { display: none; }
  .js .is-open .nav { display: flex; }
  .nav__link, .nav__sub > .nav__link {
    font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: -0.02em;
    font-variation-settings: "wght" 900; font-weight: 900;
    padding: 16px 0; border-bottom: 1px solid var(--ink); min-height: 0; display: flex;
  }
  .nav__chevron, .nav__dropdown { display: none; }
  .btn--nav { order: 4; margin-top: 16px; min-height: 52px; font-size: 14px; justify-content: space-between; }
  .nav__lang { order: 5; padding-top: 16px; min-height: 44px; }

  .strip__extra { display: none; }

  .hero { padding-top: 35px; }
  .hero__title { font-size: 38px; }
  .hero__side { padding-top: 40px; }

  .banner { grid-template-rows: 88px 68px; }
  .banner__item { padding: 10px 12px; font-size: 11px; }
  .banner__sub { display: none; }

  .stats { margin-top: 20px; }
  .stats__item { padding: 18px 12px 18px 0; }
  .stats__item:nth-child(even) { padding: 18px 0 18px 12px; }
  .stats__big { font-size: 24px; }
  .stats__note { font-size: 13px; line-height: 1.35; }

  .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
  .card { min-height: 112px; padding: 14px 16px; }
  .card__top { gap: 6px; }
  .card__title { font-size: 22px; }
  .card__desc { font-size: 14px; line-height: 1.4; }
  .card__tag { display: none; }
  .card__bottom { justify-content: flex-end; }
  .card .icon-arrow-card { width: 28px; height: 28px; }

  /* Fisarmoniche */
  .acc, .acc--partners { display: flex; flex-direction: column; gap: 8px; }
  .acc__item, .acc--partners .acc__item { padding: 0; }
  .acc__head {
    flex-wrap: nowrap; align-items: center; gap: 12px;
    min-height: 64px; padding: 8px 8px 8px 18px; cursor: pointer;
  }
  .acc__num, .acc--partners .acc__num { font-size: 22px; }
  .acc__title, .acc--partners .acc__title { flex: 1 1 auto; font-size: 14px; }
  .acc__swatch, .acc--partners .acc__swatch {
    flex: 0 0 56px; width: 56px; height: 48px; margin: 0;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .acc__swatch .acc-plus { display: block; transition: transform .2s ease; }
  .acc__item[open] .acc-plus { transform: rotate(45deg); }
  .acc__body, .acc--partners .acc__body { margin: 0; padding: 0 18px 20px; font-size: 15px; line-height: 1.55; }

  .origin__list strong { flex: 1 1 0; min-width: 0; }
  .origin__text { flex: 1 1 100%; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:nth-child(n) { padding: 20px 0 24px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--ink); }

  .places { grid-template-columns: minmax(0, 1fr); }

  /* Contatti */
  .hero--contact { padding-bottom: 48px; }
  .contact__inner { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
  .contact__mail { font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: normal; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__cell { padding: 18px 20px; }
  .asklist li { flex-wrap: wrap; gap: 2px 12px; padding: 14px 0; }
  .asklist__num { flex: 0 0 24px; }
  .asklist strong { flex: 1 1 200px; font-size: 17px; }
  .asklist__note { flex: 1 1 100%; padding-left: 36px; font-size: 14px; }
  .rows--contact li { flex-direction: column; gap: 2px; padding: 14px 0; }
  .rows--contact strong { font-size: 17px; }

  /* Pagine legali e 404 */
  .hero--legal { padding-bottom: 40px; }
  .legal { padding-bottom: var(--space-phone, var(--space)); }
  .legal__toc ol { display: block; }
  .legal__toc li a { font-size: 14px; padding: 11px 0; }
  .legal__other { display: flex; justify-content: space-between; padding: 0 20px; }
  .legal__sec { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 32px; }
  .legal__num { font-size: 22px; }
  .legal__h2 { font-size: 22px; }
  .legal__content p, .legal__list, .legal__rows span { font-size: 16px; }
  .legal__rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .legal__rows strong { font-size: 14px; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table th, .legal__table td { display: block; width: auto; }
  .legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .legal__table { border-bottom: 1px solid var(--ink); }
  .legal__table tr { border-top: 1px solid var(--ink); padding: 12px 0; }
  .legal__table tbody th, .legal__table td { width: auto; padding: 0; border: 0; }
  .legal__table tbody th { font-size: 15px; line-height: 1.4; }
  .legal__table td { padding-top: 4px; font-size: 14px; color: var(--muted); }
  .legal__box { padding: 22px; }
  .legal__box .btn { flex: 1 1 100%; justify-content: space-between; padding: 0 20px; }
  .legal__mail { font-size: 24px; }
  .legal__mail-at { display: block; }

  .e404 { padding-top: 32px; padding-bottom: 48px; }
  .e404__big { font-size: 132px; padding-bottom: 24px; }
  .hero.e404__hero { padding-top: 28px; }
  .e404__tiles-wrap { padding-bottom: var(--space-phone, 72px); }
  .e404__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e404__tile { min-height: 112px; padding: 12px 14px; }
  .e404__tile-name { font-size: 14px; }

  /* Pagina Tessuti e categorie */
  .section { padding-top: var(--space-phone, var(--space)); }
  .section--last { padding-bottom: var(--space-phone, var(--space)); }
  .strip__phone { display: inline; }
  .p-int .hero__text { font-size: 17px; }
  .btn-row--stack { flex: 1 1 100%; flex-direction: column; gap: 8px; }
  .btn-row--stack .btn { justify-content: space-between; padding: 0 20px; }

  .bar__note { display: none; }
  .card__num { display: none; }
  .cards--tessuti .card__title, .cards--related .card__title { font-size: 22px; }
  .cards--related { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .cards--related .card { min-height: 112px; }

  .modes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .modes__item { padding: 22px 20px; gap: 14px; }
  .modes__big { font-size: 40px; }

  .split { gap: 28px; }
  .split__head, .split__body { flex-basis: 280px; }
  .certs li { flex-direction: column; gap: 4px; padding: 14px 0; }
  .certs__group { flex: none; font-size: 12px; color: var(--muted); }
  .certs__name { flex: none; font-size: 17px; line-height: 1.35; }
  .recycled { padding: 22px 20px; }
  .recycled__title { font-size: 26px; }
  .namelist li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0; }
  .namelist strong { flex: none; font-size: 17px; }
  .namelist span { flex: none; font-size: 14px; color: var(--muted); }

  .acc--servizi { background: none; border: 0; }
  .acc--servizi .acc__item { background: var(--white); padding: 0; min-height: 0; }
  .acc--servizi .acc__head { flex-direction: row; align-items: center; gap: 12px; }
  .acc--servizi .acc__num { font-size: 22px; font-weight: 900; font-variation-settings: "wght" 900; letter-spacing: 0; }
  .acc--servizi .acc__title { font-size: 14px; line-height: 1.2; letter-spacing: 0.04em; }
  .acc--servizi .acc__swatch { display: inline-flex; }
  .acc--servizi .acc__body { margin: 0; max-width: none; }

  .fascia { grid-template-rows: 88px 68px; }
  .fascia__item { padding: 10px 12px; font-size: 11px; }
  .fascia__sub { display: none; }

  .items tbody { grid-template-columns: minmax(0, 1fr); }

  .p-int .cta__inner { padding-top: 56px; padding-bottom: 56px; }
  .p-int .cta__text { flex-basis: 280px; }
  .p-int .cta__title { font-size: 40px; }
}

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