/* ==========================================================================
   Avabrand - Landing Page
   Design system: template "Digital Marketing Agency" + palette avacard
   ========================================================================== */

:root {
  --flame: #f15025;
  --flame-mid: #f4764e;
  --flame-light: #f8b09a;
  --carbon: #191919;
  --alabaster: #e6e8e6;
  --mist: #f9f9f9;
  --white: #ffffff;
  --gray: #878c91;
  --gray-dark: #5c5d5f;
  --gray-footer: #9b9b9c;

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-btn: 'Manrope', sans-serif;
  --font-footer: 'Roboto', sans-serif;

  --r-card: 20px;
  --r-shell: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--carbon);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1188px) {
  .container { padding-inline: 0; }
}

.section { position: relative; }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }
.section--alabaster { background: #f3f3f3; }

/* ---------- Typography ---------- */

.h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.h2--ondark { color: var(--white); text-align: center; }

.body-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--gray);
}

.accent { color: var(--flame); }

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 32px;
  border-radius: 70px;
  font-family: var(--font-btn);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }

.btn--primary { background: var(--carbon); color: var(--white); }
.btn--white { background: var(--white); color: var(--carbon); }
.btn--flame { background: var(--flame); color: var(--white); }
.btn--outline {
  border: 1px solid var(--carbon);
  color: var(--carbon);
  padding: 13px 16px;
  border-radius: 50px;
  gap: 0;
}
.btn--outline-white {
  border: 1px solid var(--white);
  color: var(--white);
  padding: 13px 16px;
  border-radius: 50px;
  gap: 0;
}
.btn--flame.btn--w236, .btn--w236 { width: 236px; padding-inline: 16px; }
.btn--w176 { width: 176px; padding-block: 17px; }

.arr { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary .arr, .btn--flame .arr { stroke: var(--white); }
.btn--white .arr { stroke: var(--carbon); }

.pill-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 70px;
  border: 1px solid var(--carbon);
  color: var(--carbon);
  transition: background .2s ease, color .2s ease;
}
.pill-arrow:hover { background: var(--carbon); color: var(--white); }
.pill-arrow--dark { background: var(--carbon); color: var(--white); border-color: var(--carbon); }
.pill-arrow--dark:hover { background: var(--flame); border-color: var(--flame); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50px;
}
.btn-icon--dark { background: var(--carbon); }
.btn-icon svg { width: 24px; height: 24px; }

.link-underline {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  text-decoration: underline;
  text-underline-position: from-font;
}
.link-underline:hover { color: var(--flame); }

/* ---------- Logo ---------- */

.logo { display: inline-flex; align-items: center; gap: 3px; }
.logo--lg { gap: 5px; }
.logo__mark {
  position: relative;
  width: 33px; height: 33px;
}
.logo__mark::before {
  content: "";
  position: absolute;
  left: 5.5px; top: 0;
  width: 22px; height: 15px;
  background: var(--flame);
  border-radius: 30px 6px 30px 6px;
}
.logo__mark-inner {
  position: absolute;
  left: 5.5px; bottom: 0;
  width: 22px; height: 15px;
  background: var(--carbon);
  border-radius: 6px 30px 6px 30px;
}
.logo__text {
  font-family: var(--font-btn);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--carbon);
  margin-top: -3px;
}
.logo--lg .logo__mark { width: 51px; height: 51px; }
.logo--lg .logo__mark::before { left: 8.5px; top: 0; width: 34px; height: 23px; border-radius: 46px 9px 46px 9px; }
.logo--lg .logo__mark-inner { left: 8.5px; bottom: 0; top: auto; width: 34px; height: 23px; border-radius: 9px 46px 9px 46px; box-shadow: none; }
.logo--lg .logo__text { font-size: 37px; margin-top: -4px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding-block: 15px;
  padding-inline: max(24px, calc((100vw - 1140px) / 2));
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 232, 230, 0.9);
  box-shadow: 0 12px 40px -22px rgba(25, 25, 25, 0.22);
}

/* animazioni "gated": si attivano solo se il clock animazioni è vivo (html.fx via JS) */
html.fx .nav { animation: nav-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

.hero-wrap { padding-top: 88px; }
.nav__left { display: flex; align-items: center; gap: 74px; }
.nav__menu { display: flex; align-items: center; gap: 33px; }
.nav__menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
.nav__menu a:hover { color: var(--flame); }
.chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }

/* ==========================================================================
   Sottomenu dei servizi
   Si apre al passaggio del mouse e con il fuoco da tastiera. Solo css: nessuna
   dipendenza dallo script, quindi è utilizzabile fin dal primo istante.
   ========================================================================== */
.nav__voce { position: relative; }
.nav__voce:hover > a .chev,
.nav__voce:focus-within > a .chev { transform: rotate(180deg); }

/* Ponte per il cursore fra la voce e il pannello, largo quanto la voce: se
   fosse largo quanto il pannello passerebbe sotto anche alle voci accanto e
   il menu si aprirebbe e chiuderebbe a ripetizione muovendo il mouse. */
.nav__voce::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 33px;
}

.sottomenu {
  position: absolute;
  top: calc(100% + 31px);
  /* centrato sotto alla voce che lo apre */
  left: 50%;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  /* mentre sparisce non deve più intercettare il cursore */
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .26s cubic-bezier(.2, .7, .2, 1), visibility .2s;
}
.nav__voce:hover .sottomenu,
.nav__voce:focus-within .sottomenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sottomenu__pannello {
  width: 620px;
  padding: 14px;
  border: 1px solid var(--alabaster);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 70px -34px rgba(25, 25, 25, 0.34);
}

.sottomenu__griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

/* con poche voci il pannello si stringe invece di lasciare metà spazio vuoto */
.sottomenu--stretto .sottomenu__pannello { width: 330px; }
.sottomenu--stretto .sottomenu__griglia { grid-template-columns: 1fr; }
.sottomenu--stretto .sottomenu__piede { flex-direction: column; align-items: flex-start; gap: 10px; }

.svoce {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  border-radius: 15px;
  text-decoration: none;
  transition: background .2s ease;
}
.svoce:hover { background: var(--mist); }

.svoce__icona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(241, 80, 37, 0.1);
  transition: background .22s ease;
}
.svoce__icona svg { width: 19px; height: 19px; }
.svoce:hover .svoce__icona { background: rgba(241, 80, 37, 0.18); }

.svoce__testo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svoce__nome {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--carbon);
  transition: color .2s ease;
}
.svoce:hover .svoce__nome { color: var(--flame); }
.svoce__nota {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray);
}

.svoce__arr {
  width: 16px; height: 16px;
  margin-left: auto;
  flex-shrink: 0;
  fill: none;
  stroke: var(--flame);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .7, .2, 1);
}
.svoce:hover .svoce__arr { opacity: 1; transform: none; }

.sottomenu__piede {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  padding: 14px 15px 6px;
  border-top: 1px solid var(--alabaster);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}
.sottomenu__piede a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--carbon);
  text-decoration: none;
  transition: color .2s ease;
}
.sottomenu__piede a .arr { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.sottomenu__piede a:hover { color: var(--flame); }
.sottomenu__piede a:hover .arr { transform: translateX(4px); }

@media (max-width: 1100px) {
  /* con poco spazio il pannello resterebbe fuori schermo: resta solo il link */
  .sottomenu { display: none; }
}
.nav__actions { display: flex; align-items: center; gap: 9px; }
.nav__cta { width: 156px; }

/* ---------- Hero ---------- */

.hero-wrap {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(1000px 560px at 85% 8%, rgba(241, 80, 37, 0.10), transparent 62%),
    radial-gradient(760px 480px at 5% 88%, rgba(241, 80, 37, 0.06), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fdfcfb 100%);
}

/* griglia sottile che sfuma verso il basso */
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(1300px 900px at 72% -5%, #000 20%, transparent 78%);
  mask-image: radial-gradient(1300px 900px at 72% -5%, #000 20%, transparent 78%);
  pointer-events: none;
}

/* leggera texture noise, come nel template */
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.hero-wrap > :not(.nav):not(.orb) { position: relative; z-index: 1; }

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-top: 80px;
}

.hero__left { max-width: 700px; display: flex; flex-direction: column; gap: 28px; }
.hero__left .hero__ctas { margin-top: 20px; }

.hero__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 70px;
  background: rgba(241, 80, 37, 0.08);
  border: 1px solid rgba(241, 80, 37, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
}
.hero__eyebrow-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--flame);
  flex-shrink: 0;
}
html.fx .hero__eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(241, 80, 37, 0.5);
  animation: pulse-ring 2.4s ease-out infinite;
}

.hero__title {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__sub { max-width: 557px; font-size: 16px; font-weight: 500; line-height: 1.8; color: var(--gray); }

.hero__ctas { display: flex; align-items: center; gap: 32px; }

/* right composition - 588x547 canvas */
.hero__right {
  position: relative;
  width: 588px;
  height: 547px;
  flex-shrink: 0;
  transform: scale(0.88);
  transform-origin: top right;
  margin-left: -71px;
  margin-bottom: -66px;
}

.hero__quarter {
  position: absolute;
  left: 0; top: 32px;
  width: 303px; height: 275px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1000px 20px 20px 20px;
}

.hero__stat-card {
  position: absolute;
  right: 2px; top: 32px;
  width: 259px; height: 281px;
  border-radius: var(--r-card);
  padding: 28px 24px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 26px 60px -34px rgba(25, 25, 25, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* alone flame che filtra da dietro il vetro */
.hero__stat-card::before {
  content: "";
  position: absolute;
  right: -60px; bottom: -70px;
  width: 230px; height: 230px;
  background: radial-gradient(closest-side, rgba(241, 80, 37, 0.28), transparent);
  pointer-events: none;
}
.hero__stat-num {
  position: relative;
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__stat-foot {
  position: relative;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(25, 25, 25, 0.12);
  display: flex;
  gap: 22px;
}
.hero__stat-mini {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero__stat-mini strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--flame);
}
.hero__stat-mini span {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-dark);
}

.hero__stat-desc {
  position: relative;
  margin-top: 18px;
  max-width: 211px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray-dark);
}

.hero__dark-card {
  position: absolute;
  left: 0; bottom: 0;
  width: 588px; height: 216px;
  background: var(--carbon);
  border-radius: var(--r-card);
  overflow: hidden;
}
.hero__dark-card::before {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 500px; height: 400px;
  background: radial-gradient(closest-side, rgba(241, 80, 37, 0.55), transparent);
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.26;
  color: var(--white);
}
.eyebrow__line { width: 54px; height: 2px; background: var(--white); }

.hero__dark-title {
  position: relative;
  margin-block: auto;
  max-width: 330px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* rotator servizi nella card scura */
.rotator__slide {
  position: absolute;
  left: 33px; top: 34px; right: 196px; bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.rotator__slide.is-active {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.rotator__fx {
  position: absolute;
  right: 48px; top: 50%;
  translate: 0 -50%;
  width: 150px; height: 150px;
}
.rotator__fx-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rotator__fx-item.is-active {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.rotator__arrows {
  position: absolute;
  right: 26px; bottom: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rotator__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  transition: transform 0.2s ease;
}
.rotator__arrow svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}
.rotator__arrow:hover { transform: scale(1.15); }
.rotator__arrow:hover svg { stroke: var(--flame); }

.rotator__dots {
  position: absolute;
  left: 33px; bottom: 20px;
  display: flex;
  gap: 8px;
}
.rotator__dots button {
  width: 26px; height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  position: relative;
  padding: 0;
}
.rotator__dots button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flame);
}
html.fx .rotator__dots button.is-active::after {
  width: 0;
  animation: dot-fill 4.2s linear forwards;
}
@keyframes dot-fill { to { width: 100%; } }

.hero__badge {
  position: absolute;
  left: 155px; top: 0;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: var(--carbon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 50px -7px rgba(0, 0, 0, 0.44);
}
.hero__badge svg { width: 48px; height: 48px; }

/* trusted - full-width logo marquee bar */
.trusted-bar {
  position: relative;
  /* Sfondo pieno, senza sfocatura del retro: era lei a far diventare la
     fascia una lastra grigia. La sfocatura campiona quello che sta dietro, e
     dietro passano le sfere arancioni: a ogni ricomposizione del livello il
     browser ridisegnava tutto, con lampeggii sui telefoni. Un colore pieno
     dà lo stesso risultato a schermo e non ha niente da ricalcolare. */
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 48px;
  background: #fafafa;
  border-block: 1px solid var(--alabaster);
  padding-block: 26px;
  padding-right: max(24px, calc((100vw - 1140px) / 2));
  overflow: hidden;
}
.trusted-bar__label {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: calc(max(24px, (100vw - 1140px) / 2) + 200px);
  padding-left: max(24px, calc((100vw - 1140px) / 2));
  padding-right: 48px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gray);
}

.marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-right 32s linear infinite;
  /* il nastro vive su un livello suo: lo scorrimento non obbliga la fascia a
     ridisegnarsi a ogni fotogramma */
  will-change: transform;
  backface-visibility: hidden;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.tlogo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.tlogo img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
.tlogo--sq img { height: 42px; }

@keyframes marquee-right {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- About ---------- */

.about { padding-block: 70px 90px; }
.about .container { position: relative; }

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
/* il titolo grande ha più aria sopra le maiuscole del paragrafo accanto:
   la recupero, così le due colonne partono davvero dalla stessa altezza */
.split-heading .h2 {
  max-width: 684px;
  margin-top: calc(9px - 0.3em);
}
.split-heading > .body-text, .split-heading__right { max-width: 557px; }
.split-heading .body-text { font-size: 18px; line-height: 1.7; }
.split-heading__right { display: flex; flex-direction: column; gap: 48px; align-items: flex-start; }

.about__cards {
  display: flex;
  gap: 24px;
  margin-top: 72px;
}

.card-dark {
  position: relative;
  background: var(--carbon);
  border-radius: var(--r-shell);
  overflow: hidden;
}

.about__stat {
  width: 438px;
  min-height: 382px;
  flex-shrink: 0;
  padding: 40px;
}
.about__stat::before {
  content: "";
  position: absolute;
  left: 100px; top: 100px;
  width: 600px; height: 500px;
  background: radial-gradient(closest-side, rgba(241, 80, 37, 0.4), transparent);
  pointer-events: none;
}
.about__stat-num {
  position: relative;
  font-size: 84px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.about__stat-desc {
  position: relative;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
}
/* grafico di crescita: Idea → Strategia → Risultati */
.growth {
  position: relative;
  margin-top: 34px;
}
.growth__chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.growth__line {
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.growth__line--flat {
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}
.growth__dot {
  fill: var(--flame);
  stroke: var(--carbon);
  stroke-width: 3.5;
}
.growth__dot--last {
  fill: var(--white);
  stroke: var(--flame);
}
.growth__dot--flat {
  fill: rgba(255, 255, 255, 0.32);
  stroke: var(--carbon);
  stroke-width: 3;
}
.growth__dot--flatend { fill: rgba(255, 255, 255, 0.5); }

.growth__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.growth__tag--up { fill: var(--flame); }
.growth__tag--flat { fill: rgba(255, 255, 255, 0.42); }

.growth__axis {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  fill: rgba(255, 255, 255, 0.45);
}
.growth__axis--last { fill: var(--white); }
.growth__grid path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
.growth__grid-h { stroke-dasharray: 2 6; }
.growth__drop {
  stroke: rgba(241, 80, 37, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}
.growth__halo {
  fill: none;
  stroke: rgba(241, 80, 37, 0.45);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
html.fx .growth__halo { animation: pulse-ring 2.6s ease-out infinite; }

/* disegno progressivo all'ingresso in viewport */
html.fx .growth__line:not(.growth__line--flat) {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
html.fx .growth__line--flat { opacity: 0; }
html.fx .growth.is-drawn .growth__line--flat { animation: growth-fade 1s 0.4s ease forwards; }
html.fx .growth__tag,
html.fx .growth__axis { opacity: 0; }
html.fx .growth.is-drawn .growth__axis { animation: growth-fade 0.7s 0.2s ease forwards; }
html.fx .growth.is-drawn .growth__tag--flat { animation: growth-fade 0.6s 0.9s ease forwards; }
html.fx .growth.is-drawn .growth__tag--up { animation: growth-fade 0.6s 1.6s ease forwards; }
html.fx .growth__grid,
html.fx .growth__area,
html.fx .growth__drop,
html.fx .growth__dot,
html.fx .growth__halo { opacity: 0; }
html.fx .growth__dot {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}
html.fx .growth.is-drawn .growth__line:not(.growth__line--flat) { animation: growth-draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
html.fx .growth.is-drawn .growth__grid { animation: growth-fade 0.7s ease forwards; }
html.fx .growth.is-drawn .growth__area { animation: growth-fade 1s 0.5s ease forwards; }
html.fx .growth.is-drawn .growth__drop { animation: growth-fade 0.6s 1.5s ease forwards; }
html.fx .growth.is-drawn .growth__halo { animation: growth-fade 0.6s 1.5s ease forwards, pulse-ring 2.6s 1.5s ease-out infinite; }
html.fx .growth.is-drawn .growth__dot { animation: growth-pop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) forwards; }
html.fx .growth.is-drawn .growth__dot--flat { animation-delay: 0.9s; }
html.fx .growth.is-drawn .growth__dot:nth-of-type(4) { animation-delay: 0.2s; }
html.fx .growth.is-drawn .growth__dot:nth-of-type(5) { animation-delay: 0.85s; }
html.fx .growth.is-drawn .growth__dot:nth-of-type(6) { animation-delay: 1.5s; }

@keyframes growth-draw { to { stroke-dashoffset: 0; } }
@keyframes growth-fade { to { opacity: 1; } }
@keyframes growth-pop { to { opacity: 1; transform: scale(1); } }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--av, var(--gray));
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
/* il riquadro ospita la foto del team: riempie sempre lo spazio senza deformarsi */
.about__how {
  position: relative;
  flex: 1;
  min-height: 382px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-shell);
  background: var(--mist);
}
.about__how img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}

.play-badge {
  position: absolute;
  right: -20px;
  bottom: -105px;
  width: 163px; height: 163px;
  border-radius: 50%;
  background: var(--flame);
  border: 12px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
  z-index: 2;
}
.play-badge:hover { transform: scale(1.05); }
.play-badge svg { width: 44px; height: 44px; }

/* ---------- Servizi ---------- */

.servizi { padding-block: 70px 26px; }
.servizi-cards { padding-block: 26px 90px; }

.servizi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(25, 25, 25, 0.18);
}
.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gray);
}
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--flame); }
.service-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(241, 80, 37, 0.13), rgba(241, 80, 37, 0.04));
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.service-card:hover .service-tile {
  background: linear-gradient(135deg, rgba(241, 80, 37, 0.2), rgba(241, 80, 37, 0.07));
}
.service-ico {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--flame);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.service-card__desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 28px;
}
/* il collegamento si estende a tutta la scheda: si tocca ovunque, ma resta
   un solo link con il nome del servizio per chi usa un lettore di schermo */
.service-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.service-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--carbon);
  transition: color 0.2s ease;
}
.service-card__cta .arr {
  width: 15px; height: 15px;
  stroke-width: 2.2;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-card:hover .service-card__cta { color: var(--flame); }
.service-card:hover .service-card__cta .arr { transform: translateX(5px); }

/* ---------- Progetti (dark shell) ---------- */

.progetti { padding: 0; }
/* la sezione progetti esce a tutta pagina: niente cornice né angoli */
.progetti .dark-shell {
  max-width: none;
  border-radius: 0;
}
.progetti .dark-shell__glow {
  right: -320px; top: -420px;
  width: 1500px; height: 1100px;
}

.dark-shell {
  position: relative;
  max-width: 1220px;
  margin-inline: auto;
  background: var(--carbon);
  border-radius: var(--r-shell);
  overflow: hidden;
}
.dark-shell__glow {
  position: absolute;
  right: -250px; top: -350px;
  width: 1200px; height: 900px;
  background: radial-gradient(closest-side, rgba(241, 80, 37, 0.35), transparent);
  pointer-events: none;
}

.progetti__inner {
  position: relative;
  padding: 96px max(24px, calc((100vw - 1140px) / 2));
}

/* --- intestazione --- */
.progetti__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 56px;
}
.progetti__head-left { max-width: 620px; }
.progetti__head .h2 { text-align: left; margin-top: 22px; }
.hero__eyebrow--dark {
  background: rgba(241, 80, 37, 0.14);
  border-color: rgba(241, 80, 37, 0.3);
}
.progetti__head-right {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.progetti__head-right p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

/* --- filtri --- */
.progetti__filtri {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 52px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pfilter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 70px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.pfilter span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  transition: color .2s ease;
}
.pfilter:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.pfilter.is-active {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--white);
}
.pfilter.is-active span { color: rgba(255, 255, 255, 0.75); }

/* --- griglia progetti --- */
.progetti__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s ease, background .28s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(241, 80, 37, 0.45);
}
.pcard.is-hidden { display: none; }

.pcard__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #3a3a3a, #1d1d1d);
  overflow: hidden;
}
.pcard__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 70% 80%, rgba(241, 80, 37, 0.45), transparent 72%);
}
.pcard__thumb--2::after { background: radial-gradient(closest-side at 30% 20%, rgba(241, 80, 37, 0.4), transparent 70%); }
.pcard__thumb--3::after { background: radial-gradient(closest-side at 80% 30%, rgba(244, 118, 78, 0.4), transparent 72%); }
.pcard__thumb--4::after { background: radial-gradient(closest-side at 20% 75%, rgba(241, 80, 37, 0.34), transparent 70%); }
.pcard__thumb--5::after { background: radial-gradient(closest-side at 55% 25%, rgba(241, 80, 37, 0.3), transparent 72%); }
.pcard__thumb--6::after { background: radial-gradient(closest-side at 75% 65%, rgba(248, 176, 154, 0.32), transparent 70%); }

.pcard__tag {
  position: absolute;
  left: 14px; top: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 70px;
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.pcard__meta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.pcard__title {
  margin-top: 7px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--white);
}
.pcard__result {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pcard__result strong {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--flame);
}
.pcard__result span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}
.pcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
}
.pcard__cta .arr {
  width: 15px; height: 15px;
  stroke-width: 2.2;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.pcard:hover .pcard__cta { color: var(--flame); }
.pcard:hover .pcard__cta .arr { transform: translateX(5px); }

/* ---------- Testimonial ---------- */

.testimonial { padding-block: 100px; }

/* ==========================================================================
   Recensioni: una sola scheda che cambia contenuto. L'altezza segue la
   citazione attiva, così sotto alle più corte non resta un vuoto.
   ========================================================================== */
.ts { margin-top: 46px; }

.ts__carta {
  position: relative;
  padding: 54px 56px 34px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: #fff;
  box-shadow: 0 40px 80px -60px rgba(25, 25, 25, 0.45);
}

.ts__virgolette {
  position: absolute;
  top: 46px;
  right: 54px;
  width: 58px;
  height: auto;
  fill: var(--flame);
  opacity: 0.12;
  pointer-events: none;
}

/* le citazioni si sovrappongono: l'altezza segue quella attiva */
.ts__palco {
  position: relative;
  height: 0;
  transition: height .45s cubic-bezier(.2, .7, .2, 1);
}
.ts__voce {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(var(--dir, 20px));
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1), visibility .4s;
}
.ts__voce.is-attiva { opacity: 1; visibility: visible; transform: none; }
.ts__voce p {
  max-width: 880px;
  margin: 0;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--carbon);
}
.ts__voce p::before { content: "“"; }
.ts__voce p::after { content: "”"; }

/* ---------- piede: la firma a sinistra, i comandi a destra ---------- */
.ts__piede {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--alabaster);
}

.ts__firma { display: flex; align-items: center; gap: 14px; }
html.fx .ts__firma.e-cambiata { animation: firma-entra .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes firma-entra {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

.ts__faccia {
  width: 46px;
  height: 46px;
  font-size: 15px;
  border: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(241, 80, 37, 0.35);
  transition: background .45s ease;
}
.ts__faccia img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.ts__chi { display: flex; flex-direction: column; gap: 2px; }
.ts__nome { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.ts__ruolo { font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--gray); }

.ts__comandi { display: flex; align-items: center; gap: 24px; }

/* un segmento per recensione: sostituisce contatore e barra di avanzamento */
.ts__segmenti { display: flex; align-items: center; gap: 7px; }

.ts__segmento {
  position: relative;
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--alabaster);
  overflow: hidden;
  cursor: pointer;
  transition: width .45s cubic-bezier(.2, .7, .2, 1), background .3s ease;
}
.ts__segmento:hover { background: #c9ccc9; }
.ts__segmento.is-attivo { width: 52px; background: var(--alabaster); cursor: default; }

.ts__segmento span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--flame);
}
/* le recensioni già viste restano segnate, non vuote */
.ts__segmento.e-passata span { width: 100%; background: rgba(241, 80, 37, 0.32); }

.ts__frecce { display: flex; gap: 8px; }
.ts__freccia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--alabaster);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.ts__freccia svg { width: 17px; height: 17px; fill: none; stroke: var(--carbon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts__freccia:hover { background: var(--mist); border-color: #c9ccc9; }
.ts__freccia--piena { background: var(--carbon); border-color: var(--carbon); }
.ts__freccia--piena svg { stroke: #fff; }
.ts__freccia--piena:hover { background: var(--flame); border-color: var(--flame); transform: translateX(2px); }

@media (max-width: 860px) {
  .testimonial { padding-block: 64px; }
  .ts { margin-top: 30px; }
  .ts__carta { padding: 34px 24px 26px; border-radius: var(--r-card); }
  .ts__virgolette { top: 26px; right: 22px; width: 40px; }
  .ts__voce p { font-size: 19px; line-height: 1.55; }
  .ts__piede { margin-top: 30px; padding-top: 22px; }
  .ts__comandi { width: 100%; justify-content: space-between; gap: 16px; }
  .ts__faccia { width: 42px; height: 42px; font-size: 14px; }
  .ts__nome { font-size: 15px; }
  .ts__ruolo { font-size: 12.5px; }
  .ts__freccia { width: 40px; height: 40px; }
}

/* ---------- FAQ ---------- */

.faq-wrap { padding: 16px; }

.faq-card {
  max-width: 1220px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 28px;
  padding: 66px 80px;
  display: flex;
  gap: 90px;
  align-items: flex-start;
}

.faq-card__intro {
  max-width: 531px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex-shrink: 0;
}
.faq-card__ctas { display: flex; align-items: center; gap: 48px; }

.faq-list { flex: 1; }

.faq-item { border-bottom: 1px solid var(--carbon); }
.faq-item:first-child { border-top: 1px solid var(--carbon); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 24px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span {
  max-width: 448px;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.03em;
}
.faq-item__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--carbon);
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform .2s ease;
}
.faq-item[open] .faq-item__icon .v { display: none; }
.faq-item p {
  padding: 22px 24px 26px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--gray);
}

/* ---------- CTA + Footer ---------- */

/* ==========================================================================
   Piè di pagina: un unico blocco scuro a tutta larghezza che chiude il sito.
   Invito al contatto, navigazione, firma. Sostituisce il vecchio riquadro CTA.
   ========================================================================== */
.pie {
  position: relative;
  overflow: hidden;
  padding: 96px 0 0;
  background: var(--carbon);
  color: var(--white);
}
.pie__bagliore {
  position: absolute;
  top: -160px;
  right: -140px;
  width: 900px;
  height: 620px;
  pointer-events: none;
  background: radial-gradient(circle at 60% 40%, rgba(241, 80, 37, 0.34), transparent 62%);
  filter: blur(20px);
}
.pie__dentro { position: relative; }

/* ---------- invito al contatto ---------- */
.pie__invito { max-width: 780px; }

.pie__titolo {
  margin-top: 22px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

/* l'indirizzo è il vero pulsante: grande, con la riga che si allunga */
.pie__mail {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}
.pie__mail-testo {
  background-image: linear-gradient(var(--flame), var(--flame));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .45s cubic-bezier(.2, .7, .2, 1);
  padding-bottom: 4px;
}
.pie__mail:hover .pie__mail-testo { background-size: 100% 2px; }

.pie__mail-icona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.pie__mail-icona svg { width: 19px; height: 19px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pie__mail:hover .pie__mail-icona { background: var(--flame); transform: translateX(5px); }

.pie__azioni {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin-top: 38px;
}
.pie__stato {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
.pie__spia {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--flame);
  flex-shrink: 0;
}
html.fx .pie__spia::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--flame);
  animation: spia-pulsa 2.4s ease-out infinite;
}
@keyframes spia-pulsa {
  0%   { transform: scale(0.6); opacity: 0.9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- corpo: marchio e navigazione ---------- */
.pie__corpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 60px;
  margin-top: 86px;
  padding: 54px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pie__corpo:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.pie__brand { max-width: 340px; }
.pie__brand .logo__text { color: var(--white); }
/* sul fondo scuro il petalo carbone sparirebbe: qui diventa bianco */
.pie__brand .logo__mark-inner { background: #fff; }
.pie__brand > p {
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

.pie__social { display: flex; gap: 10px; margin-top: 26px; }
.pie__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.pie__social a:hover { background: var(--flame); border-color: var(--flame); transform: translateY(-3px); }
.pie__social svg { width: 15px; height: 15px; fill: var(--white); }

.pie__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.pie__titoletto {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.pie__col ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pie__col a, .pie__col span {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color .2s ease;
}
.pie__col a { position: relative; display: inline-block; }
.pie__col a:hover { color: var(--white); }
.pie__col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}
.pie__col a:hover::after { transform: scaleX(1); }
.pie__recapiti span { color: rgba(255, 255, 255, 0.5); }
/* un'icona al posto dell'etichetta scritta: la riga resta pulita */
.pie__recapiti li { display: flex; align-items: flex-start; gap: 11px; }
.pie__recapiti svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 4px;
  fill: rgba(255, 255, 255, 0.34);
  fill-rule: evenodd;
  transition: fill .2s ease;
}
.pie__recapiti li:hover svg { fill: var(--flame); }

/* ---------- firma: il marchio grande, tagliato dal bordo ---------- */
.pie__firma {
  display: flex;
  justify-content: space-between;
  margin: 44px 0 -0.09em;
  font-size: clamp(58px, 15.2vw, 232px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: rgba(255, 255, 255, 0.055);
  user-select: none;
}
.pie__firma span { display: block; }
html.fx .pie__firma.reveal span {
  opacity: 0;
  transform: translateY(0.16em);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 0.045s);
}
html.fx .pie__firma.reveal.in span { opacity: 1; transform: none; }

/* ---------- riga finale ---------- */
.pie__basso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 30px;
  padding: 26px 0 0;
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}
.pie__nota p { margin: 0; }
.pie__societa { margin-top: 5px !important; font-size: 12px; color: rgba(255, 255, 255, 0.32); }
.pie__societa a { color: inherit; text-decoration: none; transition: color .2s ease; }
.pie__societa a:hover { color: rgba(255, 255, 255, 0.7); }
.pie__legale { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.pie__legale a { color: rgba(255, 255, 255, 0.42); text-decoration: none; transition: color .2s ease; }
.pie__legale a:hover { color: var(--white); }

.pie__su {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color .2s ease;
}
.pie__su svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.pie__su:hover { color: var(--white); }
.pie__su:hover svg { transform: translateY(-3px); }

@media (max-width: 1024px) {
  .pie__corpo { grid-template-columns: 1fr; gap: 46px; }
  .pie__brand { max-width: 460px; }
}

@media (max-width: 768px) {
  .pie { padding-top: 64px; }
  .pie__corpo { margin-top: 54px; padding: 40px 0 36px; }
  .pie__nav { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .pie__col:last-child { grid-column: span 2; }
  .pie__firma { margin-top: 52px; }
  .pie__basso { justify-content: flex-start; gap: 14px 22px; }
}

/* ==========================================================================
   Effetti - orbs, lottie, reveal, nav sticky, progress
   ========================================================================== */

/* orbs fluttuanti (parallax via transform, drift via translate) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform, translate;
}
.hero-wrap > .orb { z-index: 0; }
.orb--1 {
  width: 540px; height: 540px;
  right: -140px; top: -160px;
  background: radial-gradient(circle at 32% 32%, rgba(241, 80, 37, 0.34), rgba(244, 118, 78, 0.12) 58%, transparent 72%);
  animation: orb-drift 16s ease-in-out infinite alternate;
}
.orb--2 {
  width: 440px; height: 440px;
  left: -180px; top: 38%;
  background: radial-gradient(circle at 60% 40%, rgba(241, 80, 37, 0.20), transparent 66%);
  animation: orb-drift 21s ease-in-out infinite alternate-reverse;
}
.orb--3 {
  width: 400px; height: 400px;
  left: 42%; bottom: -200px;
  background: radial-gradient(circle, rgba(25, 25, 25, 0.10), transparent 66%);
  animation: orb-drift 26s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  from { translate: 0 0; }
  to   { translate: 48px 56px; }
}

/* lottie hero */
#fx-orbit {
  position: absolute;
  left: 109px; top: -46px;
  width: 200px; height: 200px;
  pointer-events: none;
}
#fx-star {
  position: absolute;
  left: -58px; top: 168px;
  width: 150px; height: 150px;
  pointer-events: none;
}

/* anelli pulse attorno al play badge */
.play-badge::before,
.play-badge::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 3px solid rgba(241, 80, 37, 0.45);
  border-radius: 50%;
  animation: pulse-ring 2.6s ease-out infinite;
  pointer-events: none;
}
.play-badge::after { animation-delay: -1.3s; }
@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* respiro dei glow nelle sezioni scure */
.dark-shell__glow {
  animation: glow-breathe 9s ease-in-out infinite alternate;
}
@keyframes glow-breathe {
  from { opacity: 0.75; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.09); }
}

/* ingresso hero al load - solo con clock animazioni vivo */
html.fx .hero__left > * { animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
html.fx .hero__left > *:nth-child(1) { animation-delay: 0.08s; }
html.fx .hero__left > *:nth-child(2) { animation-delay: 0.20s; }
html.fx .hero__left > *:nth-child(3) { animation-delay: 0.32s; }
html.fx .hero__right { animation: fade-scale 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-scale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; }
}

/* probe: verifica che le animazioni CSS avanzino davvero */
@keyframes fx-probe { from { opacity: 0; } to { opacity: 1; } }

/* reveal on scroll (classi aggiunte da script.js) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* barra progresso scroll */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--flame), var(--flame-mid));
  z-index: 100;
}

@keyframes nav-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .play-badge::before, .play-badge::after, .dark-shell__glow,
  html.fx .hero__left > *, html.fx .hero__right, html.fx .nav { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .container { padding-inline: 24px; }
  .hero__right { transform: scale(0.8); margin-left: -118px; margin-bottom: -109px; }
  .play-badge { right: 10px; }
}

@media (max-width: 1180px) {
  .nav__left { gap: 40px; }
  .nav__menu { gap: 22px; }

  .hero { flex-direction: column; }
  .hero__right { transform: none; margin: 0 auto; }

  .split-heading { flex-direction: column; }
  .split-heading .h2 { margin-top: 0; }

  .about__cards { flex-direction: column; }
  .about__stat { width: 100%; }
  .about__how { min-height: 0; aspect-ratio: 16 / 10; }
  .play-badge { bottom: -40px; }

  .servizi__grid { grid-template-columns: repeat(2, 1fr); }

  .faq-card { flex-direction: column; gap: 48px; }
  .faq-card__intro { max-width: none; }
  .faq-list { width: 100%; }

  .footer { gap: 60px; }
}

@media (max-width: 768px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }

  .hero__right {
    width: 100%;
    max-width: 588px;
    height: auto;
    aspect-ratio: 588 / 547;
  }
  .hero__quarter { width: 51.5%; height: 50.2%; }
  .hero__stat-card { width: 44%; height: 51.4%; }
  .hero__stat-num { font-size: clamp(40px, 13vw, 84px); }
  .hero__stat-desc { font-size: clamp(12px, 2.4vw, 16px); margin-top: 10px; }
  .hero__dark-card { width: 100%; height: 39.5%; }
  .hero__dark-title { font-size: clamp(16px, 4vw, 28px); margin-top: 10px; }
  .rotator__slide { left: 18px; top: 16px; right: 120px; }
  .rotator__fx { width: 100px; height: 100px; right: 12px; }
  .rotator__dots { left: 18px; bottom: 10px; }
  .hero__badge { width: 80px; height: 80px; left: 30%; }
  .hero__badge svg { width: 36px; height: 36px; }

  .hero__ctas { flex-wrap: wrap; gap: 24px; }
  .trusted-bar { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 32px; }
  .trusted-bar__label { padding-inline: 24px; }
  .marquee { width: 100%; }

  .servizi__grid { grid-template-columns: 1fr; }

  .progetti__inner { padding: 48px 24px; }
  .progetti__cards { gap: 24px; }
  .project { width: 320px; height: 320px; }
  .project__cta { width: 130px; height: 130px; font-size: 15px; }
  .project__title { font-size: 18px; }

  .testimonial { padding-block: 70px; }

  .faq-card { padding: 40px 24px; }
  .faq-card__ctas { flex-wrap: wrap; gap: 24px; }

  .cta__row { padding: 40px 24px; justify-content: center; text-align: center; }

  .footer { flex-direction: column; }
  .footer__cols { gap: 40px; }

  .about__how { min-height: 220px; }
  .play-badge { width: 120px; height: 120px; bottom: -30px; }
}

/* ==========================================================================
   Blog - ultimi articoli
   ========================================================================== */

.blog { padding-block: 90px 100px; }

.blog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 56px;
}
.blog__head-left { max-width: 620px; }
.blog__head-left .h2 { margin-top: 22px; }
.blog__head-right {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.blog__layout {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 60px;
  margin-top: 56px;
}

/* --- articolo in evidenza --- */
.post { display: block; }

.post__thumb {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(135deg, #dfe1df, #c9ccc9);
}
.post__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 72% 78%, rgba(241, 80, 37, 0.42), transparent 70%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.post__thumb--2::after { background: radial-gradient(closest-side at 30% 30%, rgba(241, 80, 37, 0.36), transparent 72%); }
.post__thumb--3::after { background: radial-gradient(closest-side at 75% 35%, rgba(244, 118, 78, 0.36), transparent 72%); }
.post__thumb--4::after { background: radial-gradient(closest-side at 35% 75%, rgba(248, 176, 154, 0.42), transparent 72%); }
.post__thumb--5::after { background: radial-gradient(closest-side at 60% 40%, rgba(241, 80, 37, 0.3), transparent 72%); }
.post:hover .post__thumb::after { transform: scale(1.12); }

/* l'immagine si allunga fino a pareggiare l'altezza della lista a fianco */
.post--featured { display: flex; flex-direction: column; }
.post--featured .post__thumb { flex: 1; min-height: 330px; }

.post__cat {
  position: absolute;
  left: 16px; top: 16px;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 70px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--carbon);
}

.post__body { padding-top: 24px; }

.post__meta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray);
}

.post__title {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--carbon);
  transition: color .2s ease;
}
.post:hover .post__title { color: var(--flame); }

.post__excerpt {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--gray);
}

.post__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--carbon);
}
.post__cta .arr {
  width: 15px; height: 15px;
  stroke-width: 2.2;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.post:hover .post__cta { color: var(--flame); }
.post:hover .post__cta .arr { transform: translateX(5px); }

/* --- lista articoli recenti --- */
.blog__list { display: flex; flex-direction: column; }

.post--row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--alabaster);
}
/* linee solo tra un articolo e l'altro: niente sopra il primo né sotto l'ultimo */
.post--row:first-child { border-top: none; padding-top: 0; }
.post--row:last-child { padding-bottom: 0; }

.post--row .post__thumb {
  width: 104px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 16px;
}
.post__row-body { flex: 1; }
.post--row .post__title {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.4;
}

.post__arrow {
  width: 20px; height: 20px;
  flex-shrink: 0;
  stroke: var(--gray);
  stroke-width: 2;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), stroke .2s ease;
}
.post--row:hover .post__arrow { stroke: var(--flame); transform: translateX(5px); }

@media (max-width: 1180px) {
  .blog__head { flex-direction: column; align-items: flex-start; }
  .blog__layout { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 768px) {
  .blog { padding-block: 60px 70px; }
  .post--featured .post__title { font-size: 22px; }
  .post--row { gap: 14px; }
  .post--row .post__thumb { width: 78px; border-radius: 12px; }
  .post--row .post__title { font-size: 16px; }
}

/* ==========================================================================
   Pagine interne - blog, archivi e casi studio
   ========================================================================== */

.container--narrow { max-width: 760px; }

/* ---------- intestazione di pagina ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 150px 0 70px;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(241, 80, 37, 0.12), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 600px at 70% -10%, #000 20%, transparent 78%);
  mask-image: radial-gradient(900px 600px at 70% -10%, #000 20%, transparent 78%);
  pointer-events: none;
}
.page-head .container { position: relative; }
.page-head__title {
  margin-top: 22px;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
}
.page-head__sub {
  margin-top: 18px;
  max-width: 620px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--gray);
}

/* ---------- filtri a pillola ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 70px;
  border: 1px solid var(--alabaster);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chip span { font-size: 11px; color: var(--gray); }
.chip:hover { border-color: var(--carbon); color: var(--carbon); }
.chip.is-active { background: var(--flame); border-color: var(--flame); color: var(--white); }
.chip.is-active span { color: rgba(255, 255, 255, 0.8); }
.chip--sm { padding: 7px 14px; font-size: 12px; }

/* ---------- archivi ---------- */
.archive { padding-block: 70px 100px; }
.archive__empty { font-size: 16px; color: var(--gray); }

.archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.acard {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--mist);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
.acard:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(25, 25, 25, 0.22); }

.acard__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dfe1df, #c9ccc9);
  overflow: hidden;
}
.acard__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 70% 75%, rgba(241, 80, 37, 0.34), transparent 72%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.acard:hover .acard__thumb::after { transform: scale(1.12); }
.acard__thumb--dark { background: linear-gradient(135deg, #3a3a3a, #1d1d1d); }

.acard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.acard__title {
  margin-top: 9px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  transition: color .2s ease;
}
.acard:hover .acard__title { color: var(--flame); }
.acard__excerpt {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
}
.acard__result {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--alabaster);
}
.acard__result strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--flame);
}
.acard__result span { font-size: 11px; font-weight: 600; color: var(--gray); line-height: 1.35; }
.acard .post__cta { margin-top: auto; padding-top: 18px; }

/* articolo in evidenza nell'archivio */
.feature-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 26px;
  margin-bottom: 56px;
  border-radius: var(--r-shell);
  background: var(--mist);
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(135deg, #dfe1df, #c9ccc9);
}
.feature-card__title {
  margin-top: 12px;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
  transition: color .2s ease;
}
.feature-card:hover .feature-card__title { color: var(--flame); }

/* ==========================================================================
   Archivio casi studio
   Apertura scura come la sezione progetti della home, poi una griglia dove il
   primo caso occupa il doppio dello spazio. Tutto su una griglia sola: niente
   elementi appoggiati fuori sistema.
   ========================================================================== */
.arch-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 64px;
  background: var(--carbon);
  color: var(--white);
}
.arch-hero__glow {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 900px;
  height: 700px;
  pointer-events: none;
  background: radial-gradient(circle at 60% 40%, rgba(241, 80, 37, 0.36), transparent 62%);
  filter: blur(18px);
}
.arch-hero > .container { position: relative; z-index: 1; }

.arch-hero__testa {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: end;
}
.arch-hero__titolo {
  margin-top: 22px;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.arch-hero__lato { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.arch-hero__lato p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}

/* i numeri: colonne di uguale larghezza, segno animato a sinistra del valore */
.arch-numeri {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 48px 0 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.arch-numeri__voce {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.arch-numeri__voce:first-child { padding-left: 0; border-left: 0; }

.arch-numeri__fx {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.arch-numeri dt {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--flame);
  white-space: nowrap;
}
.arch-numeri dd {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

/* filtri sul fondo scuro */
.arch-filtri { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.afiltro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 70px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.afiltro span { font-size: 11px; color: rgba(255, 255, 255, 0.42); }
.afiltro:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.afiltro.is-attivo { background: var(--flame); border-color: var(--flame); color: var(--white); }
.afiltro.is-attivo span { color: rgba(255, 255, 255, 0.75); }

/* ---------- griglia dei casi ---------- */
.casi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.caso {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-card);
  background: #fff;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, border-color .28s ease;
}
.caso:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 80, 37, 0.32);
  box-shadow: 0 30px 56px -34px rgba(25, 25, 25, 0.32);
}

/* il primo caso occupa due colonne e due righe: apre la griglia senza uscirne */
.caso--grande {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--r-shell);
}

.caso__foto {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #3a3a3a, #1d1d1d);
}
.caso--grande .caso__foto { aspect-ratio: 16 / 9; flex: 1; }
.caso__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 68% 74%, rgba(241, 80, 37, 0.36), transparent 72%);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.caso:hover .caso__foto::after { transform: scale(1.14); }

.caso__tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 70px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--carbon);
}

/* la freccia entra dall'angolo: dice che la scheda è cliccabile per intero */
.caso__vai {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--flame);
  opacity: 0;
  transform: translate(8px, 8px) scale(0.8);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.caso__vai svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.caso:hover .caso__vai { opacity: 1; transform: none; }

.caso__corpo { display: flex; flex-direction: column; padding: 22px 24px 24px; }
.caso--grande .caso__corpo { padding: 30px 34px 32px; }

.caso__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.caso__meta span { color: var(--alabaster); }

.caso__titolo {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--carbon);
  transition: color .2s ease;
}
.caso--grande .caso__titolo { margin-top: 12px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.03em; }
.caso:hover .caso__titolo { color: var(--flame); }

.caso__testo {
  margin-top: 11px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
}
.caso--grande .caso__testo { margin-top: 14px; font-size: 15.5px; max-width: 620px; }

/* i risultati stanno su una riga di colonne uguali, non sparsi */
.caso__risultati {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 22px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--alabaster);
  list-style: none;
}
.caso--grande .caso__risultati { margin-top: 26px; padding-top: 22px; gap: 30px; }
.caso__risultati li { display: flex; flex-direction: column; gap: 4px; }
.caso__risultati strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--flame);
}
.caso--grande .caso__risultati strong { font-size: 30px; }
.caso__risultati span {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray);
}

@media (max-width: 1024px) {
  .arch-hero { padding: 120px 0 52px; }
  .arch-hero__testa { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .arch-numeri { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; margin-top: 40px; }
  .arch-numeri__voce:nth-child(odd) { padding-left: 0; border-left: 0; }
  .arch-numeri__fx { width: 40px; height: 40px; }
  .casi { grid-template-columns: repeat(2, 1fr); }
  .caso--grande { grid-column: span 2; grid-row: span 1; }
  .caso--grande .caso__foto { aspect-ratio: 16 / 9; flex: none; }
}

@media (max-width: 680px) {
  .arch-numeri { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .arch-numeri__voce { gap: 11px; padding-left: 16px; }
  .arch-numeri__fx { width: 34px; height: 34px; border-radius: 11px; }
  .arch-numeri dd { font-size: 11px; }
  .casi { grid-template-columns: 1fr; }
  .caso--grande { grid-column: span 1; }
  .caso--grande .caso__corpo { padding: 24px 22px 26px; }
  .caso__risultati { grid-auto-flow: row; gap: 14px; }
}

/* ==========================================================================
   Domande frequenti: una riga per domanda, la risposta scorre aprendosi
   ========================================================================== */
.domande { margin-top: 46px; border-top: 1px solid var(--alabaster); }

.domanda { border-bottom: 1px solid var(--alabaster); }

.domanda summary {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  cursor: pointer;
  list-style: none;
  transition: padding .3s ease;
}
.domanda summary::-webkit-details-marker { display: none; }

.domanda__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray);
  transition: color .25s ease;
}
.domanda__testo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--carbon);
  transition: color .25s ease;
}

.domanda__segno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--alabaster);
  border-radius: 50%;
  transition: background .28s ease, border-color .28s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.domanda__segno svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: var(--carbon);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke .25s ease;
}

.domanda:hover .domanda__testo { color: var(--flame); }
.domanda:hover .domanda__num { color: var(--flame); }
.domanda:hover .domanda__segno { border-color: rgba(241, 80, 37, 0.4); }

/* aperta: il segno ruota di 45° e diventa una croce */
.domanda[open] .domanda__num { color: var(--flame); }
.domanda[open] .domanda__segno {
  background: var(--flame);
  border-color: var(--flame);
  transform: rotate(135deg);
}
.domanda[open] .domanda__segno svg { stroke: #fff; }

/* la risposta si apre scorrendo: nessuno script, solo griglia */
.domanda__risposta {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.2, .7, .2, 1);
}
.domanda[open] .domanda__risposta { grid-template-rows: 1fr; }
.domanda__risposta > p {
  overflow: hidden;
  min-height: 0;
  max-width: 780px;
  margin: 0 0 0 80px;
  padding-bottom: 26px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--gray);
}

/* ==========================================================================
   Richiesta preventivo in pagina
   ========================================================================== */
.srv-preventivo { padding-block: 0 90px; }

.prev__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  /* Il riquadro scuro è largo 1220 e la griglia della pagina 1140: 40px per lato
     allineano il contenuto al resto del sito. La formula usata altrove vale per
     i blocchi a tutta larghezza e qui rientrerebbe di 150px. */
  padding: 72px clamp(22px, 5vw, 70px);
}

.prev__titolo {
  margin-top: 22px;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--white);
}
.prev__sub {
  max-width: 460px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

.prev__passi { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.prev__passi li { display: flex; align-items: flex-start; gap: 14px; }
.prev__passo-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(241, 80, 37, 0.18);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--flame);
}
.prev__passi strong { display: block; font-size: 15px; font-weight: 600; color: var(--white); }
.prev__passi span span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.5); }

.prev__oppure {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}
.prev__oppure a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 3px; }
.prev__oppure a:hover { color: var(--flame); }
/* solo il puntino separatore, non ogni span dentro al paragrafo */
.prev__oppure span[aria-hidden] { margin: 0 6px; color: rgba(255, 255, 255, 0.28); }

/* il modulo resta chiaro: un modulo scuro si compila peggio */
.prev__modulo .modulo {
  padding: 32px 34px;
  border-radius: var(--r-shell);
  gap: 22px;
}
.prev__modulo .avviso { margin-bottom: 18px; }
.prev__modulo .form__invia { align-self: flex-start; }

.srv-preventivo .altri-servizi { margin-top: 56px; }

@media (max-width: 1024px) {
  .prev__inner { grid-template-columns: 1fr; gap: 40px; padding: 52px 24px; }
  .prev__sub { max-width: none; }
  .prev__modulo .modulo { padding: 26px 22px; }
}

@media (max-width: 680px) {
  .domanda summary { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 22px 2px; }
  .domanda__num { display: none; }
  .domanda__testo { font-size: 17px; }
  .domanda__risposta > p { margin-left: 0; font-size: 15px; }
}

/* ==========================================================================
   Apertura Advertising: due colonne, con il conto che si fa alla prima call.
   Forma diversa dalla pagina Siti, stesso fondo scuro.
   ========================================================================== */
.adv-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 0;
  background: var(--carbon);
  color: var(--white);
}
.adv-hero__glow {
  position: absolute;
  top: -280px;
  left: 46%;
  width: 900px;
  height: 760px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(241, 80, 37, 0.32), transparent 62%);
  filter: blur(20px);
}
.adv-hero > .container { position: relative; z-index: 1; }

.adv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 60px;
  align-items: center;
  margin-top: 30px;
  padding-bottom: 56px;
}

.adv-hero__titolo {
  margin-top: 22px;
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.adv-hero__sub {
  max-width: 520px;
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}
.adv-hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 30px; }

.adv-hero__patti { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.adv-hero__patti li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
.adv-hero__patti svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--flame);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- la scheda del conto ---------- */
.conto {
  padding: 28px 30px 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-shell);
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.conto__testa { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.conto__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--flame);
}
.conto__titolo { margin-top: 7px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.conto__fx { width: 66px; height: 66px; flex-shrink: 0; margin: -8px -6px 0 0; }

.conto__righe {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.conto__righe li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.conto__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}
.conto__voce strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.conto__voce span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.45); }
.conto__unita {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.32);
}

.conto__esito {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: rgba(241, 80, 37, 0.12);
}
.conto__esito-segno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--flame);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.conto__esito strong { display: block; font-size: 15px; font-weight: 600; color: var(--white); }
.conto__esito span span,
.conto__esito > span { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, 0.6); }
.conto__esito > span strong { margin-bottom: 4px; }

/* ---------- riga dei canali ---------- */
.adv-hero__canali {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.adv-hero__canali-etichetta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.adv-hero__canali ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.adv-hero__canali li {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.75);
}
.adv-hero__canali li + li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
}

@media (max-width: 1024px) {
  .adv-hero { padding-top: 118px; }
  .adv-hero__grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .adv-hero__sub { max-width: none; }
  .conto { padding: 24px 22px 26px; }
}

/* ---------- i canali ---------- */
.adv-canali { padding-block: 90px; }

.canali {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.canale {
  display: flex;
  flex-direction: column;
  padding: 32px 34px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: var(--mist);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}
.canale:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 30px 56px -38px rgba(25, 25, 25, 0.3);
}

.canale__testa { display: flex; align-items: flex-start; gap: 16px; }
.canale__num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(25, 25, 25, 0.16);
  transition: color .28s ease;
}
@supports (-webkit-text-stroke: 1px currentColor) {
  .canale__num {
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(25, 25, 25, 0.26);
    transition: color .28s ease, -webkit-text-stroke-color .28s ease;
  }
  .canale:hover .canale__num { -webkit-text-stroke-color: var(--flame); }
}
.canale:hover .canale__num { color: var(--flame); }

.canale__nome { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.canale__claim { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--flame); }

.canale__testo {
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--gray);
}

.canale__tag { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.canale__tag li {
  padding: 5px 11px;
  border: 1px solid var(--alabaster);
  border-radius: 999px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-dark);
}

.canale__quando {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--carbon);
}
.canale__quando svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- ripartizione del budget ---------- */
.adv-budget { padding-block: 90px; }

/* La barra misura come si divide il budget pubblicitario fra i due tipi di
   campagna. Non è il rapporto fra budget e parcella: quello sarebbe una
   percentuale sulla spesa, che questa pagina dice di non applicare. */
.riparto { margin-top: 50px; }

.riparto__barra {
  display: flex;
  height: 74px;
  overflow: hidden;
  border-radius: 18px;
}
.riparto__fetta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--q);
  transition: width 1s cubic-bezier(.2, .7, .2, 1);
}
.riparto__fetta--1 { background: var(--flame); }
.riparto__fetta--2 { background: var(--carbon); }
.riparto__quota {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
html.fx .riparto__barra .riparto__fetta { width: 0; animation: riparto-apre 1s cubic-bezier(.2, .7, .2, 1) .2s forwards; }
html.fx .riparto__fetta--2 { animation-delay: .35s; }
@keyframes riparto-apre { to { width: var(--q); } }

.riparto__legenda {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 34px;
  margin: 26px 0 0;
}
.riparto__legenda dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.riparto__legenda dd { margin: 7px 0 0 22px; font-size: 14px; line-height: 1.65; color: var(--gray); }
.riparto__pallino { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.riparto__pallino--1 { background: var(--flame); }
.riparto__pallino--2 { background: var(--carbon); }

.riparto__nota {
  max-width: 720px;
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-card);
  background: #fff;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- cosa guardiamo ---------- */
.adv-metriche { padding-block: 0 90px; }

.metriche__inner {
  position: relative;
  padding: 76px clamp(22px, 5vw, 70px);
}
.metriche__testa { max-width: 640px; }
.metriche__titolo { margin-top: 22px; text-align: left; }
.metriche__sub {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

.metriche__griglia {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.metrica {
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .28s ease, background .28s ease;
}
.metrica:hover { border-color: rgba(241, 80, 37, 0.35); background: rgba(255, 255, 255, 0.06); }
.metrica__fx { width: 62px; height: 62px; margin-bottom: 18px; }
.metrica__titolo { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.metrica__testo {
  margin-top: 11px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1024px) {
  .canali { grid-template-columns: 1fr; }
  .metriche__inner { padding: 54px 24px; }
  .metriche__griglia { grid-template-columns: 1fr; gap: 16px; }
  .riparto__legenda { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  .adv-canali, .adv-budget { padding-block: 60px; }
  .canale { padding: 26px 22px; }
  .riparto__barra { height: 58px; }
  .riparto__quota { font-size: 16px; }
}

/* ==========================================================================
   Pagina SEO: apertura centrata con il pannello dei risultati di ricerca
   ========================================================================== */
.seo-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 70px;
  background: var(--carbon);
  color: var(--white);
}
.seo-hero__glow {
  position: absolute;
  top: -300px;
  left: 50%;
  width: 1000px;
  height: 780px;
  pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 45%, rgba(241, 80, 37, 0.3), transparent 62%);
  filter: blur(20px);
}
.seo-hero > .container { position: relative; z-index: 1; }

.seo-hero__testo { max-width: 760px; margin: 26px auto 0; text-align: center; }
.seo-hero__testo .hero__eyebrow { justify-content: center; }
.seo-hero__titolo {
  margin-top: 22px;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.seo-hero__sub {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}
.seo-hero__ctas { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 30px; }

/* ---------- il pannello dei risultati ---------- */
.serp {
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-shell);
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.serp__barra {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.serp__lente { width: 40px; height: 40px; flex-shrink: 0; }
.serp__query { flex: 1; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.serp__fonte {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.serp__righe { list-style: none; margin: 0; padding: 0; }
.serp__riga {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.serp__pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.serp__dominio {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}
.serp__titolo { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }

.serp__badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--flame);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* la riga che ti riguarda si stacca dalle altre */
.serp__riga.is-tuo { background: rgba(241, 80, 37, 0.1); }
.serp__riga.is-tuo .serp__pos { background: var(--flame); color: #fff; }
.serp__riga.is-tuo .serp__dominio { color: rgba(255, 255, 255, 0.8); }
.serp__riga.is-tuo .serp__titolo { color: var(--white); font-weight: 600; }

.serp__salita {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--flame);
}
.serp__salita svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.serp__piede {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 22px;
}
.serp__piede > div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.serp__piede > div:first-child { padding-left: 0; border-left: 0; }
.serp__piede dt {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--flame);
}
.serp__piede dd { margin: 5px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.45); }

/* ---------- i tre pilastri ---------- */
.seo-pilastri { padding-block: 90px; }

.pilastri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }

.pilastro {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: var(--mist);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}
.pilastro:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 30px 56px -38px rgba(25, 25, 25, 0.3);
}
.pilastro__fx { width: 84px; height: 84px; margin-bottom: 16px; }
.pilastro__titolo { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.pilastro__testo { margin-top: 11px; font-size: 14.5px; font-weight: 500; line-height: 1.7; color: var(--gray); }

.pilastro__voci { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--alabaster); list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pilastro__voci li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--gray-dark); }
.pilastro__voci svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--flame);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- la curva ---------- */
.seo-curva { padding-block: 90px; }

.curva {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.curva__testo .h2 { margin-top: 22px; }
.curva__testo .body-text { margin-top: 18px; }

.curva__fasi { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.curva__fasi li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.curva__periodo {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flame);
}
.curva__fasi strong { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.curva__fasi li > span:last-child { font-size: 14px; line-height: 1.65; color: var(--gray); }

.curva__grafico { margin: 0; }
.curva__grafico svg { width: 100%; height: auto; display: block; }
.curva__griglia path { stroke: var(--alabaster); stroke-width: 1; stroke-dasharray: 3 6; }
.curva__linea { fill: none; stroke: var(--flame); stroke-width: 3.5; stroke-linecap: round; }
.curva__punto { fill: #fff; stroke: var(--flame); stroke-width: 3; }
.curva__punto--fine { fill: var(--flame); stroke: #fff; stroke-width: 4; }
.curva__asse { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; fill: var(--gray); }
.curva__asse--fine { fill: var(--carbon); }
.curva__grafico figcaption { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--gray); text-align: center; }

html.fx .curva__linea { stroke-dasharray: 460; stroke-dashoffset: 460; animation: curva-disegna 1.6s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
@keyframes curva-disegna { to { stroke-dashoffset: 0; } }
html.fx .curva__area { opacity: 0; animation: growth-fade 1s 1s ease forwards; }

/* ---------- cosa non facciamo ---------- */
.seo-onesta { padding-block: 0 90px; }
.seo-metodo { padding-block: 90px; }

.metrica--no .metrica__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(241, 80, 37, 0.16);
}
.metrica--no .metrica__no svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.8;
  stroke-linecap: round;
}

@media (max-width: 1024px) {
  .pilastri { grid-template-columns: 1fr; }
  .curva { grid-template-columns: 1fr; gap: 40px; }
  .serp__piede { grid-template-columns: 1fr; gap: 18px; }
  .serp__piede > div { padding-left: 0; border-left: 0; }
}

@media (max-width: 680px) {
  .seo-hero { padding: 118px 0 54px; }
  .seo-pilastri, .seo-curva, .seo-metodo { padding-block: 60px; }
  .serp__riga { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .serp__salita { grid-column: 2; }
  .curva__fasi li { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   Pagina Graphic Design: l'apertura mostra il sistema invece di descriverlo
   ========================================================================== */
.gd-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 76px;
  background: var(--carbon);
  color: var(--white);
}
.gd-hero__glow {
  position: absolute;
  top: -260px;
  right: -220px;
  width: 920px;
  height: 740px;
  pointer-events: none;
  background: radial-gradient(circle at 55% 45%, rgba(241, 80, 37, 0.32), transparent 62%);
  filter: blur(20px);
}
.gd-hero > .container { position: relative; z-index: 1; }

.gd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 60px;
  align-items: center;
  margin-top: 30px;
}
.gd-hero__titolo {
  margin-top: 22px;
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.gd-hero__sub {
  max-width: 500px;
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}
.gd-hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 30px; }

/* ---------- le quattro tessere del kit ----------
   Ogni tessera è impaginata come una scheda di manuale: il segno sta nel corpo,
   la riga tecnica in fondo separata da un filetto. Niente testo sovrapposto. */
.kit {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  grid-template-rows: 1fr auto;
  gap: 14px;
  aspect-ratio: 1.02;
}
.kit__tessera--marchio { grid-column: 1; grid-row: 1; }
.kit__tessera--caratteri { grid-column: 1; grid-row: 2; }
.kit__tessera--anteprima { grid-column: 2; grid-row: 1 / span 2; }
.kit__tessera {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .3s ease, background .3s ease;
}
.kit__tessera:hover { border-color: rgba(241, 80, 37, 0.4); background: rgba(255, 255, 255, 0.07); }

.kit__corpo {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 6px 0 14px;
}

.kit__piede {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.kit__etichetta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.kit__spec {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: rgba(241, 80, 37, 0.8);
}

.kit__fx { width: 100%; max-width: 168px; aspect-ratio: 1; }

/* la palette sta nella stessa tessera del marchio: sono i suoi colori */
.kit__palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 12px;
}
.kit__campione { display: flex; flex-direction: column; gap: 5px; }
.kit__campione-tinta {
  aspect-ratio: 1.6;
  border-radius: 7px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.kit__campione-hex {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(255, 255, 255, 0.34);
}

/* le quattro varianti stanno una sopra l'altra e si alternano in dissolvenza */
.kit__aa {
  display: grid;
  place-items: center;
  line-height: 1;
  color: var(--white);
}
.kit__aa-var {
  grid-area: 1 / 1;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1;
  opacity: 0;
}
.kit__aa-var--bastone { font-family: var(--font-btn); font-weight: 700; letter-spacing: -0.05em; opacity: 1; }
.kit__aa-var--graziato { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: -0.02em; }
.kit__aa-var--corsivo { font-family: 'Caveat', 'Segoe Script', cursive; font-weight: 600; font-size: clamp(48px, 5vw, 66px); }
.kit__aa-var--gotico { font-family: 'UnifrakturMaguntia', 'Papyrus', serif; font-weight: 400; font-size: clamp(38px, 4vw, 52px); }

html.fx .kit__aa-var {
  opacity: 0;
  animation: aa-cambia 13.2s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: calc(var(--i) * 3.3s);
}
@keyframes aa-cambia {
  0%     { opacity: 0; transform: translateY(9px); }
  4%     { opacity: 1; transform: none; }
  21%    { opacity: 1; transform: none; }
  25%    { opacity: 0; transform: translateY(-9px); }
  100%   { opacity: 0; transform: translateY(9px); }
}

/* la griglia richiama il piano di lavoro di un programma di impaginazione */
.kit__griglia {
  position: relative;
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1.5;
  border-radius: 6px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.kit__griglia::before,
.kit__griglia::after {
  content: "";
  position: absolute;
  background: rgba(241, 80, 37, 0.75);
}
.kit__griglia::before { left: 16px; right: 16px; top: 16px; height: 1px; }
.kit__griglia::after { top: 16px; bottom: 16px; left: 32px; width: 1px; }


/* ---------- anteprima del progetto ----------
   Una pagina che scorre mentre i blocchi si montano: serve a far vedere che
   l'identità finisce su uno schermo, non in un pdf. */
.kit__tessera--anteprima { padding-bottom: 16px; }

/* La finestra è figlia diretta della tessera, non passa dal contenitore usato
   dalle altre: lo stacco dal filetto va messo qui. */
.anteprima { margin-bottom: 20px; }

.anteprima {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.anteprima__barra {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.anteprima__pallino {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.anteprima__pallino:first-child { background: rgba(241, 80, 37, 0.7); }
.anteprima__url {
  flex: 1;
  height: 9px;
  margin-left: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.anteprima__schermo { position: relative; flex: 1; min-height: 0; overflow: hidden; }

.anteprima__pagina {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}
html.fx .anteprima__pagina { animation: ap-scorre 14s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes ap-scorre {
  0%, 12%   { transform: translateY(0); }
  30%, 40%  { transform: translateY(-24%); }
  58%, 68%  { transform: translateY(-52%); }
  86%, 100% { transform: translateY(0); }
}

/* i blocchi si montano uno dopo l'altro */
html.fx .anteprima__pagina > * {
  opacity: 0;
  transform: translateY(10px);
  animation: ap-monta .7s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes ap-monta { to { opacity: 1; transform: none; } }

.ap-nav { display: flex; align-items: center; gap: 6px; }
.ap-marchio { width: 14px; height: 14px; border-radius: 4px; background: var(--flame); }
.ap-voce { width: 20px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.ap-voce:nth-of-type(3) { width: 26px; }
.ap-bottone { width: 34px; height: 13px; margin-left: auto; border-radius: 99px; background: rgba(241, 80, 37, 0.85); }

.ap-blocco { display: flex; flex-direction: column; gap: 7px; }
.ap-riga { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.13); }
.ap-riga--titolo { height: 11px; background: rgba(255, 255, 255, 0.4); }
.ap-riga--corta { width: 62%; }
.ap-bottone--grande { width: 62px; height: 18px; margin: 4px 0 0; }

.ap-immagine {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(241, 80, 37, 0.4), rgba(255, 255, 255, 0.07));
}
.ap-immagine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-100%);
}
html.fx .ap-immagine::after { animation: ap-riflesso 3.4s ease-in-out 1.2s infinite; }
@keyframes ap-riflesso { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

.ap-griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ap-griglia--due { grid-template-columns: repeat(2, 1fr); }
.ap-griglia span { height: 46px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ap-griglia--due span { height: 58px; }

.ap-piede { height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }

/* il cursore passa sul pulsante e fa clic */
.anteprima__cursore {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
}
html.fx .anteprima__cursore { animation: ap-cursore 14s cubic-bezier(.4, 0, .3, 1) infinite; }
@keyframes ap-cursore {
  0%, 14%   { opacity: 0; transform: translate(30px, 96px) scale(1); }
  20%       { opacity: 1; transform: translate(30px, 96px) scale(1); }
  32%       { opacity: 1; transform: translate(46px, 108px) scale(1); }
  35%       { opacity: 1; transform: translate(46px, 108px) scale(0.7); }
  38%       { opacity: 1; transform: translate(46px, 108px) scale(1); }
  52%       { opacity: 1; transform: translate(120px, 70px) scale(1); }
  62%, 100% { opacity: 0; transform: translate(120px, 70px) scale(1); }
}

/* ---------- cosa consegniamo ---------- */
.gd-kit { padding-block: 90px; }

.consegna { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 52px; }

/* Ogni scheda si presenta con l'anteprima di quello che consegna: il numero
   progressivo non aggiungeva nulla, la miniatura sì. */
.pezzo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: #fff;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}
.pezzo:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 30px 56px -38px rgba(25, 25, 25, 0.3);
}

.pezzo__anteprima {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--alabaster);
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(241, 80, 37, 0.06), transparent 70%),
    var(--mist);
}

/* --- marchio: le tre versioni che riceverai --- */
.pz-marchio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 14px;
  border: 1px solid var(--alabaster);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.pezzo:hover .pz-marchio:nth-child(2) { transform: translateY(-3px); }
.pezzo:hover .pz-marchio:nth-child(3) { transform: translateY(-6px); }
.pz-marchio .logo__mark { transform: scale(0.78); }
.pz-marchio--chiaro { background: #fff; }
.pz-marchio--scuro { background: var(--carbon); border-color: var(--carbon); }
.pz-marchio--scuro .logo__mark-inner { background: #fff; }
.pz-marchio--mono { background: var(--mist); }
.pz-marchio--mono .logo__mark::before { background: var(--carbon); }
.pz-marchio--mono .logo__mark-inner { background: rgba(25, 25, 25, 0.28); }

/* --- colori: campioni con il codice --- */
.pz-tinta { display: flex; flex-direction: column; gap: 6px; flex: 1; max-width: 74px; }
.pz-tinta span {
  height: 40px;
  border-radius: 10px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(25, 25, 25, 0.08);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.pezzo:hover .pz-tinta span { transform: translateY(-3px); }
.pz-tinta em {
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--gray);
}

/* --- caratteri: un piccolo saggio tipografico --- */
.pz-specimen { display: flex; align-items: center; gap: 16px; }
.pz-specimen__aa {
  font-family: var(--font-btn);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--carbon);
}
.pz-specimen__righe { display: flex; flex-direction: column; gap: 7px; }
.pz-specimen__righe em {
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
}
.pz-specimen__righe i { display: block; height: 6px; border-radius: 99px; background: rgba(25, 25, 25, 0.14); }
.pz-specimen__righe i:first-of-type { width: 108px; }
.pz-specimen__righe i:last-of-type { width: 72px; }

/* --- regole: il marchio con gli spazi di rispetto --- */
.pz-guide {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px; height: 66px;
  border: 1px dashed rgba(241, 80, 37, 0.5);
  border-radius: 8px;
}
.pz-guide .logo__mark { transform: scale(0.74); }
.pz-guide em {
  position: absolute;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  color: var(--flame);
}
.pz-guide__x { top: -8px; left: 50%; transform: translateX(-50%); padding: 0 4px; background: var(--mist); }
.pz-guide__y { left: -7px; top: 50%; transform: translateY(-50%); padding: 3px 0; background: var(--mist); }

/* --- testa e contenuto --- */
.pezzo__testa {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 26px 0;
}
.pezzo__testa h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.pezzo__spec {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--flame);
}

.pezzo__voci {
  list-style: none;
  margin: 18px 0 0;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 18px;
}
.pezzo__voci li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--gray-dark); }
.pezzo__voci svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--flame);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pezzo__nota {
  margin: 20px 26px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--alabaster);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray);
}

.consegna__sorgenti {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 34px;
  padding: 22px 26px;
  border: 1px solid rgba(241, 80, 37, 0.28);
  border-radius: var(--r-card);
  background: rgba(241, 80, 37, 0.05);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-dark);
}
.consegna__sorgenti svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; fill: var(--flame); fill-rule: evenodd; }
.consegna__sorgenti strong { color: var(--carbon); }

/* ---------- i tre ingredienti ---------- */
.gd-ingredienti { padding-block: 90px; }
.gd-metodo { padding-block: 90px; }

.ingredienti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.ingrediente {
  padding: 34px 30px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: #fff;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, border-color .28s ease;
}
.ingrediente:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 30px 56px -38px rgba(25, 25, 25, 0.3);
}
.ingrediente__fx { width: 88px; height: 88px; margin-bottom: 18px; }
.ingrediente__titolo { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.ingrediente__testo { margin-top: 11px; font-size: 14.5px; font-weight: 500; line-height: 1.7; color: var(--gray); }

/* ---------- dove finisce ---------- */
.gd-applicazioni { padding-block: 0 90px; }

.applicazioni {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}
.applicazioni li {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.applicazioni li:hover { border-color: var(--flame); background: rgba(241, 80, 37, 0.14); color: var(--white); }

@media (max-width: 1024px) {
  .gd-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .gd-hero__sub { max-width: none; }
  .kit { aspect-ratio: 1.5; }
  .consegna, .ingredienti { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .gd-hero { padding: 118px 0 56px; }
  .gd-kit, .gd-ingredienti, .gd-metodo { padding-block: 60px; }
  .kit { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
  .kit__tessera--marchio { grid-column: 1; grid-row: 1; }
  .kit__tessera--caratteri { grid-column: 2; grid-row: 1; }
  .kit__tessera--anteprima { grid-column: 1 / span 2; grid-row: 2; min-height: 300px; }
  .kit__tessera { min-height: 168px; }
  .kit__spec { display: none; }
  .consegna__blocco ul { grid-template-columns: 1fr; }
  .consegna__blocco { padding: 26px 22px; }
}

/* ==========================================================================
   Pagina Social Media: l'apertura mostra il piano di una settimana
   ========================================================================== */
.soc-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 72px;
  background: var(--carbon);
  color: var(--white);
}
.soc-hero__glow {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 940px;
  height: 740px;
  pointer-events: none;
  background: radial-gradient(circle at 55% 45%, rgba(241, 80, 37, 0.33), transparent 62%);
  filter: blur(20px);
}
.soc-hero > .container { position: relative; z-index: 1; }

.soc-hero__testa {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: end;
  margin-top: 26px;
}
.soc-hero__titolo {
  margin-top: 22px;
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.soc-hero__lato p { font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.62); }
.soc-hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 26px; }

/* ---------- il piano della settimana ---------- */
.settimana {
  margin-top: 52px;
  padding: 24px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-shell);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.settimana__testa { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.settimana__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--flame);
}
.settimana__titolo { margin-top: 7px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.settimana__fx { width: 62px; height: 62px; flex-shrink: 0; margin: -10px -6px 0 0; }

.settimana__griglia {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.giorno { display: flex; flex-direction: column; gap: 9px; }
.giorno__nome {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.giorno__contenuti { display: flex; flex-direction: column; gap: 7px; }

/* ogni tessera è un contenuto in programma: si accendono a turno */
.tessera {
  display: flex;
  align-items: flex-end;
  min-height: 52px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid transparent;
}
.tessera em {
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
}
.tessera--post { background: rgba(241, 80, 37, 0.9); color: #fff; }
.tessera--reel { background: rgba(241, 80, 37, 0.24); border-color: rgba(241, 80, 37, 0.5); color: #fff; }
.tessera--storia { background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.72); }
.tessera--pausa { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.42); }

html.fx .settimana__griglia .tessera {
  opacity: 0;
  transform: translateY(8px);
  animation: tessera-entra .55s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--k) * 0.09s + 0.2s);
}
@keyframes tessera-entra { to { opacity: 1; transform: none; } }

.settimana__legenda { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.settimana__legenda span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}
.settimana__legenda i { width: 13px; height: 13px; border-radius: 4px; }

/* ---------- cosa esce in un mese ---------- */
.soc-pilastri { padding-block: 90px; }
.soc-metodo { padding-block: 90px; }
.soc-mese { padding-block: 90px; }
.soc-onesta { padding-block: 0 90px; }

.mese {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.mese__voce {
  padding: 30px 26px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: #fff;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}
.mese__voce:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 30px 56px -38px rgba(25, 25, 25, 0.3);
}
.mese__valore {
  font-size: clamp(38px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--flame);
}
.mese__etichetta {
  margin-top: 10px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--carbon);
}
.mese__testo {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--alabaster);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray);
}

.mese__nota {
  max-width: 760px;
  margin-top: 34px;
  padding: 20px 24px;
  border: 1px solid rgba(241, 80, 37, 0.28);
  border-radius: var(--r-card);
  background: rgba(241, 80, 37, 0.05);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-dark);
}

@media (max-width: 1024px) {
  .soc-hero__testa { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .mese { grid-template-columns: repeat(2, 1fr); }
  .settimana__griglia { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

@media (max-width: 680px) {
  .soc-hero { padding: 118px 0 54px; }
  .soc-pilastri, .soc-mese, .soc-metodo { padding-block: 60px; }
  .settimana { padding: 20px 18px; }
  .settimana__griglia { grid-template-columns: repeat(2, 1fr); }
  .mese { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pagina SaaS e sviluppo su misura: l'apertura confronta il prima e il dopo
   ========================================================================== */
.saas-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 72px;
  background: var(--carbon);
  color: var(--white);
}
.saas-hero__glow {
  position: absolute;
  top: -270px;
  left: 40%;
  width: 940px;
  height: 760px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(241, 80, 37, 0.32), transparent 62%);
  filter: blur(20px);
}
.saas-hero > .container { position: relative; z-index: 1; }

.saas-hero__testa {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: end;
  margin-top: 26px;
}
.saas-hero__titolo {
  margin-top: 22px;
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.saas-hero__lato p { font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.62); }
.saas-hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 26px; }

/* ---------- prima e dopo ---------- */
.prima-dopo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 52px;
}

.pd-lato {
  padding: 22px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-shell);
  background: rgba(255, 255, 255, 0.035);
}
.pd-lato--dopo { border-color: rgba(241, 80, 37, 0.35); background: rgba(241, 80, 37, 0.07); }

.pd-lato__etichetta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.pd-lato--dopo .pd-lato__etichetta { color: var(--flame); }

/* a sinistra tutto è storto e sparso, come nella realtà */
.pd-sparso { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pd-cosa {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 13px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transform: rotate(calc((var(--i) - 1.5) * 1.1deg));
}
.pd-cosa strong { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.pd-cosa em { font-size: 11.5px; font-style: normal; line-height: 1.4; color: rgba(255, 255, 255, 0.42); }

.pd-flusso { display: flex; align-items: center; justify-content: center; }
.pd-flusso__fx { width: 106px; height: 106px; }

/* a destra tutto è allineato: è il punto --- */
.pd-sistema { margin-top: 18px; }
.pd-sistema__barra { display: flex; gap: 5px; margin-bottom: 12px; }
.pd-sistema__barra span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); }
.pd-sistema__barra span:first-child { background: var(--flame); }

.pd-riga {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.pd-riga:last-child { border-bottom: none; }
.pd-riga svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--flame);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- segnali ---------- */
.saas-segnali { padding-block: 90px; }
.saas-cosa { padding-block: 90px; }
.saas-pilastri { padding-block: 90px; }
.saas-metodo { padding-block: 90px; }
.saas-tuo { padding-block: 0 90px; }

.segnali { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.segnale {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 30px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: var(--mist);
  transition: border-color .28s ease, transform .28s cubic-bezier(.2, .7, .2, 1);
}
.segnale:hover { transform: translateY(-4px); border-color: rgba(241, 80, 37, 0.3); }
.segnale__segno {
  /* l'icona occupa entrambe le righe, altrimenti il testo finisce nella
     colonna da 44px e va a capo a ogni parola */
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(241, 80, 37, 0.1);
}
.segnale__segno svg { width: 20px; height: 20px; fill: var(--flame); fill-rule: evenodd; }
.segnale h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.segnale p { margin-top: 9px; font-size: 14px; line-height: 1.7; color: var(--gray); }

/* ---------- cosa costruiamo ---------- */
.forme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.forma {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: #fff;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}
.forma:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 30px 56px -38px rgba(25, 25, 25, 0.3);
}
.forma__testa h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.forma__per { display: block; margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--flame); }
.forma__testo { margin-top: 15px; font-size: 14.5px; font-weight: 500; line-height: 1.7; color: var(--gray); }
.forma__voci {
  list-style: none;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--alabaster);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.forma__voci li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--gray-dark); }
.forma__voci svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--flame);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* il segno positivo nel blocco scuro */
.metrica__si {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(241, 80, 37, 0.18);
}
.metrica__si svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--flame);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) {
  .saas-hero__testa { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .prima-dopo { grid-template-columns: 1fr; gap: 14px; }
  .pd-flusso__fx { width: 86px; height: 86px; transform: rotate(90deg); }
  .segnali, .forme { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .saas-hero { padding: 118px 0 54px; }
  .saas-segnali, .saas-cosa, .saas-pilastri, .saas-metodo { padding-block: 60px; }
  .pd-sparso { grid-template-columns: 1fr; }
  .pd-cosa { transform: none; }
}

/* ==========================================================================
   Campanello: dice se in questo momento c'è qualcuno dall'altra parte
   ========================================================================== */
.campanello { position: relative; }

.campanello__bottone { position: relative; border: 0; cursor: pointer; }
.campanello__bottone svg { transform-origin: 50% 15%; transition: transform .3s ease; }
.campanello[data-aperto] .campanello__bottone svg { transform: rotate(0deg); }
html.fx .campanello__bottone:hover svg { animation: nuvoletta-parla .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes nuvoletta-parla {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-2px) scale(1.08); }
  70% { transform: translateY(0) scale(0.98); }
}

/* Il segno di notifica: c'è qualcosa da leggere. Sparisce dopo la prima
   apertura e torna alla visita successiva, come una notifica vera. */
.campanello__badge {
  position: absolute;
  top: -1px; right: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid var(--white);
  background: var(--flame);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.campanello__badge.e-letto { opacity: 0; transform: scale(0.5); pointer-events: none; }
/* se in questa sessione il pannello è già stato aperto il segno non compare
   nemmeno per un istante: senza questo l'animazione lo farebbe lampeggiare */
html.fx .campanello__badge:not(.e-letto) { animation: badge-arriva .5s cubic-bezier(.2, .7, .2, 1) .9s backwards; }
@keyframes badge-arriva {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: none; }
}

@keyframes spia-viva {
  0%, 100% { box-shadow: 0 0 0 0 var(--onda); }
  70% { box-shadow: 0 0 0 7px transparent; }
}

/* ---------- il pannello ---------- */
.stato {
  position: absolute;
  top: calc(100% + 18px);
  right: -8px;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity .22s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility .22s;
}
.stato[hidden] { display: block; }
.campanello[data-aperto] .stato {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* il ponte per il cursore, largo quanto il pulsante */
.campanello[data-aperto]::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -6px;
  right: -6px;
  height: 20px;
}

.stato__pannello {
  width: 340px;
  padding: 20px 22px 22px;
  border: 1px solid var(--alabaster);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 70px -34px rgba(25, 25, 25, 0.38);
}

.stato__testa { display: flex; align-items: center; gap: 10px; }
.stato__spia {
  width: 9px; height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
}
/* nel pannello il colore dice lo stato: aperto, fuori orario, fine settimana */
.stato[data-stato="aperto"] .stato__spia { background: #34d17a; --onda: rgba(52, 209, 122, 0.55); }
.stato[data-stato="chiuso"] .stato__spia { background: var(--flame); --onda: rgba(241, 80, 37, 0.5); }
.stato[data-stato="weekend"] .stato__spia { background: var(--gray); --onda: rgba(135, 140, 145, 0.45); }
html.fx .stato[data-stato="aperto"] .stato__spia { animation: spia-viva 2.2s ease-in-out infinite; }

.stato__titolo {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--carbon);
}
.stato__ora {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--gray);
}

/* ---------- la giornata lavorativa ---------- */
.stato__giornata {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.stato__estremo {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}
.stato__binario {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--alabaster);
}
.stato__passato {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--q);
  border-radius: 99px;
  background: var(--flame);
}
html.fx .stato__passato { width: 0; animation: giornata-avanza .9s cubic-bezier(.2, .7, .2, 1) .15s forwards; }
@keyframes giornata-avanza { to { width: var(--q); } }

/* dove siamo adesso: il punto con l'alone che respira */
.stato__ora-ora {
  position: absolute;
  top: 50%;
  left: var(--q);
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(241, 80, 37, 0.4);
}
html.fx .stato__ora-ora { animation: punto-respira 2.4s ease-in-out infinite; }
@keyframes punto-respira {
  0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(241, 80, 37, 0.4); }
  50% { box-shadow: 0 0 0 3px #fff, 0 0 0 8px rgba(241, 80, 37, 0.14); }
}

/* fuori orario il binario è spento e scorre un riflesso lento */
.stato__attesa {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 99px;
}
.stato__attesa::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(241, 80, 37, 0.4) 50%, transparent 65%);
  transform: translateX(-100%);
}
html.fx .stato__attesa::after { animation: attesa-scorre 3.6s ease-in-out infinite; }
@keyframes attesa-scorre { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.stato__riapertura {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--flame);
}
.stato__messaggio {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gray);
}

.stato__azioni {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--alabaster);
}
.stato__cta { flex-shrink: 0; padding: 11px 18px; font-size: 13.5px; }
.stato__cta .arr { width: 16px; height: 16px; }
.stato__telefono {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color .2s ease;
}
.stato__telefono:hover { color: var(--flame); }

@media (max-width: 560px) {
  .stato__pannello { width: min(320px, calc(100vw - 32px)); }
  .stato { right: -10px; }
  .stato__azioni { flex-direction: column; align-items: stretch; gap: 10px; }
  .stato__telefono { text-align: center; }
}

/* ==========================================================================
   Pagina recensioni
   ========================================================================== */
.rec-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 64px;
  background: var(--carbon);
  color: var(--white);
}
.rec-hero__glow {
  position: absolute;
  top: -250px;
  right: -180px;
  width: 920px;
  height: 720px;
  pointer-events: none;
  background: radial-gradient(circle at 55% 45%, rgba(241, 80, 37, 0.32), transparent 62%);
  filter: blur(20px);
}
.rec-hero > .container { position: relative; z-index: 1; }

.rec-hero__testa {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: end;
}
.rec-hero__titolo {
  margin-top: 22px;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.rec-hero__lato { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.rec-hero__lato p { font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.62); }

/* ---------- stelle ---------- */
.stelle { display: flex; gap: 4px; }
.stelle svg { width: 18px; height: 18px; fill: rgba(25, 25, 25, 0.14); }
.stelle svg.e-piena { fill: var(--flame); }
.stelle--sm svg { width: 15px; height: 15px; }

/* ---------- la recensione in vetrina ---------- */
.rec-elenco { padding-block: 80px 90px; }

.vetrina-rec {
  position: relative;
  padding: 46px 52px 40px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: var(--mist);
}
.vetrina-rec__virgolette {
  position: absolute;
  top: 38px;
  right: 46px;
  width: 62px;
  height: auto;
  fill: var(--flame);
  opacity: 0.14;
}
.vetrina-rec__testo {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--carbon);
}
.vetrina-rec__testo::before { content: "“"; }
.vetrina-rec__testo::after { content: "”"; }

.vetrina-rec__piede {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--alabaster);
}

/* ---------- firma ---------- */
.rec-firma { display: flex; align-items: center; gap: 14px; }
.rec-firma__faccia {
  width: 46px;
  height: 46px;
  font-size: 15px;
  border: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(241, 80, 37, 0.35);
}
.rec-firma__faccia img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rec-firma__chi { display: flex; flex-direction: column; gap: 2px; }
.rec-firma__nome { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.rec-firma__ruolo { font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--gray); }

.rec-collegamenti { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.rec-tag {
  padding: 7px 14px;
  border: 1px solid var(--alabaster);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-dark);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.rec-tag:hover { border-color: var(--flame); color: var(--flame); }

.rec-progetto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--carbon);
  text-decoration: none;
  transition: color .2s ease;
}
.rec-progetto .arr { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.rec-progetto:hover { color: var(--flame); }
.rec-progetto:hover .arr { transform: translateX(4px); }
.rec-progetto--sm { font-size: 12px; }

/* ---------- il muro delle altre ---------- */
/* Griglia, non colonne CSS. Con "columns" ogni scheda è un frammento del
   flusso, e trasformarla al passaggio del mouse obbliga il motore a
   rifranmentare la colonna: da lì le sparizioni e i lampeggii segnalati.
   In griglia la scheda è un elemento a sé e si può trasformare senza rischi. */
.rec-muro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 24px;
}

.rec-carta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 30px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-card);
  background: #fff;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}
.rec-carta:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 28px 52px -36px rgba(25, 25, 25, 0.3);
}

.rec-carta__testo {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--carbon);
}
.rec-carta__testo::before { content: "“"; }
.rec-carta__testo::after { content: "”"; }

.rec-carta__piede {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--alabaster);
}
.rec-carta .rec-firma__faccia { width: 40px; height: 40px; font-size: 13px; }
.rec-carta .rec-firma__nome { font-size: 14.5px; }
.rec-carta .rec-firma__ruolo { font-size: 12.5px; }

/* ---------- come le raccogliamo ---------- */
.rec-come { padding-block: 90px; }

.come { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.come__voce {
  padding: 28px 26px;
  border-top: 2px solid var(--alabaster);
  transition: border-color .28s ease;
}
.come__voce:hover { border-color: var(--flame); }
.come__num {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--flame);
}
.come__voce h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.come__voce p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--gray); }

@media (max-width: 1024px) {
  .rec-hero__testa { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .rec-muro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .come { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .rec-hero { padding: 118px 0 52px; }
  .rec-elenco, .rec-come { padding-block: 60px; }
  .vetrina-rec { padding: 30px 24px 26px; }
  .vetrina-rec__virgolette { top: 24px; right: 20px; width: 42px; }
  .rec-muro { grid-template-columns: minmax(0, 1fr); }
  .come { grid-template-columns: 1fr; }
}

/* collegamento per chi naviga da tastiera: invisibile finché non riceve il fuoco */
.salta {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 0 0 14px 0;
  background: var(--carbon);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.salta:focus { left: 0; }

/* ---------- pagina non trovata ---------- */
.errore { padding-block: 150px 110px; text-align: center; }
.errore__codice {
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(25, 25, 25, 0.07);
}
@supports (-webkit-text-stroke: 1px currentColor) {
  .errore__codice { color: transparent; -webkit-text-stroke: 2px rgba(241, 80, 37, 0.35); }
}
.errore__titolo {
  margin-top: -14px;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.errore__testo {
  max-width: 520px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray);
}
.errore__strade {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 44px auto 0;
  text-align: left;
}
.errore__strada {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-card);
  background: var(--mist);
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.errore__strada:hover { transform: translateY(-3px); border-color: rgba(241, 80, 37, 0.35); background: #fff; }
.errore__strada strong { display: block; font-size: 16px; font-weight: 600; color: var(--carbon); }
.errore__strada span { font-size: 13.5px; line-height: 1.5; color: var(--gray); }
.errore__strada .arr { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--flame); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.errore__strada:hover .arr { transform: translateX(4px); }

@media (max-width: 620px) {
  .errore { padding-block: 120px 70px; }
  .errore__strade { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog: apertura scura come gli altri archivi, poi l'articolo di apertura e
   la griglia delle letture.
   ========================================================================== */
.blog-hero .arch-numeri__voce { padding-left: 26px; }

/* ---------- l'articolo di apertura ---------- */
.apertura {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 56px;
  padding: 24px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: var(--mist);
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}
.apertura:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 34px 60px -40px rgba(25, 25, 25, 0.3);
}

.apertura__foto {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, #dfe1df, #c9ccc9);
}
.apertura__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 66% 72%, rgba(241, 80, 37, 0.3), transparent 72%);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.apertura:hover .apertura__foto::after { transform: scale(1.12); }

.apertura__corpo { padding-right: 20px; }

.apertura__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
}
.apertura__evidenza {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(241, 80, 37, 0.12);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--flame);
}

.apertura__titolo {
  margin-top: 14px;
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--carbon);
  transition: color .2s ease;
}
.apertura:hover .apertura__titolo { color: var(--flame); }
.apertura__testo {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--gray);
}
.apertura .post__cta { display: inline-flex; margin-top: 24px; }

/* ---------- la griglia delle letture ---------- */
.letture { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.lettura {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-card);
  background: #fff;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}
.lettura:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 80, 37, 0.3);
  box-shadow: 0 30px 56px -34px rgba(25, 25, 25, 0.3);
}

.lettura__foto {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe1df, #c9ccc9);
}
.lettura__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 68% 74%, rgba(241, 80, 37, 0.28), transparent 72%);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.lettura:hover .lettura__foto::after { transform: scale(1.14); }

/* il tempo di lettura è la prima cosa che si cerca in un elenco di articoli */
.lettura__minuti {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.lettura__corpo { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }

.lettura__data {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gray);
}
.lettura__titolo {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--carbon);
  transition: color .2s ease;
}
.lettura:hover .lettura__titolo { color: var(--flame); }
.lettura__testo {
  margin-top: 11px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
}

.lettura__firma {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
}
.lettura__faccia { width: 28px; height: 28px; font-size: 10.5px; border: 0; }

@media (max-width: 1024px) {
  .apertura { grid-template-columns: 1fr; gap: 24px; }
  .apertura__corpo { padding: 0 6px 8px; }
  .letture { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .letture { grid-template-columns: 1fr; }
  .apertura { padding: 16px; margin-bottom: 40px; }
}

/* ---------- paginazione ---------- */

.pagination { margin-top: 56px; }
.pagination svg { width: 18px; height: 18px; display: inline; }

/* ---------- briciole di pane ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}
.breadcrumb a:hover { color: var(--flame); }
.breadcrumb--ondark { color: rgba(255, 255, 255, 0.5); }

/* ---------- articolo singolo ---------- */
.article__head { padding: 140px 0 40px; }
.article__title {
  margin-top: 24px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.article__lead {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
}
.article__meta { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.avatar--sm { width: 44px; height: 44px; font-size: 14px; border-width: 2px; }
.article__author { font-size: 15px; font-weight: 700; }
.article__date { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--gray); }

.article__cover {
  /* niente margine sopra: i 40px di chiusura dell'intestazione bastano.
     Sommati facevano 80px sopra contro 50 sotto, tutto sbilanciato in alto. */
  margin: 0 0 50px;
  border-radius: var(--r-shell);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

/* il margine sotto serve: i tag chiudono la colonna del testo e sotto
   comincia subito la fascia colorata degli articoli consigliati */
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 56px; }

.article__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin: 44px 0 56px;
  padding: 34px 36px;
  border-radius: var(--r-shell);
  background: var(--mist);
  border: 1px solid var(--alabaster);
}
/* a metà articolo il richiamo ha altro testo sotto: margini pari, non da chiusura */
.article__cta:has(+ .prose) { margin: 44px 0; }
.article__cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--flame);
}
.article__cta-title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- corpo testo formattato ---------- */
.prose { font-size: 17px; line-height: 1.85; color: #2c2c2e; }
.prose > * + * { margin-top: 24px; }
/* Il primo elemento non stacca da niente: lo spazio sopra lo dà già il blocco
   che lo contiene. Senza questo, un testo che apre con un titolo sommava i
   48px del titolo ai 60 del blocco. */
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin-top: 48px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--carbon);
}
.prose h3 {
  margin-top: 38px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--carbon);
}
.prose a { color: var(--flame); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 10px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { width: 100%; border-radius: var(--r-card); }
.prose blockquote {
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--flame);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--carbon);
}
.prose code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--alabaster);
  font-size: 0.9em;
}
.prose pre {
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--carbon);
  color: #f4f4f4;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--alabaster); text-align: left; }
.prose th { font-weight: 700; }

.related { padding-block: 80px 100px; }
.related .h2 { margin-bottom: 40px; }

/* ---------- caso studio ---------- */
.case__head {
  position: relative;
  overflow: hidden;
  padding: 140px 0 70px;
  background: var(--carbon);
  color: var(--white);
}
.case__glow {
  position: absolute;
  right: -280px; top: -380px;
  width: 1200px; height: 900px;
  background: radial-gradient(closest-side, rgba(241, 80, 37, 0.4), transparent);
  pointer-events: none;
}
.case__head .container { position: relative; }
.case__head-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: end;
  margin-top: 30px;
}
.case__title {
  margin-top: 22px;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
}
.case__lead {
  margin-top: 20px;
  max-width: 600px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}
.case__facts { display: grid; gap: 18px; }
.case__facts > div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.case__facts dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.case__facts dd { font-size: 14px; font-weight: 600; text-align: right; color: var(--white); }
.case__facts a:hover { color: var(--flame); }

.case__cover {
  margin: -50px 0 0;
  position: relative;
  z-index: 2;
  border-radius: var(--r-shell);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 80px -50px rgba(25, 25, 25, 0.6);
}
.case__cover img { width: 100%; height: 100%; object-fit: cover; }

/* Gli 80px di apertura erano tarati sulla copertina che stava qui in mezzo,
   e i 34px della griglia sull'occhiello "I risultati": tolti entrambi,
   restavano 114px di vuoto fra la fascia scura e i riquadri. */
.case__results { padding: 44px 0 20px; }
.case__results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
}
.case__result {
  padding: 28px 26px;
  border-radius: var(--r-card);
  background: var(--mist);
  border: 1px solid var(--alabaster);
}
.case__result strong {
  display: block;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--flame);
}
.case__result span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray-dark);
}

.case__block { padding-top: 60px; }
.case__block-title {
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.case__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 70px;
}
.case__gallery figure { border-radius: var(--r-card); overflow: hidden; }
.case__gallery img { width: 100%; height: 100%; object-fit: cover; }

.case__quote-wrap { margin-top: 90px; padding-block: 80px; }
.case__quote {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

@media (max-width: 1180px) {
  .archive__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { grid-template-columns: 1fr; gap: 26px; }
  .case__head-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .page-head { padding: 120px 0 50px; }
  .archive__grid { grid-template-columns: 1fr; }
  .case__gallery { grid-template-columns: 1fr; }
  .article__head { padding: 115px 0 30px; }
  .article__cta { flex-direction: column; align-items: flex-start; padding: 26px; }
  .case__cover { margin-top: -30px; }
}

/* ==========================================================================
   Pagina contatti
   ========================================================================== */

/* ---------- apertura della pagina contatti ---------- */
.cont-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 64px;
  border-bottom: 1px solid var(--alabaster);
  background:
    radial-gradient(1000px 560px at 82% 0%, rgba(241, 80, 37, 0.14), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fdfcfb 100%);
}
/* stesso linguaggio delle altre aperture: reticolo sfumato e sfere morbide,
   qui più tenui perché la pagina deve restare leggibile sotto al modulo */
.cont-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(1100px 760px at 74% -10%, #000 18%, transparent 74%);
  mask-image: radial-gradient(1100px 760px at 74% -10%, #000 18%, transparent 74%);
  pointer-events: none;
}

/* le sfere non devono spingere il contenuto: restano decorative e sul fondo */
.cont-hero > .orb { z-index: 0; }
.cont-hero > :not(.orb) { position: relative; z-index: 1; }
.cont-hero .orb--1 { width: 520px; height: 520px; right: -150px; top: -190px; }
.cont-hero .orb--2 { width: 380px; height: 380px; left: -170px; top: 34%; opacity: 0.7; }

.cont-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 50px;
  align-items: end;
}
.cont-hero__titolo {
  margin-top: 22px;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.cont-hero__sub {
  max-width: 540px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray);
}

.cont-patti { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cont-patti li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--carbon);
}
.cont-patti__icona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(241, 80, 37, 0.1);
}
.cont-patti__icona svg { width: 16px; height: 16px; fill: var(--flame); fill-rule: evenodd; }
.cont-patti__icona svg.contorno { fill: none; stroke: var(--flame); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.contatti { padding-block: 70px 100px; }

.contatti__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

/* ---------- modulo ---------- */
.form { display: flex; flex-direction: column; gap: 26px; }

.form__riga {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form__campo { display: flex; flex-direction: column; gap: 9px; }

.form__campo label,
.form__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--carbon);
}
.form__campo label span { color: var(--flame); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--alabaster);
  border-radius: 14px;
  background: var(--mist);
  font-family: inherit;
  font-size: 15px;
  color: var(--carbon);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.form input::placeholder,
.form textarea::placeholder { color: #a9adb1; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--flame);
  box-shadow: 0 0 0 4px rgba(241, 80, 37, 0.12);
}

.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-color: #dc2626; }

.form textarea { resize: vertical; min-height: 150px; line-height: 1.7; }

.form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23878c91' stroke-width='1.6'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 42px;
}

.form__aiuto { font-size: 12.5px; color: var(--gray); line-height: 1.6; }
.form__errore { font-size: 12.5px; font-weight: 600; color: #dc2626; }

/* scelte a pillola */
.form__scelte { display: flex; flex-wrap: wrap; gap: 9px; }

.scelta { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }

.form__scelte .scelta {
  padding: 10px 16px;
  border: 1px solid var(--alabaster);
  border-radius: 70px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-dark);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.form__scelte .scelta:hover { border-color: var(--carbon); color: var(--carbon); }
.form__scelte input { position: absolute; opacity: 0; width: 0; height: 0; }
.form__scelte .scelta:has(input:checked) {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--white);
}
.form__scelte .scelta:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(241, 80, 37, 0.18); }

.scelta--privacy {
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gray-dark);
}
.scelta--privacy input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--flame); flex-shrink: 0; }
.scelta--privacy a { color: var(--flame); text-decoration: underline; text-underline-offset: 2px; }

.form__invia { align-self: flex-start; }
.form__nota { font-size: 12.5px; color: var(--gray); }

/* campo esca invisibile ma raggiungibile dai programmi automatici */
.form__esca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* avviso di invio riuscito */
.avviso {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px 20px;
  border-radius: var(--r-card);
  font-size: 14.5px;
  line-height: 1.6;
}
.avviso--ok { background: #eefaf1; border: 1px solid #bfe6cb; color: #15803d; }
.avviso svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.avviso__titolo { font-weight: 700; margin-bottom: 2px; }

/* ---------- colonna informazioni ---------- */
/* resta a fianco mentre si compila: la colonna non lascia più un vuoto sotto */
.contatti__info {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* il modulo vive in una scheda bianca sollevata sul fondo grigio */
.modulo {
  padding: 40px 42px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-shell);
  background: #fff;
  box-shadow: 0 40px 80px -60px rgba(25, 25, 25, 0.4);
  gap: 40px;
}
.modulo__gruppo { display: flex; flex-direction: column; gap: 22px; }

.modulo__titolo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--alabaster);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--carbon);
}
.modulo__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(241, 80, 37, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--flame);
}

.modulo__invio {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--alabaster);
}
.modulo__azioni { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.modulo__azioni .form__nota { margin: 0; max-width: 260px; }

/* recapiti cliccabili per intero, non solo il testo */
.recapito {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  transition: background .22s ease, border-color .22s ease;
}
.recapito:hover { background: var(--mist); border-color: var(--alabaster); }
.recapito + .recapito { margin-top: 8px; }

.recapito__icona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(241, 80, 37, 0.1);
}
.recapito__icona svg { width: 18px; height: 18px; fill: var(--flame); fill-rule: evenodd; }

.recapito__etichetta {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray);
}
.recapito__valore { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; color: var(--carbon); }

.recapito__arr {
  width: 17px; height: 17px;
  margin-left: auto;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gray);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .22s ease, transform .22s ease;
}
.recapito:hover .recapito__arr { opacity: 1; transform: none; stroke: var(--flame); }

.info-card__nota {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--alabaster);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}

.info-card {
  padding: 30px 32px;
  border-radius: var(--r-shell);
  background: var(--mist);
  border: 1px solid var(--alabaster);
}
.info-card--scura {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  border-color: transparent;
  color: var(--white);
}
.info-card--scura::before {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 340px; height: 300px;
  background: radial-gradient(closest-side, rgba(241, 80, 37, 0.4), transparent);
  pointer-events: none;
}
.info-card--scura > * { position: relative; }

.info-card__titolo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.info-lista { display: flex; flex-direction: column; gap: 20px; }
.info-lista li { display: flex; align-items: flex-start; gap: 14px; }
.info-lista__icona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(241, 80, 37, 0.1);
}
.info-lista__icona svg { width: 18px; height: 18px; fill: var(--flame); fill-rule: evenodd; }
.info-lista__etichetta {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}
.info-lista li > span:last-child { font-size: 14.5px; line-height: 1.6; color: var(--carbon); }
.info-lista a:hover { color: var(--flame); }

.passi { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; counter-reset: passo; list-style: none; }
.passi li {
  position: relative;
  padding-left: 44px;
  counter-increment: passo;
}
.passi li::before {
  content: counter(passo);
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--flame);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.passi strong { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.passi span { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }

.faq-list--compatta .faq-item summary { padding: 18px 0; }
.faq-list--compatta .faq-item summary span { font-size: 15.5px; }
.faq-list--compatta .faq-item p { padding: 0 0 18px; font-size: 14.5px; }
.faq-list--compatta .faq-item:first-child { border-top: none; }
.faq-list--compatta .faq-item:last-child { border-bottom: none; }

@media (max-width: 1180px) {
  .contatti__layout { grid-template-columns: 1fr; gap: 40px; }
  .contatti__info { position: static; }
  .cont-hero { padding: 120px 0 48px; }
  .cont-hero__grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .modulo { padding: 30px 24px; }
  /* su schermi stretti il modulo viene prima dei recapiti */
  .contatti__form-ctn { order: 1; }
  .contatti__info { order: 2; }
}
@media (max-width: 768px) {
  .contatti { padding-block: 50px 70px; }
  .form__riga { grid-template-columns: 1fr; gap: 26px; }
  .info-card { padding: 24px 22px; }
}

/* ==========================================================================
   Pagina di servizio
   ========================================================================== */

/* ---------- apertura ---------- */
/* ==========================================================================
   Pagina servizio: apertura scura, come l'archivio casi studio
   ========================================================================== */
.srv-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 66px;
  background: var(--carbon);
  color: var(--white);
}
.srv-hero__glow {
  position: absolute;
  top: -240px;
  right: -200px;
  width: 940px;
  height: 720px;
  pointer-events: none;
  background: radial-gradient(circle at 60% 40%, rgba(241, 80, 37, 0.34), transparent 62%);
  filter: blur(18px);
}
.srv-hero > .container { position: relative; z-index: 1; }

.breadcrumb--scura { color: rgba(255, 255, 255, 0.45); }
.breadcrumb--scura a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb--scura a:hover { color: var(--flame); }

.srv-hero__testa {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: end;
  margin-top: 26px;
}
.srv-hero__titolo {
  margin-top: 22px;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.srv-hero__lato p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}
.srv-hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 26px; }
.srv-hero__link {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: color .2s ease, text-decoration-color .2s ease;
}
.srv-hero__link:hover { color: var(--white); text-decoration-color: var(--flame); }

/* il dato che apre il discorso: numero grande, animazione a sinistra */
.srv-dato {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 54px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.04);
}
.srv-dato__fx { width: 62px; height: 62px; flex-shrink: 0; }
.srv-dato__num {
  font-size: clamp(44px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--flame);
}
.srv-dato__testo {
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.srv-dato__testo strong { display: block; font-weight: 600; color: var(--white); }

/* tre colonne allineate con i filetti, come i numeri dell'archivio */
.srv-patti {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.srv-patti li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.srv-patti li:first-child { padding-left: 0; border-left: 0; }
.srv-patti__segno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(241, 80, 37, 0.16);
}
.srv-patti__segno svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) {
  .srv-hero { padding: 118px 0 54px; }
  .srv-hero__testa { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .srv-dato { grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; padding: 20px 22px; }
  .srv-dato__fx { grid-row: span 2; width: 52px; height: 52px; }
  .srv-patti { grid-template-columns: 1fr; gap: 14px; }
  .srv-patti li { padding-left: 0; border-left: 0; }
}

/* ---------- problemi ---------- */
.srv-problemi { padding-block: 90px; }

.problemi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.problema {
  padding: 28px 28px 30px;
  border-radius: var(--r-card);
  background: var(--mist);
  border: 1px solid var(--alabaster);
  transition: border-color .2s ease, transform .2s ease;
}
.problema:hover { border-color: rgba(241, 80, 37, 0.4); transform: translateY(-3px); }
.problema__num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--flame);
}
.problema h3 {
  margin-top: 14px;
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.problema p {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- cosa costruiamo ---------- */
.srv-cosa { padding-block: 90px; }

.cosa__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.cosa-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--alabaster);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
.cosa-card:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -26px rgba(25, 25, 25, 0.2); }
.cosa-card h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.03em; }
.cosa-card__claim { margin-top: 8px; font-size: 14.5px; font-weight: 500; color: var(--gray); }
.cosa-card__lista { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
.cosa-card__lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--carbon);
}
.cosa-card__lista svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cosa-card__prezzo {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--alabaster);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--flame);
}
.cosa-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.cosa-card__cta .arr { width: 15px; height: 15px; stroke-width: 2.2; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.cosa-card:hover .cosa-card__cta { color: var(--flame); }
.cosa-card:hover .cosa-card__cta .arr { transform: translateX(5px); }

.cosa__nota { margin-top: 30px; font-size: 13.5px; color: var(--gray); }

/* ---------- metodo ---------- */
.srv-metodo,
.adv-metodo { padding-block: 90px; }
.srv-metodo__titolo { margin-top: 22px; max-width: 620px; }

/* ---------- il percorso: elenco numerato, come i punti di forza ---------- */
.tappe { list-style: none; margin: 46px -24px 0; padding: 0; }

.tappa {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 26px 24px;
  border-radius: var(--r-card);
  transition: background .3s ease;
}
.tappa + .tappa::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--alabaster);
  transition: opacity .3s ease;
}
.tappa:hover { background: var(--mist); }
.tappa:hover::after,
.tappa:hover + .tappa::after { opacity: 0; }

.tappa::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: var(--flame);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.tappa:hover::before { transform: scaleY(1); }

.tappa__numero {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(25, 25, 25, 0.16);
  transition: color .3s ease;
}
@supports (-webkit-text-stroke: 1px currentColor) {
  .tappa__numero {
    color: transparent;
    -webkit-text-stroke: 1.4px rgba(25, 25, 25, 0.28);
    transition: color .3s ease, -webkit-text-stroke-color .3s ease;
  }
  .tappa:hover .tappa__numero { -webkit-text-stroke-color: var(--flame); }
}
.tappa:hover .tappa__numero { color: var(--flame); }

.tappa__titolo { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.tappa__testo {
  max-width: 620px;
  margin-top: 7px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
}

.tappa__tempo {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--alabaster);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gray);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.tappa:hover .tappa__tempo { border-color: rgba(241, 80, 37, 0.35); background: #fff; color: var(--flame); }

@media (max-width: 860px) {
  .tappe { margin-inline: -16px; }
  .tappa {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 12px 18px;
    padding: 22px 16px;
  }
  .tappa + .tappa::after { left: 16px; right: 16px; }
  .tappa__numero { font-size: 30px; margin-top: 2px; }
  .tappa__tempo { grid-column: 2; justify-self: start; }
}

/* la scheda in evidenza fra i pacchetti */
.cosa-card--scelta {
  position: relative;
  border-color: rgba(241, 80, 37, 0.35);
  box-shadow: 0 34px 64px -40px rgba(241, 80, 37, 0.5);
}
.cosa-card__bollino {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--flame);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* i casi studio del servizio: tre schede uguali, senza quella grande */
.casi--tre { margin-top: 52px; }
.casi--tre .caso__foto { aspect-ratio: 16 / 10; }

/* la recensione singola non ha il palco che cambia altezza */
.ts__voce--sola { position: static; opacity: 1; visibility: visible; transform: none; }

/* ---------- cosa è incluso ---------- */
.srv-incluso { padding: 0; }
.srv-incluso .dark-shell { max-width: none; border-radius: 0; }
.srv-incluso__inner {
  position: relative;
  padding: 90px max(24px, calc((100vw - 1140px) / 2));
}
.srv-incluso__testa { max-width: 620px; }
.srv-incluso__testa .h2 { margin-top: 22px; text-align: left; }
.srv-incluso__sub { margin-top: 16px; font-size: 16px; color: rgba(255, 255, 255, 0.55); }

.incluso__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 34px;
  margin-top: 48px;
}
.incluso__grid li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-block: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.incluso__grid svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- casi, recensione, faq ---------- */
.srv-casi { padding-block: 56px 90px; }
.srv-recensione { padding-block: 80px; }
.srv-faq { padding-block: 90px; }
.faq-card--piatta { background: var(--mist); border: 1px solid var(--alabaster); }

/* ---------- chiusura ---------- */
.srv-chiusura { padding-block: 0 100px; }

.chiusura {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
  padding: 56px 60px;
  border-radius: var(--r-shell);
  background: var(--carbon);
  color: var(--white);
}
.chiusura__glow {
  position: absolute;
  right: -140px; top: -180px;
  width: 620px; height: 520px;
  background: radial-gradient(closest-side, rgba(241, 80, 37, 0.42), transparent);
  pointer-events: none;
}
.chiusura__testo { position: relative; max-width: 560px; }
.chiusura__testo h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.chiusura__testo p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}
.chiusura__azioni { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.chiusura__mail { font-size: 14px; color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 3px; }
.chiusura__mail:hover { color: var(--white); }

.altri-servizi { display: flex; align-items: center; gap: 22px; margin-top: 44px; flex-wrap: wrap; }
.altri-servizi__titolo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray);
}
.altri-servizi__chip { display: flex; flex-wrap: wrap; gap: 9px; }

@media (max-width: 1180px) {
  .srv-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .problemi__grid, .cosa__grid, .metodo { grid-template-columns: repeat(2, 1fr); }
  .incluso__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .srv-hero { padding: 120px 0 60px; }
  .srv-problemi, .srv-cosa, .srv-metodo, .srv-casi, .srv-faq,
  .srv-recensione { padding-block: 60px; }
  .problemi__grid, .cosa__grid, .metodo, .incluso__grid { grid-template-columns: 1fr; }
  .srv-incluso__inner { padding-block: 60px; }
  .chiusura { padding: 36px 28px; }
}

/* ==========================================================================
   Pagina "Perché Avabrand"
   ========================================================================== */

.perche-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 34px;
  background:
    radial-gradient(1100px 620px at 78% 4%, rgba(241, 80, 37, 0.13), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fdfcfb 100%);
}
.perche-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(1200px 820px at 70% -5%, #000 20%, transparent 76%);
  mask-image: radial-gradient(1200px 820px at 70% -5%, #000 20%, transparent 76%);
  pointer-events: none;
}
.perche-hero > .container { position: relative; z-index: 1; }

.perche-hero__titolo {
  margin-top: 24px;
  max-width: 900px;
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.perche-hero__sub {
  margin-top: 22px;
  max-width: 620px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--gray);
}
.perche-hero__ctas { display: flex; align-items: center; gap: 30px; margin-top: 34px; flex-wrap: wrap; }

.perche-numeri {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--alabaster);
}
.perche-numero__valore {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--flame);
}
.perche-numero__etichetta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray);
}

/* ---------- punti di forza ---------- */
.perche-forza { padding-block: 90px; }

/* elenco numerato: niente schede, ogni punto è una riga editoriale
   con il numero a sinistra e l'animazione a destra */
.forza {
  list-style: none;
  margin: 46px -24px 0;
  padding: 0;
}

.forza__voce {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 124px;
  align-items: center;
  gap: 30px;
  padding: 28px 24px;
  border-radius: var(--r-card);
  transition: background .3s ease;
}

/* filetto solo fra una voce e l'altra, mai sopra la prima o sotto l'ultima */
.forza__voce + .forza__voce::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--alabaster);
  transition: opacity .3s ease;
}
.forza__voce:hover { background: var(--mist); }
.forza__voce:hover::after,
.forza__voce:hover + .forza__voce::after { opacity: 0; }

/* barretta flame che cresce sul bordo sinistro al passaggio */
.forza__voce::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: var(--flame);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.forza__voce:hover::before { transform: scaleY(1); }

/* il numero è contornato e si riempie quando la riga è attiva */
.forza__numero {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(25, 25, 25, 0.16);
  transition: color .3s ease;
}
@supports (-webkit-text-stroke: 1px currentColor) {
  .forza__numero {
    color: transparent;
    -webkit-text-stroke: 1.4px rgba(25, 25, 25, 0.28);
    transition: color .3s ease, -webkit-text-stroke-color .3s ease;
  }
  .forza__voce:hover .forza__numero { -webkit-text-stroke-color: var(--flame); }
}
.forza__voce:hover .forza__numero { color: var(--flame); }

.forza__titolo {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.forza__testo {
  max-width: 640px;
  margin-top: 9px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--gray);
}

.forza__fx {
  width: 112px;
  height: 112px;
  justify-self: end;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(241, 80, 37, 0.11), rgba(241, 80, 37, 0) 66%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.forza__voce:hover .forza__fx { transform: scale(1.09); }

@media (max-width: 860px) {
  .forza__voce {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 16px 18px;
    padding: 22px 16px;
  }
  .forza__voce + .forza__voce::after { left: 16px; right: 16px; }
  .forza__numero { grid-column: 1; grid-row: 1; font-size: 30px; margin-top: 2px; }
  .forza__corpo { grid-column: 2; grid-row: 1; }
  .forza__fx { grid-column: 2; grid-row: 2; width: 78px; height: 78px; justify-self: start; }
  .forza__titolo { font-size: 21px; }
  .forza__testo { font-size: 15px; }
}

/* ---------- confronto ---------- */
.perche-confronto { padding-block: 90px; }

/* legenda dei simboli, allineata a destra sopra al tabellone */
.legenda {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  margin: 44px 0 14px;
  list-style: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray);
}
.legenda li { display: flex; align-items: center; gap: 8px; }

.confronto__tabella-ctn { overflow-x: auto; padding-bottom: 4px; }

.confronto {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

/* ---- intestazione: ogni colonna si presenta con nome e posizionamento ---- */
.confronto thead th {
  vertical-align: bottom;
  padding: 20px 22px 22px;
  font-weight: 400;
}
.confronto__angolo { width: 21%; padding: 0 !important; }

.confronto__chi {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--carbon);
}
.confronto__claim {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
}

/* ---- la colonna Avabrand è una scheda scura che sporge sopra le altre ---- */
.confronto thead th.confronto__noi {
  padding-top: 26px;
  background: var(--carbon);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-card) var(--r-card) 0 0;
  box-shadow: 0 30px 60px -40px rgba(25, 25, 25, 0.9);
}
.confronto thead th.confronto__noi .confronto__chi { color: #fff; }
.confronto thead th.confronto__noi .confronto__claim { color: var(--gray-footer); }

.confronto__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(241, 80, 37, 0.16);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
}

.confronto__marchio { flex-shrink: 0; transform: scale(0.7); margin: -5px -4px; }
.confronto__marchio .logo__mark-inner { background: #fff; }

/* ---- righe ---- */
.confronto tbody th,
.confronto tbody td {
  padding: 15px 22px;
  border-bottom: 1px solid var(--alabaster);
  vertical-align: middle;
}
.confronto tbody th {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--carbon);
  white-space: nowrap;
}
.confronto tbody td { font-size: 13.5px; color: var(--gray); }

.confronto tbody td.confronto__noi {
  background: var(--carbon);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 60px -40px rgba(25, 25, 25, 0.9);
}
.confronto tbody tr:last-child th,
.confronto tbody tr:last-child td { border-bottom: none; }
.confronto tbody tr:last-child td.confronto__noi {
  padding-bottom: 24px;
  border-radius: 0 0 var(--r-card) var(--r-card);
}

/* la riga sfiorata si stacca, senza toccare la colonna in evidenza */
.confronto tbody tr:hover th,
.confronto tbody tr:hover td:not(.confronto__noi) { background: rgba(25, 25, 25, 0.022); }

.confronto__cella { display: flex; align-items: center; gap: 11px; }
.confronto__testo { line-height: 1.45; }

/* ---- simboli ---- */
.segno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.segno svg { width: 12px; height: 12px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.segno--sì { background: rgba(25, 25, 25, 0.075); }
.segno--sì svg { stroke: var(--carbon); }
.segno--no { background: rgba(135, 140, 145, 0.16); }
.segno--no svg { stroke: var(--gray); }
.segno--forse { background: rgba(135, 140, 145, 0.12); }
.segno--forse svg { stroke: var(--gray); }

/* dentro la scheda scura i simboli si accendono di flame */
.confronto__noi .segno--sì { background: var(--flame); }
.confronto__noi .segno--sì svg { stroke: #fff; }
.confronto__noi .segno--no,
.confronto__noi .segno--forse { background: rgba(255, 255, 255, 0.12); }
.confronto__noi .segno--no svg,
.confronto__noi .segno--forse svg { stroke: var(--gray-footer); }

/* ---- nota finale ---- */
.confronto__nota {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 36px;
  padding: 26px 30px;
  border: 1px solid var(--alabaster);
  border-radius: var(--r-card);
  background: #fff;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--gray-dark);
}
.confronto__nota svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; fill: var(--flame); }

/* ---- su schermi stretti ogni criterio diventa una scheda ---- */
@media (max-width: 900px) {
  .perche-confronto { padding-block: 60px; }
  .confronto__nota { padding: 20px 22px; font-size: 14px; }
  .legenda { justify-content: flex-start; margin-top: 30px; }
  .confronto__tabella-ctn { overflow: visible; }
  .confronto { min-width: 0; }
  .confronto thead { display: none; }
  .confronto, .confronto tbody, .confronto tr, .confronto th, .confronto td { display: block; }

  .confronto tbody tr {
    margin-bottom: 14px;
    padding: 18px 20px 8px;
    border: 1px solid var(--alabaster);
    border-radius: var(--r-card);
    background: #fff;
  }
  .confronto tbody th {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--alabaster);
    font-size: 15px;
    white-space: normal;
  }
  .confronto tbody td,
  .confronto tbody tr:last-child td {
    padding: 12px 0;
    border-bottom: none;
  }
  .confronto__cella { align-items: flex-start; }
  .confronto tbody td.confronto__noi,
  .confronto tbody tr:last-child td.confronto__noi {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--gray);
  }
  .confronto tbody tr:hover th,
  .confronto tbody tr:hover td:not(.confronto__noi) { background: transparent; }

  .confronto__testo { margin-top: 1px; }
  .confronto__testo::before {
    display: block;
    content: attr(data-chi);
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--carbon);
  }
  .confronto__noi .confronto__testo::before { color: var(--flame); }
  .confronto__noi .segno--sì { background: rgba(241, 80, 37, 0.16); }
  .confronto__noi .segno--sì svg { stroke: var(--flame); }
}

/* ---------- dove va il budget ---------- */
.perche-budget { padding-block: 90px; }

/* la scena tiene insieme il disegno svg e le etichette in html: stesse
   proporzioni del viewBox, così le percentuali di posizione combaciano */
.budget__grafico { margin: 0; }

.budget__scena {
  position: relative;
  width: 100%;
  margin-top: 30px;
  aspect-ratio: 1000 / 420;
}
.budget__scena svg { width: 100%; height: 100%; display: block; }

.budget__richiami polyline {
  fill: none;
  stroke: #c2c6c2;
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
}
html.fx .budget__richiami polyline,
html.fx .budget__nodo {
  opacity: 0;
  animation: richiamo-appare .5s ease both;
  animation-delay: var(--ritardo, 0s);
}
@keyframes richiamo-appare { from { opacity: 0; } to { opacity: 1; } }

html.fx .budget__etichetta {
  opacity: 0;
  animation: richiamo-appare .5s ease both;
  animation-delay: calc(0.62s + var(--i) * 0.12s);
}

.budget__etichetta {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}
.budget__etichetta--destra   { transform: translate(12px, -50%); }
.budget__etichetta--sinistra { transform: translate(calc(-100% - 12px), -50%); }

.budget__etichetta-quota {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c);
}
.budget__etichetta-voce {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--carbon);
}

.budget__grafico-num { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; fill: var(--carbon); }
.budget__grafico-lab { font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; fill: #878c91; }

/* elenco di riserva: compare solo quando i richiami non ci stanno */
.budget__legenda { display: none; flex-direction: column; gap: 12px; margin-top: 30px; }
.budget__legenda li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--alabaster);
}
.budget__legenda li:last-child { border-bottom: none; padding-bottom: 0; }
.budget__pallino { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.budget__voce { flex: 1; font-size: 14.5px; font-weight: 500; }
.budget__quota { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }

.budget__nota {
  max-width: 620px;
  margin: 34px auto 0;
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
  color: var(--gray);
}

@media (max-width: 1024px) {
  .budget__etichetta-quota { font-size: 18px; }
  .budget__etichetta-voce { font-size: 12.5px; }
}

@media (max-width: 860px) {
  .budget__scena { aspect-ratio: 1 / 0.56; margin-top: 34px; }
  .budget__ciambella { transform-box: fill-box; transform-origin: center; transform: scale(1.5); }
  .budget__richiami, .budget__etichetta { display: none; }
  .budget__legenda { display: flex; }
  .budget__nota { margin-top: 26px; text-align: left; }
}

/* Le fette hanno il proprio stroke-dasharray scritto nell'SVG: animiamo
   opacità e rotazione, così i valori restano quelli giusti. */
html.fx .budget__grafico .fetta {
  opacity: 0;
  transform-origin: 500px 200px;
  animation: fetta-entra .7s cubic-bezier(.2,.8,.24,1) forwards;
  animation-delay: var(--ritardo, 0s);
}
@keyframes fetta-entra {
  from { opacity: 0; transform: rotate(-14deg) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

/* ---------- cosa non facciamo ---------- */
.perche-onesta { padding: 0; }
.perche-onesta .dark-shell { max-width: none; border-radius: 0; }
.onesta__inner {
  position: relative;
  padding: 90px max(24px, calc((100vw - 1140px) / 2));
}
.onesta__testa .h2 { margin-top: 22px; text-align: left; }
.onesta__sub {
  max-width: 700px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.onesta__testa { max-width: 880px; }

/* elenco delle frasi: la promessa comoda viene sbarrata, sotto la nostra risposta */
/* le tre colonne sono condivise fra intestazione e voci */
.onesta__intestazione,
.onesta-voce {
  display: grid;
  grid-template-columns: 68px minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 26px;
}

.onesta__intestazione {
  margin-top: 54px;
  padding-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}
.onesta__intestazione span:first-child { grid-column: 2; }
.onesta__intestazione span:last-child { padding-left: 32px; }

.onesta__lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.onesta-voce {
  align-items: stretch;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.onesta-voce:last-child { padding-bottom: 0; }

/* l'animazione racconta la promessa che stiamo rifiutando */
.onesta-voce__fx {
  width: 68px;
  height: 68px;
  align-self: start;
  margin-top: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(241, 80, 37, 0.18), rgba(241, 80, 37, 0) 68%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.onesta-voce:hover .onesta-voce__fx { transform: scale(1.1); }
.onesta-voce:hover .onesta-voce__frase { color: rgba(255, 255, 255, 0.56); }
.onesta-voce:hover .onesta-voce__verita { color: rgba(255, 255, 255, 0.75); }

/* la frase: grande, spenta, con la riga flame che la cancella */
.onesta-voce__frase {
  font-size: clamp(19px, 1.75vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.42);
  transition: color .35s ease;
}
.onesta-voce__frase span {
  position: relative;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(var(--flame), var(--flame));
  background-repeat: no-repeat;
  background-position: 0 60%;
  background-size: 100% 2px;
}

/* se la voce entra da sotto, la riga si disegna al momento giusto */
html.fx .onesta-voce.reveal .onesta-voce__frase span {
  background-size: 0% 2px;
  transition: background-size .75s cubic-bezier(.2, .7, .2, 1) .2s;
}
html.fx .onesta-voce.reveal.in .onesta-voce__frase span { background-size: 100% 2px; }

.onesta-voce__verita {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  transition: color .35s ease;
}
.onesta-voce__verita strong {
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 900px) {
  .onesta__intestazione { display: none; }
  .onesta__lista { margin-top: 44px; }
  .onesta-voce {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 24px 0;
  }
  .onesta-voce__fx { width: 54px; height: 54px; grid-row: 1; margin-top: -6px; }
  .onesta-voce__frase { grid-column: 2; }
  .onesta-voce__verita {
    grid-column: 2;
    padding-left: 0;
    border-left: none;
    font-size: 15px;
  }
}

/* ---------- voci dei clienti ---------- */
.perche-voci { padding-block: 90px; }
.perche-voci__titolo { margin-top: 22px; }

.voci__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.voce {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--mist);
  border: 1px solid var(--alabaster);
}
.voce blockquote {
  flex: 1;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--carbon);
}
.voce figcaption { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--alabaster); }
.voce .avatar { width: 44px; height: 44px; font-size: 14px; border-width: 2px; }
.voce__nome { display: block; font-size: 14.5px; font-weight: 700; }
.voce__ruolo { display: block; margin-top: 2px; font-size: 13px; color: var(--gray); }


@media (max-width: 1180px) {
  .perche-numeri { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .budget__grid { grid-template-columns: 1fr; gap: 44px; }
  .voci__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .perche-hero { padding: 120px 0 30px; }
  .perche-forza, .perche-confronto, .perche-budget, .perche-voci { padding-block: 60px; }
  .onesta__inner { padding-block: 60px; }
}

/* ---------- apertura a due colonne con il sistema orbitale ---------- */
.perche-hero__grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 40px;
  align-items: center;
}

.perche-hero__grid .perche-hero__titolo {
  max-width: none;
  font-size: clamp(38px, 3.9vw, 55px);
}

/* la scena è un quadrato: dentro ci stanno l'animazione e le sei etichette,
   posizionate sullo stesso anello dei nodi disegnati dal lottie */
.orbite { margin: 0; }

.orbite__scena {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin-inline: auto;
}

/* 380 unità di tela su 520 di scena: l'animazione resta agganciata alle etichette */
.orbite__fx {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  height: 62%;
  transform: translate(-50%, -50%);
}

/* il petalo scuro diventa bianco: il nucleo del lottie è nero */
.orbite__marchio {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.86);
}
.orbite__marchio .logo__mark-inner { background: #fff; }

.orbite__voci { list-style: none; margin: 0; padding: 0; }

.orbite__voce {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid rgba(25, 25, 25, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -18px rgba(25, 25, 25, 0.55);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--carbon);
  transition: color .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.orbite__voce:nth-child(1) { --x: 50%;    --y: 22.59%; }
.orbite__voce:nth-child(2) { --x: 73.72%; --y: 36.29%; }
.orbite__voce:nth-child(3) { --x: 73.72%; --y: 63.71%; }
.orbite__voce:nth-child(4) { --x: 50%;    --y: 77.41%; }
.orbite__voce:nth-child(5) { --x: 26.28%; --y: 63.71%; }
.orbite__voce:nth-child(6) { --x: 26.28%; --y: 36.29%; }

.orbite__voce--alto     { transform: translate(-50%, calc(-100% - 16px)); }
.orbite__voce--basso    { transform: translate(-50%, 16px); }
.orbite__voce--destra   { transform: translate(18px, -50%); }
.orbite__voce--sinistra { transform: translate(calc(-100% - 18px), -50%); }

/* ogni etichetta si accende quando il lottie illumina il nodo corrispondente:
   ciclo di 30s diviso in sei finestre da cinque */
html.fx .orbite__voce {
  animation: voce-accesa 30s linear infinite;
  animation-delay: calc(var(--i) * 5s);
}

@keyframes voce-accesa {
  0%, 16.67%, 100% {
    color: var(--carbon);
    border-color: rgba(25, 25, 25, 0.07);
    box-shadow: 0 10px 24px -18px rgba(25, 25, 25, 0.55);
  }
  8.33% {
    color: var(--flame);
    border-color: rgba(241, 80, 37, 0.35);
    box-shadow: 0 12px 28px -14px rgba(241, 80, 37, 0.55);
  }
}

/* testo riservato ai lettori di schermo */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .perche-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .orbite { order: -1; }
  .orbite__scena { max-width: 440px; }
}

@media (max-width: 520px) {
  .orbite__scena { max-width: 340px; }
  .orbite__marchio { transform: translate(-50%, -50%) scale(0.58); }
  .orbite__voce { padding: 5px 11px; font-size: 10.5px; }
  .orbite__voce--alto     { transform: translate(-50%, calc(-100% - 10px)); }
  .orbite__voce--basso    { transform: translate(-50%, 10px); }
  .orbite__voce--destra   { transform: translate(12px, -50%); }
  .orbite__voce--sinistra { transform: translate(calc(-100% - 12px), -50%); }
}

/* ---------- menu a scelta multipla ---------- */
.multi { position: relative; }

.multi__bottone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--alabaster);
  border-radius: 14px;
  background: var(--mist);
  font-family: inherit;
  font-size: 15px;
  color: var(--carbon);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.multi__bottone:hover { border-color: #c9ccc9; }
.multi__bottone:focus-visible,
.multi[data-aperto] .multi__bottone {
  outline: none;
  background: var(--white);
  border-color: var(--flame);
  box-shadow: 0 0 0 4px rgba(241, 80, 37, 0.12);
}

.multi__valore { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi__valore[data-vuoto] { color: #a9adb1; }

.multi__freccia {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gray);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.multi[data-aperto] .multi__freccia { transform: rotate(180deg); }

.multi__tendina {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--alabaster);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 24px 48px -24px rgba(25, 25, 25, 0.3);
}
.multi__tendina[hidden] { display: none; }

.multi__voce {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.multi__voce:hover { background: var(--mist); }
.multi__voce input { position: absolute; opacity: 0; width: 0; height: 0; }

.multi__spunta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--alabaster);
  border-radius: 6px;
  background: var(--white);
  transition: background .15s ease, border-color .15s ease;
}
.multi__spunta svg {
  width: 12px; height: 12px;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .15s ease;
}
.multi__voce:has(input:checked) .multi__spunta { background: var(--flame); border-color: var(--flame); }
.multi__voce:has(input:checked) .multi__spunta svg { opacity: 1; }
.multi__voce:has(input:focus-visible) .multi__spunta { box-shadow: 0 0 0 3px rgba(241, 80, 37, 0.2); }

.multi__nome { font-size: 14.5px; font-weight: 500; color: var(--carbon); }

/* ==========================================================================
   Menu da telefono
   Compare solo sotto i 768px, dove la barra non ha spazio per le voci.
   Tutto quello che segue è chiuso dentro la media query: la versione da
   scrivania non viene toccata in nessun modo.
   ========================================================================== */

/* fuori dal telefono questi due elementi non esistono proprio */
.burger,
.mmenu { display: none; }

@media (max-width: 768px) {

  /* ---------- il pulsante nella barra, prima del logo ---------- */
  .nav__left { gap: 12px; }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--alabaster);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .burger:active { background: var(--mist); border-color: #dcdedc; }
  .burger:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }

  .burger__linee {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
  }
  .burger__linee i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--carbon);
  }
  /* la riga di mezzo più corta: si legge come "elenco" e non come tre righe uguali */
  .burger__linee i:nth-child(2) { width: 72%; }

  /* ---------- il pannello ---------- */
  .mmenu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    visibility: hidden;
  }
  .mmenu[data-aperto] { visibility: visible; }

  .mmenu__velo {
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 25, 0.42);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .mmenu[data-aperto] .mmenu__velo { opacity: 1; }

  .mmenu__pannello {
    position: absolute;
    inset-block: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    /* tre quarti della finestra, come chiesto: resta visibile un pezzo di
       pagina a destra, così si capisce che è un pannello e non una schermata */
    width: 75%;
    background: var(--white);
    border-right: 1px solid var(--alabaster);
    box-shadow: 24px 0 60px -30px rgba(25, 25, 25, 0.45);
    transform: translateX(-100%);
    transition: transform .34s cubic-bezier(0.2, 0.7, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mmenu[data-aperto] .mmenu__pannello { transform: none; }

  /* ---------- testa: logo e chiusura ---------- */
  .mmenu__testa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--alabaster);
  }
  .mmenu__testa .logo { flex: 0 1 auto; min-width: 0; }

  .mmenu__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--alabaster);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: background .2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mmenu__x:active { background: var(--mist); }
  .mmenu__x:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
  .mmenu__x svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--carbon);
    stroke-width: 2;
    stroke-linecap: round;
  }

  /* ---------- le voci ---------- */
  .mmenu__voci {
    display: flex;
    flex-direction: column;
    padding: 8px 10px 4px;
  }

  .mvoce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--carbon);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mvoce:active { background: var(--mist); }
  .mvoce:focus-visible { outline: 2px solid var(--flame); outline-offset: -2px; }

  .mvoce__chev {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #8b8f8c;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .mgruppo[data-aperto] .mvoce__chev { transform: rotate(180deg); stroke: var(--flame); }
  .mgruppo[data-aperto] > .mvoce--gruppo { color: var(--flame); }

  /* il corpo si apre facendo crescere la riga della griglia: nessuna altezza
     da calcolare, e resta fluido anche se le voci cambiano numero.
     Niente "visibility" qui dentro: su un contenitore a griglia azzera la
     traccia "fr" e il pannello resterebbe chiuso. I collegamenti nascosti
     restano fuori dalla tabulazione con l'attributo inert, messo dallo script. */
  .mgruppo__corpo {
    overflow: hidden;
    height: 0;
    transition: height .32s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  /* l'altezza esatta la misura lo script appena prima di aprire: dentro a un
     pannello a colonna con scorrimento la traccia "fr" della griglia si
     azzera, quindi qui si va di pixel veri */
  .mgruppo[data-aperto] .mgruppo__corpo { height: var(--alta, auto); }
  .mgruppo__lista {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
  }

  .msub {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #4a4d4b;
    -webkit-tap-highlight-color: transparent;
  }
  .msub:active { background: var(--mist); }

  .msub__icona {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--mist);
    color: var(--flame);
  }
  .msub__icona svg { width: 16px; height: 16px; }

  /* ---------- piede: contatto e telefono ---------- */
  .mmenu__piede {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-top: 1px solid var(--alabaster);
  }
  .mmenu__cta {
    justify-content: center;
    width: 100%;
    padding-block: 14px;
  }
  .mmenu__tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #6b6f6d;
  }
  .mmenu__tel svg { width: 16px; height: 16px; fill: currentColor; }

  /* la pagina sotto non deve scorrere mentre il pannello è aperto */
  html.menu-aperto,
  html.menu-aperto body { overflow: hidden; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .mmenu__pannello,
  .mmenu__velo,
  .mgruppo__corpo,
  .mvoce__chev { transition: none; }
}

/* ==========================================================================
   Home da telefono
   Solo sotto i 768px: la versione da scrivania resta com'è.
   ========================================================================== */

@media (max-width: 768px) {

  /* ---------- apertura più compatta ----------
     Sopra il titolo restava lo spazio pensato per la scrivania: da telefono
     bastano pochi pixel di respiro sotto la barra. */
  .hero { padding-top: 32px; }
  .hero__head { gap: 16px; }
  .hero__left { gap: 22px; }
  .hero__left .hero__ctas { margin-top: 6px; }

  /* ---------- i due inviti sulla stessa riga ----------
     Il pulsante si stringe quanto basta perché "Vedi progetti" gli stia
     accanto anche sugli schermi più piccoli. */
  .hero__ctas {
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
  }
  .hero__ctas .btn {
    flex: 0 0 auto;
    gap: 8px;
    padding: 14px 20px;
    font-size: 15px;
  }
  .hero__ctas .btn .arr { width: 18px; height: 18px; }
  .hero__ctas .link-underline {
    flex: 0 0 auto;
    font-size: 15px;
    white-space: nowrap;
  }

  /* ---------- la composizione a destra ----------
     I due blocchi in alto - il quarto di cerchio grigio e la scheda dei
     numeri - partono dalla stessa quota e sono alti uguali. Sotto resta uno
     spazio prima del riquadro scuro dei servizi, che prima toccavano.
     Tutte le misure sono in percentuale, quindi la composizione resta
     proporzionata a qualsiasi larghezza di telefono. */
  .hero__right { aspect-ratio: 588 / 612; }
  .hero__quarter { top: 5.06%; height: 51.97%; }
  .hero__stat-card { top: 5.06%; height: 51.97%; }
  .hero__dark-card { height: 39.33%; }

  /* il trattino davanti al nome del servizio: su schermo stretto quello da
     cinquanta pixel si mangiava mezza riga */
  .hero__dark-card .eyebrow__line { width: 24px; }

  /* ---------- dentro il riquadro dei servizi ----------
     Le frecce stavano a mezza altezza, sopra al segno animato. Ora la riga in
     fondo è tutta loro: barre di avanzamento a sinistra, frecce a destra, e
     il segno sta sopra senza incrociarle. */
  .rotator__fx {
    top: 8px;
    translate: 0 0;
    right: 14px;
    width: 92px;
    height: 92px;
  }
  .rotator__slide { bottom: 34px; }
  .rotator__arrows { right: 18px; bottom: 10px; gap: 12px; }
  .rotator__dots { bottom: 12px; }

  /* ---------- l'orbita attorno al distintivo ----------
     Erano coordinate fisse, calcolate sulla tela da 588px della scrivania:
     qui la tela è larga la metà, quindi l'anello restava grande uguale e
     spostato di sessanta pixel rispetto al cerchio nero. Ora è ancorato al
     distintivo, che su telefono misura 80px e sta al 30% della tela. */
  #fx-orbit {
    left: calc(30% - 34px);
    top: -34px;
    width: 148px;
    height: 148px;
  }
  /* anche la stella seguiva la tela grande e sbordava a sinistra */
  #fx-star {
    left: -9.8%;
    top: 30.7%;
    width: 25.5%;
    height: auto;
    aspect-ratio: 1;
  }

  /* ---------- la scheda dei numeri ----------
     Restano il numero e la sua frase: le due voci in fondo, con il filetto
     che le separa, a questa dimensione erano solo rumore. */
  /* La scheda è larga centocinquanta pixel: le due voci in fondo, che sulla
     scrivania stanno affiancate, qui vanno una sotto l'altra. Tutto attorno
     si stringe di conseguenza, altrimenti non ci sta niente. */
  .hero__stat-card { padding: 15px 14px 13px; }
  .hero__stat-num { font-size: clamp(28px, 8.8vw, 60px); }
  .hero__stat-desc {
    margin-top: 6px;
    max-width: none;
    font-size: 11px;
    line-height: 1.32;
  }
  .hero__stat-foot {
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-top: 9px;
  }
  .hero__stat-mini { gap: 6px; }
  .hero__stat-mini strong { font-size: 18px; }
  .hero__stat-mini span { font-size: 8px; line-height: 1.28; letter-spacing: 0.06em; }

  /* ---------- barra dei loghi ----------
     L'etichetta sparisce: da telefono occupa una riga intera per dire una
     cosa che i loghi dicono già da soli. */
  .trusted-bar__label { display: none; }
  /* resta un figlio solo: riga, non colonna, e altezza dal contenuto.
     Con "flex: 1" dentro una colonna il nastro partiva da altezza zero e in
     certi momenti spariva del tutto. */
  .trusted-bar {
    flex-direction: row;
    gap: 0;
    padding-block: 20px;
    padding-right: 0;
  }
  .marquee { flex: none; width: 100%; }
}

/* ==========================================================================
   Archivio casi studio da telefono
   ========================================================================== */

@media (max-width: 768px) {

  /* ---------- una scheda per riga ----------
     La soglia è la stessa della barra di navigazione: sopra i 680px la
     griglia tornava a due colonne mentre il menu era già quello da telefono,
     e in quella fascia (telefono in orizzontale, finestra ristretta) la
     pagina sembrava di un'altra epoca. */
  .casi { grid-template-columns: 1fr; }
  .caso--grande { grid-column: span 1; grid-row: span 1; }
  /* stessa proporzione dell'immagine delle altre: in colonna unica una
     copertina più bassa farebbe sembrare la prima scheda un'altra cosa */
  .caso--grande .caso__foto { aspect-ratio: 16 / 10; flex: none; }
  .caso__risultati { grid-auto-flow: row; gap: 14px; }

  /* ---------- apertura più compatta ----------
     Sopra l'occhiello restava lo spazio pensato per la scrivania. */
  /* Stesso respiro sopra l'occhiello su tutte le aperture scure: progetti,
     blog e recensioni. La soglia è quella della barra di navigazione. */
  .arch-hero { padding-top: 118px; }
  .rec-hero { padding-top: 118px; }
  .arch-hero__testa { gap: 24px; }
  .arch-hero__titolo { margin-top: 16px; }
  .arch-numeri { margin-top: 32px; }
  .arch-filtri { margin-top: 32px; }

  /* ---------- i filtri su una riga sola che scorre ----------
     A capo occupavano due righe e spezzavano la lettura. Ora scorrono in
     orizzontale, sfiorando i bordi dello schermo: si capisce che continuano. */
  .arch-filtri {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -24px;
    padding-inline: 24px;
    scroll-padding-inline: 24px;
    padding-block: 2px;
  }
  .arch-filtri::-webkit-scrollbar { display: none; }
  .afiltro {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* ---------- una scheda per riga, tutte uguali ----------
     Il caso in evidenza resta il primo, ma a questa larghezza non ha senso
     che sia anche più grande: la colonna è una sola, quindi si distinguerebbe
     solo per i caratteri sovradimensionati. */
  .caso--grande .caso__corpo { padding: 22px 24px 24px; }
  .caso--grande .caso__titolo { margin-top: 10px; font-size: 19px; line-height: 1.32; letter-spacing: -0.02em; }
  .caso--grande .caso__testo {
    margin-top: 11px;
    font-size: 14px;
    max-width: none;
    /* il sommario del caso in evidenza è più lungo: tagliato a tre righe le
       schede restano tutte della stessa altezza */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .caso--grande .caso__risultati { margin-top: 18px; padding-top: 16px; gap: 14px; }
  .caso--grande .caso__risultati strong { font-size: 22px; }
  /* del caso in evidenza resta il risultato principale, come sugli altri */
  .caso--grande .caso__risultati li:nth-child(n + 2) { display: none; }
}

/* ==========================================================================
   Case study in home, da telefono
   La sezione era nata senza regole per gli schermi stretti: la testa restava
   a due colonne affiancate e la griglia a tre. Qui va tutto in colonna.
   ========================================================================== */

@media (max-width: 768px) {

  /* ---------- testa: una cosa sotto l'altra ----------
     Occhiello, titolo, descrizione e pulsante nell'ordine in cui si leggono,
     invece che spartiti fra due colonne strette. */
  .progetti__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .progetti__head-left { max-width: none; }
  .progetti__head .h2 { margin-top: 16px; }
  .progetti__head-right {
    max-width: none;
    width: 100%;
    gap: 20px;
  }

  /* ---------- filtri su una riga sola che scorre ----------
     Sfiorano i bordi del riquadro scuro: si capisce che continuano. */
  .progetti__filtri {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -24px;
    padding-inline: 24px;
    /* Senza questo lo scatto di aggancio porta la prima linguetta a filo
       schermo, annullando il padding: il punto di aggancio va spostato
       anche lui di ventiquattro pixel. */
    scroll-padding-inline: 24px;
    padding-top: 2px;
    /* fiato fra le linguette e il filetto che chiude la fascia */
    padding-bottom: 22px;
  }
  .progetti__filtri::-webkit-scrollbar { display: none; }
  .pfilter { flex: 0 0 auto; scroll-snap-align: start; }

  /* ---------- una scheda per riga ---------- */
  .progetti__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
  }
}

/* ==========================================================================
   Sezione "Dal blog" in home, da telefono
   ========================================================================== */

@media (max-width: 768px) {
  /* Il distacco di 56px fra titolo e descrizione era pensato per le due
     colonne affiancate della scrivania. In colonna diventa un buco. */
  .blog__head { gap: 18px; }
  .blog__head-left { max-width: none; }
  .blog__head-left .h2 { margin-top: 16px; }
  .blog__head-right { max-width: none; gap: 20px; }
}

/* ==========================================================================
   Perché Avabrand, da telefono
   ========================================================================== */

@media (max-width: 768px) {
  /* i due inviti dell'apertura: il pulsante prende tutta la riga, il
     collegamento gli sta sotto, centrato */
  .perche-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .perche-hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .perche-hero__ctas .link-underline { text-align: center; }
}

@media (max-width: 860px) {
  /* "Cinque cose che facciamo diversamente": il segno animato tiene la
     colonna di sinistra per tutta l'altezza della voce, a destra si legge
     nell'ordine naturale - numero, titolo, descrizione.
     Prima il segno finiva sotto al testo, staccato da tutto. */
  .forza__voce {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "fx numero"
      "fx corpo";
    align-items: start;
    gap: 4px 18px;
  }
  .forza__fx {
    grid-area: fx;
    align-self: start;
    justify-self: start;
    width: 78px;
    height: 78px;
  }
  .forza__numero { grid-area: numero; }
  .forza__corpo { grid-area: corpo; }
}

@media (max-width: 768px) {
  /* Aperture scure: nelle due colonne dei numeri il filetto serve a separarle,
     davanti alla prima no. La regola generale lo prevedeva già, ma quella del
     blog - fuori da ogni media query e più specifica - la scavalcava, e la
     colonna di sinistra restava rientrata di 26 pixel senza motivo. */
  .arch-numeri__voce:nth-child(odd),
  .blog-hero .arch-numeri__voce:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

/* ==========================================================================
   Pagine servizio, da telefono
   ========================================================================== */

@media (max-width: 768px) {
  /* Aperture dei servizi: il pulsante prende tutta la riga, il collegamento
     gli sta sotto, centrato. Ogni servizio ha la sua classe ma il disegno è
     lo stesso, quindi la regola è una sola. */
  .srv-hero__ctas,
  .adv-hero__ctas,
  .seo-hero__ctas,
  .gd-hero__ctas,
  .soc-hero__ctas,
  .saas-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .srv-hero__ctas .btn,
  .adv-hero__ctas .btn,
  .seo-hero__ctas .btn,
  .gd-hero__ctas .btn,
  .soc-hero__ctas .btn,
  .saas-hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .srv-hero__link { display: block; text-align: center; }

  /* "Preferisci scrivere?" tiene la sua riga, sotto indirizzo e numero:
     due righe centrate invece di un unico blocco che andava a capo dove
     capitava, lasciando il numero incolonnato a metà riga. */
  .prev__oppure {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: 0;
    row-gap: 6px;
    text-align: center;
  }
  .prev__oppure-eti { flex: 1 0 100%; }

  /* Titolo e descrizione di sezione: in colonna i 40px pensati per le due
     colonne affiancate diventano un buco. Vale per tutto il sito. */
  .split-heading { gap: 18px; }

  /* Sotto una fascia scura a tutta larghezza il bianco può essere la metà:
     lo stacco fra due sezioni chiare è di 120px perché serve a farle leggere
     come separate, ma qui separa già il colore. Restano i 60px di apertura
     della sezione seguente. */
  .adv-metriche,
  .seo-onesta,
  .gd-applicazioni,
  .soc-onesta,
  .saas-tuo { padding-bottom: 0; }

  /* Sotto "Ti serve anche" resta meno spazio prima del piè di pagina. */
  .srv-preventivo { padding-bottom: 56px; }

  /* Advertising: "Lavoriamo su" tiene la sua riga e i canali stanno sotto,
     tutto centrato. Affiancati com'erano, a questa larghezza l'elenco andava
     a capo due volte lasciando l'etichetta sospesa a sinistra. */
  .adv-hero__canali {
    justify-content: center;
    text-align: center;
    row-gap: 10px;
  }
  .adv-hero__canali-etichetta { flex: 1 0 100%; }
  .adv-hero__canali ul { justify-content: center; }

  /* "Ti serve anche" e le pastiglie degli altri servizi: etichetta sulla sua
     riga, pastiglie sotto, tutto centrato. Su tutte e sei le pagine. */
  .altri-servizi {
    justify-content: center;
    text-align: center;
    row-gap: 12px;
  }
  .altri-servizi__titolo { flex: 1 0 100%; }
  .altri-servizi__chip { justify-content: center; }

  /* I riquadri scuri delle pagine servizio arrivano da bordo a bordo dello
     schermo: gli angoli tondi lì non hanno più un margine su cui appoggiarsi
     e lasciano quattro spicchi di pagina scoperti. Sono due per pagina - la
     sezione a metà e il modulo in fondo - su tutti e sei i servizi. */
  .srv-preventivo .dark-shell,
  .srv-incluso .dark-shell,
  .adv-metriche .dark-shell,
  .seo-onesta .dark-shell,
  .gd-applicazioni .dark-shell,
  .soc-onesta .dark-shell,
  .saas-tuo .dark-shell { border-radius: 0; }
}

/* ==========================================================================
   Indice dell'articolo
   Niente riquadro: un comando in chiaro nel flusso del testo, e la lista che
   scende agganciata a un filo verticale, come l'indice di un libro.
   È un <details> chiuso di partenza: si apre senza script e resta usabile
   da tastiera.
   ========================================================================== */

.indice { margin-bottom: 38px; }

.indice__testa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.indice__testa::-webkit-details-marker { display: none; }
.indice__testa:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 4px; }

/* lo stesso pallino degli occhielli del sito: lega l'indice al resto */
.indice__punto {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--flame);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.indice[open] .indice__punto { transform: scale(1.35); }

.indice__eti {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--carbon);
  transition: color .2s ease;
}
.indice__testa:hover .indice__eti { color: var(--flame); }

.indice__conta {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray);
}

.indice__chev {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  fill: none;
  stroke: var(--gray);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), stroke .2s ease;
}
.indice__testa:hover .indice__chev { stroke: var(--flame); }
.indice[open] .indice__chev { transform: rotate(180deg); stroke: var(--flame); }

/* Il contenuto di un <details> chiuso non viene disegnato, quindi l'altezza
   non si può animare: entra in dissolvenza, che basta e non fa saltare nulla. */
.indice__corpo {
  margin-top: 14px;
  padding-left: 17px;
  /* il filo verticale parte sotto il pallino e tiene insieme le voci */
  border-left: 1px solid var(--alabaster);
  animation: indice-apre .3s cubic-bezier(.2, .7, .2, 1);
}
@keyframes indice-apre {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.indice__corpo ol { margin: 0; padding: 0; list-style: none; }

.indice__voce a {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 7px 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  color: #3a3d3b;
  transition: color .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.indice__voce a:hover { color: var(--flame); transform: translateX(3px); }
.indice__voce--sotto a {
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--gray);
}

.indice__num {
  flex: 0 0 auto;
  min-width: 17px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--flame);
  opacity: .75;
}
.indice__voce--sotto .indice__num { opacity: .4; }

/* la barra in cima è fissa: senza questo il titolo raggiunto ci finisce sotto */
.prose h2[id], .prose h3[id] { scroll-margin-top: 104px; }

@media (max-width: 768px) {
  .indice { margin-bottom: 30px; }
  .indice__corpo { padding-left: 15px; }
  .indice__voce a { font-size: 15px; }
  .prose h2[id], .prose h3[id] { scroll-margin-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .indice__corpo { animation: none; }
  .indice__chev, .indice__punto, .indice__voce a { transition: none; }
}
