/* Altra Mobilità: foglio di stampa A4 per le guide (brochure).
   Valori dal Design System "Altra Mobilità" (tokens.json), convertiti in mm/pt.
   Le classi riprendono quelle del Design System (am-…), adattate alla pagina fissa. */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-style: normal; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-style: italic; src: url("fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 500; font-style: normal; src: url("fonts/atkinson-hyperlegible-next-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-style: normal; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 800; font-style: normal; src: url("fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2"); }

:root {
  --ciano: #00BBD7;          /* solo segni */
  --su-ciano: #1B2B30;
  --ciano-profondo: #006F82; /* link, etichette */
  --abisso: #0B4A57;         /* blocco contatti */
  --su-abisso: #FFFFFF;
  --su-abisso-tenue: #A9DCE5;
  --inchiostro: #1B2B30;
  --grafite: #4A5A5F;
  --carta: #FFFFFF;
  --brezza: #E6F5F8;
  --brezza-linea: #C9E7ED;
  --zebra: #F4FAFB;
  --ambra: #F2A541;          /* solo "Limiti da considerare" */
  --ambra-chiaro: #FDF1D8;
  --ambra-testo: #8A5A00;
  --letto-foto: #FAFAF8;
}

@page { size: A4; margin: 0; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--inchiostro); background: #d9e2e4;
  font-size: 10.5pt; line-height: 1.45;
}
p { margin: 0 0 2.2mm; max-width: 150mm; }
p:last-child { margin-bottom: 0; }
a { color: var(--ciano-profondo); }

/* ---------- Pagina A4 fissa ---------- */
.pagina {
  position: relative; width: 210mm; height: 297mm; overflow: hidden;
  background: var(--carta); page-break-after: always; break-after: page;
}
.pagina:last-child { page-break-after: auto; break-after: auto; }
@media screen { .pagina { margin: 8mm auto; box-shadow: 0 1mm 4mm rgba(0,0,0,.15); } }

/* Area del contenuto: margini 18mm sx, 26mm dx (linguette), 18mm in alto, piè di pagina a 10mm dal fondo */
.flusso { position: absolute; left: 18mm; top: 18mm; width: 166mm; }
.fondo  { position: absolute; left: 18mm; width: 166mm; bottom: 27mm; }
.blocco { margin-top: 7mm; }
.blocco:first-child { margin-top: 0; }

/* ---------- Testa di pagina ---------- */
.am-produttore { font-size: 9pt; font-weight: 700; color: var(--ciano-profondo); margin: 0 0 1.5mm; }
.am-titolo { font-size: 25pt; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; margin: 0; max-width: 125mm; }
.am-sottotitolo { font-size: 12pt; line-height: 1.35; color: var(--grafite); margin: 2.5mm 0 0; max-width: 120mm; }
.am-h2 { font-size: 11.5pt; font-weight: 700; line-height: 1.25; margin: 0 0 1.5mm; }
.testa { margin-bottom: 7mm; }

/* ---------- Piè di pagina ---------- */
.piede {
  position: absolute; left: 18mm; width: 166mm; bottom: 10mm; height: 7mm;
  border-top: 0.3mm solid var(--brezza-linea); padding-top: 2.2mm;
  font-size: 7pt; color: var(--grafite);
}
.piede img { width: 4.2mm; height: 4.2mm; vertical-align: middle; margin-right: 1.5mm; }
.piede b { color: var(--inchiostro); font-weight: 800; margin-right: 2.5mm; }
.piede .num { position: absolute; right: 0; top: 2.2mm; color: var(--inchiostro); font-weight: 500; }

/* ---------- Linguette laterali (bordo destro, testo dall'alto in basso) ---------- */
.linguetta {
  position: absolute; right: 0; width: 10mm; background: var(--brezza); color: var(--ciano-profondo);
  border-radius: 2mm 0 0 2mm;
}
.linguetta--attiva { width: 12mm; background: var(--ciano); color: var(--su-ciano); }
.linguetta span {
  position: absolute; top: 0; text-align: center; white-space: nowrap;
  font-size: 6.5pt; font-weight: 500; line-height: 1; transform-origin: 0 0;
}
.linguetta--attiva span { font-weight: 700; }

/* ---------- Copertina ---------- */
.copertina .am-marchio { position: absolute; left: 18mm; top: 14mm; }
.am-marchio img { width: 14mm; height: 14mm; vertical-align: middle; }
.am-marchio__testo { display: inline-block; vertical-align: middle; margin-left: 2.5mm; }
.am-marchio__nome { font-weight: 800; font-size: 13pt; line-height: 1; }
.am-marchio__cosa { font-size: 7.5pt; color: var(--grafite); margin-top: 1mm; }
.copertina .titolo-box { position: absolute; left: 18mm; top: 58mm; width: 150mm; }
.am-titolo-copertina { font-size: 44pt; font-weight: 800; line-height: 1.0; letter-spacing: -0.025em; margin: 0; max-width: 130mm; }
.copertina .am-sottotitolo { font-size: 12.5pt; color: var(--inchiostro); margin-top: 7mm; max-width: 100mm; }
.copertina .alveare { position: absolute; right: 4mm; bottom: 30mm; width: 140mm; }
.copertina .indice { position: absolute; left: 18mm; bottom: 18mm; width: 62mm; }
.indice h2 { font-size: 9.5pt; font-weight: 700; margin: 0 0 1.5mm; }
.indice ol { list-style: none; margin: 0; padding: 0; }
.indice li { font-size: 8pt; padding: 1.3mm 0; border-top: 0.3mm solid var(--brezza-linea); }
.indice li:last-child { border-bottom: 0.3mm solid var(--brezza-linea); }
.indice .edizione { font-size: 7pt; color: var(--grafite); margin-top: 3mm; }

/* ---------- Dati chiave ---------- */
.am-dati { display: flex; gap: 5mm; }
.am-dato { flex: 1; border-top: 1.4mm solid var(--ciano); padding-top: 2.4mm; }
.am-dato__valore { font-size: 17pt; line-height: 1.05; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; }
.am-dato__etichetta { font-size: 7.5pt; font-weight: 500; color: var(--ciano-profondo); margin-top: 1mm; }

/* ---------- Foto ---------- */
.foto-coppia { display: flex; gap: 4mm; height: 66mm; }
.foto-coppia .riquadro { flex: 1.15; }
.foto-coppia .riquadro--uso { flex: 0.85; }
.riquadro { position: relative; border-radius: 3mm; overflow: hidden; height: 100%; }
.riquadro--prodotto { background: var(--letto-foto); border: 0.3mm solid var(--brezza-linea); }
.riquadro--prodotto img { position: absolute; left: 4mm; top: 4mm; width: calc(100% - 8mm); height: calc(100% - 13mm); object-fit: contain; }
.riquadro--uso img, .riquadro--larga img { width: 100%; height: 100%; object-fit: cover; display: block; }
.riquadro--larga { height: 80mm; background: var(--letto-foto); }
.didascalia { position: absolute; left: 3mm; bottom: 3mm; font-size: 7pt; color: var(--grafite); }
.riquadro--uso .didascalia, .riquadro--larga .didascalia { background: var(--carta); color: var(--inchiostro); padding: 0.8mm 1.8mm; border-radius: 1.3mm; }

/* ---------- Pannelli ---------- */
.am-pannello { border-radius: 3mm; padding: 4.5mm 6mm; }
.am-pannello--senso { background: var(--brezza); }
.am-pannello--limiti { background: var(--ambra-chiaro); position: relative; padding-left: 15mm; }
.am-pannello--limiti .am-h2 { color: var(--ambra-testo); }
.am-pannello--limiti .disco {
  position: absolute; left: 5mm; top: 4.3mm; width: 6mm; height: 6mm; border-radius: 3mm;
  background: var(--ambra); color: var(--su-ciano); font-weight: 800; font-size: 9pt; line-height: 6mm; text-align: center;
}
.am-pannello ul.am-elenco li { border-bottom-color: var(--brezza-linea); }

/* ---------- Tabelle ---------- */
.am-scheda, .am-confronto { width: 100%; border-collapse: collapse; }
.am-scheda th, .am-scheda td, .am-confronto th, .am-confronto td { text-align: left; vertical-align: top; padding: 2.4mm 2.5mm; font-size: 9pt; }
.am-scheda th { width: 36%; font-weight: 500; color: var(--ciano-profondo); }
/* tabelle per misura (3 o più colonne): prima colonna stretta, le altre uguali */
.am-scheda--misure { table-layout: fixed; }
.am-scheda--misure thead th { width: auto; }
.am-scheda--misure thead th:first-child { width: 27%; }
.am-scheda--misure th, .am-scheda--misure td { padding: 2mm 1.6mm; font-size: 8.8pt; }
.am-scheda thead th, .am-confronto thead th { color: var(--inchiostro); font-weight: 800; font-size: 9.5pt; padding-bottom: 2.8mm; }
.am-scheda tbody tr, .am-confronto tbody tr { border-bottom: 0.3mm solid var(--brezza-linea); }
.am-scheda tbody tr:first-child, .am-confronto tbody tr:first-child { border-top: 1.4mm solid var(--ciano); }
.am-confronto tbody th { font-weight: 500; color: var(--ciano-profondo); width: 24%; }
.am-confronto tbody tr:nth-child(even) { background: var(--zebra); }
.am-confronto .miniatura { display: block; width: 100%; height: 17mm; object-fit: contain; background: var(--letto-foto); border-radius: 2mm; margin-bottom: 1.5mm; }

/* ---------- Elenchi sì / meglio di no ---------- */
.scelta { display: flex; gap: 6mm; }
.scelta > div { flex: 1; }
.am-elenco { list-style: none; margin: 0; padding: 0; }
.am-elenco li { position: relative; padding: 1.6mm 0 1.6mm 5.5mm; border-bottom: 0.3mm solid var(--brezza-linea); font-size: 9pt; line-height: 1.35; }
.am-elenco li::before { content: ""; position: absolute; left: 0; top: 2.7mm; width: 2.3mm; height: 2.3mm; border-radius: 1.15mm; background: var(--ciano); }
.am-elenco--no li::before { background: none; border: 0.5mm solid var(--ambra); }
.nota { font-size: 7.5pt; color: var(--grafite); margin-top: 2mm; line-height: 1.4; }

/* ---------- Colori del telaio ---------- */
.am-colori__griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4mm 4mm; margin-top: 1mm; }
.am-colori__griglia--fitta { grid-template-columns: repeat(5, 1fr); gap: 1.8mm 3mm; }
.am-colore { display: flex; align-items: center; gap: 2mm; font-size: 8pt; line-height: 1.2; color: var(--inchiostro); }
.am-colori__griglia--fitta .am-colore { font-size: 7.2pt; gap: 1.6mm; }
.am-colore__campione { flex: 0 0 5mm; width: 5mm; height: 5mm; border-radius: 2.5mm; border: 0.25mm solid rgba(27, 43, 48, 0.25); }
.am-colori__griglia--fitta .am-colore__campione { flex-basis: 4.2mm; width: 4.2mm; height: 4.2mm; border-radius: 2.1mm; }

/* ---------- Schema numerato ---------- */
.schema { display: flex; gap: 6mm; }
.schema .riquadro { flex: 0 0 72mm; height: 66mm; }
.schema .punto {
  position: absolute; width: 4.6mm; height: 4.6mm; margin: -2.3mm 0 0 -2.3mm; border-radius: 2.3mm;
  background: var(--ciano); color: var(--su-ciano); font-size: 6.5pt; font-weight: 800; line-height: 4.6mm; text-align: center;
}
.legenda { flex: 1; list-style: none; margin: 0; padding: 0; }
.legenda li { position: relative; padding: 1.4mm 0 1.6mm 7mm; border-bottom: 0.3mm solid var(--brezza-linea); font-size: 8.5pt; line-height: 1.35; }
.legenda li b { display: block; font-size: 8.8pt; }
.legenda .n { position: absolute; left: 0; top: 1.5mm; width: 4.6mm; height: 4.6mm; border-radius: 2.3mm; background: var(--ciano); color: var(--su-ciano); font-size: 6.5pt; font-weight: 800; line-height: 4.6mm; text-align: center; }

/* ---------- Foto + testo ---------- */
.foto-testo { display: flex; gap: 6mm; }
.foto-testo .riquadro { flex: 0 0 72mm; height: 46mm; }
.foto-testo > div:last-child { flex: 1; font-size: 9.5pt; }

/* ---------- Rimandi ai modelli ---------- */
.rimandi { display: flex; gap: 4mm; }
.rimandi > div { flex: 1; border-top: 1mm solid var(--ciano); padding-top: 2.2mm; font-size: 9pt; font-weight: 700; }
.rimandi span { display: block; font-size: 7.5pt; font-weight: 500; color: var(--ciano-profondo); margin-top: 0.8mm; }

/* ---------- Fornitore: due modelli affiancati ---------- */
.coppia-modelli { display: flex; gap: 6mm; }
.coppia-modelli > div { flex: 1; }
.coppia-modelli .riquadro { height: 52mm; margin-bottom: 3mm; }
.coppia-modelli .tipo { font-size: 7pt; font-weight: 700; color: var(--ciano-profondo); }
.coppia-modelli h3 { font-size: 13pt; font-weight: 800; margin: 0.5mm 0 2mm; }
.coppia-modelli .am-scheda th { width: 44%; }

/* ---------- Collegamento con QR ---------- */
.am-collegamento { display: flex; align-items: center; gap: 5mm; }
.am-collegamento img { width: 24mm; height: 24mm; flex: none; }
.am-collegamento b { display: block; font-size: 9.5pt; }
.am-collegamento a { font-size: 8.8pt; font-weight: 500; }

/* ---------- Contatti ---------- */
.am-contatti { position: relative; background: var(--abisso); color: var(--su-abisso); border-radius: 3mm; padding: 5mm 7mm; }
.am-contatti__marchio { font-weight: 800; font-size: 11pt; }
.am-contatti__marchio img { width: 9mm; height: 9mm; vertical-align: middle; margin-right: 2.5mm; }
.am-contatti .am-h2 { margin: 3mm 0 1mm; font-size: 12pt; }
.am-contatti__catalogo { margin: 2mm 0 0; padding-top: 2mm; border-top: 0.3mm solid rgba(255,255,255,.35); font-size: 8.4pt; font-weight: 700; line-height: 1.35; color: #fff; }
.am-contatti__righe { font-size: 9.5pt; line-height: 1.6; }
.am-contatti__righe span { color: var(--su-abisso-tenue); margin-right: 1.5mm; }
.am-contatti a { color: var(--su-abisso); font-weight: 700; }
.am-contatti .qr-wa { position: absolute; right: 7mm; top: 5mm; text-align: center; font-size: 7pt; color: var(--su-abisso-tenue); }
.am-contatti .qr-wa img { display: block; width: 22mm; height: 22mm; background: #fff; padding: 1.2mm; border-radius: 1.5mm; margin-bottom: 1.2mm; }
