/* Project Events Srl: sito istituzionale
   Sistema: inchiostro e carta, grandi titoli condensati, linee di colonna, un solo accento luce-palco. */

/* ---------- Caratteri ospitati sul sito (SIL Open Font License 1.1) ---------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-variable.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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-variable.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: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-variable.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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-variable.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;
}

:root {
  --ink: #0c0c0d;
  --ink-2: #161618;
  --ink-3: #232326;
  --paper: #f1f1ef;
  --paper-2: #e5e5e2;
  --white: #ffffff;
  --accent: #ffd23f;
  --danger: #b42318;
  --accent-hover: #ffdc66;
  --placeholder: #6b6a65;
  --ok-bg: #edf7ee;
  --ok-fg: #14532d;
  --error-bg: #fdeceb;

  --text: #0c0c0d;
  --text-2: #4b4a46;
  --on-dark: #f1f1ef;
  --on-dark-2: #b8b7b0;

  --line: rgba(12, 12, 13, 0.14);
  --line-strong: rgba(12, 12, 13, 0.34);
  --line-dark: rgba(241, 241, 239, 0.16);
  --line-dark-strong: rgba(241, 241, 239, 0.36);
  --grid: rgba(12, 12, 13, 0.075);
  --grid-dark: rgba(241, 241, 239, 0.075);

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --cell: clamp(10px, 1.4vw, 22px);
  --header-h: 76px;
  --section: clamp(72px, 9vw, 136px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  interpolate-size: allow-keywords;
  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--ink) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: 700; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.tone-dark :focus-visible,
.site-header[data-tone="dark"] :focus-visible,
.menu-panel :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */

.wrap {
  width: min(100% - 2 * var(--pad), var(--maxw));
  margin-inline: auto;
}

.tone-dark { background: var(--ink); color: var(--on-dark); --grid-line: var(--grid-dark); }
.tone-light { background: var(--paper); color: var(--text); --grid-line: var(--grid); }
.tone-stone { background: var(--paper-2); color: var(--text); --grid-line: var(--grid); }
.tone-white { background: var(--white); color: var(--text); --grid-line: var(--grid); }

/* Linee di colonna: quattro colonne sul desktop, due sul telefono */
.cols { position: relative; isolation: isolate; }
.cols::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline: max(var(--pad), calc((100% - var(--maxw)) / 2));
  z-index: -1;
  pointer-events: none;
  border-inline: 1px solid var(--grid-line);
  background-image: linear-gradient(var(--grid-line), var(--grid-line));
  background-size: 1px 100%;
  background-position: 50% 0;
  background-repeat: no-repeat;
}
@media (min-width: 900px) {
  .cols::before {
    background-image:
      linear-gradient(var(--grid-line), var(--grid-line)),
      linear-gradient(var(--grid-line), var(--grid-line)),
      linear-gradient(var(--grid-line), var(--grid-line));
    background-size: 1px 100%, 1px 100%, 1px 100%;
    background-position: 25% 0, 50% 0, 75% 0;
  }
}

.g4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g4 > * { padding-inline: var(--cell); grid-column: 1 / -1; min-width: 0; }
.g4 > ul[role="list"],
.g4 > ol[role="list"] { padding-inline: var(--cell); }
@media (min-width: 900px) {
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c1 { grid-column: 1 / span 1; }
  .c2 { grid-column: 2 / span 1; }
  .c3 { grid-column: 3 / span 1; }
  .c4 { grid-column: 4 / span 1; }
  .c12 { grid-column: 1 / span 2; }
  .c23 { grid-column: 2 / span 2; }
  .c34 { grid-column: 3 / span 2; }
  .c13 { grid-column: 1 / span 3; }
  .c24 { grid-column: 2 / span 3; }
  .c14 { grid-column: 1 / -1; }
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }

/* ---------- Type ---------- */

.display,
.h-section,
.h-area {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.95;
  text-wrap: balance;
}
.display { font-size: clamp(3rem, 1.4rem + 5.4vw, 6rem); }
.display--close { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); }
.h-section { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); }
.h-area { font-size: clamp(2rem, 1.3rem + 2.8vw, 4rem); }

.h-section .count {
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 0.9375rem;
  font-weight: 700;
  vertical-align: super;
  font-variant-numeric: tabular-nums;
}

.lead-xl {
  font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  font-weight: 400;
  text-wrap: pretty;
}
.lead-xl strong { font-weight: 700; }

.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 48ch;
  text-wrap: pretty;
}
.muted { color: var(--text-2); }
.tone-dark .muted { color: var(--on-dark-2); }

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }



/* Rivelazione a maschera dei titoli grandi (solo con JS e senza riduzione del movimento) */
.reveal .ln { display: block; overflow: hidden; padding-block: 0.12em 0.06em; margin-block: -0.12em -0.06em; }
.reveal .ln > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .ln > span {
    transform: translateY(108%);
    transition: transform 1.1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal.is-in .ln > span { transform: none; }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --dot-bg: var(--accent);
  --dot-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px 8px 8px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn__dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dot-bg);
  color: var(--dot-fg);
  transition: transform 0.5s var(--ease-out), background-color 0.35s var(--ease-out);
}
.btn__dot svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
.btn:hover .btn__dot svg { transform: rotate(45deg); }
.btn:active { transform: scale(0.98); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); --dot-bg: var(--ink); --dot-fg: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-hover); }
.btn--ink:hover { --btn-bg: var(--ink-3); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --dot-bg: transparent;
  --dot-fg: currentColor;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.tone-dark .btn--ghost,
.site-header[data-tone="dark"] .btn--ghost { box-shadow: inset 0 0 0 1px var(--line-dark-strong); }
.btn--ghost .btn__dot { box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }

.btn--sm { min-height: 46px; padding: 5px 5px 5px 18px; gap: 12px; font-size: 0.9375rem; }
.btn--sm .btn__dot { width: 36px; height: 36px; }
.btn--sm .btn__dot svg { width: 15px; height: 15px; }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.is-loading .btn__dot svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.5s var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease-out); }
.link-arrow:hover { background-size: 40% 1px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--text);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.site-header[data-tone="dark"] { color: var(--on-dark); background: var(--ink); border-bottom-color: var(--line-dark); }
.site-header[data-tone="dark"][data-top="true"] { background: transparent; border-bottom-color: transparent; }

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 36px; height: 36px; }
.brand__word { width: clamp(150px, 14vw, 200px); height: auto; }
.site-header[data-tone="dark"] .brand img,
.menu-panel .brand img,
.tone-dark .brand img { filter: invert(1); }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding-block: 8px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 700;
}
.site-header[data-tone="dark"] .menu-toggle { box-shadow: inset 0 0 0 1px var(--line-dark-strong); }
.menu-toggle__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}
.menu-toggle__icon svg { width: 16px; height: 16px; }

/* Su telefono la richiesta resta nell'intestazione: "Richiedi" corto, Menu solo icona */
@media (max-width: 639px) {
  .site-header .wrap { gap: 10px; }
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__word { width: clamp(100px, calc(100vw - 218px), 150px); }
  .header-cta { padding: 5px 13px; font-size: 0.875rem; }
  .header-cta .btn__dot { display: none; }
  .header-cta__more {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .menu-toggle,
  .menu-close { padding: 0 7px; gap: 0; }
  .menu-toggle > span:first-child,
  .menu-close > span:first-child {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media (min-width: 1000px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* Pannello del menu su telefono e tablet */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
  visibility: hidden;
  overflow-y: auto;
}
.menu-panel.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
}
.menu-panel__top {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
}
.menu-panel nav { padding-block: 32px 24px; }
.menu-panel nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 11vw, 4rem);
  line-height: 0.95;
  text-decoration: none;
}
.menu-panel nav a[aria-current="page"] { color: var(--accent); }
.menu-panel nav a svg { width: 28px; height: 28px; flex: none; }
.menu-panel__foot { margin-top: auto; padding-block: 24px 32px; display: grid; gap: 20px; color: var(--on-dark-2); font-size: 0.9375rem; }
.menu-panel__foot .btn { justify-self: start; }
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  color: var(--on-dark);
  font-weight: 700;
}
.menu-close span:last-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}
.menu-close svg { width: 14px; height: 14px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */

.hero {
  min-height: max(660px, min(100svh, 1000px));
  padding-top: var(--header-h);
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero__grid { align-items: center; padding-block: clamp(28px, 4vw, 56px); row-gap: 36px; }
.hero__copy { order: 1; }
.hero__media { order: 2; }
@media (min-width: 900px) {
  .hero__copy { order: 2; }
  .hero__media { order: 1; }
}

.hero__title { margin-bottom: clamp(22px, 2.4vw, 34px); }
.hero__copy .lede__claim { color: var(--on-dark); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 40px); }

.slides {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-2);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .slide img { transform: scale(1.07); transition: transform 8s cubic-bezier(0.25, 0.1, 0.25, 1); }
  .slide.is-active img { transform: scale(1); }
}

.hero__caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  min-height: 74px;
}
.caption__text { display: grid; gap: 2px; font-size: 0.9375rem; }
.caption__title { font-weight: 700; }
.caption__place { color: var(--on-dark-2); }

.slide-controls { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 639px) {
  .hero__caption { flex-direction: column; gap: 14px; }
  .slide-controls { width: 100%; }
  .slide-count { margin-right: auto; }
}
.slide-count { font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 6px; white-space: nowrap; }
.slide-count span { color: var(--on-dark-2); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--on-dark); color: var(--ink); box-shadow: none; }

.slide-progress { height: 2px; background: var(--line-dark); margin-top: 0; position: relative; overflow: hidden; }
.slide-progress span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.hero__rail {
  display: none;
}
@media (min-width: 1280px) {
  .hero { position: relative; }
  .hero__rail {
    display: block;
    position: absolute;
    right: calc(max(var(--pad), (100% - var(--maxw)) / 2) / 2);
    top: 50%;
    transform: translate(50%, -50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--on-dark-2);
    white-space: nowrap;
  }
}

.hero__areas {
  border-top: 1px solid var(--line-dark);
}
.areas-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.areas-strip li { border-bottom: 1px solid var(--line-dark); }
.areas-strip li:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.areas-strip a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 14px var(--cell);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.areas-strip a::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--on-dark-2); transition: background-color 0.3s var(--ease-out); }
.areas-strip a:hover::before { background: var(--on-dark); }
.areas-strip a:hover { background: var(--ink-2); }
@media (min-width: 900px) {
  .areas-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .areas-strip li { border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .areas-strip li:last-child { border-right: 0; }
  .areas-strip li:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .areas-strip li:last-child { border-right: 0; }
  .areas-strip a { min-height: 76px; }
}
.areas-strip__more a::before { display: none; }
.areas-strip__more a { justify-content: space-between; }
.areas-strip__more svg { width: 16px; height: 16px; flex: none; }
.areas-strip li.areas-strip__more { border-right: 0; }
@media (min-width: 900px) {
  .areas-strip__more { display: none; }
}

@media (min-width: 1100px) {
  .hero__copy { position: relative; z-index: 3; }
  .hero__title { margin-left: calc(-1 * clamp(72px, 8vw, 132px)); }
  .hero__media .slides::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to left, rgba(12, 12, 13, 0.88) 0%, rgba(12, 12, 13, 0.52) 24%, transparent 48%);
  }
}

/* ---------- Clienti ---------- */

.section-head { row-gap: 20px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .link-arrow { justify-self: start; }
@media (min-width: 900px) {
  .g4 > .end { justify-self: end; text-align: right; }
}

.logo-cell {
  display: grid;
  place-items: center;
  width: clamp(150px, 16vw, 220px);
  height: clamp(110px, 11vw, 150px);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.logo-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.28);
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.86;
  transition: opacity 0.4s var(--ease-out);
}
.logo-cell:hover img { opacity: 1; }
/* ---------- About statement ---------- */

.about-grid { row-gap: 32px; }
.about-grid .lead-xl { max-width: 34ch; }
.about-foot { margin-top: clamp(32px, 4vw, 56px); row-gap: 24px; align-items: end; }

/* ---------- Services accordion ---------- */

.areas { border-bottom: 1px solid var(--line-strong); }
.area { border-top: 1px solid var(--line-strong); }
.area summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  padding-block: clamp(20px, 2.4vw, 32px);
  transition: background-color 0.35s var(--ease-out);
}
.area summary::-webkit-details-marker { display: none; }
.area summary > * { padding-inline: var(--cell); }
.area__title { transition: transform 0.6s var(--ease-out); }
.area summary:hover .area__title { transform: translateX(10px); }
.area__sum { grid-column: 1 / -1; color: var(--text-2); font-size: 1rem; }
.area__icon {
  grid-row: 1;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.35s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.35s;
  margin-right: var(--cell);
  padding: 0 !important;
}
.area__icon svg { width: 18px; height: 18px; }
.area__icon .v { transition: transform 0.6s var(--ease-out); transform-origin: center; }
.area[open] .area__icon { background: var(--ink); color: var(--accent); box-shadow: none; }
.area[open] .area__icon .v { transform: scaleY(0); }
.area summary:hover .area__icon { box-shadow: inset 0 0 0 1px var(--ink); }

@media (min-width: 900px) {
  .area summary { grid-template-columns: 2fr 1fr 1fr; }
  .area__title { grid-column: 1; }
  .area__sum { grid-column: 2; grid-row: 1; }
  .area__icon { grid-column: 3; justify-self: end; }
}

.area::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.6s var(--ease-out), content-visibility 0.6s allow-discrete;
}
.area[open]::details-content { block-size: auto; }

.area__body { padding-bottom: clamp(28px, 3vw, 44px); row-gap: 20px; }
.area__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.area__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 600;
}
.area__list li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--ink); transform: translateY(-2px); }
@media (min-width: 640px) {
  .area__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--cell) * 2); }
}

/* ---------- Works ---------- */

.works-grid { row-gap: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) {
  .works-grid > :nth-child(even) { margin-top: clamp(80px, 10vw, 160px); }
  .works-grid > :nth-child(n + 3):nth-child(odd) { margin-top: calc(clamp(80px, 10vw, 160px) * -0.6); }
}

.work { display: block; text-decoration: none; }
.work__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.work:hover .work__media img { transform: scale(1.045); }
.work__type {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
.work__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 16px;
  padding-top: 18px;
}
.work__title {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
  line-height: 0.95;
}
.work__line { grid-column: 1; color: var(--text-2); font-size: 0.9375rem; }
.work__go {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s;
}
.work__go svg { width: 17px; height: 17px; transition: transform 0.5s var(--ease-out); }
.work:hover .work__go { background: var(--ink); color: var(--accent); box-shadow: none; }
.work:hover .work__go svg { transform: rotate(45deg); }

/* ---------- Values band ---------- */

.values__words { margin-bottom: clamp(48px, 6vw, 96px); }
.values__words .display { font-size: clamp(2.3rem, 1.2rem + 6vw, 6rem); }
@media (min-width: 900px) {
  .values__words .ln:nth-child(2) > span { padding-left: 50%; }
  .values__words .ln:nth-child(3) > span { padding-left: 25%; }
}
.values__foot { row-gap: 28px; }
.types { display: flex; flex-wrap: wrap; align-content: flex-start; align-self: start; gap: 10px; }
.types li {
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- Request form ---------- */

.request-grid { row-gap: 48px; align-items: start; }
.facts { display: grid; gap: 0; margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line-strong); max-width: 520px; }
.facts div { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.facts dt { font-weight: 700; }
.facts dd { color: var(--text-2); }
.tone-dark .facts { border-top-color: var(--line-dark-strong); }
.tone-dark .facts div { border-bottom-color: var(--line-dark); }
.tone-dark .facts dd { color: var(--on-dark-2); }

.form-panel {
  background: var(--white);
  padding: clamp(22px, 3vw, 44px);
  box-shadow: 0 1px 2px rgba(12, 12, 13, 0.06), 0 18px 48px -24px rgba(12, 12, 13, 0.25);
}
.form { display: grid; gap: 26px; }
.form__row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; align-content: start; }
.field label,
.field legend { font-size: 0.875rem; font-weight: 700; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 0.8125rem; color: var(--text-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.0625rem;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230c0c0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1.5px 0 var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: var(--danger); box-shadow: 0 1.5px 0 var(--danger); }
.field__error { display: none; font-size: 0.8125rem; font-weight: 600; color: var(--danger); }
.field.has-error .field__error { display: block; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s;
}
.chip span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 0.25s;
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--white); box-shadow: none; }
.chip input:checked + span::before { background: var(--accent); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; color: var(--text-2); }
.consent input {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.consent input::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.2s var(--ease-out);
}
.consent input:checked { background: var(--ink); border-color: var(--ink); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.consent.has-error input { border-color: var(--danger); }
.consent .field__error { grid-column: 2; }
.consent.has-error .field__error { display: block; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form[hidden] { display: none; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { font-size: 0.8125rem; color: var(--text-2); }
.form__status {
  display: none;
  padding: 16px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
}
.form__status.is-visible { display: block; }
.form__status[data-kind="ok"] { background: var(--ok-bg); color: var(--ok-fg); }
.form__status[data-kind="error"] { background: var(--error-bg); color: var(--danger); }
.form__status[data-kind="info"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

.next-steps { margin-top: clamp(36px, 4vw, 56px); max-width: 520px; }
.next-steps__title { margin-bottom: 16px; }
.next-steps__list { list-style: none; padding: 0; margin: 0; counter-reset: passo; border-top: 1px solid var(--line-strong); }
.next-steps__list li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-2);
}
.next-steps__list li::before { content: counter(passo); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.next-steps__list strong { color: var(--text); font-weight: 700; }

/* Conferma dopo l'invio: riepilogo di quanto inviato al posto del modulo vuoto */
.form-done { display: grid; gap: 22px; }
.form-done__head { display: flex; align-items: center; gap: 14px; }
.form-done__mark {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
}
.form-done__mark svg { width: 20px; height: 20px; }
.form-done__title {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem);
  line-height: 0.95;
}
.form-done__title:focus { outline: none; }
.form-done__title:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.form-done__msg { color: var(--text-2); }
.form-done .facts { margin-top: 0; max-width: none; }
.form-done .facts dd { white-space: pre-line; }
.form-done__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-done__foot .btn { padding: 5px 22px; }

/* ---------- Page intro (pagine interne) ---------- */

.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 128px)); padding-bottom: clamp(48px, 6vw, 96px); }
.page-hero__grid { row-gap: 28px; align-items: end; }
.crumbs { display: flex; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--on-dark-2); margin-bottom: 18px; }
.crumbs a { display: inline-block; padding-block: 4px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Servizi: blocchi area ---------- */

.area-block { scroll-margin-top: var(--header-h); }
.area-block__grid { row-gap: 28px; align-items: start; }
.area-block .h-area { margin-bottom: 18px; }
.item-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(14px, 1.6vw, 22px);
  border-top: 1px solid var(--line-strong);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
}
.item-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.item-list a { display: inline-block; padding-block: 4px; text-decoration: none; }
.item-list a:hover { text-decoration: underline; }
.item-list li small { font-size: 0.875rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* ---------- Eventi: righe ---------- */

.event-row { row-gap: 28px; align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.event-row + .event-row { margin-top: clamp(64px, 8vw, 128px); }
.event-row figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.event-gallery { margin-top: clamp(20px, 2.4vw, 32px); row-gap: 20px; }
.event-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.event-gallery + .event-row { margin-top: clamp(64px, 8vw, 128px); }
@media (min-width: 640px) {
  .event-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-gallery > * { grid-column: auto; }
}
@media (min-width: 900px) {
  .event-row--flip .event-row__media { order: 2; }
}
.event-row h2 { margin-bottom: 14px; }
.event-row .tagline { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); font-weight: 600; margin-bottom: 22px; }
.event-row .facts { margin-top: 0; }
.event-row .partner-logos { display: flex; gap: 0; margin-top: 22px; }
.partner-logos .logo-cell { width: 150px; height: 104px; border: 1px solid var(--line); margin-right: -1px; background: var(--white); }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-grid .logo-cell { width: 100%; height: clamp(110px, 12vw, 160px); border: 0; }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.client-groups { display: grid; row-gap: clamp(32px, 4vw, 56px); }
.client-group { row-gap: 14px; }
.client-group__title,
.next-steps__title {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem);
  line-height: 1;
  letter-spacing: 0;
}
.client-group__title .count { font-family: var(--font-text); font-stretch: 100%; font-size: 0.9375rem; font-weight: 700; color: var(--text-2); vertical-align: super; font-variant-numeric: tabular-nums; text-transform: none; }
@media (max-width: 639px) { .client-groups .logo-grid .logo-cell { height: 96px; } }
@media (min-width: 640px) {
  .logo-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logo-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- CTA band ---------- */

.cta-band { row-gap: 28px; align-items: end; }

/* ---------- Documento (privacy) ---------- */

.doc { max-width: 72ch; }
.doc h2 {
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1;
  margin: 2.2em 0 0.6em;
}
.doc h2:first-child { margin-top: 0; }
.doc p + p { margin-top: 0.9em; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 96px); }
.footer-grid { row-gap: 40px; padding-bottom: clamp(40px, 5vw, 72px); }
.footer-logo { width: 168px; }
.footer-claim {
  margin-top: 22px;
  font-family: var(--font-display);
  font-stretch: 68%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0;
}
.footer-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 14px; }
.footer-list { display: grid; gap: 8px; font-size: 0.9375rem; }
.footer-list a { display: inline-block; padding-block: 3px; text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-address { font-style: normal; font-size: 0.9375rem; color: var(--text-2); display: grid; gap: 4px; }
.footer-address strong { color: var(--text); }
.eu-mark { display: grid; gap: 10px; justify-items: start; font-size: 0.875rem; }
.eu-mark a { display: inline-block; padding-block: 3px; }
.eu-mark img { width: 220px; }
.footer-bar {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.footer-bar a { font-weight: 700; color: var(--text); text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 6px; }
.footer-links a { padding-block: 2px; }

@media print {
  .reveal .ln > span { transform: none !important; }
  .site-header, .menu-panel, .slide-controls { display: none !important; }
}

/* ---------- Riduzione del movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    transition-delay: 0s !important;
  }
  .btn:hover .btn__dot svg,
  .work:hover .work__go svg,
  .work:hover .work__media img,
  .area summary:hover .area__title,
  .link-arrow:hover svg { transform: none; }
}
