/* datalink.srl — one stylesheet, no build step, one tiny script (email reveal).
   Direction: the entity record. Datalink is not a shop; this page is the
   company's own "scheda anagrafica" — the document that proves who stands
   behind Gatefix and AMC Point. Square corners, one accent, Inter only,
   always light. A thin ruler down the page marks reading progress; each
   section carries its own record number, the way a technical document does. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --paper: #ffffff;
  --plate: #f4f5f7;
  --plate-edge: #dde1e6;
  --ink: #12151c;
  --muted: #5b6472;
  --faint: #7c8591;
  --line: #d8dbe0;
  --accent: #e61f5e;
  --accent-ink: #b8154c;
  --on-accent: #ffffff;

  --margin: clamp(1.25rem, 4vw, 3rem);
  --gutter: clamp(0.875rem, 1.6vw, 1.5rem);
  --maxw: 1240px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  --fs-display: clamp(2.75rem, 7vw, 5.25rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.1875rem, 1.6vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1.3vw, 1.1875rem);
  --fs-numeral: clamp(2.25rem, 4vw, 3.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv11", "ss03", "tnum";
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
figure { margin: 0; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
a:hover, a:focus-visible { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Email/PEC behind a click: the button reads as a link, mail.js swaps in the mailto. */
.mail { font: inherit; letter-spacing: inherit; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; transition: color var(--t-hover) ease; }
.mail:hover { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--margin), var(--maxw)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.375rem;
  background: var(--ink);
  color: var(--on-accent);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: background-color var(--t-hover) ease;
}
.button:hover, .button:focus-visible { background: var(--accent-ink); color: var(--on-accent); text-decoration: none; }

.skip { position: absolute; left: -999px; top: var(--margin); padding: 0.6rem 1rem; background: var(--accent); color: var(--on-accent); z-index: 50; }
.skip:focus { left: var(--margin); }

/* ---------- Scroll progress ruler (pure CSS, decorative) ---------- */
.ruler {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line);
  z-index: 40;
  pointer-events: none;
}
.ruler::after {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 100%; height: 0;
  background: var(--accent);
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .ruler::after { animation: ruler-fill linear both; animation-timeline: scroll(root); }
  }
}
@keyframes ruler-fill { to { height: 100%; } }
@media (max-width: 47.99rem) { .ruler { display: none; } }

/* ---------- Header ---------- */
.top { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); min-height: 4.75rem; }
.top__mark { display: inline-flex; align-items: center; text-decoration: none; }
.top__mark img { width: 150px; height: 26px; }
.top__nav { display: none; align-items: center; gap: clamp(1.25rem, 2vw, 2rem); font-size: var(--fs-small); }
.top__nav a { color: var(--ink); text-decoration: none; }
.top__nav a:hover, .top__nav a:focus-visible { color: var(--accent-ink); text-decoration: underline; }
.top__actions { display: flex; align-items: center; gap: 0.75rem; }
.top__lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.75rem;
  border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-small);
  color: var(--ink); text-decoration: none;
}
.top__lang:hover, .top__lang:focus-visible { border-color: var(--ink); text-decoration: none; }
@media (min-width: 48rem) { .top__nav { display: flex; } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--plate); }
.head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: var(--gutter); }
.head__no { font-size: var(--fs-h3); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.head h2 { font-size: var(--fs-h2); }
.section-lead { max-width: 56ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.55; margin-bottom: calc(var(--section-y) * 0.6); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) var(--section-y); }
.hero .grid { align-items: center; row-gap: clamp(1.5rem, 4vw, 2.5rem); }
.hero__record {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.hero__record::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.hero__copy { grid-column: 1 / 8; }
.hero h1 { font-size: var(--fs-display); max-width: 14ch; }
.hero .lines .line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero .lines .line > span { display: block; }
.hero__lead { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.hero__facts li { position: relative; padding-left: 1rem; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; background: var(--accent); }

.hero__seal { grid-column: 9 / 13; justify-self: center; }
.seal { width: clamp(150px, 15vw, 190px); }
.seal__ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.seal__mark .petal { fill: var(--accent); }
.seal__code { margin-top: 0.9rem; text-align: center; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--muted); font-variant-numeric: tabular-nums; }
.seal__code span { color: var(--ink); font-weight: 600; }

/* ---------- Entrance (translate-only: content is never hidden) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-in] { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes rise-in { from { transform: translateY(22px); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .lines .line > span { transform: translateY(105%); animation: line-up 820ms var(--ease-out) forwards; animation-delay: 120ms; }
  .hero .lines .line:nth-child(2) > span { animation-delay: 220ms; }
  .hero__lead, .hero__facts { opacity: 0; transform: translateY(10px); animation: fade-rise 520ms var(--ease-out) 420ms forwards; }
  .hero__facts { animation-delay: 520ms; }
  .hero__seal { opacity: 0; animation: fade 700ms ease 500ms forwards; }
}
@keyframes line-up { to { transform: none; } }
@keyframes fade-rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Areas of expertise ---------- */
.comp { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.comp-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comp-group:first-child { padding-top: 0; border-top: 0; }
.comp-group__head { grid-column: 1 / 5; }
.comp-group__no { display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.comp-group h3 { font-size: var(--fs-h3); max-width: 20ch; }
.comp-group__body { grid-column: 5 / 13; }
.comp-group__photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-bottom: 1.5rem; }
.comp-group__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--plate); }
.entities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1.5rem; }
.entities li { position: relative; padding: 0.55rem 0 0.55rem 1.1rem; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.entities li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px; border: 1.5px solid var(--faint); }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.brand { border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.brand__status { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.brand__status::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.brand h3 { font-size: clamp(1.625rem, 2.4vw, 2rem); letter-spacing: -0.025em; }
.brand p { color: var(--muted); }
.brand__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: 500; }
.brand__domain { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Data plate ---------- */
.plate { border: 1px solid var(--plate-edge); background: var(--plate); }
.plate__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plate__cell { padding: clamp(1.5rem, 3vw, 2rem); border-left: 1px solid var(--plate-edge); }
.plate__cell:first-child { border-left: 0; }
.plate__cell dt { font-size: var(--fs-small); color: var(--muted); margin-bottom: 0.6rem; }
.plate__cell dd { font-size: var(--fs-numeral); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.plate__cell dd.is-text { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.25; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.contact__col { grid-column: span 4; }
.contact__col dt { font-size: var(--fs-small); color: var(--muted); margin-bottom: 0.5rem; }
.contact__col dd { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact__col a, .contact__col .mail { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.contact__col a:hover, .contact__col a:focus-visible, .contact__col .mail:hover, .contact__col .mail:focus-visible { color: var(--accent-ink); }
.contact__note { grid-column: 1 / 13; margin-top: 0.5rem; color: var(--muted); font-size: var(--fs-small); max-width: 60ch; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; }
.foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.foot__mark { grid-column: 1 / 4; }
.foot__mark svg { width: 150px; height: 26px; }
.foot__mark .petal { fill: var(--accent); }
.foot__mark .letter { fill: var(--ink); }
.foot__legal { grid-column: 4 / 10; font-size: var(--fs-small); line-height: 1.7; color: var(--muted); }
.foot__legal strong { color: var(--ink); font-weight: 600; }
.foot__nav { grid-column: 10 / 13; display: grid; gap: 0.5rem; font-size: var(--fs-small); }
.foot__nav a { color: var(--ink); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); }
.foot__bottom a { color: var(--muted); }
.foot__credits { grid-column: 1 / 13; font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }
.foot__credits a { color: var(--muted); }

/* ---------- Legal pages ---------- */
.doc { padding-block: clamp(3rem, 6vw, 4.5rem) var(--section-y); }
.doc__body { grid-column: 1 / 9; max-width: 68ch; }
.doc h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.375rem; margin-top: 2.75rem; margin-bottom: 0.75rem; letter-spacing: -0.015em; }
.doc h3 { font-size: 1.0625rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.doc p, .doc ul { margin-bottom: 1rem; }
.doc ul { list-style: disc; padding-left: 1.25rem; }
.doc .meta { color: var(--muted); margin-bottom: 2rem; font-size: var(--fs-small); }
.doc a { color: var(--accent-ink); text-decoration-color: currentColor; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--fs-small); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; white-space: nowrap; background: var(--plate); }
.doc code { font-family: var(--font); background: var(--plate); padding: 0 0.3em; }

/* ---------- Tablet ---------- */
@media (max-width: 63.99rem) {
  .hero__copy { grid-column: 1 / 13; }
  .hero__seal { grid-column: 1 / 13; justify-self: start; margin-top: 2rem; }
  .seal { display: flex; align-items: center; gap: 1rem; width: auto; }
  .seal svg { width: 72px; height: 72px; flex: none; }
  .seal__code { margin-top: 0; text-align: left; }
  .comp-group__head { grid-column: 1 / 13; }
  .comp-group__body { grid-column: 1 / 13; }
  .plate__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate__cell:nth-child(3) { border-left: 0; }
  .plate__cell:nth-child(1), .plate__cell:nth-child(2) { border-bottom: 1px solid var(--plate-edge); }
  .contact__col { grid-column: span 6; }
  .foot__mark { grid-column: 1 / 5; }
  .foot__legal { grid-column: 1 / 9; }
  .foot__nav { grid-column: 9 / 13; }
}

/* ---------- Phone ---------- */
@media (max-width: 47.99rem) {
  .top__mark img { width: 128px; height: 22px; }
  .hero h1 { font-size: 11vw; max-width: none; }
  .comp-group { grid-template-columns: 1fr; }
  .comp-group__photos { grid-template-columns: 1fr 1fr; }
  .entities { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; }
  .plate__grid { grid-template-columns: 1fr 1fr; }
  .plate__cell:nth-child(2n+1) { border-left: 0; }
  .plate__cell:nth-child(1), .plate__cell:nth-child(2) { border-bottom: 1px solid var(--plate-edge); }
  .contact__col { grid-column: 1 / 13; }
  .foot__mark, .foot__legal, .foot__nav { grid-column: 1 / 13; }
  .foot__nav { grid-template-columns: 1fr 1fr; }
  .doc__body { grid-column: 1 / 13; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ruler::after { animation: none; }
}

@media print {
  .top, .skip, .ruler { display: none; }
}
