/* Spinoworks — Simone Spinato
   Tema scuro ispirato ai riferimenti in docs/riferimenti/:
   titoli condensati maiuscoli (Barlow Condensed), testo Outfit, Neulis solo per il claim,
   bottoni a pillola, header sticky con menu a pillola traslucida. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neulis";
  src: url("/assets/fonts/Neulis-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-alt: #121214;
  --card: #18181b;
  --card-hover: #1f1f23;
  --line: rgb(244 241 234 / 0.1);
  --line-strong: rgb(244 241 234 / 0.22);
  --ink: #f4f1ea;
  --ink-muted: #c4bfb5;
  --ink-soft: #8d887f;
  --accent: #4169E1;         /* blu royal: bottoni, link, dettagli */
  --accent-ink: #ffffff;     /* testo sui bottoni blu (contrasto 4.9) */
  --glass: rgb(24 24 27 / 0.72);
  --max: 76rem;
  --prose: 40rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --display: "Barlow Condensed", "Outfit", system-ui, sans-serif;
  --claim: "Neulis", "Outfit", serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Dimensioni dei testi misurate su danmartell.com (telefono → desktop). */
  --fs-hero: clamp(3.125rem, 2.25rem + 3.75vw, 4.6875rem);   /* 50 → 75 px, titolo hero */
  --fs-h2: clamp(3.125rem, 2.25rem + 3.75vw, 4.6875rem);     /* 50 → 75 px, titoli di sezione */
  --fs-h2-sub: clamp(2.5rem, 1.9rem + 2.5vw, 3.75rem);       /* 40 → 60 px, titoli secondari */
  --fs-h3: 1.5rem;        /* 24 px, titoli card */
  --fs-body: 1.25rem;     /* 20 px, testo */
  --fs-eyebrow: 1.25rem;  /* 20 px bold, scritta sopra i titoli */
  --fs-btn: 1.125rem;     /* 18 px, bottoni */
  --fs-nav: 0.875rem;     /* 14 px, menu e footer */
  --fs-small: 0.75rem;    /* 12 px */
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

p { margin: 0 0 1.1rem; }

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* ---------- Tipografia comune ---------- */

.eyebrow {
  display: block;
  margin: 0 0 0.9rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display--xl { font-size: var(--fs-hero); line-height: 1; }
.display--md { font-size: var(--fs-h2-sub); line-height: 1; }
.display--sm {
  font-family: var(--font);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  margin-bottom: 0.75rem;
}
.lead {
  max-width: var(--prose);
  font-size: var(--fs-body);
  color: var(--ink-muted);
}
.muted { color: var(--ink-muted); }
.claim {
  font-family: var(--claim);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Bottoni a pillola ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--font);
  font-size: var(--fs-btn);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn--large {
  min-height: 3.75rem;
  padding: 1rem 2.25rem;
  font-size: 1.375rem;
  font-weight: 600;
}
.btn--small {
  min-height: 2.4rem;
  padding: 0.45rem 1.1rem;
  font-size: var(--fs-nav);
  font-weight: 600;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Header sticky con menu a pillola ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 0.75rem;
  background: linear-gradient(to bottom, rgb(11 11 12 / 0.92), rgb(11 11 12 / 0));
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 1.5rem;
  height: auto;
  flex-shrink: 0;
}
.brand__text {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav {
  display: flex;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.35rem;
  font-size: var(--fs-nav);
  font-weight: 500;
}
.nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-muted);
}
.nav a:hover { color: var(--ink); background: rgb(244 241 234 / 0.06); }
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgb(244 241 234 / 0.1);
}
.site-nav .btn[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nav-toggle {
  display: none;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 var(--fs-nav) var(--font);
  cursor: pointer;
}

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { position: relative; }
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    display: none;
    flex-direction: column;
    min-width: 13rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.5);
  }
  .nav a { padding: 0.7rem 1rem; font-size: 1rem; }
  .site-nav.is-open .nav { display: flex; }
  /* Senza JS il menu resta aperto in linea sotto al logo. */
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; min-width: 0; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
}

main { flex: 1; }

/* ---------- Sezioni ---------- */

.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section--end { padding-block: 0; }
.section--line { border-top: 1px solid var(--line); }
.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head .lead { margin-bottom: 0; }
.section-foot { margin-top: 2.5rem; }

/* ---------- Hero home: solo testo, frase che ruota ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 4.5rem);
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: min(70rem, 120vw);
  aspect-ratio: 1;
  /* Un po' di luce calda: bilancia il blu dei dettagli (palette: "mai un blu senza un caldo"). */
  background: radial-gradient(closest-side, rgb(235 122 28 / 0.16), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__h1 {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}
/* Frasi a rotazione (macros/rotator.njk): stanno una sopra l'altra,
   l'altezza è quella della più lunga, quindi la pagina non salta. */
.rotator__frasi { display: grid; }
.rotator__item {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.rotator__item.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s var(--ease), visibility 0s;
}
/* Home: citazioni lunghe, da 40 px su telefono a 75 px su desktop */
.rotator--hero .rotator__item {
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.6rem + 3.9vw, 4.6875rem);
  line-height: 1;
  text-wrap: balance;
}
/* "Faccio provare alle persone" + finale che cambia */
.rotator__testo {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1;
  text-transform: uppercase;
}
.rotator__fisso { display: block; }
.rotator__frasi--finale { color: var(--accent); }
.rotator--provare .rotator__toggle { margin: 0 0 1.5rem; }
.rotator__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: 500 var(--fs-nav) var(--font);
  cursor: pointer;
}
.rotator__toggle[hidden] { display: none; }
.rotator__toggle:hover { color: var(--ink); border-color: var(--ink); }
.rotator__icon {
  width: 0.75rem;
  height: 0.8rem;
  border-inline: 0.25rem solid currentColor;
}
.rotator__toggle[data-pausa="true"] .rotator__icon {
  width: 0;
  height: 0;
  border-inline: 0;
  border-block: 0.45rem solid transparent;
  border-left: 0.7rem solid currentColor;
}

/* Presentazione home */
.intro { max-width: 52rem; }
.intro__text {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.intro__claim {
  margin: 1.5rem 0 0;
  font-size: var(--fs-h3);
  color: var(--accent);
}

/* ---------- Card arrotondate ---------- */

.cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card .foto { border-radius: var(--radius-sm); }
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 0.75rem 0.75rem;
}
.card__body p { color: var(--ink-muted); }
.card__body > :last-child { margin-bottom: 0; }
.card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { background: var(--card-hover); border-color: var(--line-strong); color: inherit; }
a.card:hover .card__link { color: var(--accent); }
.card--text { padding: clamp(1.25rem, 3vw, 2rem); }
.card--text .card__body { padding: 0; }
.card__title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
}
.porta__testo {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink) !important;
}
.porta__btn { align-self: flex-start; margin-top: auto; }
.card__num {
  display: block;
  margin-bottom: 1rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Split testo + foto (capitoli) ---------- */

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  /* Le foto sono verticali (4:5): la colonna della foto è la più stretta. */
  .split { grid-template-columns: 1.3fr 1fr; }
  .split--reverse { grid-template-columns: 1fr 1.3fr; }
  .split--reverse .split__media { order: -1; }
}
.split__text p { color: var(--ink-muted); }
.split__text p:last-child { margin-bottom: 0; }
.split__media { margin: 0; }
.split__media .foto { border-radius: var(--radius); }
.split__media--stack {
  display: grid;
  gap: 1rem;
}
.split__media--stack figure { margin: 0; }
/* Foto affiancate con la stessa altezza anche se hanno rapporti diversi:
   ogni figure ha flex uguale al suo rapporto larghezza/altezza (lo imposta il template). */
.split__pair {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.split__pair .foto { border-radius: var(--radius-sm); }
.split__pair figure { margin: 0; min-width: 0; }

.prose-wide { max-width: 48rem; }

/* Tre foto verticali in fila sotto al testo */
.gallery {
  display: grid;
  gap: 1rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
}
@media (min-width: 720px) {
  .gallery { display: flex; align-items: flex-start; }
}
.gallery figure { margin: 0; min-width: 0; }
.gallery .foto { border-radius: var(--radius); }
/* Il marchio in 3D ha lo sfondo nero pieno: il riquadro è nero uguale, così non si vedono bordi. */
.segno {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}
.segno img { width: 100%; height: 100%; object-fit: cover; }

/* Riga titolo + testo (valori e visione senza foto) */
.row {
  display: grid;
  gap: 1.25rem 4rem;
}
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; align-items: start; }
}
.row__head .display { margin-bottom: 0; }
.row__text {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--ink-muted);
}

/* Presentazione in apertura della Storia */
.presentazione {
  display: grid;
  gap: 0 3rem;
  max-width: 64rem;
  font-size: var(--fs-body);
  color: var(--ink-muted);
}
@media (min-width: 900px) {
  .presentazione { grid-template-columns: 1fr 1fr; }
}

.chapter-num {
  display: inline-block;
  margin-right: 0.6rem;
  color: var(--ink-soft);
}

/* ---------- CTA finale ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(60rem 30rem at 100% 100%, rgb(65 105 225 / 0.24), transparent 60%),
    var(--card);
}
.cta-band .display { max-width: 20ch; }

/* ---------- Pagine interne ---------- */

.page-hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero .display { max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }

.note {
  max-width: var(--prose);
  margin-top: 2rem;
  font-size: var(--fs-nav);
  color: var(--ink-soft);
}

/* Contatti */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr minmax(16rem, 22rem); }
}
.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list a,
.contact-list .contact-item {
  display: grid;
  gap: 0.2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
}
.contact-list a:hover { background: var(--card-hover); border-color: var(--line-strong); color: var(--ink); }
.contact-list .label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-list .value {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.contact-grid__foto { margin: 0; }
.contact-grid__foto .foto { border-radius: var(--radius); }

/* 404 */
.error { padding-block: clamp(4rem, 12vw, 9rem); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: var(--fs-nav);
  color: var(--ink-soft);
}
.site-footer__top {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer__claim {
  margin: 0.9rem 0 0;
  font-weight: 600;
  color: var(--ink);
}
.site-footer h2 {
  margin: 0 0 0.9rem;
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--ink-soft);
}
.site-footer ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.site-footer__bottom p { margin: 0; }

/* ---------- Foto e segnaposto (slot in lib/foto-slot.js, istruzioni in FOTO.md) ---------- */

.foto {
  width: 100%;
  height: auto;
  background: var(--card-hover);
}
.foto--mancante {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.2rem;
  padding: 1rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgb(244 241 234 / 0.035) 14px 15px),
    var(--bg-alt);
  color: var(--ink-soft);
}
.foto__etichetta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.foto__nome {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.foto__info { font-size: 0.75rem; }
/* Stesso rapporto per tutte le card lavoro, anche con una foto di riserva (es. prova-dubai). */
.foto--card { aspect-ratio: 4 / 5; object-fit: cover; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================================================================
   STILE ATTUALE DEL SITO (dal 6 ottobre 2026): struttura ispirata alla landing di Squarespace
   (hero centrato con titolo leggero, bottone bianco rettangolare, schermi che
   spuntano dal basso, sezioni chiare e nere alternate, linguette + carosello).
   Testi, foto e font sono del sito: Outfit leggero al posto del loro carattere. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

.sq main { font-size: 0.9375rem; line-height: 1.4; }

.sq-wrap {
  width: min(100% - 2 * var(--pad), 76rem);
  margin-inline: auto;
}
.sq-center { text-align: center; }
.sq-section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.sq-light { background: #fff; color: #000; }
.sq-dark { background: #000; color: #fff; }

/* Tipografia: titoli leggeri, molto stretti */
.sq-h1 {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.sq-h2 {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.sq-h2.claim { font-family: var(--claim); letter-spacing: -0.01em; }
.sq-sub {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.sq-small { margin: 1.25rem 0 0; font-size: 0.8125rem; }
.sq-small a { color: inherit; }

/* Bottone bianco rettangolare, maiuscolo */
.sq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1.4rem 1.75rem;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.sq-btn:hover { background: #000; color: #fff; box-shadow: inset 0 0 0 1px #fff; }

/* Header sopra la foto dell'hero */
.sq .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  background: none;
}
.sq .site-nav { background: rgb(0 0 0 / 0.35); border-color: rgb(255 255 255 / 0.18); }
.sq .site-nav .btn {
  /* A pillola come le altre voci del menu. */
  border-radius: 999px;
  border-color: #fff;
  background: #fff;
  color: #000;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.sq .site-nav .btn:hover { background: transparent; color: #fff; }
.sq .site-footer { margin-top: 0; }

/* ---------- Hero ---------- */
.sq-hero {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-align: center;
}
.sq-hero__bg,
.sq-final__bg {
  position: absolute;
  inset: 0;
}
.sq-hero__bg { bottom: 30%; }
.sq-hero__bg img,
.sq-final__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sq-hero__bg::after,
.sq-final__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.45) 45%, #000 100%);
}
.sq-hero__inner {
  position: relative;
  padding: clamp(8rem, 16vw, 11rem) var(--pad) 0;
}
.sq-note { margin: 1.5rem 0 0; font-size: 0.9375rem; color: rgb(255 255 255 / 0.85); }

/* Tre foto a ventaglio, intere (nessun ritaglio) e tutte dentro lo schermo:
   la centrale davanti, le due laterali ruotate verso l'esterno e un po' dietro. */
.sq-screens {
  /* Telefono: laterali più dietro la centrale, così la centrale resta grande. */
  --centro: 40vw;
  --lato: calc(var(--centro) * 0.8);
  --sovrapposizione: calc(var(--centro) * -0.22);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: 4%;
}
@media (min-width: 700px) {
  .sq-screens {
    --centro: min(46rem, 39vw);
    --sovrapposizione: calc(var(--centro) * -0.14);
  }
}
.sq-screen {
  position: relative;
  z-index: 2;
  flex: none;
  width: var(--centro);
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.55);
}
.sq-screen img { display: block; width: 100%; height: auto; }
.sq-screen--sx,
.sq-screen--dx { z-index: 1; width: var(--lato); }
.sq-screen--sx { margin-right: var(--sovrapposizione); transform: translateY(6%) rotate(-7deg); transform-origin: bottom right; }
.sq-screen--dx { margin-left: var(--sovrapposizione); transform: translateY(6%) rotate(7deg); transform-origin: bottom left; }

.sq-statsline {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  font-size: 0.9375rem;
}
.sq-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding-bottom: clamp(4rem, 9vw, 7.5rem);
}
.sq-stats dt {
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.sq-stats dd { margin: 0.6rem 0 0; font-size: 0.75rem; line-height: 1.4; text-wrap: balance; }
/* Su telefono un valore può andare su due righe: le etichette restano allineate. */
@media (max-width: 560px) {
  .sq-stats { gap: 0.5rem; }
  /* Etichette strette: su telefono vanno tutte su due righe. */
  .sq-stats dd { max-width: 6.75rem; margin-inline: auto; font-size: 0.6875rem; }
  .sq-stats dt { display: flex; align-items: flex-end; justify-content: center; min-height: 2.2em; text-wrap: balance; }
}

/* ---------- Linguette + carosello ---------- */
.sq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 2.5rem 0 2rem;
}
.sq-tab {
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #000;
  font: 400 1rem var(--font);
  cursor: pointer;
}
.sq-tab::first-letter { text-transform: uppercase; }
.sq-tab:hover { background: #f4f4f4; }
.sq-tab.is-active { background: #eee; }
.sq-tab:focus-visible,
.sq-light a:focus-visible,
.sq-carousel:focus-visible,
.sq-row:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.sq-carousel,
.sq-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(var(--pad), (100vw - 76rem) / 2);
}
/* La card attiva sta sempre al centro: il margine laterale è metà dello spazio che avanza. */
.sq-carousel { --slide: min(52rem, 86vw); padding-inline: calc((100vw - var(--slide)) / 2); }
.sq-carousel::-webkit-scrollbar,
.sq-row::-webkit-scrollbar { display: none; }

.sq-slide {
  position: relative;
  flex: none;
  width: var(--slide);
  aspect-ratio: 835 / 492;
  min-height: 20rem;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: center;
  background: #111;
  color: #fff;
  text-decoration: none;
}
.sq-slide:hover { color: #fff; }
.sq-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.sq-slide:hover .sq-slide__img { transform: scale(1.03); }
.sq-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.45) 45%, rgb(0 0 0 / 0.1) 100%);
}
.sq-slide__body {
  position: absolute;
  z-index: 1;
  top: clamp(1.25rem, 3vw, 2rem);
  left: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
  text-align: left;
}
.sq-slide__title {
  font-size: clamp(1.35rem, 2.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.sq-slide__text { font-size: 0.9375rem; line-height: 1.4; }
.sq-arrow {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.25rem;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
a:hover > .sq-arrow { transform: translateX(4px); }

/* Frecce del carosello: ai due lati dello schermo, a metà altezza delle schede.
   Solo dove c'è un mouse: sul telefono si scorre col dito. */
.sq-carousel-box { position: relative; }
.sq-nav-btn {
  display: none;
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(0 0 0 / 0.15);
  border-radius: 50%;
  background: #fff;
  color: #000;
  font: 400 1.25rem var(--font);
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.18);
  transform: translateY(-50%);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.sq-nav-btn--prev { left: clamp(0.75rem, 2.5vw, 2.5rem); }
.sq-nav-btn--next { right: clamp(0.75rem, 2.5vw, 2.5rem); }
@media (hover: hover) and (min-width: 800px) {
  .sq-nav-btn { display: block; }
}
.sq-nav-btn:hover:not(:disabled) { background: #000; color: #fff; }
.sq-nav-btn:disabled { opacity: 0; pointer-events: none; }
.sq-nav-btn:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ---------- Titolo a sinistra + testo a destra, fila di card scure ---------- */
.sq-split-head {
  display: grid;
  gap: 1rem 4rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}
@media (min-width: 800px) {
  .sq-split-head { grid-template-columns: 1fr 1fr; align-items: start; }
  .sq-split-head .sq-sub { margin-top: 0.4rem; max-width: 26rem; }
}
.sq-tile {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: var(--tile);
  min-height: 24rem;
  padding: 1.5rem;
  border-radius: 8px;
  scroll-snap-align: center;
  background: #111;
  color: #fff;
  text-align: left;
  text-decoration: none;
}
.sq-row {
  --tile: min(18rem, 78vw);
  padding-inline: calc((100vw - var(--tile)) / 2);
}
@media (min-width: 1100px) {
  .sq-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(100% - 2 * var(--pad), 76rem);
    margin-inline: auto;
    padding-inline: 0;
    overflow: visible;
  }
  .sq-tile { width: auto; min-height: 22rem; }
}
.sq-tile:hover { background: #1b1b1b; color: #fff; }
.sq-tile__num { font-size: 0.75rem; color: rgb(255 255 255 / 0.6); }
.sq-tile__title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.sq-tile__text { font-size: 0.9375rem; line-height: 1.4; color: rgb(255 255 255 / 0.85); }

/* ---------- Due porte, poi sfumatura dal bianco al nero ---------- */
.sq-fade {
  background: linear-gradient(to bottom, #fff 0%, #fff 55%, #9a948c 82%, #000 100%);
  padding-bottom: clamp(7rem, 14vw, 12rem);
}
.sq-mark { display: block; margin: 0 auto 1.5rem; }
.sq-duo {
  display: grid;
  gap: 1rem;
  justify-content: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 720px) {
  .sq-duo { grid-template-columns: repeat(2, minmax(0, 22rem)); }
}
.sq-door {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem 0.75rem 1.5rem;
  border-radius: 8px;
  background: #0b0b0c;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.sq-door:hover { background: #161616; color: #fff; }
.sq-door__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.sq-door__label { font-size: 0.75rem; }
.sq-door__text { padding-inline: 0.75rem; font-size: 0.9375rem; line-height: 1.4; color: rgb(255 255 255 / 0.8); }
.sq-door__link { margin-top: 0.4rem; font-size: 1.125rem; font-weight: 500; }

/* ---------- Contatto: barra chiara come un campo di ricerca ---------- */
.sq-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 36rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  background: #2a2a2a;
  color: #fff;
  font-size: 1rem;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sq-field:hover { background: #3a3a3a; color: #fff; }

/* ---------- Frasi ---------- */
.sq-quotes { padding-top: 0; }
.rotator--sq .rotator__item {
  max-width: 22ch;
  margin-inline: auto;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.rotator--sq .rotator__frasi { justify-items: center; }

/* ---------- Finale ---------- */
.sq-final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(7rem, 16vw, 13rem);
}
/* Si vede la parte alta della foto (testa e busto), non il centro. */
.sq-final__bg img { object-position: center top; }
.sq-final__bg::after { background: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.45) 18%, rgb(0 0 0 / 0.45) 62%, rgb(0 0 0 / 0.8) 100%); }
.sq-final .sq-wrap { position: relative; }
.sq-final .sq-h1 { font-size: clamp(2.25rem, 4.6vw, 3.125rem); }

/* =====================================================================
   Pagine interne (Storia, Valori, Visione, Lavori, Contatti) nello stile
   della prova. Il markup è lo stesso delle pagine attuali: qui si
   ridefiniscono solo colori, caratteri e forme sotto `body.sq`.
   ===================================================================== */

body.sq { background: #000; --accent: #fff; --accent-ink: #000; }

/* Titoli: leggeri, stretti, niente maiuscolo */
.sq .display {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-transform: none;
}
.sq .display--xl {
  font-weight: 300;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.sq .display--sm {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.sq .eyebrow,
.sq .card__num {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.sq .lead { font-size: 1.0625rem; line-height: 1.5; }

/* Intestazione di pagina: nera, centrata, sotto l'header trasparente */
.sq .page-hero {
  padding-block: clamp(9rem, 17vw, 12rem) clamp(4rem, 9vw, 7rem);
  color: #fff;
  text-align: center;
  --ink-soft: rgb(255 255 255 / 0.7);
  --ink-muted: rgb(255 255 255 / 0.85);
}
.sq .page-hero .display { max-width: 20ch; margin-inline: auto; }
.sq .page-hero .lead { margin-inline: auto; max-width: 34rem; }
.sq .page-hero h1.eyebrow { color: rgb(255 255 255 / 0.7); }
.sq .presentazione {
  margin: 2.5rem auto 0;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Sezioni chiare: bianco e grigio molto chiaro alternati */
.sq .section {
  --ink: #000;
  --ink-muted: #2b2b2b;
  --ink-soft: #6b6b6b;
  --line: rgb(0 0 0 / 0.12);
  --line-strong: rgb(0 0 0 / 0.3);
  --accent: #000;
  --accent-ink: #fff;
  background: #fff;
  color: #000;
  border-top: 0;
}
.sq .section--alt { background: #f4f4f2; }
.sq .section--end { padding-block: 0 clamp(4rem, 9vw, 7.5rem); }
/* Senza questo il margine dei bottoni esce dalla sezione e lascia vedere il nero dietro. */
.sq .section--end .cta-row { margin-top: 0; }
.sq .split__text p,
.sq .row__text,
.sq .card__body p { font-size: 1.0625rem; line-height: 1.55; }
.sq .split__media .foto,
.sq .gallery .foto,
.sq .contact-grid__foto .foto { border-radius: 8px; }
.sq .split__pair .foto { border-radius: 6px; }
.sq .note { font-size: 0.8125rem; color: var(--ink-soft); }

/* Bottoni rettangolari: neri sulle sezioni chiare, bianchi su quelle nere */
.sq .btn {
  min-height: 0;
  padding: 1.25rem 1.6rem;
  border-radius: 4px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
.sq .btn:hover { background: transparent; color: var(--accent); transform: none; }
.sq .btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.sq .btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.sq .site-nav .btn { padding: 0.7rem 1rem; }

/* Card scure (pagina Lavori) */
.sq .section .card {
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  color: #fff;
  --ink-muted: rgb(255 255 255 / 0.85);
  --ink-soft: rgb(255 255 255 / 0.6);
  --line: rgb(255 255 255 / 0.25);
}
.sq .section .card .foto { border-radius: 0; }
.sq .section .card__body { padding: 1.5rem; }
.sq .tags li { text-transform: none; letter-spacing: 0; }

/* Valori: numero piccolo, titolo, testo */
.sq .row { align-items: start; }

/* Contatti: barre scure come il campo dell'email in home */
.sq .contact-list a,
.sq .contact-list .contact-item {
  padding: 1.25rem 1.5rem;
  border: 0;
  border-radius: 4px;
  background: #111;
  color: #fff;
}
.sq .contact-list a:hover { background: #2a2a2a; color: #fff; }
.sq .contact-list .label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgb(255 255 255 / 0.6);
}
.sq .contact-list .value {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  letter-spacing: -0.03em;
}

/* "Faccio provare alle persone…" in cima a Lavori */
.sq .rotator__testo {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-transform: none;
}
.sq .rotator__frasi--finale { color: rgb(255 255 255 / 0.6); justify-items: center; }
.sq .rotator--provare .rotator__toggle { margin-inline: auto; }
.sq .page-hero .rotator__toggle { color: rgb(255 255 255 / 0.8); border-color: rgb(255 255 255 / 0.3); }

/* Il segno: riquadro nero anche su sezione chiara */
.sq .segno { border: 0; border-radius: 8px; }
/* La nota sotto i contatti segue il margine della pagina, non il centro. */
.sq .wrap.note { max-width: none; }

/* ---------- Hero: foto di sfondo più tenue, così risaltano le tre foto a ventaglio ---------- */
.sq-hero__bg img { opacity: 0.38; }

/* ---------- Home su computer: testi e bottoni più grandi ---------- */
@media (min-width: 1000px) {
  .sq-h1 { font-size: clamp(3.75rem, 5.4vw, 4.75rem); }
  .sq-final .sq-h1 { font-size: clamp(3.125rem, 4.6vw, 4rem); }
  .sq-h2,
  .rotator--sq .rotator__item { font-size: clamp(2.5rem, 3.6vw, 3.25rem); }
  .sq-sub,
  .sq-note,
  .sq-statsline { font-size: 1.1875rem; }
  .sq-btn { padding: 1.5rem 2.1rem; font-size: 1rem; }
  .sq-stats { max-width: 56rem; }
  .sq-stats dt { font-size: 3rem; }
  .sq-stats dd { font-size: 0.9375rem; }
  .sq-tab { padding: 0.85rem 1.2rem; font-size: 1.125rem; }
  .sq-slide__body { max-width: 27rem; }
  .sq-slide__title { font-size: 2rem; }
  .sq-slide__text { font-size: 1.125rem; }
  .sq-tile__num { font-size: 0.875rem; }
  .sq-tile__title { font-size: 1.4375rem; }
  .sq-tile__text { font-size: 1.0625rem; }
  .sq-split-head .sq-sub { max-width: 30rem; }
  .sq-duo { grid-template-columns: repeat(2, minmax(0, 26rem)); }
  .sq-door__label { font-size: 0.875rem; }
  .sq-door__text { font-size: 1.0625rem; }
  .sq-door__link { font-size: 1.3125rem; }
  .sq-field { max-width: 42rem; padding: 1.5rem 1.75rem; font-size: 1.25rem; }
  .sq-small { font-size: 1rem; }
}

