/* =========================================================
   LysPac — foglio di stile condiviso (v2)
   Materiali: carta, cartone kraft, inchiostro, blu di marchio.
   Tipografia: Archivo largo per i titoli (richiama il logo),
   Archivo normale per i testi, IBM Plex Mono per etichette e dati.
   ========================================================= */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --blue: #1F3D5C;          /* blu carta da zucchero, colore di marchio */
  --blue-dark: #152B42;
  --ink: #1E1B17;           /* inchiostro */
  --muted: #5B544B;
  --paper: #F7F3EC;         /* carta */
  --white: #FFFDF9;
  --kraft: #CDAE84;         /* cartone kraft */
  --kraft-light: #E7D7BF;
  --line: rgba(30, 27, 23, 0.16);
  --todo: #FFF1B8;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --bar: 6px;               /* spessore delle barre del marchio */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 0.45em; font-weight: 520; line-height: 1.04; letter-spacing: -0.02em; font-stretch: 122%; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.3rem); }
h3 { font-size: 1.15rem; font-stretch: 112%; letter-spacing: 0; line-height: 1.25; font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.todo { background: var(--todo); color: #5a4500; padding: 0 0.25em; font-size: 0.9em; font-family: var(--sans); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 300; }
.skip:focus { left: 8px; top: 8px; }

/* Etichetta in stile "lotto": numero | testo */
.tag { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em; display: inline-flex; gap: 0.7em; align-items: center; color: var(--muted); }
.tag b { font-weight: 500; color: var(--ink); }
.tag i { font-style: normal; width: 1px; height: 1.1em; background: currentColor; display: inline-block; }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font: 600 1rem/1 var(--sans); font-stretch: 110%;
  padding: 1.05em 1.5em; border: 0; border-radius: 0;
  background: var(--blue); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: inset calc(var(--bar) * -1) 0 0 var(--blue-dark);
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn--paper { background: var(--paper); color: var(--blue); box-shadow: inset calc(var(--bar) * -1) 0 0 var(--kraft); }
.btn--paper:hover { background: var(--white); color: var(--blue-dark); }
.arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.arrow::after { content: " →"; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 236, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; max-width: none; }
.logo img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; color: var(--ink); }
.lang { font-family: var(--mono); font-size: 0.8rem; display: flex; gap: 0.6em; align-items: center; }
.lang a { text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.lang i { width: 1px; height: 1em; background: var(--muted); }
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .logo img { height: 24px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .menu-toggle svg { width: 26px; height: 26px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 8px var(--gutter) 24px; gap: 18px; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; width: 100%; }
  .nav li a { display: block; padding: 12px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Cornice del marchio (L | P) attorno alle foto ---------- */
.lp-frame { position: relative; padding: 14px; margin: 0; }
.lp-frame::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 47%; border-left: var(--bar) solid var(--ink); border-bottom: var(--bar) solid var(--ink); pointer-events: none; }
.lp-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-right: var(--bar) solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) no-repeat 14px 0 / calc(100% - 14px) 1.5px,
    linear-gradient(var(--ink), var(--ink)) no-repeat right 0 bottom 1px / 50% 1.5px;
}
.lp-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Didascalie in stile reportage */
figure { margin: 0; }
figcaption { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); margin-top: 10px; display: flex; gap: 0.8em; }
figcaption::before { content: ""; width: 1px; background: currentColor; flex: none; }

/* ---------- HOME: apertura ---------- */
.hero { display: grid; gap: 40px; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero-text { padding: 0 var(--gutter); }
.hero h1 { max-width: 9.5em; }
.hero .lead { margin-bottom: 1.6rem; }
.svc { list-style: none; margin: 0 0 1.8rem; padding: 0; border-top: 1.5px solid var(--ink); max-width: 560px; }
.svc li { border-bottom: 1px solid var(--line); }
.svc a { display: grid; grid-template-columns: 2.6em 1fr; align-items: baseline; padding: 11px 0; text-decoration: none; }
.svc .n { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.svc strong { font-weight: 600; font-stretch: 115%; font-size: 1.08rem; }
.svc span.d { color: var(--muted); font-size: 0.95rem; margin-left: 0.5em; }
.svc a:hover strong { color: var(--blue); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-cta .mono a { text-decoration: none; border-bottom: 1px solid; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { padding: 0 var(--gutter); }
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: stretch; padding-top: 56px; }
  .hero-text { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: 0; align-self: center; }
  .hero-photo { padding-left: 14px; }
  .hero-photo img { aspect-ratio: auto; height: 100%; min-height: 560px; }
  .hero-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 55%; border-left: var(--bar) solid var(--ink); border-bottom: var(--bar) solid var(--ink); z-index: 2; pointer-events: none; }
  .hero-photo figcaption { position: absolute; left: 30px; bottom: 18px; color: #fff; z-index: 2; padding: 0; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 22px; gap: 28px; }
  .hero h1 { font-size: 2.15rem; }
  .hero .lead { font-size: 1rem; margin-bottom: 1.1rem; }
  .svc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; margin-bottom: 1.2rem; }
  .svc a { grid-template-columns: 2em 1fr; padding: 9px 0; }
  .svc span.d { display: none; }
  .svc strong { font-size: 0.95rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Nastro trasportatore (tre passaggi) ---------- */
.belt { padding: clamp(64px, 9vw, 120px) 0; }
.belt h2 { max-width: 13em; }
.belt-track { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 34px; position: relative; }
.belt-track li { position: relative; padding-top: 30px; }
.belt-track li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; background: var(--paper); border: var(--bar) solid var(--ink); }
.belt-track .mono { display: block; color: var(--muted); margin-bottom: 6px; }
.belt-track p { color: var(--muted); margin: 0; max-width: 24em; }
@media (min-width: 820px) {
  .belt-track { grid-template-columns: repeat(3, 1fr); }
  .belt-track::before { content: ""; position: absolute; top: 6px; left: 0; right: calc(-50vw + 50%); height: 1.5px; background: var(--ink); }
}

/* ---------- Fascia blu con i numeri ---------- */
.numbers { background: var(--blue); color: #fff; padding: 0 0 clamp(64px, 8vw, 110px); }
.numbers .photo { width: min(92%, 1100px); margin: 0 0 0 auto; transform: translateY(-48px); }
.numbers .photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.numbers .photo figcaption { color: #CFD8E2; }
.big-line { font-size: clamp(2rem, 5.4vw, 4.6rem); font-weight: 480; font-stretch: 122%; line-height: 1.08; letter-spacing: -0.025em; margin: 0; max-width: 15em; }
.big-line em { font-style: normal; color: var(--kraft-light); }
.numbers .note { font-family: var(--mono); font-size: 0.76rem; color: #CFD8E2; margin-top: 22px; }
.numbers a { color: #fff; }

/* ---------- Squadra a tutta larghezza con scheda sovrapposta ---------- */
.team { position: relative; padding-bottom: clamp(56px, 8vw, 100px); }
.team > figure img { width: 100%; height: clamp(320px, 62vw, 760px); object-fit: cover; object-position: 50% 40%; }
.team .card {
  position: relative; background: var(--paper); padding: clamp(24px, 4vw, 48px);
  margin: -90px var(--gutter) 0; max-width: 620px; z-index: 2;
  border-left: var(--bar) solid var(--ink); border-bottom: var(--bar) solid var(--ink);
}
@media (min-width: 980px) { .team .card { margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); margin-top: -180px; } }

/* ---------- Chiusura con telefono grande ---------- */
.closing { padding: clamp(64px, 9vw, 130px) 0; border-top: 1.5px solid var(--ink); }
.closing .phone { display: inline-block; font-size: clamp(2.2rem, 7.5vw, 6.4rem); font-weight: 500; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1; text-decoration: none; margin: 0.15em 0 0.3em; }
.closing .phone:hover { color: var(--blue); }
.closing .row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.closing--kraft { background: var(--kraft); border-top: 0; }
.closing--kraft .muted { color: #3f372d; }

/* ---------- Pagine interne: apertura ---------- */
.page-head { padding: clamp(44px, 7vw, 100px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 12em; }
.page-head .tag { margin-bottom: 22px; }
.index { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 30px; font-family: var(--mono); font-size: 0.82rem; }
.index a { text-decoration: none; padding-right: 1em; margin-right: 1em; border-right: 1px solid var(--ink); }
.index a:last-child { border-right: 0; }
.index a:hover { text-decoration: underline; }

/* ---------- Schede tecniche dei servizi ---------- */
.sheet { border-top: 1.5px solid var(--ink); padding: clamp(40px, 6vw, 80px) 0; scroll-margin-top: 72px; }
.sheet-grid { display: grid; gap: 28px; }
.sheet .num { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 10px; }
.sheet h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.specs { margin: 26px 0 0; border-top: 1px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding-top: 3px; }
.specs dd { margin: 0; }
@media (min-width: 900px) {
  .sheet-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .sheet-grid > :first-child { position: sticky; top: 100px; align-self: start; }
}
.duo { display: grid; gap: 16px; margin-top: 32px; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .duo { grid-template-columns: 1.6fr 1fr; align-items: end; } .duo figure:last-child { margin-bottom: -60px; } }
.giant { font-size: clamp(4rem, 13vw, 10rem); font-weight: 500; font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.9; margin: 10px 0 0; color: var(--blue); }
.giant small { font-size: 0.32em; letter-spacing: 0; font-stretch: 110%; color: var(--ink); }

/* Testo grande su fondo kraft */
.slab { background: var(--kraft-light); padding: clamp(56px, 8vw, 110px) 0; }
.slab p.say { font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.22; font-stretch: 112%; font-weight: 450; letter-spacing: -0.015em; max-width: 26em; margin: 0; }
.slab .muted { color: #4a4238; }

/* Foto a tutta larghezza */
.bleed img { width: 100%; height: clamp(220px, 38vw, 520px); object-fit: cover; }
.bleed figcaption { padding: 0 var(--gutter); }

/* ---------- Rietichettatura: due colonne separate dalla barra ---------- */
.versus { display: grid; gap: 32px; padding: clamp(48px, 7vw, 96px) 0; }
.versus h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
@media (min-width: 860px) { .versus { grid-template-columns: 1fr 1fr; gap: 0; } .versus > div:first-child { padding-right: 56px; border-right: 1.5px solid var(--ink); } .versus > div:last-child { padding-left: 56px; } }

.split { display: grid; gap: 36px; align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--rev > :first-child { order: 2; } }

/* ---------- Come lavoriamo: nastro verticale ---------- */
.flow { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; max-width: 760px; }
.flow::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: var(--ink); }
.flow li { position: relative; padding: 0 0 34px; }
.flow li::before { content: ""; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; background: var(--paper); border: var(--bar) solid var(--ink); }
.flow .mono { color: var(--muted); display: block; }
.flow h3 { font-size: 1.35rem; margin: 2px 0 4px; }
.flow p { color: var(--muted); margin: 0; }

/* Bolla di consegna: cosa ci serve */
.docket { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(22px, 3vw, 36px); font-family: var(--mono); font-size: 0.88rem; }
.docket h2 { font-family: var(--sans); font-size: 1.5rem; }
.docket ul { list-style: none; margin: 16px 0 0; padding: 0; }
.docket li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.docket li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink); margin-top: 3px; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); max-width: 860px; margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.6rem var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* ---------- Chi siamo: anni ---------- */
.years { display: grid; gap: 0; border-top: 1.5px solid var(--ink); margin-top: 24px; }
.years div { display: grid; grid-template-columns: 6.5em 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.years b { font-size: 1.6rem; font-weight: 500; font-stretch: 125%; line-height: 1.1; }

/* ---------- Contatti: modulo + etichetta di spedizione ---------- */
.contact-grid { display: grid; gap: 56px; padding-bottom: clamp(56px, 8vw, 110px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: start; } }
.form { display: grid; gap: 20px; }
.form .row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 0; border-bottom: 1.5px solid var(--ink);
  background: var(--white); color: var(--ink); border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.field textarea { min-height: 140px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: 10px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.hidden { position: absolute !important; left: -9999px !important; }
.note { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }

.shiplabel { background: var(--white); border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 0.88rem; position: relative; }
.shiplabel .top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1.5px solid var(--ink); }
.shiplabel .top img { height: 22px; width: auto; }
.shiplabel section { padding: 16px 20px; border-bottom: 1px dashed var(--line); }
.shiplabel section:last-of-type { border-bottom: 0; }
.shiplabel h2, .shiplabel .k { font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.shiplabel .big { font-family: var(--sans); font-size: 1.6rem; font-stretch: 120%; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.shiplabel .bars { height: 46px; margin: 0 20px 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px); opacity: 0.85; }
.shiplabel .wa { display: block; margin: 0 20px 20px; text-align: center; justify-content: center; }

/* ---------- Testi lunghi ---------- */
.prose { max-width: 760px; padding-bottom: 96px; }
.prose h2 { font-size: 1.4rem; font-stretch: 112%; margin-top: 2em; }

/* ---------- Footer con il marchio tagliato ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: #D9D2C6; padding: 56px 0 28px; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 28px; position: relative; z-index: 1; }
.site-footer .logo-w { height: 28px; width: auto; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; }
.site-footer .mono { color: #A79F92; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.76rem; }
.site-footer .giant-mark { position: absolute; right: -6vw; bottom: -12vw; width: 46vw; max-width: 620px; opacity: 0.07; z-index: 0; pointer-events: none; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr 0.8fr; } .footer-bottom { grid-column: 1 / -1; } }

/* ---------- Avviso informativo ---------- */
.notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-left: auto; background: var(--ink); color: var(--paper); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: 0.85rem; border-left: var(--bar) solid var(--kraft); }
.notice[hidden] { display: none; }
.notice p { margin: 0; flex: 1 1 240px; }
.notice a { color: #fff; }
.notice button { font: 600 0.9rem var(--sans); background: var(--paper); color: var(--ink); border: 0; padding: 10px 16px; cursor: pointer; white-space: nowrap; }
@media (max-width: 560px) { .notice { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; font-size: 0.78rem; } }

/* =========================================================
   Intro animata della homepage (solo al primo ingresso della visita):
   L e P cadono e si chiudono come un coperchio, il nastro sigilla,
   compare il nome, poi la "scatola" si apre in due e scopre la pagina.
   Si salta con un clic o un tasto; spenta con movimento ridotto.
   ========================================================= */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: var(--ink); cursor: pointer; animation: intro-done 0s linear 3.25s forwards; }
.no-intro .intro { display: none; }
.intro-on body { overflow: hidden; }
.door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--paper); }
.door-l { left: 0; border-right: var(--bar) solid var(--ink); animation: door-l 0.8s cubic-bezier(.75,0,.2,1) 2.45s forwards; }
.door-r { right: 0; border-left: 1.5px solid var(--ink); animation: door-r 0.8s cubic-bezier(.75,0,.2,1) 2.45s forwards; }
.door-l, .door-r { border-color: transparent; }
.intro-logo { position: relative; z-index: 1; width: min(230px, 52vw); height: auto; overflow: visible;
  animation: lp-thud 0.42s cubic-bezier(.3,1.5,.5,1) 0.92s, lp-out 0.4s ease-in 2.25s forwards; }
.lp-L, .lp-P { transform-box: fill-box; opacity: 0; }
.lp-L { transform-origin: 0% 100%; animation: lp-L 0.82s cubic-bezier(.55,0,.8,.35) 0.1s forwards; }
.lp-P { transform-origin: 100% 0%; animation: lp-P 0.82s cubic-bezier(.55,0,.8,.35) 0.14s forwards; }
.lp-tape { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lp-tape1 { animation: lp-tape 0.4s cubic-bezier(.5,0,.2,1) 1.15s forwards; }
.lp-tape2 { animation: lp-tape 0.4s cubic-bezier(.5,0,.2,1) 1.3s forwards; }
.lp-word { opacity: 0; transform-box: fill-box; animation: lp-word 0.55s ease-out 1.55s forwards; }
@keyframes lp-L { 0% { opacity: 0; transform: translate(-70%, 40%) rotate(-20deg); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes lp-P { 0% { opacity: 0; transform: translate(70%, -40%) rotate(-20deg); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes lp-thud { 0% { transform: scale(1); } 35% { transform: scale(0.94, 0.95); } 100% { transform: scale(1); } }
@keyframes lp-tape { to { stroke-dashoffset: 0; } }
@keyframes lp-word { from { opacity: 0; transform: translateY(18%); } to { opacity: 1; transform: none; } }
@keyframes lp-out { to { opacity: 0; transform: scale(0.92); } }
@keyframes door-l { 0% { border-color: var(--ink); } 100% { transform: translateX(-100%); border-color: var(--ink); } }
@keyframes door-r { 0% { border-color: var(--ink); } 100% { transform: translateX(100%); border-color: var(--ink); } }
@keyframes intro-done { to { visibility: hidden; pointer-events: none; } }
.intro.is-skipped { animation: intro-fade 0.3s ease forwards; }
.intro.is-skipped .door { background: var(--paper); }
@keyframes intro-fade { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* =========================================================
   Transizione tra le pagine (browser recenti, View Transitions):
   la pagina nuova si apre dal centro come le due ante di una scatola.
   Dove non è supportata, la navigazione resta normale.
   ========================================================= */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-old 0.5s cubic-bezier(.7,0,.3,1) both; }
::view-transition-new(root) { animation: vt-new 0.55s cubic-bezier(.7,0,.3,1) both; }
@keyframes vt-old { to { filter: brightness(0.9); transform: scale(0.985); } }
@keyframes vt-new { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Compatibilità pagine semplici (privacy, grazie, 404) */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.eyebrow { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 18px; }
.maxw { max-width: 44em; }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.team > figure img { object-position: 50% 12%; }
@media (min-width: 980px) { .hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); max-width: 10em; } }
.giant small { display: block; margin-top: 0.35em; }
.field .check { display: flex; margin-bottom: 0; }
.tag { flex-wrap: wrap; row-gap: 4px; }
.tag b { white-space: nowrap; }

/* Squadra: foto intera, la scheda copre solo il marciapiede, mai le persone */
.team > figure img { height: auto; aspect-ratio: 3 / 2; object-position: 50% 50%; max-height: none; }
.team .card { margin-top: -28px; }
@media (min-width: 980px) { .team .card { margin-top: -56px; } }
.sheet-grid > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc a { grid-template-columns: 2.6em 1fr; }
/* Avviso a sinistra, così non si sovrappone all'etichetta di Netlify in basso a destra */
.notice { margin-left: 0; margin-right: auto; }
