/* GeoSveva - stile del sito secondo le regole grafiche dei documenti (preventivi, listini):
   inchiostro e bianco, primari blu/rosso/giallo, Archivo pesante, IBM Plex Mono per etichette e codici,
   righe nere spesse, forme geometriche cerchio/quadrato/triangolo, angoli vivi. */

@font-face { font-family: Archivo; src: url('../fonts/house/archivo-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url('../fonts/house/archivo-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Archivo; src: url('../fonts/house/archivo-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url('../fonts/house/archivo-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Archivo; src: url('../fonts/house/archivo-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Archivo; src: url('../fonts/house/archivo-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/house/ibm-plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/house/ibm-plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #141414;
  --blue: #1b3a7a;      /* testo bianco: 10,9:1 */
  --red: #d43a2f;       /* testo bianco: 4,7:1 */
  --yellow: #f2c230;    /* testo nero: 11:1 */
  --yellow-shape: #e0ae14;
  --line: #d6d3ca;
  --muted: #444444;
  --tint: #edf2f8;
  --white: #ffffff;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.55 Archivo, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
h1, h2, h3 { margin: 0; color: inherit; letter-spacing: 0; }
h1 { font-weight: 900; line-height: 1.02; letter-spacing: -0.5px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; line-height: 1.08; letter-spacing: -0.2px; }
h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
section { padding: 88px 0; }
.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

/* Forme: cerchio blu, quadrato rosso, triangolo giallo */
.shapes { display: inline-flex; align-items: center; gap: 7px; }
.shape { display: inline-block; width: 22px; height: 22px; flex: none; background: currentColor; }
.shape.circle { border-radius: 50%; color: var(--blue); }
.shape.square { color: var(--red); }
.shape.triangle { color: var(--yellow-shape); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* Pulsanti: angoli vivi */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border: 2px solid var(--ink);
  font-weight: 800; font-size: 16px; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost, .btn-outline { background: transparent; color: var(--ink); }
.btn-ghost:hover, .btn-outline:hover { background: var(--ink); color: #fff; }

/* Header: torre + nome, riga nera spessa */
header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 3px solid var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand strong { font-size: 21px; font-weight: 800; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav ul a:hover { color: var(--blue); }
.nav ul a.btn { padding: 9px 16px; font-size: 15px; color: var(--ink); }
.nav ul a.btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--ink); }

/* Home: titolo grande a sinistra, collage foto + forme a destra */
.hero { padding: 72px 0 80px; border-bottom: 3px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); margin: 4px 0 26px; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 20px); max-width: 600px; margin: 0 0 34px; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--ink); font: 400 13px/1.5 var(--mono); }
.badges span::before { content: "■ "; color: var(--red); }

/* Pagine interne: titolo con forme, come i documenti */
.page-hero { padding: 64px 0 48px; border-bottom: 3px solid var(--ink); }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.page-hero p.lead { font-size: clamp(18px, 1.6vw, 20px); max-width: 720px; margin: 22px 0 30px; color: var(--muted); }

/* Fasce fotografiche con parallasse, in bianco e nero */
.parallax { position: relative; overflow: hidden; }
.parallax-bg {
  position: absolute; left: 0; right: 0; top: -20%; height: 140%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  will-change: transform; z-index: 0;
}
.band { height: clamp(220px, 30vw, 360px); border-bottom: 3px solid var(--ink); background: var(--ink); }
.band .parallax-bg { filter: grayscale(1) contrast(1.08); }

/* Fascia moduli: gialla, invito principale */
.moduli { background: var(--yellow); padding: 56px 0; border-bottom: 3px solid var(--ink); }
.moduli .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.moduli .eyebrow { color: var(--ink); }
.moduli h2 { font-size: clamp(26px, 2.8vw, 36px); }
.moduli-testo p:last-child { margin: 14px 0 0; }
.moduli-btns { display: grid; gap: 14px; }
.modulo {
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  background: #fff; border: 3px solid var(--ink); color: var(--ink); text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.modulo:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.modulo svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--blue); color: #fff; }
.modulo strong { font-size: 20px; font-weight: 800; }

/* Sezione laboratorio in home */
.lab .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.lab p { color: var(--muted); }
.lab .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--ink); filter: grayscale(1) contrast(1.05); }
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.tests h4 { margin: 0; padding: 8px 12px; font-size: 16px; font-weight: 800; background: var(--blue); color: #fff; }
.tests > div:nth-child(2) h4 { background: var(--red); }
.tests ul { margin: 0; padding: 0; list-style: none; }
.tests li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.tests li.hl { font-weight: 700; }
.tests li.hl::after { content: "  specialità"; font: 400 10px var(--mono); color: var(--blue); text-transform: uppercase; letter-spacing: .8px; }
.tests .all { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 15px; color: var(--blue); text-decoration: none; border-bottom: 2px solid currentColor; }

/* Servizi: schede con forma e riga nera */
.services .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.services .head p { max-width: 460px; color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ink); border-left: 1px solid var(--ink); }
.card { position: relative; display: block; text-decoration: none; padding: 30px 28px 26px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: #fff; transition: background .15s; }
a.card:hover { background: var(--tint); }
.card::before { content: ""; display: block; width: 22px; height: 22px; margin-bottom: 18px; background: var(--blue); border-radius: 50%; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
.card .more { font: 500 12px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }

/* Come lavoriamo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; counter-reset: s; }
.step { padding-top: 16px; border-top: 3px solid var(--ink); }
.step::before { counter-increment: s; content: "0" counter(s); font: 500 14px var(--mono); color: var(--blue); }
.step h3 { margin: 8px 0; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step a { color: var(--blue); font-weight: 700; }

/* Citazione su foto */
.manifesto { background: var(--ink); color: #fff; text-align: center; border-bottom: 3px solid var(--ink); }
.manifesto .parallax-bg { filter: grayscale(1); }
.manifesto.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, .84); z-index: 1; }
.manifesto .wrap { position: relative; z-index: 2; }
.manifesto blockquote { margin: 0 auto; max-width: 880px; font-size: clamp(19px, 2vw, 24px); font-weight: 500; line-height: 1.55; }
.manifesto blockquote strong { display: block; margin-top: 18px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; color: #fff; }
.manifesto cite { display: block; margin-top: 20px; font: 400 13px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: #cfcfcf; }

/* Pagine interne: testo, gruppi di prove su barre colorate, tabelle */
.intro p { color: var(--muted); margin: 0 0 16px; }
.intro p a { color: var(--blue); font-weight: 700; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; margin-top: 40px; }
.group h3 { padding: 8px 12px; font-size: 16px; background: var(--blue); color: #fff; }
.group ul { margin: 0; padding: 0; list-style: none; }
.group li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.table-title { margin-top: 36px; padding: 8px 12px; font-size: 16px; background: var(--blue); color: #fff; }
.test-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; font-size: 15px; }
.test-table th { text-align: left; font: 400 10px/1.3 var(--mono); letter-spacing: .8px; text-transform: uppercase; color: #555; padding: 10px 6px; border-bottom: 2px solid var(--ink); }
.test-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.test-table td:first-child, .test-table th:first-child { padding-left: 0; }
.test-table td:last-child { width: 28%; font: 400 12px/1.5 var(--mono); color: var(--blue); }
.test-table .desc { display: block; color: #555; font-size: 14px; margin-top: 3px; }
.link-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.link-card { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border: 3px solid var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; transition: transform .15s, box-shadow .15s; }
.link-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.link-card::after { content: "→"; color: var(--blue); }
.partner-logos { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.partner-logos img { height: 56px; width: auto; }

/* Contatti */
.contact { border-top: 3px solid var(--ink); }
.contact .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.contact .grid > * { min-width: 0; }
.contact dl { margin: 24px 0 0; display: grid; grid-template-columns: 110px 1fr; gap: 0; border-top: 1px solid var(--ink); }
.contact dt, .contact dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact dt { font: 400 11px/2 var(--mono); letter-spacing: .8px; text-transform: uppercase; color: #555; }
.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { color: var(--blue); }
.quote-box { border: 3px solid var(--ink); padding: 32px; }
.quote-box p { color: var(--muted); }
.quote-box .btn { margin: 6px 8px 0 0; }

/* Footer */
footer { background: var(--ink); color: #d9d9d9; padding: 48px 0 28px; font-size: 14px; }
footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
footer .brand strong { color: #fff; }
footer .brand img { height: 40px; }
footer .logos { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
footer .logos img { height: 50px; width: auto; }
footer .legal { margin-top: 22px; line-height: 1.7; }
footer .legal a { color: #fff; }
footer .copy { margin-top: 18px; font: 400 12px var(--mono); color: #9a9a9a; }

/* Responsive */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero-grid, .lab .grid, .contact .grid, .moduli .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; border-bottom: 3px solid var(--ink); gap: 16px; }
  .nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  .page-title .shapes { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .cards, .steps, .tests { grid-template-columns: 1fr; }
  .contact dl { grid-template-columns: 1fr; }
  .contact dt { border-bottom: 0; padding-bottom: 0; }
  .hero .btn, .page-hero .btn { width: 100%; justify-content: center; }
  .test-table td:last-child { width: 36%; }
}
.hero-art .hero-photo { position: absolute; }

/* ---- Codice forma/colore, come nel listino: T terre, R rocce, S in sito ---- */
.shape.t { border-radius: 50%; color: var(--blue); }
.shape.r { border-radius: 0; color: var(--red); }
.shape.s { color: var(--yellow-shape); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.page-title .shape { width: 44px; height: 44px; }
.card.t::before { background: var(--blue); border-radius: 50%; }
.card.r::before { background: var(--red); border-radius: 0; }
.card.s::before { background: var(--yellow-shape); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.services.dom-t .group h3, .services.dom-t .table-title { background: var(--blue); color: #fff; }
.services.dom-r .group h3, .services.dom-r .table-title { background: var(--red); color: #fff; }
.services.dom-s .group h3, .services.dom-s .table-title { background: var(--yellow); color: var(--ink); }
.tests h4 .shape { width: 13px; height: 13px; margin-right: 9px; color: #fff; vertical-align: -1px; }
.modulo-t svg { border-radius: 50%; background: var(--blue); }
.modulo-r svg { border-radius: 0; background: var(--red); }
.link-card .shape { width: 18px; height: 18px; }

/* Legenda del codice nell'apertura */
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 30px 0 0; padding: 0; }
.legend a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 13px var(--mono); letter-spacing: .5px; }
.legend a:hover { color: var(--blue); }
.legend .shape { width: 16px; height: 16px; }

/* Composizione dell'apertura (come la copertina del listino) */
.composition { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 1; width: 100%; max-width: 470px; justify-self: end; }
.composition .cell { display: grid; place-items: center; text-decoration: none; overflow: hidden; }
.cell-s { background: var(--yellow); }
.cell-t { background: var(--blue); }
.cell-r { background: #fff; border: 3px solid var(--ink); }
.cell-logo { background: var(--ink); }
.cell-logo img { width: 44%; filter: brightness(0) invert(1); }
.shape-big { display: block; transition: transform .2s; }
.shape-big.triangle { width: 84%; height: 74%; align-self: end; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape-big.circle { width: 70%; height: 70%; border-radius: 50%; background: #fff; }
.shape-big.square { width: 56%; height: 56%; background: var(--red); }
.composition a.cell:hover .shape-big { transform: scale(1.06); }
.band-tall { height: clamp(260px, 36vw, 460px); }

/* Qualifiche sotto la foto del laboratorio */
.qualifiche { margin: 24px 0 0; border-top: 3px solid var(--ink); }
.qualifiche > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qualifiche dt { font: 400 11px/1.9 var(--mono); letter-spacing: .8px; text-transform: uppercase; color: #555; }
.qualifiche dd { margin: 0; font-size: 15px; font-weight: 600; }
.qualifiche a { color: var(--blue); }

/* Riquadro preventivo: chiude con i moduli */
.quote-box { display: flex; flex-direction: column; align-items: flex-start; }
.quote-box .btn { margin: 6px 0 0; }
.quote-box .btn + .btn { margin-top: 10px; }
.quote-moduli { margin-top: auto; padding-top: 24px; width: 100%; border-top: 1px solid var(--line); }
.quote-box .quote-moduli { margin-top: 28px; }
.quote-moduli a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 700; text-decoration: none; }
.quote-moduli a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .composition { justify-self: start; max-width: 380px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .qualifiche > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Azioni in nero pieno: il giallo resta per moduli e S · Campo */
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.nav ul a.btn { color: #fff; }
.shape.x { border-radius: 0; color: var(--ink); }
.page-title .shape.x { width: 40px; height: 40px; }
.card.x::before { background: var(--ink); border-radius: 0; }
.card-cta { background: var(--ink); color: #fff; }
.card-cta::before { display: none; }
.card-cta p { color: #d9d9d9; }
.card-cta .more { color: #fff; font-size: 14px; }
a.card-cta:hover { background: var(--blue); }
.shape-big.strata { width: 62%; height: 62%; }

/* Telefono: schede dei servizi una sotto l'altra (dopo la regola tablet a due colonne) */
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}
