/* ==========================================================================
   Eff$Kappa — landing portfolio
   Nero, crema e oro del bigliettino; resa "tech ma elegante".
   Movimento solo allo scorrimento (mai legato al mouse), solo transform/opacity.
   ========================================================================== */

:root {
  --bg: #0a0908;
  --bg-2: #11100e;
  --bg-3: #191714;
  --card: #12110f;
  --gold: #d4af6a;
  --gold-hi: #ecca8e;
  --gold-dim: #8b6f3f;
  --cream: #f4f1ea;
  --muted: #cdc8be; /* testo secondario: contrasto 11,9:1 sul nero */
  --muted-2: #aaa59a; /* etichette e note: contrasto 8,1:1 */
  --line: rgba(212, 175, 106, .18);
  --line-2: rgba(244, 241, 234, .08);

  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --hand: 'Caveat', cursive;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --header: 69px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 600px at 85% -5%, rgba(212, 175, 106, .08), transparent 70%), var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, blockquote, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted-2); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.idx { color: var(--muted-2); letter-spacing: .08em; }
.idx::after { content: ''; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--gold-dim); }

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Barra di avanzamento ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 20; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-hi)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  background: rgba(10, 9, 8, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.dollar { color: var(--gold); }
.site-nav { display: flex; gap: clamp(14px, 3vw, 36px); font-size: 15px; color: var(--muted); }
.site-nav a { transition: color .25s; }
.site-nav a:hover { color: var(--gold-hi); }
@media (max-width: 520px) {
  .site-nav a[href="#metodo"], .site-nav a[href="#chi-sono"], .site-nav a[href="#faq"] { display: none; }
}
/* Su telefono: header pieno, senza blur (su iPhone il blur su un header attaccato sfarfalla) */
@media (max-width: 900px) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Angoli a mirino (dal bigliettino) ---------- */
.corners { position: absolute; inset: 0; pointer-events: none; }
.corners i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(212, 175, 106, .7); }
.corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.btn-gold { background: var(--gold); color: var(--bg); box-shadow: 0 0 0 1px rgba(236, 202, 142, .4) inset, 0 10px 30px rgba(212, 175, 106, .18); }
.btn-gold:hover { background: var(--gold-hi); }
.round {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--cream);
  font-size: 18px;
  cursor: pointer;
  transition: border-color .25s, color .25s, opacity .25s;
}
.round:hover { border-color: var(--gold); color: var(--gold-hi); }
.round:disabled { opacity: .35; cursor: default; border-color: var(--line-2); color: var(--muted); }
.round-sm { width: 40px; height: 40px; font-size: 15px; }

/* ---------- Apertura ---------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--gutter) 0;
  box-sizing: content-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* griglia tecnica che sfuma verso i bordi */
.hero-grid {
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 234, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 20%, transparent 75%);
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #6fbf73; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 191, 115, .45); } 70% { box-shadow: 0 0 0 9px rgba(111, 191, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 191, 115, 0); } }
.hero h1 {
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero h1 em, .gold-text {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-hi) 50%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { max-width: 54ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); text-wrap: pretty; }
.lead strong { color: var(--cream); font-weight: 500; }
/* domanda d'aggancio sopra la descrizione */
.hero-hook { max-width: 30ch; margin: 0; color: var(--cream); font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; text-wrap: balance; }
.hero-hook em { font-style: normal; color: var(--gold-hi); background: linear-gradient(90deg, var(--gold), var(--gold-hi)) left bottom / 100% 1px no-repeat; padding-bottom: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.hero-link { position: relative; color: var(--muted); font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .25s, border-color .25s; }
.hero-link:hover { color: var(--gold-hi); border-color: var(--gold); }
.hero-link::before { content: ''; position: absolute; inset: -12px -8px; }
.hero-proof { display: flex; flex-direction: column; gap: 14px; }
.hero-proof .project-media { margin-right: 10px; }
.hero-proof figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 15px; color: var(--muted); }
.hero-proof figcaption b { color: var(--cream); font-weight: 500; }

/* Numeri sotto l'apertura */
.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(16px, 4vh, 40px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stats div { padding: 22px 0 22px 22px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; } /* numeri allineati in alto anche se un'etichetta va a capo */
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.stats dd { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats small { font-size: .45em; color: var(--gold); letter-spacing: 0; margin-left: 2px; }

/* Entrata dell'apertura */
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-in { animation: hero-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text .hero-in:nth-child(2) { animation-delay: .08s; }
.hero-text .hero-in:nth-child(3) { animation-delay: .16s; }
.hero-text .hero-in:nth-child(4) { animation-delay: .24s; }
.hero-text .hero-in:nth-child(5) { animation-delay: .32s; }
.hero-proof.hero-in { animation-delay: .3s; animation-duration: 1.1s; }
.stats.hero-in { animation-delay: .45s; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-proof { max-width: 680px; }
}
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 18px 0 18px 18px; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

/* ---------- Sezioni ---------- */
.about, .work, .review, .services, .method, .faq, .compare, .compare-why {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) var(--gutter) 0;
  box-sizing: content-box;
}
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.section-head h2, .contact h2 {
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.section-sub { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; max-width: 62ch; }

/* ---------- Chi c'è dietro ---------- */
.about-top {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: 48px;
}
.about-photo { display: flex; flex-direction: column; gap: 28px; }
.about-photo img { width: 100%; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.about-text .section-head { margin-bottom: 28px; }
.about-lead { color: var(--cream); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; letter-spacing: -.01em; max-width: 62ch; text-wrap: pretty; }
@media (max-width: 800px) {
  .about-top { grid-template-columns: 1fr; margin-bottom: 48px; }
  .about-photo { max-width: 400px; }
}

/* Carosello: frecce + puntini; col dito si scorre anche trascinando */
.carousel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.carousel-count { color: var(--muted); }
.carousel-count span { color: var(--gold); }
/* invito a scorrere le recensioni, con la freccia che spinge piano */
.review-car .carousel-top { flex-wrap: wrap; gap: 16px; }
.review-car .carousel-nav { margin-left: auto; }
.review-top-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.carousel-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--gold-hi); font-size: 13px; letter-spacing: .04em; }
.hint-corto { display: none; }
@media (max-width: 600px) { .hint-lungo { display: none; } .hint-corto { display: inline; } .carousel-hint { white-space: nowrap; } }
.carousel-hint i { font-style: normal; display: inline-block; animation: spinta 1.6s ease-in-out infinite; }
@keyframes spinta { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .carousel-hint i { animation: none; } }
.carousel-nav { display: flex; gap: 10px; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: rgba(244, 241, 234, .2); transition: width .3s, background .3s; }
.carousel-dots button[aria-current="true"]::before { width: 24px; background: var(--gold); }

.card {
  position: relative;
  scroll-snap-align: start;
  min-height: 280px;
  padding: 28px 26px 30px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--card), var(--bg));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-n { position: absolute; top: 24px; right: 24px; }
.card-ico { width: 42px; height: 42px; padding: 9px; margin-bottom: 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(212, 175, 106, .06); fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .carousel-track { grid-auto-columns: 86%; gap: 14px; }
  .card { min-height: 0; }
}

/* ---------- Fascia dei settori (scorre da sola, ferma col movimento ridotto) ---------- */
.marquee {
  margin-top: clamp(64px, 10vh, 112px); /* stacco netto dai numeri dell'apertura, senza righe che la facciano sembrare una tabella */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); width: max-content; padding: 22px 0; animation: marquee 48s linear infinite; }
.marquee span { font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; color: var(--cream); }
.marquee span:nth-of-type(even) { color: rgba(244, 241, 234, .07); -webkit-text-stroke: 1.4px rgba(244, 241, 234, .62); }
.marquee i { font-style: normal; color: var(--gold); font-size: clamp(16px, 2vw, 24px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Filtri ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 64px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.chip span { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.chip:hover { border-color: var(--gold); color: var(--cream); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.chip.is-active span { color: rgba(10, 9, 8, .6); }

/* ---------- Categoria e scena ---------- */
.category { margin-bottom: clamp(24px, 4vh, 48px); }
.category-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line-2);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.02em;
}
.category-title .mono { color: var(--gold); }
/* Barrette sotto l'anteprima: quale sezione del sito si sta guardando */
.scene-steps { display: flex; gap: 6px; margin-top: 14px; }
.scene-steps i { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.scene-steps i::after { content: ''; display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s; }
.scene-steps i.is-on::after { transform: scaleX(1); }

/* ---------- Progetto ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.project-flip .project-media-wrap, .project-flip > .project-media { order: 2; }

.tabs-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.tab {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.tab:hover { color: var(--cream); }
.tab.is-active { background: var(--bg-3); color: var(--gold-hi); box-shadow: 0 0 0 1px var(--line) inset; }

.project-media { position: relative; display: block; padding: 0 0 40px; touch-action: pan-y; }
/* sul computer si può trascinare l'anteprima per cambiare sezione */
@media (hover: hover) and (pointer: fine) {
  .is-draggable { cursor: grab; }
  .is-draggable.is-dragging { cursor: grabbing; }
}
.is-draggable img { -webkit-user-drag: none; user-select: none; }
.browser {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 106, .06);
  transition: border-color .35s;
}
a.project-media:hover .browser { border-color: rgba(212, 175, 106, .45); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 241, 234, .16); }
.browser-bar em {
  margin-left: 10px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Schermo del mockup: la pagina intera scorre dentro, piano */
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.screen-mob { aspect-ratio: 390 / 844; border-radius: 17px; }
.scroll-shot { width: 100%; will-change: transform; transition: opacity .25s; }
.is-swapping .scroll-shot { opacity: .25; }
.phone {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 25%;
  min-width: 96px;
  padding: 5px;
  border-radius: 22px;
  background: #050403;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}
.project-flip .phone { right: auto; left: -10px; }

.project-body { display: flex; flex-direction: column; gap: 16px; }
.project-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
}
.badge-live { display: inline-flex; align-items: center; gap: 7px; }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6fbf73; box-shadow: 0 0 0 3px rgba(111, 191, 115, .18); }
.project h4 { font-weight: 500; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; letter-spacing: -.035em; }
.project-sub { color: var(--cream); }
.project-text { color: var(--muted); font-size: 15px; }
.results { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.results li { position: relative; padding-left: 28px; font-size: 15px; color: var(--cream); }
.results li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .38em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px);
}
.project-links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.project-link {
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 3px;
  transition: color .25s, border-color .25s;
}
.project-link:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

/* Dashboard illustrativa (gestionale) */
.project-media-static { padding-bottom: 0; }
.media-note { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.dash { display: grid; grid-template-columns: 44px 1fr; aspect-ratio: 16 / 10; background: #f6f4ee; color: #1d2a25; font-family: var(--sans); }
.dash-side { background: #005743; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; }
.dash-side b { font-size: 11px; color: #f6f4ee; }
.dash-side i { width: 16px; height: 3px; border-radius: 2px; background: rgba(246, 244, 238, .35); }
.dash-main { display: flex; flex-direction: column; gap: 3.5%; padding: 4% 5%; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; font-size: clamp(9px, 1vw, 13px); font-weight: 500; }
.dash-pill { font-size: .8em; padding: 2px 8px; border-radius: 999px; background: #e3ebe7; color: #005743; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
.dash-kpis div { background: #fff; border-radius: 6px; padding: 7% 9%; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.dash-kpis small { font-size: clamp(7px, .75vw, 10px); color: #6b7570; }
.dash-kpis strong { font-size: clamp(11px, 1.5vw, 20px); font-weight: 700; }
.dash-kpis em { font-style: normal; font-size: clamp(7px, .75vw, 10px); }
.up { color: #1f8a5b; }
.down { color: #b6423a; }
.dash-chart { flex: 1; background: #fff; border-radius: 6px; padding: 3%; min-height: 0; }
.dash-chart svg { width: 100%; height: 100%; }
.dash-chart polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.dash-chart .ly { stroke: #c8cfcb; stroke-dasharray: 4 4; }
.dash-chart .cy { stroke: #005743; }
.dash-list { display: flex; flex-direction: column; gap: 4px; font-size: clamp(8px, .85vw, 11px); }
.dash-list div { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 5px; padding: 1.6% 3%; }
.dash-list em { margin-left: auto; font-style: normal; font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: #d0473d; }
.dot.amber { background: #e0a93b; }
.dot.green { background: #2f9e6a; }

/* ---------- Servizi ---------- */
.included {
  margin-top: 48px;
  padding: 30px clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(212, 175, 106, .06), transparent);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.included-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; }
.included-list li { position: relative; padding-left: 26px; font-size: 15px; }
.included-list li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .service { grid-template-columns: 44px minmax(0, 1fr); }
  .service-time { grid-column: 2; text-align: left; }
  .included-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service-time { grid-column: auto; }
  .included-list { grid-template-columns: 1fr; }
}

/* ---------- Prima e dopo ---------- */
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 1000px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--bg); font-style: normal; font-size: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.ba-label { position: absolute; top: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 9, 8, .75); color: var(--cream); pointer-events: none; }
.ba-label-l { left: 14px; }
.ba-label-r { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + * { outline: none; }
.ba:has(.ba-range:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Come lavoro: linea del tempo ---------- */
.timeline { position: relative; max-width: 760px; padding-left: 56px; display: flex; flex-direction: column; gap: clamp(40px, 7vh, 72px); }
.tl-line { position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.tl-line span { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); transform: scaleY(0); transform-origin: 50% 0; }
.tl-step { position: relative; display: flex; flex-direction: column; gap: 8px; opacity: .45; transform: translateY(12px); transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.tl-step.is-lit { opacity: 1; transform: none; }
.tl-dot { position: absolute; left: -48px; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted-2); background: var(--bg); transition: border-color .4s, background .4s, box-shadow .4s; }
.tl-step.is-lit .tl-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px rgba(212, 175, 106, .15); }
.tl-step .mono { text-transform: uppercase; }
.tl-step.is-lit .mono { color: var(--gold); }
.tl-step h3 { font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.tl-step p { color: var(--muted); max-width: 56ch; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 20px);
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-hi); }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--gold); transition: transform .3s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after, .honest[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { padding: 0 0 24px; max-width: 64ch; color: var(--muted); font-size: 16px; }
.faq-item[open] p { animation: faq-in .35s ease both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contatti ---------- */
.contact {
  position: relative;
  max-width: 1100px;
  margin: clamp(64px, 9vh, 104px) auto clamp(48px, 7vh, 80px);
  margin-left: max(var(--gutter), calc((100% - 1100px) / 2));
  margin-right: max(var(--gutter), calc((100% - 1100px) / 2));
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  background: radial-gradient(ellipse 60% 70% at 90% 100%, rgba(212, 175, 106, .12), transparent 70%);
}
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 6px; }
.btn-wa { font-size: 16px; padding: 16px 28px; }
.contact-phone { font-size: 16px; color: var(--muted); }
.contact-or { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.mail {
  font-weight: 500;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -.02em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  overflow-wrap: anywhere;
  transition: color .25s, border-color .25s;
}
.mail:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
.contact-title { font-size: clamp(48px, 9vw, 132px) !important; line-height: .98 !important; letter-spacing: -.05em !important; }
.quote { margin-top: 18px; font-family: var(--hand); font-size: clamp(22px, 2.6vw, 30px); color: var(--muted); line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}
.site-footer a:hover { color: var(--gold); }

/* ---------- Comparsa allo scroll (solo se il JS è attivo) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .carousel.is-in .card { animation: card-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.js .carousel.is-in .card:nth-child(2) { animation-delay: .08s; }
.js .carousel.is-in .card:nth-child(3) { animation-delay: .16s; }
.js .carousel.is-in .card:nth-child(n+4) { animation-delay: .24s; }
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project-flip .project-media-wrap, .project-flip > .project-media { order: 0; }
  .project-flip .phone { left: auto; right: -6px; }
  .phone { right: -6px; }
}
@media (max-width: 520px) {
  .phone { width: 30%; border-radius: 16px; padding: 4px; }
  .screen-mob { border-radius: 12px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .tab { padding: 8px 11px; }
  .tabs-row { gap: 6px; }
  .round-sm { width: 36px; height: 36px; }
  .timeline { padding-left: 44px; }
  .tl-dot { left: -36px; }
  .tl-line { left: 15px; }
}
/* a 320px "Prima chiamata gratuita" andava su due righe */
@media (max-width: 360px) {
  .btn-wa { padding: 15px 20px; font-size: 15px; gap: 8px; }
  .dash-kpis small { font-size: 6.5px; letter-spacing: -.01em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .carousel.is-in .card { animation: none; }
  .hero-in, .pulse, .marquee-track { animation: none; }
  .tl-step { opacity: 1; transform: none; }
  .tl-line span { transform: none; }
  * { transition-duration: .01ms !important; }
}

/* Aree da toccare più comode su telefono, senza cambiare l'aspetto */
.site-nav a, .wordmark, .project-link, .mail, a[href="#top"] { position: relative; }
.site-nav a::before, .wordmark::before, .project-link::before, .mail::before, a[href="#top"]::before { content: ''; position: absolute; inset: -10px -6px; }

/* ---------- Apertura FK (solo con html.intro, deciso nel <head>) ---------- */
.gate { display: none; }
html.intro { overflow: hidden; } /* blocco dello scorrimento solo su html (sul body rompe la testata) */
html.intro .gate { display: block; position: fixed; inset: 0; z-index: 100; }
html.intro .hero-in, html.intro .marquee-track, html.intro .pulse { animation-play-state: paused; }
.gate-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  display: flex;
  align-items: center;
  background: #000;
  overflow: hidden;
  transition: transform 1.15s cubic-bezier(.76, 0, .24, 1);
}
/* sfondo largo quanto lo schermo, ogni anta ne mostra la sua metà */
.gate-bg { position: absolute; top: 0; bottom: 0; width: 100vw; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 46%, rgba(212, 175, 106, .11), transparent 70%), radial-gradient(ellipse 120% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, .9)); }
.gate-l .gate-bg { left: 0; }
.gate-r .gate-bg { right: 0; }
/* pavimento a griglia in prospettiva che scorre verso chi guarda */
.gate-bg::before { content: ''; position: absolute; left: -50%; right: -50%; bottom: 0; height: 110%;
  background-image: linear-gradient(rgba(212, 175, 106, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 175, 106, .28) 1px, transparent 1px);
  background-size: 64px 64px; background-position: 50% 0;
  transform: perspective(600px) rotateX(48deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%); mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  animation: gate-griglia 2.6s linear infinite; }
/* griglia fine in alto, appena visibile, e una linea di scansione che scende piano */
.gate-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0, rgba(233, 197, 137, .5) 50%, transparent 100%) 0 -2px / 100% 1px no-repeat,
    linear-gradient(rgba(244, 241, 234, .035) 1px, transparent 1px) 0 0 / 100% 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 55%); mask-image: linear-gradient(to bottom, #000 0%, transparent 55%);
  animation: gate-scansione 7s 1.5s ease-in-out infinite; }
.gate-l { left: 0; justify-content: flex-end; }
.gate-r { right: 0; justify-content: flex-start; }
/* lettere sospese: la scena entra, poi fluttua e ogni tanto gira su se stessa */
.gate-stage {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
  font-size: clamp(130px, 20vw, 300px);
  animation: gate-in 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.gate-r .gate-stage { animation-delay: .12s; }
.gate-float {
  display: block;
  perspective: 900px;
  animation: gate-float 6.4s ease-in-out infinite;
}
.gate-r .gate-float { animation-delay: -2.4s; }
/* ombra d'oro sotto ogni lettera: si stringe quando la lettera sale */
.gate-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  top: .86em;
  width: .62em;
  height: .07em;
  margin-left: -.31em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 175, 106, .55), rgba(212, 175, 106, .12) 60%, transparent);
  filter: blur(4px);
  animation: gate-ombra 6.4s ease-in-out infinite;
}
.gate-r .gate-stage::after { animation-delay: -2.4s; }
.gate-letter {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1em;
  line-height: 1;
  letter-spacing: -.06em;
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gate-gira 11s 1.6s cubic-bezier(.45, 0, .2, 1) infinite, gate-luce 7s 1.2s ease-in-out infinite;
}
.gate-f { padding-right: .04em; background-image: linear-gradient(100deg, var(--cream) 38%, #fff 50%, var(--cream) 62%); }
.gate-k { padding-left: .04em; background-image: linear-gradient(100deg, var(--gold) 34%, #f6e2b3 50%, var(--gold) 66%); animation-delay: 2.1s, 1.6s; }
.gate-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: clamp(140px, 26vw, 380px);
  margin: calc(clamp(140px, 26vw, 380px) / -2) 0 0 -.5px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: scaleY(0);
  animation: gate-line 1.2s .35s cubic-bezier(.2, .7, .2, 1) forwards;
  transition: opacity .3s;
}
/* polvere d'oro che sale piano */
.gate-dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; transition: opacity .4s; }
.gate-dust i {
  position: absolute;
  left: var(--x);
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 8px rgba(233, 197, 137, .8);
  opacity: 0;
  animation: gate-polvere var(--t) var(--d) linear infinite;
}
.gate-dust i:nth-child(3n) { width: 2px; height: 2px; }
/* le lettere girano in 3D e salirebbero sopra il pulsante: le ante non prendono i tocchi */
.gate-half { pointer-events: none; }
.gate-btn { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: none; cursor: pointer; }
.gate-btn:focus-visible { outline: none; }
.gate-btn:focus-visible ~ .gate-hint .gate-ring-base { stroke: var(--gold-hi); }
.gate-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(40px, 8vh);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  animation: gate-in 1s 1.1s cubic-bezier(.2, .7, .2, 1) both;
  transition: opacity .3s;
}
/* alone scuro dietro l'invito: la griglia passa sotto senza disturbare */
.gate-hint::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(560px, 120vw); height: 200%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .92), rgba(0, 0, 0, .6) 55%, transparent); z-index: -1; }
.gate-hint { isolation: isolate; }
.gate-hint-brand { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.gate-cta { display: flex; align-items: center; gap: 16px; }
.gate-ring { position: relative; width: 52px; height: 52px; flex: none; }
.gate-ring svg { width: 100%; height: 100%; overflow: visible; animation: gate-gira-anello 2.8s linear infinite; }
.gate-ring circle { fill: none; stroke-width: 1.2; }
.gate-ring-base { stroke: rgba(212, 175, 106, .22); }
.gate-ring-arc { stroke: var(--gold-hi); stroke-linecap: round; stroke-dasharray: 38 126; filter: drop-shadow(0 0 4px rgba(233, 197, 137, .8)); }
/* punto al centro che batte, come un invito a toccare */
.gate-ring i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 12px var(--gold); animation: gate-battito 1.8s ease-in-out infinite; }
.gate-ring i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold-hi); animation: gate-onda 1.8s ease-out infinite; }
.gate-cta-txt { font-family: var(--sans); font-size: clamp(15px, 1.25vw, 17px); font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--cream) 40%, #fff6dc 50%, var(--cream) 60%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gate-luce 4.5s 1.4s ease-in-out infinite; }
.gate-click { display: none; }
@media (hover: hover) and (pointer: fine) { .gate-tap { display: none; } .gate-click { display: inline; } }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gate-line { to { transform: scaleY(1); } }
@keyframes gate-float { 0%, 100% { transform: translateY(-.035em); } 50% { transform: translateY(.035em); } }
@keyframes gate-ombra { 0%, 100% { transform: scale(.72); opacity: .45; } 50% { transform: scale(1.08); opacity: 1; } }
/* oscilla piano, poi un giro intero, poi riposa */
@keyframes gate-gira {
  0% { transform: rotateY(0); }
  18% { transform: rotateY(18deg); }
  40% { transform: rotateY(-18deg); }
  55% { transform: rotateY(0); }
  75% { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes gate-luce { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }
@keyframes gate-polvere {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .5; }
  100% { transform: translate(24px, -105vh); opacity: 0; }
}
@keyframes gate-griglia { to { background-position: 50% 64px; } }
@keyframes gate-scansione { 0% { background-position: 0 -2px, 0 0; } 70%, 100% { background-position: 0 100%, 0 0; } }
@keyframes gate-gira-anello { to { transform: rotate(360deg); } }
@keyframes gate-battito { 0%, 100% { transform: scale(.8); } 50% { transform: scale(1.1); } }
@keyframes gate-onda { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
/* apertura: le due ante scorrono via */
html.opening .gate-l { transform: translateX(-100%); }
html.opening .gate-r { transform: translateX(100%); }
html.opening .gate-line, html.opening .gate-hint, html.opening .gate-dust { opacity: 0; }
html.opening .gate-btn { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .gate-stage, .gate-float, .gate-stage::after, .gate-letter, .gate-line, .gate-hint, .gate-cta-txt, .gate-ring svg, .gate-ring i, .gate-ring i::after, .gate-bg::before, .gate-bg::after { animation: none; }
  .gate-cta-txt { background-position: 50% 0; }
  .gate-letter { background-position: 50% 0; }
  .gate-dust { display: none; }
  .gate-line { transform: none; }
  .gate { transition: opacity .2s; }
  html.opening .gate-l, html.opening .gate-r { transform: none; }
  html.opening .gate { opacity: 0; }
}

/* ---------- Chi c'è dietro: dati su di me, a tessere ---------- */
/* dati su di me come una scheda tecnica: righe sottili che si disegnano in oro */
.spec { margin-top: 36px; border-top: 1px solid var(--line-2); }
.spec div { position: relative; display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 6px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.spec div::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(212, 175, 106, 0)); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 120ms + 200ms); }
.spec.is-in div::after { transform: scaleX(1); }
.spec dt { display: flex; align-items: baseline; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.spec dt .mono { color: var(--muted-2); letter-spacing: .04em; }
.spec dd { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; letter-spacing: -.01em; color: var(--cream); }
.spec dd em { font-style: normal; color: var(--muted); }
.spec-live { display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px 0; border-radius: 50%; background: #6fbf73; box-shadow: 0 0 0 3px rgba(111, 191, 115, .18); vertical-align: middle; }
.js .spec dd, .js .spec dt { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 120ms + 100ms); }
.js .spec.is-in dd, .js .spec.is-in dt { opacity: 1; transform: none; }
@media (max-width: 560px) { .spec div { grid-template-columns: 1fr; padding: 16px 0; } }
/* foto: cornice d'oro sottile sfalsata dietro, ferma */
.about-photo { position: relative; }
/* cornice d'oro tutto intorno alla foto, alla stessa distanza su ogni lato */
.about-photo img { outline: 1px solid rgba(212, 175, 106, .45); outline-offset: clamp(7px, 1vw, 12px); }

/* ---------- Lavori: vetrina, ogni sito come una scheda prodotto dentro un iPhone ---------- */
@keyframes tile-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.vt {
  --vc: clamp(270px, 27vw, 360px); /* larghezza di una scheda */
  margin: 0 calc(-1 * var(--gutter)) clamp(72px, 10vh, 120px);
}
/* una fila che scorre solo di lato; la scheda al centro è accesa */
.vt-binario {
  list-style: none;
  margin: 0;
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  padding: 0 calc((100% - var(--vc)) / 2);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.vt-binario::-webkit-scrollbar { display: none; }
.vt-binario.is-dragging { scroll-snap-type: none; cursor: grabbing; }
@media (hover: hover) and (pointer: fine) { .vt-binario { cursor: grab; } }
.vt-item { flex: 0 0 var(--vc); scroll-snap-align: center; opacity: .38; transition: opacity .4s ease; }
.vt-item.is-active { opacity: 1; }
.vt-card { display: flex; flex-direction: column; height: 100%; color: var(--cream); -webkit-user-drag: none; user-select: none; }
.vt-foto {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  container-type: size;
}
/* luce dorata dietro il telefono e linea d'oro sotto, come un piedistallo */
.vt-foto::before { content: ''; position: absolute; left: 50%; top: 50%; width: 92cqh; height: 92cqh; transform: translate(-50%, -48%); border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 106, .2), rgba(212, 175, 106, .06) 55%, transparent); pointer-events: none; transition: opacity .4s; }
.vt-foto::after { content: ''; position: absolute; left: 50%; bottom: 3.2cqh; width: 62cqh; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, transparent); opacity: .75; }
.vt-item:not(.is-active) .vt-foto::before { opacity: .4; }
.vt-riga { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vt-dove b { font-weight: 500; color: var(--muted-2); margin-right: 10px; }
.vt-stato { flex: none; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vt-stato.is-live { color: #8fd193; border-color: rgba(143, 209, 147, .45); }

/* iPhone: misure in cqh, così resta in proporzione con la scheda */
.vt-iphone {
  position: relative;
  display: block;
  height: 86cqh;
  aspect-ratio: 409 / 863; /* schermo 390×844 + cornice */
  margin-top: -2cqh;
  padding: 1.1cqh;
  border-radius: 6.4cqh;
  background: linear-gradient(145deg, #2a2620, #0e0d0b 42%, #1a1814);
  /* bordo in oro, come il titanio */
  box-shadow:
    inset 0 0 0 .3cqh rgba(236, 202, 142, .55),
    0 0 0 .18cqh #6e5630,
    0 0 6cqh rgba(212, 175, 106, .16),
    0 3cqh 6cqh rgba(0, 0, 0, .6);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
/* tasti laterali */
.vt-iphone::before, .vt-iphone::after { content: ''; position: absolute; width: .45cqh; border-radius: .3cqh; background: #8b6f3f; }
.vt-iphone::before { left: -.45cqh; top: 17%; height: 11%; box-shadow: 0 -7cqh 0 0 #8b6f3f; }
.vt-iphone::after { right: -.45cqh; top: 24%; height: 15%; }
.vt-schermo { display: block; height: 100%; border-radius: 5.4cqh; overflow: hidden; background: #000; }
.vt-schermo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vt-isola { position: absolute; top: 2.3cqh; left: 50%; width: 30%; height: 2.6cqh; transform: translateX(-50%); border-radius: 2cqh; background: #000; }
.vt-card:hover .vt-iphone { transform: translateY(-1.2cqh); }

/* cruscotto del gestionale, versione telefono (dati fittizi) */
.vt-mdash { display: flex; flex-direction: column; gap: 1.4cqh; height: 100%; padding: 6.5cqh 2cqh 2cqh; background: #f6f4ee; color: #1d2a25; font-size: 2.3cqh; }
.vt-md-top { display: flex; justify-content: space-between; align-items: center; font-size: 2.6cqh; color: #005743; }
.vt-md-top em { font-style: normal; font-weight: 400; font-size: 2.1cqh; color: #6b7570; }
.vt-md-kpi { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 1.4cqh 1.8cqh; border-radius: 1.4cqh; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.vt-md-kpi small { grid-column: 1 / -1; font-size: 2.3cqh; font-weight: 500; color: #4f5a55; }
.vt-md-kpi strong { font-size: 4cqh; font-weight: 700; }
.vt-md-kpi em, .vt-md-row em { font-style: normal; font-weight: 700; font-size: 2.2cqh; }
.vt-md-chart { flex: 1; min-height: 0; padding: 1.2cqh; border-radius: 1.4cqh; background: #fff; }
.vt-md-chart svg { display: block; width: 100%; height: 100%; }
.vt-md-chart polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.vt-md-chart .ly { stroke: #c8cfcb; stroke-dasharray: 4 4; }
.vt-md-chart .cy { stroke: #005743; }
.vt-md-row { display: flex; align-items: center; gap: 1.2cqh; padding: 1cqh 1.6cqh; border-radius: 1.2cqh; background: #fff; font-size: 2.1cqh; }
.vt-md-row em { margin-left: auto; }
.vt-md-row .dot { flex: none; }

.vt-info { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.vt-dove { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.vt-titolo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin: 6px 0 10px; }
.vt-nome { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
.vt-tipo { font-size: 14px; color: var(--muted); white-space: nowrap; }
.vt-frase { font-size: 17px; line-height: 1.45; color: var(--cream); margin-bottom: 10px; }
.vt-dettagli { display: grid; gap: 5px; }
.vt-dettagli span { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.vt-dettagli span::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--gold-dim); }
.vt-vai { margin-top: auto; padding-top: 16px; font-size: 15px; font-weight: 500; color: var(--gold); }
.vt-card:hover .vt-vai { color: var(--gold-hi); }
.vt-comandi { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 26px; }
.vt-conta { min-width: 4.5em; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 999px) { .vt { --vc: min(78vw, 380px); } }
/* PC: fila allineata al testo, tutte le schede accese */
@media (min-width: 1000px) {
  .vt-binario { padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2)); scroll-padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2)); }
  .vt-item { scroll-snap-align: start; opacity: 1; }
}
@media (max-width: 520px) {
  .vt-frase { font-size: 16px; }
  .vt-dettagli span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-item, .vt-iphone { transition: none; }
}

/* ---------- Servizi: esploratore (lista a sinistra, dettaglio a destra) ---------- */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line-2);
}
.svc-item { display: contents; }
.svc-head {
  grid-column: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 24px 6px 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: none;
  color: var(--muted-2);
  text-align: left;
  cursor: pointer;
  transition: color .3s, padding .3s;
}
.svc-head .mono { color: inherit; }
.svc-name { font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.svc-head:hover { color: var(--cream); }
.svc-item.is-open .svc-head { color: var(--cream); padding-left: 10px; }
.svc-item.is-open .svc-head .mono { color: var(--gold); }
.svc-plus { position: relative; width: 14px; height: 14px; align-self: center; }
.svc-plus::before, .svc-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--gold); transition: transform .3s; }
.svc-plus::after { transform: rotate(90deg); }
.svc-item.is-open .svc-plus::after { transform: rotate(0); }
.svc-body {
  grid-column: 2;
  grid-row: 1 / span 5;
  display: none;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  margin-top: 28px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(90% 80% at 100% 0%, rgba(212, 175, 106, .12), transparent 60%), linear-gradient(180deg, var(--card), var(--bg));
}
.svc-item.is-open .svc-body { display: flex; animation: svc-in .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes svc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.svc-big { font-size: clamp(30px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.svc-desc { color: var(--muted); font-size: 17px; max-width: 52ch; }
.svc-points { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.svc-points li { position: relative; padding-left: 26px; font-size: 15px; }
.svc-points li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.svc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.svc-foot b { color: var(--cream); font-weight: 500; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
  .svc-item { display: block; }
  .svc-body { grid-column: auto; grid-row: auto; margin: 0 0 18px; }
}

/* "Sempre incluso": le voci entrano una dopo l'altra */
.js .included.is-in .included-list li { animation: tile-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.js .included.is-in .included-list li:nth-child(2) { animation-delay: .07s; }
.js .included.is-in .included-list li:nth-child(3) { animation-delay: .14s; }
.js .included.is-in .included-list li:nth-child(4) { animation-delay: .21s; }
.js .included.is-in .included-list li:nth-child(5) { animation-delay: .28s; }
.js .included.is-in .included-list li:nth-child(6) { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .js .included.is-in .included-list li, .svc-item.is-open .svc-body { animation: none; }
}

/* ---------- Pulsante "Clicca per scorrere" sotto le anteprime ---------- */
.scroll-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(212, 175, 106, .06);
  color: var(--gold-hi);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.scroll-btn:hover { border-color: var(--gold); background: rgba(212, 175, 106, .12); }
.scroll-btn[aria-pressed="true"] { color: var(--muted); border-color: var(--line); background: none; }
.scroll-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #0a0908; font-size: 12px; }
.scroll-btn[aria-pressed="true"] .scroll-ico { background: var(--bg-3); color: var(--muted); font-size: 8px; letter-spacing: -1px; }
.project-media-wrap, .hero-proof { display: flex; flex-direction: column; }
.project-media-wrap > .scroll-btn, .hero-proof > .scroll-btn { display: inline-flex; width: max-content; }

/* ---------- Testo solo per chi usa lo screen reader ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Dopo i 30 giorni (Sempre incluso) ---------- */
.included-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Il confronto: le alternative, Eff$Kappa a destra ---------- */
.compare-why .section-head h2 em { font-style: normal; display: block; }
.cmp-punti { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; padding: 0; }
.cmp-punti li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; color: var(--cream); }
.cmp-punti li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cmp-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.cmp-switch .mono { margin-right: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.cmp-btn { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: 500 15px/1 var(--sans); cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.cmp-btn:hover { color: var(--cream); }
.cmp-btn.is-active { border-color: var(--gold); color: var(--gold-hi); background: rgba(212, 175, 106, .08); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp-table thead td { width: 20%; }
.cmp-table th, .cmp-table td { position: relative; text-align: left; vertical-align: top; padding: 16px 16px; border-bottom: 1px solid var(--line-2); transition: opacity .35s, background .25s; }
.cmp-table thead th { padding-top: 22px; padding-bottom: 18px; border-bottom-color: var(--line); vertical-align: bottom; }
.cmp-nome { display: block; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.02em; color: var(--cream); }
.cmp-sotto { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .04em; color: var(--muted-2); }
.cmp-badge { display: inline-block; margin-bottom: 8px; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #0a0908; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cmp-table tbody th { font-weight: 500; outline: none; }
.cmp-voce { display: block; font-size: 16px; line-height: 1.35; color: var(--cream); }
.cmp-table td { font-size: 15px; line-height: 1.5; color: var(--muted); }
.cmp-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted-2); }
.cmp-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp-txt { display: block; }
/* spiegazione della riga: compare passandoci sopra o con la tastiera */
.cmp-tip { position: absolute; left: 12px; top: calc(100% - 8px); z-index: 3; width: min(300px, 60vw); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--cream); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.cmp-table tbody tr:hover > *, .cmp-table tbody tr:focus-within > * { background: rgba(244, 241, 234, .03); }
.cmp-table tbody tr:hover .cmp-tip, .cmp-table tbody tr:focus-within .cmp-tip { opacity: 1; transform: none; }
.cmp-table tbody th:focus-visible .cmp-voce { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
/* colonna Eff$Kappa: bordi d'oro e spunte piene, si accende per ultima */
.cmp-table .cmp-col-me { border-left: 1px solid rgba(212, 175, 106, .4); border-right: 1px solid rgba(212, 175, 106, .4); color: var(--cream); background-color: rgba(212, 175, 106, .06); }
.cmp-table thead .cmp-col-me { border-top: 1px solid rgba(212, 175, 106, .6); border-radius: 16px 16px 0 0; }
.cmp-table thead .cmp-col-me .cmp-nome { color: var(--gold-hi); }
.cmp-table tbody tr:last-child .cmp-col-me { border-bottom: 1px solid rgba(212, 175, 106, .6); border-radius: 0 0 16px 16px; }
.cmp-si .cmp-ico { border: 0; background: var(--gold); color: #0a0908; box-shadow: 0 0 0 4px rgba(212, 175, 106, .14); }
.cmp-no .cmp-ico { color: #b0a9a0; }
/* selettore: la colonna scelta resta accanto a Eff$Kappa, le altre si attenuano */
.cmp-wrap[data-vs="ag"] :is(.cmp-col-fdt, .cmp-col-con),
.cmp-wrap[data-vs="fdt"] :is(.cmp-col-ag, .cmp-col-con),
.cmp-wrap[data-vs="con"] :is(.cmp-col-ag, .cmp-col-fdt) { opacity: .4; }
.cmp-frase { margin-top: 26px; max-width: 760px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; letter-spacing: -.01em; color: var(--cream); }
/* quando non sono la scelta giusta */
.honest { margin-top: 36px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line-2); }
.honest summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 500; color: var(--cream); }
.honest summary::-webkit-details-marker { display: none; }
.honest ul { margin: 16px 0 12px; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.honest p { font-size: 15px; color: var(--cream); }

/* entrata: prima le intestazioni, poi le righe una alla volta, Eff$Kappa si accende per ultima */
.js .cmp-table thead th:not(.cmp-col-me) { opacity: 0; transition: opacity .5s ease .1s; }
.js .cmp-table tbody tr > :not(.cmp-col-me) { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1), background .25s; transition-delay: calc(var(--r) * 90ms + 250ms); }
.js .cmp-table .cmp-col-me { opacity: 0; transition: opacity .6s ease 1.1s, background .25s; }
.js .cmp.is-in .cmp-table thead th, .js .cmp.is-in .cmp-table tbody tr > *, .js .cmp.is-in .cmp-table .cmp-col-me { opacity: 1; transform: none; }
.js .cmp.is-in .cmp-wrap[data-vs="ag"] :is(.cmp-col-fdt, .cmp-col-con),
.js .cmp.is-in .cmp-wrap[data-vs="fdt"] :is(.cmp-col-ag, .cmp-col-con),
.js .cmp.is-in .cmp-wrap[data-vs="con"] :is(.cmp-col-ag, .cmp-col-fdt) { opacity: .4; transition-delay: 0s; }
.js .cmp-ico path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s ease; transition-delay: calc(var(--r, 0) * 90ms + 500ms); }
.js .cmp-col-me .cmp-ico path { transition-delay: calc(var(--r, 0) * 70ms + 1.3s); }
.js .cmp.is-in .cmp-ico path { stroke-dashoffset: 0; }
/* luce dorata che attraversa una volta la colonna Eff$Kappa */
@keyframes cmp-luce { from { background-position: 0 -120%; } to { background-position: 0 220%; } }
.js .cmp.is-in .cmp-table .cmp-col-me { background-image: linear-gradient(180deg, transparent 30%, rgba(236, 202, 142, .2) 50%, transparent 70%); background-size: 100% 300%; background-repeat: no-repeat; background-position: 0 -120%; animation: cmp-luce 1.1s ease-in-out 2.3s 1 both; animation-delay: calc(2.3s + var(--r, -1) * 70ms); }

/* telefono: niente tabella larga, si confronta Eff$Kappa con un'alternativa alla volta */
@media (max-width: 767px) {
  .cmp-btn-all { display: none; }
  .cmp-switch .mono { width: 100%; }
  .cmp-wrap[data-vs="all"] :is(.cmp-col-fdt, .cmp-col-con),
  .cmp-wrap[data-vs="ag"] :is(.cmp-col-fdt, .cmp-col-con),
  .cmp-wrap[data-vs="fdt"] :is(.cmp-col-ag, .cmp-col-con),
  .cmp-wrap[data-vs="con"] :is(.cmp-col-ag, .cmp-col-fdt) { display: none; }
  .cmp-table, .cmp-table thead, .cmp-table tbody { display: block; }
  .cmp-table tr { display: grid; grid-template-columns: 1fr 1fr; }
  .cmp-table thead td { display: none; }
  .cmp-table th, .cmp-table td { padding: 12px; }
  .cmp-table tbody th { grid-column: 1 / -1; padding: 18px 2px 10px; border-bottom: 0; background: none !important; }
  .cmp-tip { position: static; width: auto; margin-top: 6px; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; transform: none; font-size: 14px; color: var(--muted); }
  .cmp-table tbody td { border-top: 1px solid var(--line-2); border-bottom: 0; }
  .cmp-table tbody tr:last-child td { border-bottom: 1px solid var(--line-2); }
  .cmp-table tbody .cmp-col-me { border-radius: 0; }
  .cmp-table tbody tr:last-child .cmp-col-me { border-radius: 0 0 14px 14px; border-bottom-color: rgba(212, 175, 106, .6); }
  .cmp-table td::before { content: attr(data-who); display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
  .cmp-table td.cmp-col-me::before { color: var(--gold); }
  .cmp-table thead { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cmp-table thead th, .js .cmp-table tbody tr > *, .js .cmp-table .cmp-col-me { opacity: 1; transform: none; transition: none; animation: none; }
  .js .cmp-ico path { stroke-dashoffset: 0; transition: none; }
}

/* ---------- Chi c'è dietro: titolo parola per parola, card, tecnologie, caso studio ---------- */
.js [data-words] .w { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 70ms); }
.js .is-in [data-words] .w { opacity: 1; transform: none; }
.about-sub { margin: clamp(40px, 6vh, 64px) 0 18px; }
.card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 28px rgba(212, 175, 106, .12); }
.stack { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* due gruppi uguali, ognuno più largo dello schermo: spostando di metà il giro è continuo */
.stack-band { max-width: var(--max); margin: clamp(48px, 7vh, 80px) auto 0; padding: 0 var(--gutter); box-sizing: content-box; }
.stack-band .stack { margin-top: 0; }
.stack-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.stack-group { display: flex; gap: 10px; padding-right: 10px; }
.stack:hover .stack-track { animation-play-state: paused; }
.stack span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); white-space: nowrap; }
.speed { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.speed svg { width: 40px; height: 40px; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.speed circle { stroke: var(--line-2); }
.speed .speed-fill { stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s ease .3s; }
.speed.is-in .speed-fill { stroke-dashoffset: calc(100 - var(--v)); }
.speed b { color: var(--cream); font-weight: 500; }
.case { margin-top: clamp(48px, 7vh, 80px); padding: clamp(22px, 3vw, 36px); border-radius: 20px; border: 1px solid var(--line-2); background: var(--bg-2); }
.case-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; margin-bottom: 22px; }
.case-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.case-steps { display: grid; gap: 18px; }
.case-steps .mono { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.case-steps p { margin-top: 4px; color: var(--cream); }
.case-media { position: relative; display: block; padding-bottom: 24px; }
.case-quote { margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--gold); }
.case-quote footer { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-words] .w { opacity: 1; transform: none; transition: none; }
  .js .spec dd, .js .spec dt { opacity: 1; transform: none; transition: none; }
  .spec div::after { transform: scaleX(1); transition: none; }
  .stack-track { animation: none; width: auto; }
  .stack-group { flex-wrap: wrap; }
  .stack-track [aria-hidden] { display: none; }
  .speed .speed-fill { transition: none; }
}

/* ---------- Lavori: un settore alla volta ---------- */
.lavori-dettaglio { scroll-margin-top: calc(var(--header) + 12px); }
.filters { align-items: center; margin-bottom: 48px; }
.filters-label { width: 100%; margin-bottom: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.js .category:not(.is-on) { display: none; }
@keyframes cat-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .category.is-on { animation: cat-in .5s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .js .category.is-on { animation: none; } }

/* ---------- Recensione di Thomas (Hedoné), con il messaggio originale ---------- */
.review-item { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
/* carosello: una recensione per volta; spazio sopra e sotto per virgolette, cornice e ombra */
.review .carousel-track.review-track { grid-auto-columns: 100%; gap: 48px; padding: 8px 0 48px; }
.review-item { scroll-snap-align: start; padding-top: clamp(40px, 4.5vw, 60px); }
.review-main { position: relative; margin: 0; }
.review-main::before { content: '«'; position: absolute; top: -.72em; right: 0; font-size: clamp(64px, 6.5vw, 92px); line-height: 1; color: var(--gold); opacity: .18; pointer-events: none; }
.review-text { margin: 0; display: grid; gap: 16px; }
.review-text p { color: var(--muted); font-size: clamp(17px, 1.55vw, 21px); line-height: 1.6; text-wrap: pretty; }
.review-text mark { background: none; color: var(--cream); font-weight: 500; box-shadow: inset 0 -1px 0 var(--gold); }
.review-text .review-end { color: var(--gold-hi); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.review-main figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-main figcaption b { color: var(--cream); font-weight: 500; font-size: 18px; }
.review-main figcaption > span { color: var(--muted); font-size: 15px; }
.review-main figcaption .project-link { align-self: flex-start; margin-top: 12px; }
/* lo screenshot, leggermente inclinato come un foglio appoggiato */
.review-proof { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 340px; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; }
.review-proof img { width: 100%; height: auto; border-radius: 18px; outline: 1px solid rgba(212, 175, 106, .45); outline-offset: 8px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); transform: rotate(2deg); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.review-proof:hover img, .review-proof:focus-visible img { transform: rotate(0) scale(1.02); }
.review-proof-label { text-align: center; font-size: 13px; color: var(--gold); letter-spacing: .04em; }
.proof-dialog { max-width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: transparent; overflow: visible; }
.proof-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.proof-dialog img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 32px); object-fit: contain; border-radius: 18px; }
.proof-close { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .7); }
@media (max-width: 860px) {
  .review-item { grid-template-columns: 1fr; }
  .review-proof { max-width: 210px; }
}
@media (prefers-reduced-motion: reduce) { .review-proof img { transition: none; } }

/* ---------- Vetrina: lavoro in arrivo (nessuna schermata, solo uno schermo astratto) ---------- */
.vt-presto { position: relative; display: grid; place-items: center; align-content: center; gap: 2.4cqh; background: radial-gradient(circle at 30% 25%, #2a2116, #0b0907 70%); }
.vt-presto i { position: absolute; border-radius: 50%; filter: blur(2.4cqh); opacity: .55; animation: presto-nuvola 9s ease-in-out infinite alternate; }
.vt-presto i:nth-child(1) { width: 26cqh; height: 26cqh; left: -6cqh; top: 8cqh; background: rgba(212, 175, 106, .5); }
.vt-presto i:nth-child(2) { width: 20cqh; height: 20cqh; right: -5cqh; top: 34cqh; background: rgba(244, 241, 234, .18); animation-delay: -3s; }
.vt-presto i:nth-child(3) { width: 22cqh; height: 22cqh; left: 6cqh; bottom: 2cqh; background: rgba(212, 175, 106, .3); animation-delay: -6s; }
.vt-presto b { position: relative; font-weight: 500; font-size: 1.9cqh; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); }
.vt-presto-barra { position: relative; width: 18cqh; height: .35cqh; border-radius: 1cqh; background: rgba(244, 241, 234, .15); overflow: hidden; }
.vt-presto-barra span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: var(--gold-hi); animation: presto-barra 2.4s ease-in-out infinite; }
.vt-stato.is-presto { color: var(--gold-hi); border-color: rgba(212, 175, 106, .5); }
.vt-item-presto .vt-card { cursor: default; }
.vt-item-presto .vt-card:hover .vt-iphone { transform: none; }
.vt-vai-presto, .vt-item-presto .vt-card:hover .vt-vai { color: var(--muted); }
@keyframes presto-nuvola { to { transform: translate(3cqh, -4cqh) scale(1.15); } }
@keyframes presto-barra { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .vt-presto i, .vt-presto-barra span { animation: none; } }

/* ---------- Telefono e tablet: ogni cosa da toccare alta almeno 44 px (l'aspetto non cambia) ---------- */
@media (max-width: 1024px), (pointer: coarse) {
  .site-header { padding-top: 12px; padding-bottom: 12px; } /* link più alti: la testata resta alta come prima */
  .wordmark, .site-nav a, .site-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .hero-link { display: inline-flex; align-items: flex-end; min-height: 44px; }
  .project-link, .mail { display: inline-flex; align-items: flex-end; min-height: 44px; padding-bottom: 3px; }
  .round-sm { width: 44px; height: 44px; }
  .tab, .cmp-btn { min-height: 44px; }
  .carousel-dots button { width: 44px; height: 44px; }
}
/* schede delle sezioni su telefono: griglia regolare, mai una sola scheda a capo */
@media (max-width: 600px) {
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1; }
  .tabs-4 { grid-template-columns: repeat(2, 1fr); }
  .tabs-2 { grid-template-columns: repeat(2, 1fr); }
  .tab { padding: 8px 6px; white-space: nowrap; text-align: center; }
}

/* ---------- Prezzi di partenza nei servizi ---------- */
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.svc-nota { max-width: 62ch; margin: clamp(22px, 3vh, 32px) 0 0; padding: 16px 20px; border-left: 2px solid var(--gold); background: rgba(212, 175, 106, .06); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.svc-nota b { color: var(--cream); font-weight: 500; }
.svc-meta .mono:first-child b { color: var(--gold-hi); font-size: 15px; }

/* recensione verificata: bollino accanto al nome, il metodo è spiegato nel sottotitolo della sezione */
.review-chi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.review-ok { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; border: 1px solid rgba(143, 209, 147, .45); color: #8fd193; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.review-ok svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.review-come { color: var(--cream); font-weight: 500; }

/* salta al contenuto: compare solo con la tastiera */
.salta { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--gold); color: #0a0908; font-weight: 500; transition: top .2s; }
.salta:focus { top: 12px; }
main:focus { outline: none; }
/* citazione finale con l'attribuzione */
.quote-wrap { margin: 0; }
.quote-by { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: var(--muted-2); }
a.contact-phone { color: inherit; border-bottom: 1px solid var(--gold-dim); }
a.contact-phone:hover { color: var(--gold-hi); }
@media (max-width: 1024px), (pointer: coarse) { a.contact-phone { display: inline-flex; align-items: flex-end; min-height: 44px; } }

/* Chi c'è dietro più compatta: titolo più piccolo degli altri, la foto parte in alto */
.about .section-head h2 { font-size: clamp(30px, 3.4vw, 52px); }
.about-text .section-head { margin-bottom: 20px; }

/* ---------- Chi c'è dietro: punti espandibili (come le Domande) ---------- */
.spec-x { margin-top: 28px; border-top: 1px solid var(--line-2); }
.spec-item { border-bottom: 1px solid var(--line-2); }
.spec-item summary { display: grid; grid-template-columns: 28px minmax(110px, 150px) 1fr 14px; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0; cursor: pointer; list-style: none; }
.spec-item summary::-webkit-details-marker { display: none; }
.spec-n { color: var(--muted-2); font-size: 13px; }
.spec-t { color: var(--gold); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.spec-breve { color: var(--cream); font-size: clamp(15px, 1.2vw, 17px); }
.spec-item summary:hover .spec-breve { color: var(--gold-hi); }
.spec-item[open] .faq-icon::after { transform: rotate(0deg); }
.spec-item p { margin: 0 0 16px; padding-left: calc(28px + 14px); color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 64ch; }
@media (max-width: 560px) {
  .spec-item summary { grid-template-columns: 24px 1fr 14px; gap: 4px 10px; }
  .spec-t { grid-column: 2; }
  .spec-breve { grid-column: 2; grid-row: 2; font-size: 15px; }
  .spec-item summary .faq-icon { grid-column: 3; grid-row: 1 / span 2; }
  .spec-item p { padding-left: 34px; }
}
/* telefoni stretti: le schede si toccano direttamente, le frecce accanto non ci stanno */
@media (max-width: 400px) { .tabs-row > .round-sm { display: none; } .tabs { flex: 1; } }
