/*
Theme Name: Scheda Tecnica Vantage
Description: Redesign del tema Scheda Tecnica con la direzione Hallmark "Vantage": fondo blu-nero, Geologica, cornici con tacche d'angolo, un solo segnale lime.
Version: 1.0.0
Author: Mattia Monarchi
Requires PHP: 8.0
Text Domain: scheda-tecnica-vantage
*/
:root {
  color-scheme: dark;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(72% 0.15 27); --color-success: oklch(76% 0.13 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(13.5% 0.012 235); --color-paper-2: oklch(17% 0.014 235); --color-paper-3: oklch(21% 0.016 235);
  --color-ink: oklch(95% 0.006 230); --color-ink-2: oklch(82% 0.012 230); --color-muted: oklch(66% 0.016 230);
  --color-rule: oklch(27% 0.014 235); --color-rule-2: oklch(34% 0.016 235);
  --color-accent: oklch(89% 0.19 126); --color-accent-hi: oklch(93% 0.17 126); --color-accent-ink: oklch(19% 0.04 126); --color-focus: oklch(89% 0.19 126);
  --point-lo: oklch(42% 0.04 245); --point-mid: oklch(70% 0.04 232); --point-hi: oklch(96% 0.02 215);
  --color-slot: oklch(21% 0.016 235);
  --font-display: "Geologica", ui-sans-serif, system-ui, sans-serif; --font-body: "Geologica", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 4px; --radius-pill: 999px; --rule-hair: 1px; --tick: 10px;
  --shadow-card: none;
  --tracking-display: -0.035em; --display-weight: 300;
}
/* Geologica (SIL OFL 1.1, licenza in assets/fonts/OFL.txt), servito dal dominio: nessuna richiesta a terze parti. */
@font-face { font-family: "Geologica"; src: url("assets/fonts/geologica-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: muted con=6 sat=-20 */
[data-slot] > img { filter: saturate(0.8) contrast(1.06); }
/* Hallmark · shape: Letter, a ruled index of work · genre: modern-minimal · theme: Vantage (by request) · redesign: full · draw: ec427c
 * hero: Poster (/), Banner (/chi-sono/, /contatti/) · nav: masthead, wordmark centred between two link groups, ruled · footer: colophon · imagery: the stack names drawn as a point cloud, no photographs, 5 labelled slots for the user sites · signature: the stack drawn as a turning cloud of points, lit by a sweep · vantage: object/steel · job: hire · copy: verbatim
 * axes: dark/grotesk-sans/chromatic-lime · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, the cloud could be any dev portfolio; sampled it from the real stack names instead of a generic terrain */
/* Hallmark · waive 77 · the closing band is one line, the word Contatti, and one action, once a page · it is the close of a one-job portfolio */

:root { --header: 72px; }
body { font-weight: 300; font-variation-settings: "SHRP" 0; color: var(--color-ink-2); }
h1, h2, h3 { font-variation-settings: "SHRP" 100; color: var(--color-ink); }
h3 { font-weight: 400; }
a { color: var(--color-ink); }
a:hover { color: var(--color-accent); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* masthead */
.masthead { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); border-bottom: var(--rule-hair) solid var(--color-rule); }
.masthead__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-lg); min-height: var(--header); }
.masthead__side { display: flex; gap: var(--space-lg); }
.masthead__side--end { justify-content: flex-end; }
.masthead a { text-decoration: none; font-size: var(--text-md); padding-block: var(--space-xs); }
.masthead__mark { font-weight: 400; font-size: var(--text-lg); letter-spacing: -0.01em; white-space: nowrap; }
.masthead a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.5em; }
@media (max-width: 40rem) {
  .masthead__in { grid-template-columns: 1fr auto; gap: var(--space-xs) var(--space-md); padding-block: var(--space-sm); }
  .masthead__mark { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .masthead__side { grid-row: 2; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 400 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hi); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--line { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--line:hover { background: var(--color-paper-2); color: var(--color-ink); }
.btn--line:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--line[aria-pressed="true"] { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-ink-2); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

/* corner ticks */
.ticks { position: relative; }
.ticks::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: var(--rule-hair) solid var(--color-rule-2); -webkit-mask: conic-gradient(at var(--tick) var(--tick), transparent 75%, var(--color-ink) 0) 0 0 / calc(100% - var(--tick)) calc(100% - var(--tick)); mask: conic-gradient(at var(--tick) var(--tick), transparent 75%, var(--color-ink) 0) 0 0 / calc(100% - var(--tick)) calc(100% - var(--tick)); }

/* placeholder visibile e dichiarato */
.fill { padding: 0 0.25em; border: var(--rule-hair) dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); white-space: nowrap; }

/* hero: poster */
.hero { position: relative; display: flex; align-items: flex-end; min-height: calc(100svh - var(--header)); overflow: clip; border-bottom: var(--rule-hair) solid var(--color-rule); }
.hero__cloud { position: absolute; inset: 0; z-index: 0; }
.hero__cloud canvas { display: block; position: absolute; inset: 0; }
.hero__cloud::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--color-paper) 0%, var(--color-paper) 30%, transparent 62%), linear-gradient(0deg, var(--color-paper) 0%, transparent 18%); }
.hero__in { position: relative; z-index: var(--z-raised); width: 100%; padding-block: var(--space-3xl); pointer-events: none; }
.hero__in a, .hero__in button { pointer-events: auto; }
.hero__text { display: grid; gap: var(--space-lg); max-width: 40rem; justify-items: start; }
.hero h1 { max-width: 12ch; font-size: var(--text-display); }
.hero__pause { position: absolute; right: var(--gutter); bottom: var(--space-lg); z-index: var(--z-raised); }
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-xs); }
@media (max-width: 60rem) {
  .hero { display: block; min-height: 0; }
  .hero__cloud { position: relative; height: 46svh; }
  .hero__cloud::after { background: linear-gradient(0deg, var(--color-paper) 0%, transparent 25%); }
  .hero__in { padding-block: var(--space-md) var(--space-2xl); }
  .hero__pause { right: var(--gutter); bottom: auto; top: calc(46svh - var(--space-3xl)); }
}

/* sezioni */
.section { padding-block: var(--section-gap); }
.section--s { padding-block: var(--section-gap-s); }
.band { background: var(--color-paper-2); color: var(--color-ink-2); }
.statement { max-width: 22ch; font: 300 var(--text-section)/1.05 var(--font-display); letter-spacing: var(--tracking-display); font-variation-settings: "SHRP" 100; color: var(--color-ink); text-wrap: balance; }
.duo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
@media (max-width: 60rem) { .duo { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

.spec { margin: 0; padding: var(--space-xl); }
.spec > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--space-lg); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.spec > div:first-child { border-top: 0; }
.spec dt { font-size: var(--text-sm); color: var(--color-muted); }
.spec dd { margin: 0; font-weight: 400; color: var(--color-ink); }

/* lavori */
.sectionhead { margin-bottom: var(--space-2xl); }
.sectionhead h2 { font-size: var(--text-display-s); }
.lead-work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; margin-bottom: var(--space-3xl); }
.lead-work h3 { font-size: var(--text-section); font-weight: 300; margin-bottom: var(--space-md); }
.meta { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-lg); max-width: 52ch; }
.lead-work .shot { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: var(--space-lg); margin: 0; background: var(--color-paper-2); color: var(--color-muted); text-align: center; }
@media (max-width: 60rem) { .lead-work { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

.index { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.entry:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.entry h3 { font-size: var(--text-3xl); font-weight: 300; }
.entry .meta { margin-bottom: var(--space-md); }
@media (max-width: 60rem) { .entry { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-xl); } }

/* siti: segnaposto */
.sites { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.sites li { grid-column: span 4; }
.sites li:nth-child(1) { grid-column: span 7; }
.sites li:nth-child(2) { grid-column: span 5; }
.site-shot { margin: 0; }
.site-shot > [data-slot] { aspect-ratio: 16 / 10; border-radius: var(--radius-card); background: var(--color-slot); }
.site-shot > [data-slot] > img { filter: none; }
.site-shot figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) { .sites li, .sites li:nth-child(1), .sites li:nth-child(2) { grid-column: span 12; } }

/* chiusura */
.close { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; }
.close h2 { font-size: var(--text-display); max-width: 9ch; }
.contact-lines { display: grid; gap: var(--space-md); justify-items: start; }
.mail { color: var(--color-ink); font-weight: 400; font-size: var(--text-lg); overflow-wrap: anywhere; }
@media (max-width: 60rem) { .close { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* pagine interne */
.page-head { padding-block: var(--space-3xl) var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.page-head h1 { font-size: var(--text-display); }
.page-head .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); gap: var(--space-lg); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.timeline li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.timeline .date { font-weight: 400; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: var(--text-lg); font-weight: 400; margin-bottom: var(--space-2xs); }
@media (max-width: 40rem) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); } }

.form { display: grid; gap: var(--space-lg); padding: var(--space-xl); background: var(--color-paper-2); }
.form label { display: block; margin-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.form input, .form textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-weight: 300; outline: 2px solid transparent; outline-offset: -3px; caret-color: var(--color-accent); }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline-color: var(--color-focus); }
.form [aria-invalid] { border-color: var(--color-error); }
.form__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.form .btn { justify-self: start; }

/* footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.foot__in { display: flex; justify-content: space-between; gap: var(--space-md) var(--space-xl); flex-wrap: wrap; }
.foot p { max-width: none; }

/* WordPress: contenuto delle pagine e segnaposto */
.entry-content > * + * { margin-top: var(--space-md); }
.entry-content a { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Illustrazione del lavoro in evidenza dentro la cornice a tacche */
.lead-work .shot img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-card); }
