/* ============================================================
   SERILOGO — Homepage /
   Stili specifici pagina. Eredita da main.css.
   ============================================================ */


/* ── HERO HOMEPAGE ────────────────────────────────────────── */

.hero--home {
  height: 100dvh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(3rem, 6vh, 5rem);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* Sovrascrive .hero::before di main.css per homepage */
.hero--home::before { display: none; }

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* scuro pieno su zona testo (sx + basso), video respira in alto a dx */
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.55) 38%,
      rgba(0, 0, 0, 0.12) 72%
    ),
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 45%,
      rgba(0, 0, 0, 0.18) 75%,
      rgba(0, 0, 0, 0.28) 100%
    );
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.07;
  mix-blend-mode: overlay;
}

.hero__spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 55% at 10% 72%,
    oklch(75% 0.22 128 / 0.06) 0%,
    transparent 70%
  );
}

/* Crocini di registro stampa */
.reg-marks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.reg-mark {
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0.25;
}

.reg-mark::before,
.reg-mark::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.reg-mark::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.reg-mark::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }

.reg-mark--tl { top: 1.5rem; left: 1.5rem; }
.reg-mark--tr { top: 1.5rem; right: 1.5rem; }
.reg-mark--bl { bottom: 1.5rem; left: 1.5rem; }
.reg-mark--br { bottom: 1.5rem; right: 1.5rem; }

/* Contenuto hero */
.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  max-width: 900px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--text-light);
}

/* Fuori registro — layer ciano/magenta sfalsati, --ro animata via GSAP */
.is-misregistered .hl-line {
  /* Una sola lastra verde a sinistra che rientra nel testo (sx → dx) */
  text-shadow:
    calc(var(--ro, 0) * -0.09em) 0 0 rgba(124, 200, 0, 0.7);
}

/* Foto di sfondo hero (pagine interne): texture, non protagonista */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.05) brightness(0.72);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.86) 0%,
    rgba(10, 10, 10, 0.78) 45%,
    rgba(10, 10, 10, 0.92) 100%
  );
}

/* Snap a registro: flash verde sui crocini */
.reg-marks.is-snap .reg-mark::before,
.reg-marks.is-snap .reg-mark::after {
  background: var(--accent);
  animation: reg-snap 0.7s ease-out;
}
@keyframes reg-snap {
  0%   { opacity: 1; }
  35%  { opacity: 0.25; }
  70%  { opacity: 1; }
}

.hl-line {
  display: block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.hl-line .keyword {
  position: relative;
  display: inline-block;
}

.hl-line .keyword::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.04em;
  width: 100%;
  height: 3px;
  background: var(--accent);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hl-line .keyword.is-drawn::after {
  clip-path: inset(0 0% 0 0);
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
}

.hero__tel-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero__tel-link:hover { color: var(--text-light); }
}

/* ── STATS STRIP ──────────────────────────────────────────── */

.stats-strip {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: oklch(75% 0.22 128 / 0.18);
}

.stats-strip__item {
  background: var(--bg-dark);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(12px);
}

.stats-strip__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-light);
}

.stats-strip__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(75% 0.22 128 / 0.8);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .stats-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ── SERVIZI OVERVIEW ─────────────────────────────────────── */

.servizi-section {
  background: var(--bg-light);
  padding-block: var(--section-pad);
}

.servizi-header {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.servizi-header__left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.servizi-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.servizi-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

.servizi-header__cta {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 0.2rem;
  transition: opacity var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .servizi-header__cta:hover { opacity: 0.7; }
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: oklch(28% 0.008 240 / 0.12);
}

.servizio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: oklch(18% 0.008 240);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.servizio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.55s var(--ease-out),
              transform 0.55s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .servizio-card:hover .servizio-card__img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.04);
  }
  .servizio-card:hover .servizio-card__overlay {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.72) 0%,
      rgba(0,0,0,0.1) 55%,
      transparent 100%
    );
  }
  /* Ink-fill: il verde sale dal basso dietro il body */
  .servizio-card:hover .servizio-card__overlay::after {
    clip-path: inset(0 0 0 0);
  }
  .servizio-card:hover .servizio-card__name,
  .servizio-card:hover .servizio-card__tag {
    color: var(--bg-dark);
  }
}

.servizio-card__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(75% 0.22 128 / 0.92) 0%,
    oklch(75% 0.22 128 / 0.85) 30%,
    transparent 52%
  );
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s var(--ease-out);
}

.servizio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.15) 55%,
    transparent 100%
  );
  transition: background 0.55s var(--ease-out);
}

.servizio-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 1;
}

.servizio-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-light);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
  transition: color 0.4s var(--ease-out);
}

.servizio-card__tag {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: color 0.4s var(--ease-out);
}

/* Hover accent line */
.servizio-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .servizio-card:hover::after { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .servizi-grid { grid-template-columns: 1fr; }
  .servizio-card { aspect-ratio: 16/9; }
}


/* ── DIFFERENZIANTE BREVE ─────────────────────────────────── */

.diff-breve {
  background: var(--bg-light);
  padding-block: var(--section-pad);
  position: relative;
  overflow: hidden;
  border-top: 1px solid oklch(28% 0.008 240 / 0.08);
}

.diff-breve__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.diff-breve__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.diff-breve__media {
  position: relative;
  overflow: hidden;
}
.diff-breve__img {
  width: 100%;
  height: clamp(440px, 38vw, 640px);
  object-fit: cover;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}
.diff-breve__media-caption {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(28% 0.008 240 / 0.55);
  margin-top: 0.7rem;
}
@media (max-width: 860px) {
  .diff-breve__inner { grid-template-columns: 1fr; }
}

.diff-breve__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

.diff-breve__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.diff-breve__body {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-dark);
  opacity: 0.72;
  max-width: 55ch;
}


/* Frecce slider testimonianze — sobrie, come /preventivo/ */
.testi-arrow {
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1;
  color: oklch(28% 0.008 240 / 0.55);
  border: 1px solid oklch(28% 0.008 240 / 0.25);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .testi-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
}
.testi-arrow:active { transform: scale(0.95); }
/* ── CTA SECTION ──────────────────────────────────────────── */

.cta-section {
  background: var(--bg-dark);
  padding-block: clamp(5rem, 9vw, 8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Drench fill — il verde sale con lo scroll (clip-path animata via GSAP) */
.cta-section__fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}


.cta-section__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.055;
  mix-blend-mode: overlay;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.cta-section__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.cta-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  text-transform: uppercase;
  line-height: 0.93;
  letter-spacing: -0.025em;
  color: var(--text-light);
  max-width: 16ch;
}

.cta-section__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 45ch;
}


/* ── FOOTER SITO (3-col, tipografico) ─────────────────────── */

.footer--site .container {
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.footer--site {
  background: var(--bg-dark);
  padding-block: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.footer--site .footer__site-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1px;
  background: var(--border-dark);
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 3rem;
}

.footer__col {
  background: var(--bg-dark);
  padding: 0 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer__col:first-child { padding-left: 0; }
.footer__col:last-child  { padding-right: 0; }

.footer__col-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.footer__col-logo {
  display: block;
  line-height: 0;
  margin-bottom: 0.25rem;
}
.footer__col-logo img { height: 26px; width: auto; opacity: 0.85; }

.footer__col-claim {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-light);
}

.footer__col-legal {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(99% 0.003 128 / 0.72);
  line-height: 2;
  margin-top: auto;
}

.footer__col-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
}

.footer__col-nav a {
  font-size: 0.88rem;
  color: oklch(99% 0.003 128 / 0.78);
  transition: color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer__col-nav a:hover { color: var(--text-light); }
}

.footer__col-nav .nav-cta-link {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cta);
}
@media (hover: hover) and (pointer: fine) {
  .footer__col-nav .nav-cta-link:hover { color: var(--text-light); }
}

.footer__col-address {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-style: normal;
  font-size: 0.88rem;
  color: oklch(99% 0.003 128 / 0.78);
  line-height: 1.5;
}

.footer__col-address a { transition: color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer__col-address a:hover { color: var(--text-light); }
}

.footer__col-privacy {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(99% 0.003 128 / 0.6);
  margin-top: auto;
  transition: color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer__col-privacy:hover { color: var(--text-muted); }
}

.footer--site .footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  gap: 1rem;
}

.footer--site .footer__bottom p {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: oklch(99% 0.003 128 / 0.55);
}

@media (max-width: 768px) {
  .servizi-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer--site .footer__site-grid {
    grid-template-columns: 1fr;
    background: none;
  }
  .footer__col {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-dark);
  }
  .footer__col:last-child { border-bottom: none; }
  .footer--site .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── MARQUEE SCROLL-STOPPING ──────────────────────────────── */
.marquee-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 3rem;
  flex-shrink: 0;
}

.marquee-item__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-light);
  opacity: 0.85;
  line-height: 1;
}

.marquee-item__sep {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ── SKIP LINK ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent-green);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── DIFFERENZIANTE CTA ────────────────────────────────────── */
.diff-breve__cta {
  margin-top: 2rem;
  display: inline-block;
}

/* ── TESTIMONIANZE — slider 4 card ────────────────────────── */
.testi-section {
  background: var(--bg-light);
  padding-block: var(--section-pad);
  overflow: hidden;
}

.testi-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  gap: 1.5rem;
}

.testi-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.testi-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.testi-aggregate {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: oklch(35% 0.006 240 / 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.google-g { flex-shrink: 0; display: inline-block; }
.testi-aggregate strong { color: var(--text-dark); font-weight: 700; }
.testi-aggregate a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Track: scorre orizzontalmente */
.testi-track-wrap {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.testi-track-wrap:active { cursor: grabbing; }

.testi-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  will-change: transform;
}

/* Singola card */
.testi-card {
  flex: 0 0 clamp(280px, 38vw, 460px);
  background: var(--bg-white);
  border: 1px solid oklch(28% 0.008 240 / 0.1);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
}

.testi-card__stars {
  color: var(--cta);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.testi-card__text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
  flex: 1;
}

.testi-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid oklch(28% 0.008 240 / 0.1);
  padding-top: 1rem;
}

.testi-card__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.testi-card__source {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(35% 0.006 240 / 0.5);
}

/* Nav dots */
.testi-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  justify-content: flex-start;
}

.testi-dot {
  width: 6px;
  height: 6px;
  background: oklch(28% 0.008 240 / 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease-out),
              transform 0.25s var(--ease-out);
}

.testi-dot.is-active {
  background: var(--accent);
  transform: scaleX(2.5);
}

@media (max-width: 640px) {
  .testi-header { flex-direction: column; align-items: flex-start; }
  .testi-card { flex: 0 0 85vw; }
}
/* ── FORM HOME — stessi campi della landing ────────────────── */
.form-home {
  background: var(--bg-white);
  padding-block: var(--section-pad);
}
.form-home__form {
  max-width: 680px;
  margin-inline: auto;
}
.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr; }
}
.form-label-opt {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-subtle);
  text-transform: none;
  letter-spacing: 0.04em;
}
.form-home__privacy {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  line-height: 1.7;
  margin-top: 1rem;
}
.form-home__privacy a { color: inherit; text-decoration: underline; }
.form-feedback {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}
.form-feedback.is-error {
  display: block;
  border: 1px solid oklch(58% 0.22 25);
  color: oklch(48% 0.2 25);
}

/* ── GRAIN VIVO — pellicola che respira (steps, compositor-only) ── */
.hero__grain,
.cta-section__grain {
  inset: -6%;
  animation: grain-jump 0.85s steps(1) infinite;
}
@keyframes grain-jump {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(-2.5%, 1.8%); }
  40%      { transform: translate(1.8%, -2.5%); }
  60%      { transform: translate(-1.5%, -1.8%); }
  80%      { transform: translate(2.5%, 2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__grain, .cta-section__grain { animation: none; inset: 0; }
}
/* ── FOOTER BIG-TYPE — outline che si riempie di verde allo scroll ── */
.footer__bigtype {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14.5vw, 14rem);
  line-height: 0.78;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: left;
  padding-left: var(--gutter);
  color: transparent;
  -webkit-text-stroke: 1px oklch(75% 0.22 128 / 0.4);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center;
  background-size: 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  padding-top: 0.12em;
  padding-bottom: 0.06em;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
/* ── FILM — Dal file alla maglietta (scrollytelling 4 atti) ── */
.film {
  /* altezza = spazio di scrub: 4 atti × 130vh */
  height: 520vh;
  position: relative;
  background: var(--bg-dark);
}
.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.film__acts { position: absolute; inset: 0; }
.film__act {
  position: absolute;
  inset: 0;
  margin: 0;
  clip-path: inset(0 100% 0 0);
}
.film__act.is-active { clip-path: inset(0 0 0 0); }
.film__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* barra racla verticale che accompagna il wipe */
.film__bar {
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
  background: var(--accent);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}
.film__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 38%, rgba(0,0,0,0.10) 70%),
    linear-gradient(100deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.film__head {
  position: absolute;
  top: clamp(5rem, 10vh, 7rem);
  left: var(--gutter);
  z-index: 5;
}
.film__kicker {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.film__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(3rem, 9vh, 6rem);
  z-index: 5;
}
.film__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 640px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}
.film__caption.is-active { opacity: 1; transform: none; }
.film__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.film__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8.5vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 0.9rem;
}
.film__text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
}
.film__progress {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 9vh, 6rem);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.film__progress-step {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease;
}
.film__progress-step.is-active { color: var(--accent); }
.film__progress-rail {
  width: clamp(60px, 8vw, 120px);
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.film__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
@media (max-width: 640px) {
  .film { height: 250vh; }
  .film__progress { display: none; }
  .film__text { font-size: 1rem; line-height: 1.45; }
  .film__title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}
/* Reduced motion / no GSAP: atti impilati statici, poster visibili */
.film.is-static {
  height: auto;
}
.film.is-static .film__stage { position: static; height: auto; overflow: visible; }
.film.is-static .film__acts { position: static; display: grid; }
.film.is-static .film__act { position: relative; clip-path: none; height: 70vh; }
.film.is-static .film__copy,
.film.is-static .film__caption { position: static; opacity: 1; transform: none; max-width: none; }
.film.is-static .film__caption { padding: 1.5rem var(--gutter); }
.film.is-static .film__shade, .film.is-static .film__progress, .film.is-static .film__bar { display: none; }
/* ── COUNTER BAND — numero produzione annua ── */
.counter-band {
  background: var(--bg-dark);
  border-top: 1px solid rgba(124, 200, 0, 0.3);
  border-bottom: 1px solid rgba(124, 200, 0, 0.3);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.counter-band__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.counter-band__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}
.counter-band__plus { color: var(--accent); }
.counter-band__unit {
  display: inline-block;
  font-size: 0.32em;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 0.2em;
}

/* numero atto gigante dietro la caption (film) */
.film__ghost {
  position: absolute;
  right: calc(var(--gutter) * 0.6);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14rem, 34vw, 30rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 200, 0, 0.28);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.4s ease;
}
@media (max-width: 640px) {
  .film__ghost { font-size: 11rem; right: 0.5rem; opacity: 0.7; }
}

/* counter fuori registro: piastre cyan/magenta che convergono (--reg 1 -> 0) */
.counter-band__value.is-off-register {
  --reg: 1;
  text-shadow:
    calc(var(--reg) * -0.09em) 0 0 rgba(124, 200, 0, 0.75),
    calc(var(--reg) * 0.045em) 0 0 rgba(124, 200, 0, 0.35);
}
/* ── SERVIZI A MOSAICO — griglia rotta, niente card identiche ── */
.servizi-grid {
  grid-auto-flow: dense;
  grid-auto-rows: clamp(160px, 22vw, 250px);
}
.servizi-grid .servizio-card { aspect-ratio: auto; height: auto; }
.servizi-grid .servizio-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.servizi-grid .servizio-card:nth-child(6) { grid-column: span 2; }
@media (max-width: 640px) {
  /* Niente mosaico su mobile: 2 colonne uniformi, card quadrate leggibili */
  .servizi-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
    grid-auto-rows: auto;
  }
  .servizi-grid .servizio-card,
  .servizi-grid .servizio-card:nth-child(1),
  .servizi-grid .servizio-card:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

