/* ==========================================================================
   JUMP di Fausto Giungato — foglio di stile principale
   Nessun framework: solo CSS moderno. Palette: bianco, nero, #E8C804, #F1701D
   ========================================================================== */

/* ---------- Font (ospitati in locale, niente chiamate a Google) ---------- */
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-italic-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variabili ---------- */
:root {
  --black: #0a0a0a;
  --ink: #141414;
  --ink-2: #1c1c1c;
  --white: #ffffff;
  --paper: #ffffff;
  --mist: #f4f4f1;
  --line: rgba(10, 10, 10, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #5b5b5b;
  --muted-dark: rgba(255, 255, 255, 0.66);
  --yellow: #e8c804;
  --orange: #f1701d;

  --f-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-display: 'Anton', 'Inter Tight', Impact, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1480px;
  --header-h: 88px;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
    --radius: 22px;
  }
}

/* ---------- Reset essenziale ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}
::selection {
  background: var(--yellow);
  color: var(--black);
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.section {
  padding-block: clamp(80px, 12vw, 180px);
  position: relative;
}
.section--tight {
  padding-block: clamp(56px, 8vw, 110px);
}
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--mist {
  background: var(--mist);
}
.center {
  text-align: center;
}
.stack > * + * {
  margin-top: var(--stack, 1.2em);
}

/* ---------- Tipografia ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.label::before,
.label::after {
  color: var(--orange);
  font-weight: 500;
}
.label::before {
  content: '[';
}
.label::after {
  content: ']';
}
.display,
.h1,
.h2,
.h3 {
  font-weight: 900;
  letter-spacing: -0.05em;
  /* abbastanza spazio perché gli accenti delle maiuscole (GIÀ, È) non tocchino la riga sopra */
  line-height: 0.98;
  text-transform: uppercase;
}
.display {
  font-size: clamp(64px, 14vw, 240px);
}
.h1 {
  font-size: clamp(52px, 10.5vw, 190px);
}
.h2 {
  font-size: clamp(44px, 8.4vw, 150px);
}
.h3 {
  font-size: clamp(36px, 5vw, 84px);
}
.title {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-size: clamp(38px, 4.4vw, 72px);
}
.lead {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
  font-size: clamp(21px, 2.1vw, 32px);
}
.intro {
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  font-size: clamp(22px, 2.3vw, 34px);
}
.muted {
  color: var(--muted);
}
.section--dark .muted {
  color: var(--muted-dark);
}
em,
.em {
  font-style: italic;
}
.accent {
  color: var(--orange);
}
.accent-y {
  color: var(--yellow);
}
.hl {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding-inline: 0.06em;
}
.text-block p + p {
  margin-top: 1em;
}
.text-block strong {
  font-weight: 700;
}
.quote {
  border-left: 4px solid var(--orange);
  padding: 4px 0 4px 26px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* ---------- Pulsanti a pillola ---------- */
.pill {
  --pill-h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--pill-h);
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.3s var(--ease);
  border: 1px solid transparent;
}
.pill::before {
  /* riempimento che sale dal basso: piccolo "salto" anche nei bottoni */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill, var(--yellow));
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.pill:hover::before,
.pill:focus-visible::before {
  transform: translateY(0);
}
.pill:hover,
.pill:focus-visible {
  color: var(--black);
}
.pill--dark {
  background: var(--ink-2);
  color: var(--white);
}
.pill--black {
  background: var(--black);
  color: var(--white);
}
.pill--light {
  background: var(--white);
  color: var(--black);
}
.pill--yellow {
  background: var(--yellow);
  color: var(--black);
  --fill: var(--orange);
}
.pill--outline {
  border-color: currentColor;
}
.section--dark .pill--outline:hover,
.menu .pill--outline:hover {
  border-color: var(--yellow);
}
.pill--sm {
  --pill-h: 42px;
  padding: 0 18px;
  font-size: 13px;
}
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.pill-link .pill-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.pill-link .pill-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease);
}
.pill-link:hover .pill-arrow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}
.pill-link:hover .pill-arrow svg {
  transform: translate(2px, -2px) rotate(-45deg);
}
.arrow-ne {
  display: inline-block;
}

/* ---------- Tag ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 15px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  background: var(--yellow);
  color: var(--black);
  transition: transform 0.5s var(--ease), background 0.3s;
}
.topbar.is-hidden {
  transform: translateY(-100%);
}
.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: clamp(16px, 2vw, 32px);
}
.topbar__logo img {
  height: clamp(36px, 4.2vw, 50px);
  width: auto;
}
.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
}
.topbar__links {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.topbar__links a {
  position: relative;
  padding-block: 6px;
}
.topbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.topbar__links a:hover::after,
.topbar__links a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}
.menu-toggle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s;
  flex: none;
}
.menu-toggle:hover {
  background: var(--orange);
  transform: rotate(90deg);
}
.menu-toggle__lines {
  width: 22px;
  height: 10px;
  position: relative;
}
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.menu-toggle__lines::before {
  top: 0;
}
.menu-toggle__lines::after {
  bottom: 0;
  left: 6px;
}
.progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
@media (max-width: 960px) {
  .topbar__links,
  .topbar__cta {
    display: none;
  }
  .menu-toggle {
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   Menu laterale (off-canvas)
   ========================================================================== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.8s;
}
.menu.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: none;
}
.menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.menu.is-open .menu__overlay {
  opacity: 1;
}
.menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 100%);
  background: var(--black);
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.8s var(--ease);
  padding: clamp(24px, 4vw, 56px) clamp(24px, 5vw, 72px) 48px;
  display: flex;
  flex-direction: column;
}
.menu.is-open .menu__panel {
  transform: none;
}
.menu__panel::before {
  /* trama di linee diagonali, come una salita */
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -62deg,
    transparent 0 46px,
    rgba(255, 255, 255, 0.07) 46px 47px
  );
  mask-image: linear-gradient(to bottom, transparent 10%, #000 45%, #000);
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 45%, #000);
  pointer-events: none;
}
.menu__panel > * {
  position: relative;
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu__top img {
  height: 46px;
  width: auto;
}
.menu__close {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s;
}
.menu__close:hover {
  transform: rotate(90deg);
  background: var(--yellow);
  color: var(--black);
}
.menu__close svg {
  width: 30px;
  height: 30px;
}
.menu__title {
  margin-top: clamp(36px, 6vh, 72px);
  font-size: clamp(44px, 6vw, 78px);
}
.menu__text {
  margin-top: 14px;
  color: var(--muted-dark);
  max-width: 420px;
  font-size: 19px;
}
.menu__block {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line-dark);
}
.menu__block .label {
  margin-bottom: 20px;
}
.menu__links {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.menu__links .pill-link {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.menu.is-open .menu__links .pill-link {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
}
.menu__links .pill[aria-current='page'] {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.menu__mail {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  word-break: break-word;
}
.menu__mail:hover {
  color: var(--yellow);
}
.menu__social {
  display: flex;
  gap: 12px;
}
.icon-btn {
  width: 54px;
  height: 54px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.icon-btn:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  transform: translateY(-4px);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}
.menu__mark {
  margin-top: auto;
  padding-top: 40px;
  align-self: flex-end;
  position: relative;
  width: clamp(150px, 18vw, 210px);
}
.menu__mark img {
  width: 100%;
}
.menu__mark img + img {
  position: absolute;
  left: 0;
  top: 40px;
  transform: translate(14px, 0);
  z-index: -1;
}
.menu.is-open .menu__mark img:first-child {
  animation: mark-jump 2.6s var(--ease) 0.6s infinite;
}
@keyframes mark-jump {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(6px) scaleY(0.96);
  }
  82% {
    transform: translateY(-22px);
  }
}
body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 120px));
  padding-bottom: clamp(40px, 7vh, 90px);
  background: #060606;
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 6, 6, 0.65), transparent 55%),
    linear-gradient(0deg, rgba(6, 6, 6, 0.6), transparent 35%);
}
.hero__intro {
  max-width: 900px;
}
.hero__intro em {
  color: var(--yellow);
}
.hero__intro .accent {
  color: var(--orange);
}
.hero .hero__badge {
  position: absolute;
  right: clamp(16px, 6vw, 110px);
  top: 42%;
  width: clamp(110px, 11vw, 160px);
  aspect-ratio: 1;
}
.hero__bottom {
  margin-top: auto;
}
.hero__actions {
  margin-top: clamp(22px, 4vh, 44px);
}
@media (max-width: 768px) {
  .hero .hero__badge {
    top: auto;
    bottom: 30%;
    width: 104px;
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.92) 0%, rgba(6, 6, 6, 0.55) 32%, rgba(6, 6, 6, 0.1) 55%),
      linear-gradient(0deg, rgba(6, 6, 6, 0.7), transparent 35%);
  }
  .hero__media video,
  .hero__media img {
    position: absolute;
    top: 24%;
    height: 76%;
    object-position: 76% 50%;
  }
}

/* Badge con testo circolare che ruota */
.badge {
  position: relative;
  display: block;
  color: var(--white);
}
.badge__ring {
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
}
.badge__ring text {
  font-size: 10.6px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  fill: currentColor;
}
.badge__icon {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease);
}
.badge:hover .badge__icon {
  transform: translateY(-8px) scale(1.06);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Marquee ---------- */
.marquee {
  --gap: 0.32em;
  display: flex;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  flex: none;
  gap: var(--gap);
  padding-right: var(--gap);
  will-change: transform;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
}
.marquee--hero {
  font-weight: 900;
  font-size: clamp(76px, 15vw, 260px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-inline: calc(-1 * var(--gutter));
}
.marquee__sep {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  flex: none;
}
.marquee__sep img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.marquee .outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}
.marquee--hero .outline {
  -webkit-text-stroke-color: var(--white);
}
/* fascia inclinata gialla/arancio */
.band {
  position: relative;
  padding-block: clamp(40px, 6vw, 90px);
  overflow: hidden;
}
.band .marquee {
  font-weight: 900;
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 1;
  padding-block: 0.22em;
}
.band__a {
  background: var(--yellow);
  color: var(--black);
  transform: rotate(-2.4deg) scale(1.04);
  position: relative;
  z-index: 2;
}
.band__b {
  background: var(--orange);
  color: var(--black);
  transform: rotate(2deg) scale(1.04);
  margin-top: -0.9em;
}
.band .marquee__sep {
  width: 0.7em;
  height: 0.7em;
}

/* ==========================================================================
   Sezione "salto" (transizione dopo l'hero)
   ========================================================================== */
.jump {
  position: relative;
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(80px, 12vw, 170px);
  overflow: hidden;
  text-align: center;
}
.jump__mark {
  width: clamp(150px, 19vw, 280px);
  margin-inline: auto;
}
.jump__line {
  width: 1px;
  height: clamp(80px, 13vw, 180px);
  background: var(--black);
  margin: 26px auto 0;
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}
.jump__title {
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 5vw, 70px);
}
.jump__title .line {
  display: block;
}
.jump__wedge {
  position: absolute;
  width: clamp(110px, 16vw, 280px);
  height: clamp(320px, 46vw, 760px);
  bottom: 0;
  z-index: 0;
}
.jump__wedge--l {
  left: 0;
  background: var(--yellow);
  clip-path: polygon(0 18%, 100% 0, 30% 100%, 0 100%);
}
.jump__wedge--r {
  right: 0;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 18%, 100% 100%, 70% 100%);
}
.jump__text {
  max-width: 820px;
  margin: clamp(30px, 4vw, 52px) auto 0;
}
@media (max-width: 768px) {
  .jump__wedge {
    opacity: 0.9;
    width: 64px;
    height: 360px;
  }
}

/* ==========================================================================
   SERP che sale (scroll-driven)
   ========================================================================== */
.serp {
  position: relative;
  height: 320vh;
  background: var(--black);
  color: var(--white);
}
.serp__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.serp__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 6vw, 110px);
  align-items: center;
}
.serp__pos {
  font-weight: 900;
  font-size: clamp(110px, 16vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--orange);
  transition: color 0.4s;
  font-variant-numeric: tabular-nums;
}
.serp__pos.is-top {
  color: var(--yellow);
}
.serp__caption {
  margin-top: 26px;
  max-width: 520px;
}
.serp__card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 32px);
  box-shadow: 0 40px 120px rgba(241, 112, 29, 0.18);
}
.serp__search {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  border-radius: 999px;
  background: var(--mist);
  padding: 0 22px;
  font-weight: 500;
  font-size: 18px;
}
.serp__search svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.serp__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: currentColor;
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.serp__list {
  --row: clamp(54px, 7vh, 72px);
  position: relative;
  height: calc(var(--row) * 8);
  margin-top: 16px;
}
.serp__row {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--row);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  transform: translateY(calc(var(--slot) * var(--row)));
  transition: transform 0.6s var(--ease);
}
.serp__row i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: #e2e2e2;
}
.serp__row i:nth-child(1) {
  width: var(--w1, 30%);
  height: 8px;
  background: #ececec;
}
.serp__row i:nth-child(2) {
  width: var(--w2, 70%);
  height: 15px;
  background: #cfcfcf;
}
.serp__row i:nth-child(3) {
  width: var(--w3, 85%);
  height: 8px;
  background: #ededed;
}
.serp__row--me {
  z-index: 2;
  background: var(--yellow);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(241, 112, 29, 0.35);
  gap: 2px;
}
.serp__row--me small {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
}
.serp__row--me strong {
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.serp__row--me svg {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  color: var(--orange);
}
@media (max-width: 900px) {
  .serp {
    height: 260vh;
  }
  .serp__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .serp__pos {
    font-size: clamp(84px, 24vw, 140px);
  }
  .serp__caption {
    margin-top: 12px;
    font-size: 17px;
  }
  .serp__list {
    --row: 48px;
  }
  .serp__search {
    height: 48px;
    font-size: 16px;
  }
}

/* ==========================================================================
   Card servizi
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto clamp(48px, 7vw, 96px);
}
.section-head .label {
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.section-head .lead {
  max-width: 760px;
  margin: clamp(22px, 2.6vw, 36px) auto 0;
}
.section-head--left {
  text-align: left;
  margin-inline: 0;
}
.section-head--left .lead {
  margin-inline: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.6vw, 26px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 60px);
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mist);
  transform: translateY(100%);
  transition: transform 0.7s var(--ease);
}
.card:hover {
  border-color: var(--black);
}
.card:hover::before {
  transform: translateY(0);
}
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.card__tri {
  width: clamp(44px, 4vw, 64px);
  height: auto;
  transition: transform 0.7s var(--ease);
}
.card__tri path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: fill 0.4s;
}
.card:hover .card__tri {
  transform: translateY(-10px);
}
.card:hover .card__tri path {
  fill: var(--orange);
  stroke: var(--orange);
}
.card__title {
  margin-top: clamp(40px, 5vw, 80px);
}
.card__tagline {
  margin-top: 12px;
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.card__text {
  margin-top: clamp(22px, 3vw, 44px);
  max-width: 640px;
  color: #262626;
}
.card .tags {
  margin-top: clamp(22px, 2.6vw, 34px);
}
.card__more {
  margin-top: 28px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.card__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease);
}
.card:hover .card__more svg {
  transform: translate(3px, -3px);
}
.card--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.card--dark::before {
  background: var(--ink-2);
}
.card--dark .card__text {
  color: var(--muted-dark);
}
@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Metodo: scalini con scroll orizzontale
   ========================================================================== */
.steps {
  position: relative;
  height: 360vh;
}
.steps__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
}
.steps__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(26px, 4vh, 50px);
}
.steps__head .lead {
  max-width: 460px;
}
.steps__track {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 1.4vw, 22px);
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  will-change: transform;
}
.step {
  --h: calc(40vh + var(--i) * 6vh);
  flex: none;
  width: clamp(280px, 30vw, 440px);
  height: min(var(--h), 70vh);
  min-height: 300px;
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.step:nth-child(2) {
  background: #262626;
}
.step:nth-child(3) {
  background: var(--orange);
  color: var(--black);
}
.step:nth-child(4) {
  background: var(--yellow);
  color: var(--black);
}
.step:nth-child(5) {
  background: var(--white);
  color: var(--black);
}
.step__num {
  font-weight: 900;
  font-size: clamp(64px, 7vw, 120px);
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.step__title {
  margin-top: auto;
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.step__text {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.45;
  opacity: 0.86;
}
.steps__bar {
  margin-top: clamp(20px, 4vh, 40px);
  height: 2px;
  background: var(--line-dark);
  position: relative;
}
.steps__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
@media (max-width: 860px) {
  .steps {
    height: auto;
  }
  .steps__sticky {
    position: static;
    height: auto;
    padding-block: clamp(80px, 12vw, 140px);
  }
  .steps__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .steps__track {
    flex-direction: column;
    align-items: stretch;
    transform: none !important;
  }
  .step {
    width: auto;
    height: auto;
    min-height: 0;
    margin-left: calc(var(--i) * 4%);
  }
  .step__title {
    margin-top: 40px;
  }
  .steps__bar {
    display: none;
  }
}

/* ==========================================================================
   Lista progetti
   ========================================================================== */
.projects {
  border-top: 1px solid var(--line);
}
.project {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1.3fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3vw, 40px) clamp(8px, 1.4vw, 24px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}
.project::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--yellow);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.project:hover::before {
  transform: translateY(0);
}
.project__num {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.project__name {
  font-weight: 800;
  font-size: clamp(26px, 3vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1;
  transition: transform 0.6s var(--ease);
}
.project:hover .project__name {
  transform: translateX(12px);
}
.project__desc {
  color: var(--muted);
}
.projects--sector .project {
  grid-template-columns: 170px 1.3fr 1fr auto;
}
.project:hover .project__desc {
  color: var(--black);
}
.project__arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s;
}
.project__arrow svg {
  width: 18px;
  height: 18px;
}
.project:hover .project__arrow {
  background: var(--black);
  color: var(--yellow);
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .project,
  .projects--sector .project {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }
  .project__num {
    grid-column: 1 / -1;
  }
  .project__desc {
    grid-column: 1;
  }
  .project__arrow {
    grid-row: 2 / 4;
    grid-column: 2;
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   Testimonianze
   ========================================================================== */
.testimonials {
  columns: 3 320px;
  column-gap: clamp(16px, 1.6vw, 26px);
}
.testimonial {
  break-inside: avoid;
  margin: 0 0 clamp(16px, 1.6vw, 26px);
  padding: clamp(26px, 2.8vw, 44px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.testimonial:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
}
.testimonial__text {
  margin: 0;
  font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.testimonial__text::before {
  content: '\201C';
  display: block;
  height: 0.62em;
  margin-bottom: 10px;
  font-family: var(--f-display);
  font-size: 3.4em;
  line-height: 1;
  color: var(--orange);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 2.4vw, 32px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid var(--line-dark);
}
.testimonial__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.testimonial__author strong {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.testimonial__author small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted-dark);
}

/* ==========================================================================
   Chi sono (teaser e pagina)
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #060606;
}
.about__media img,
.about__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__media.about__media--photo {
  aspect-ratio: auto;
  align-self: start;
  background: none;
  overflow: visible;
}
.about__media.about__media--photo img {
  height: auto;
  border-radius: var(--radius);
}
.about__media .badge {
  position: absolute;
  width: 120px;
  height: 120px;
  right: 18px;
  bottom: 18px;
}
.about__name {
  margin-top: 14px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-size: clamp(48px, 6.4vw, 110px);
}
.about__role {
  margin-top: 12px;
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
}
.about__role .dot {
  color: var(--orange);
  margin-inline: 4px;
}
.about .text-block {
  margin-top: clamp(26px, 3vw, 44px);
  max-width: 640px;
}
.about .quote {
  margin-top: clamp(26px, 3vw, 44px);
  max-width: 620px;
}
.about .pill-group {
  margin-top: 36px;
}
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about__media {
    max-width: 520px;
    aspect-ratio: 1;
  }
}

/* Punti di forza / valori */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.fact {
  padding: clamp(26px, 3vw, 44px) clamp(0px, 2vw, 32px) clamp(26px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.fact + .fact {
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 2vw, 32px);
}
.fact__k {
  font-weight: 900;
  font-size: clamp(40px, 4.6vw, 76px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.fact__v {
  margin-top: 12px;
  font-weight: 600;
}
.section--dark .facts,
.section--dark .fact {
  border-color: var(--line-dark);
}
@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .fact + .fact {
    border-left: 0;
    padding-left: 0;
  }
}

/* ==========================================================================
   Pagine interne: testata
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(60px, 10vw, 150px));
  padding-bottom: clamp(56px, 8vw, 120px);
  overflow: hidden;
}
.page-hero .label {
  margin-bottom: clamp(18px, 2vw, 28px);
}
.page-hero .lead,
.page-hero .intro {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 820px;
}
.page-hero__bars {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1vw, 14px);
  height: 70%;
  z-index: -1;
}
.page-hero__bars span {
  width: clamp(16px, 2.4vw, 40px);
  height: calc(var(--h) * 1%);
  background: var(--black);
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
  animation: bar-up 1.2s var(--ease) both;
  animation-delay: calc(0.3s + var(--i) * 0.08s);
}
.page-hero__bars span:nth-last-child(2) {
  background: var(--orange);
}
.page-hero__bars span:last-child {
  background: var(--yellow);
}
@keyframes bar-up {
  from {
    transform: scaleY(0);
  }
}
.page-hero--dark {
  background: var(--black);
  color: var(--white);
}
.page-hero--dark .page-hero__bars span {
  background: var(--ink-2);
}
.page-hero--dark .page-hero__bars span:nth-last-child(2) {
  background: var(--orange);
}
.page-hero--dark .page-hero__bars span:last-child {
  background: var(--yellow);
}
@media (max-width: 768px) {
  .page-hero__bars {
    opacity: 0.22;
    height: 55%;
  }
}

/* ---------- Servizi in dettaglio (accordion nativo <details>) ---------- */
.service {
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service:last-child {
  border-bottom: 1px solid var(--line);
}
.service summary {
  list-style: none;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 3vw, 44px) 0;
  cursor: pointer;
}
.service summary::-webkit-details-marker {
  display: none;
}
.service__num {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 15px;
}
.service__name {
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 96px);
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.6s var(--ease);
}
.service summary:hover .service__name {
  transform: translateX(10px);
}
.service[open] .service__name {
  color: var(--orange);
}
.service__icon {
  width: clamp(44px, 4vw, 64px);
  transition: transform 0.6s var(--ease);
}
.service__icon path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: fill 0.3s;
}
.service[open] .service__icon {
  transform: rotate(180deg);
}
.service[open] .service__icon path {
  fill: var(--orange);
  stroke: var(--orange);
}
.service__body {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 20px clamp(20px, 4vw, 70px);
  padding-bottom: clamp(30px, 4vw, 60px);
}
.service__body > :first-child {
  grid-column: 2;
}
.service__body .lead {
  font-size: clamp(20px, 1.8vw, 28px);
}
.service__body ul {
  padding-left: 1.1em;
}
.service__body li + li {
  margin-top: 6px;
}
.service__body li::marker {
  color: var(--orange);
}
.service__body .tags,
.service__body .pill-group {
  margin-top: 22px;
}
@media (max-width: 860px) {
  .service summary {
    grid-template-columns: 1fr auto;
  }
  .service__num {
    grid-column: 1 / -1;
  }
  .service__body {
    grid-template-columns: 1fr;
  }
  .service__body > :first-child {
    grid-column: auto;
  }
}

/* ---------- Blog ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 26px);
}
.post {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.6s var(--ease);
}
.post:hover {
  border-color: var(--black);
  transform: translateY(-6px);
}
.post__cover {
  aspect-ratio: 16 / 10;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.post__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-62deg, transparent 0 26px, rgba(255, 255, 255, 0.08) 26px 27px);
  transition: transform 1.2s var(--ease);
}
.post:hover .post__cover::before {
  transform: translateY(-30px);
}
.post__cover span {
  position: relative;
  font-weight: 900;
  font-size: clamp(30px, 2.8vw, 46px);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.9;
}
.post:nth-child(3n + 2) .post__cover {
  background: var(--orange);
  color: var(--black);
}
.post:nth-child(3n + 3) .post__cover {
  background: var(--yellow);
  color: var(--black);
}
.post:nth-child(3n + 2) .post__cover::before,
.post:nth-child(3n + 3) .post__cover::before {
  background: repeating-linear-gradient(-62deg, transparent 0 26px, rgba(0, 0, 0, 0.1) 26px 27px);
}
.post__body {
  padding: clamp(20px, 2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post__cat {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.post__title {
  font-weight: 800;
  font-size: clamp(21px, 1.7vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.post__more {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 960px) {
  .posts {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Testo lungo (privacy, articoli) ---------- */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 1.6em 0 0.5em;
}
.prose p,
.prose ul {
  margin-bottom: 1em;
}
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}
.prose h3 {
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 1.5em 0 0.5em;
}
.prose h4 {
  font-size: 19px;
  font-weight: 800;
  margin: 1.4em 0 0.4em;
}
.prose ol,
.prose blockquote,
.prose figure,
.prose pre,
.prose .table-wrap,
.prose .embed {
  margin-bottom: 1.2em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose li::marker {
  color: var(--orange);
}
.prose strong,
.prose b {
  font-weight: 700;
}
.prose img {
  border-radius: 14px;
  margin-block: 0.4em;
}
.prose figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.prose blockquote {
  border-left: 4px solid var(--orange);
  padding: 2px 0 2px 22px;
  font-size: 1.12em;
  font-style: italic;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--mist);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}
.prose pre {
  background: var(--ink);
  color: #f2f2f2;
  padding: 20px 22px;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.5;
}
.prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  white-space: pre;
}
.prose .table-wrap {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.prose .embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black);
}
.prose .embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.prose iframe {
  max-width: 100%;
}
.prose .callout {
  display: block;
  background: var(--mist);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 1.2em;
}

/* ---------- Articolo del blog ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--orange);
}
.breadcrumb [aria-current] {
  color: var(--black);
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb__sep {
  color: var(--orange);
}
.article__hero {
  padding-bottom: clamp(32px, 4vw, 56px);
}
.article__title {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 1100px;
  font-size: clamp(36px, 5.2vw, 84px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.article__cat {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article__wrap {
  max-width: calc(820px + 2 * var(--gutter));
  padding-bottom: clamp(64px, 8vw, 120px);
}
.article__cover {
  margin-bottom: clamp(32px, 4vw, 56px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.article__cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.article__notice {
  margin-bottom: 32px;
  padding: 14px 20px;
  border-left: 4px solid var(--yellow);
  background: var(--mist);
  border-radius: 0 12px 12px 0;
  font-size: 16px;
}
.article__body {
  max-width: none;
  line-height: 1.7;
}
.article__body > :first-child {
  margin-top: 0;
}
.author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.author__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.author__bio {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Elenco articoli e categorie ---------- */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.cat-nav__n {
  font-size: 0.85em;
  opacity: 0.55;
}
.post__cover--img {
  padding: 0;
  background: var(--mist);
}
.post__cover--img::before {
  display: none;
}
.post__cover--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.post:hover .post__cover--img img {
  transform: scale(1.04);
}
.posts.is-paged .post[data-more] {
  display: none;
}
.posts-more {
  display: none;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 56px);
}
.js .posts-more {
  display: flex;
}
.posts-more span {
  opacity: 0.6;
}
.page-hero .breadcrumb + .h1 {
  margin-top: clamp(20px, 2.4vw, 32px);
}

/* ---------- Contatti ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 120px);
}
.contact__info {
  min-width: 0;
}
.contact__info .big-mail {
  font-size: clamp(28px, 3.1vw, 50px);
}
.contact__list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.contact__list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact__list a:hover {
  color: var(--orange);
}
.form {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 19px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--black);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color 0.3s;
  width: 100%;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.choice input:checked + span {
  background: var(--black);
  color: var(--yellow);
}
.choice input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.4;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
  flex: none;
  margin: 0;
}
.check a {
  text-decoration: underline;
}
.hp {
  position: absolute;
  left: -9999px;
}
.form__status {
  grid-column: 1 / -1;
  font-weight: 700;
  min-height: 1.4em;
}
.form__status.is-ok {
  color: #1b7f3a;
  background: #e6f4ea;
  border-left: 4px solid #1b7f3a;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
}
.form__status.is-error {
  background: #fdecea;
  border-left: 4px solid #c0392b;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
}
.sent-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  background: var(--paper);
  color: var(--black);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.sent-dialog::backdrop {
  background: rgba(10, 10, 10, 0.6);
}
.sent-dialog[open] {
  animation: sent-pop 0.5s var(--ease);
}
@keyframes sent-pop {
  from {
    transform: translateY(24px) scale(0.96);
    opacity: 0;
  }
}
.sent-dialog__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
}
.sent-dialog__icon svg {
  width: 38px;
  height: 38px;
}
.sent-dialog__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.sent-dialog__text {
  margin: 14px 0 26px;
  color: var(--muted);
}
.form__status.is-error {
  color: #c0392b;
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form {
    grid-template-columns: 1fr;
  }
  .contact__list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  background: #0d0d0d;
  color: var(--white);
  padding-top: clamp(80px, 11vw, 160px);
  overflow: hidden;
  isolation: isolate;
}
.footer::before {
  /* grana fotografica */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.footer__cta {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
}
.footer__claim {
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}
.footer__claim em {
  color: var(--orange);
}
.big-mail {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.1em;
  font-weight: 800;
  font-size: clamp(28px, 4.1vw, 74px);
  letter-spacing: -0.055em;
  line-height: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
  position: relative;
}
.big-mail svg {
  width: 0.36em;
  height: 0.36em;
  flex: none;
  margin-top: -0.05em;
  transition: transform 0.5s var(--ease);
}
.big-mail::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0.5em;
  bottom: -0.08em;
  height: 0.06em;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.big-mail:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.big-mail:hover svg {
  transform: translate(0.08em, -0.08em);
  color: var(--yellow);
}
.footer__mid {
  margin-top: clamp(70px, 9vw, 140px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: clamp(30px, 4vw, 54px);
  border-bottom: 1px solid var(--line-dark);
}
.footer__tips h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.footer__tips h3::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}
.footer__tips ul {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.footer__tips a {
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.footer__tips a:hover {
  color: var(--yellow);
}
.footer__nav {
  justify-content: flex-end;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 26px;
  font-size: 15px;
}
.footer__legal {
  display: flex;
  gap: 26px;
  font-weight: 700;
}
.footer__legal a:hover {
  color: var(--yellow);
}
.footer__giant {
  font-family: var(--f-display);
  font-size: clamp(140px, 34vw, 620px);
  line-height: 0.78;
  text-align: center;
  color: #1b1b1b;
  margin-bottom: -0.1em;
  letter-spacing: 0.01em;
  user-select: none;
  transform: translateY(calc((1 - var(--p, 1)) * 30%));
  background: linear-gradient(180deg, #232323 30%, #0d0d0d 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 900px) {
  .footer__cta {
    grid-template-columns: 1fr;
  }
  .footer__mid {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__nav {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Cursore personalizzato
   ========================================================================== */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s, width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease),
    background 0.3s;
  mix-blend-mode: normal;
}
.cursor.is-visible {
  opacity: 1;
}
.cursor.is-hover {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  background: rgba(241, 112, 29, 0.28);
  backdrop-filter: blur(1px);
}
.cursor.is-down {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ==========================================================================
   Transizione tra pagine
   ========================================================================== */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--yellow);
  pointer-events: none;
  transform: translateY(100%);
  display: grid;
  place-items: center;
}
.curtain img {
  width: 90px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
html.is-entering .curtain {
  transform: translateY(0);
}
html.is-entering .curtain img {
  opacity: 1;
  transform: none;
}
html.is-entered .curtain {
  transform: translateY(-100%);
  transition: transform 0.8s var(--ease-in-out);
}
html.is-leaving .curtain {
  transform: translateY(0);
  transition: transform 0.6s var(--ease-in-out);
}
html.is-leaving .curtain img {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

/* ==========================================================================
   Animazioni di comparsa allo scroll
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal='fade'] {
  transform: none;
}
.js [data-reveal='scale'] {
  transform: scale(0.92);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* parole che salgono una per una */
.split-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* spazio sopra per gli accenti delle maiuscole (È, À) con interlinea stretta */
  padding-top: 0.28em;
  margin-top: -0.28em;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--wi) * 0.06s);
}
.is-in .split-w > span,
.split-w.is-in > span {
  transform: none;
}
/* elementi in parallasse */
[data-parallax] {
  will-change: transform;
}

/* ---------- Utility ---------- */
.mt-s {
  margin-top: 16px;
}
.mt-m {
  margin-top: 32px;
}
.mt-l {
  margin-top: clamp(40px, 6vw, 80px);
}
.maxw-s {
  max-width: 640px;
}
.maxw-m {
  max-width: 860px;
}
.mx-auto {
  margin-inline: auto;
}
.no-js-hide {
  display: none;
}
.js .no-js-hide {
  display: initial;
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .split-w > span {
    opacity: 1 !important;
    transform: none !important;
  }
  .curtain {
    display: none;
  }
}
