/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── TOKENS ── */
:root {
  --bg:      #0c0b0e;
  --s1:      #141217;
  --s2:      #1b1921;
  --s3:      #222029;
  --acc:     #e8491c;
  --acc2:    #f5c842;
  --txt:     #e6dfd6;
  --muted:   #7a7470;
  --dim:     #4a4642;
  --border:  rgba(230, 223, 214, 0.07);
  --grad:    linear-gradient(135deg, #e8491c 0%, #f5c842 100%);
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  line-height: 1.65;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--acc); border-radius: 2px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1  { font-size: clamp(3.8rem, 9vw, 8.5rem); }
h2  { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h3  { font-size: clamp(1.9rem, 3vw, 2.8rem); }
h4  { font-size: 1.1rem; letter-spacing: 0; }

h1 em, h2 em { font-style: normal; color: var(--acc); }

/* ── UTILITIES ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc2);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--acc2);
  display: block;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--acc);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(232, 73, 28, 0.38);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--txt);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-line:hover {
  border-color: rgba(232, 73, 28, 0.45);
  background: rgba(232, 73, 28, 0.07);
}

/* ── NAV ── */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  height: 68px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 11, 14, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
#nav.scrolled { background: rgba(12, 11, 14, 0.95); }

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--acc);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--txt); }

.nav-pill {
  background: var(--acc) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 600 !important;
}
.nav-pill:hover { opacity: 0.9; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* ── MOBILE DRAWER ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 996;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--s2);
  border-left: 1px solid var(--border);
  z-index: 997;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0, 0.15, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: all;
}
.nav-open .nav-drawer {
  transform: translateX(0);
}
.nav-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer header */
.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 68px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-drawer-close {
  width: 36px;
  height: 36px;
  background: var(--s3);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.nav-drawer-close:hover { border-color: rgba(232,73,28,0.4); background: rgba(232,73,28,0.08); }
.nav-drawer-close span {
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: var(--txt);
  border-radius: 1px;
}
.nav-drawer-close span:nth-child(1) { transform: rotate(45deg); }
.nav-drawer-close span:nth-child(2) { transform: rotate(-45deg); }

/* Drawer links */
.nav-drawer-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 24px;
  gap: 0;
}
.nav-drawer-links a {
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--txt);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s, gap 0.2s;
  opacity: 0;
  transform: translateX(24px);
}
.nav-drawer-links a::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-drawer-links a:last-child { border-bottom: none; }
.nav-drawer-links a:hover { color: var(--acc); gap: 14px; }
.nav-drawer-links a:hover::before { opacity: 1; }

/* Staggered link entrance when drawer opens */
.nav-open .nav-drawer-links a {
  animation: drawerLink 0.32s ease both;
}
.nav-open .nav-drawer-links a:nth-child(1) { animation-delay: 0.12s; }
.nav-open .nav-drawer-links a:nth-child(2) { animation-delay: 0.18s; }
.nav-open .nav-drawer-links a:nth-child(3) { animation-delay: 0.24s; }
.nav-open .nav-drawer-links a:nth-child(4) { animation-delay: 0.30s; }
@keyframes drawerLink {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Drawer footer */
.nav-drawer-bottom {
  padding: 24px 28px 44px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav-drawer-social {
  display: flex;
  gap: 20px;
}
.nav-drawer-social a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-drawer-social a:hover { color: var(--txt); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  column-gap: 48px;
  padding: 88px 64px 80px;
  overflow: hidden;
}

/* ── VISUALE SINISTRA — card stack ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.card-stack {
  position: relative;
  width: 420px;
  height: 460px;
}

/* card base */
.hcard {
  position: absolute;
  width: 300px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 26px 24px;
}

.hcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hcard-ico  { font-size: 1.5rem; }
.hcard-tag  {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(230,223,214,0.07);
  color: var(--muted);
}
.hcard-tag--acc {
  background: rgba(232,73,28,0.15);
  color: var(--acc);
}

.hcard-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}
.hcard-val {
  font-size: 0.75rem;
  color: var(--dim);
  font-weight: 500;
}

.hcard-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}
.hcard-fill {
  height: 100%;
  background: var(--acc);
  border-radius: 2px;
}

/* finte righe UI nella card front */
.hcard-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.hcard-preview span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}
.hcard-preview span:nth-child(1) { width: 100%; }
.hcard-preview span:nth-child(2) { width: 72%; }
.hcard-preview span:nth-child(3) { width: 50%; }

/* posizionamento delle 3 card */
.hc-back {
  bottom: 0;
  right: 10px;
  opacity: 0.5;
  z-index: 1;
  animation: floatBack 6s ease-in-out infinite alternate;
}
.hc-mid {
  bottom: 90px;
  left: 0;
  opacity: 0.78;
  z-index: 2;
  animation: floatMid 7s ease-in-out infinite alternate;
  animation-delay: -2s;
}
.hc-front {
  top: 0;
  left: 30px;
  opacity: 1;
  z-index: 3;
  animation: floatFront 5s ease-in-out infinite alternate;
  animation-delay: -1s;
}

@keyframes floatBack {
  from { transform: rotate(6deg) translateY(0px); }
  to   { transform: rotate(5deg) translateY(-14px); }
}
@keyframes floatMid {
  from { transform: rotate(-4deg) translateY(0px); }
  to   { transform: rotate(-3deg) translateY(-10px); }
}
@keyframes floatFront {
  from { transform: rotate(1.5deg) translateY(0px); }
  to   { transform: rotate(0.5deg) translateY(-8px); }
}

/* ── TESTO DESTRA ── */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eye {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  margin-bottom: 20px;
  line-height: 1.08;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* mini statistiche */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hstat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hstat-n {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--txt);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hstat-l {
  font-size: 0.72rem;
  color: var(--dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hstat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--acc), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── MARQUEE ── */
.marquee-outer {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--s1);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marquee-track .sep { color: var(--acc); opacity: 0.5; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SERVICES SECTION ── */
#servizi {
  padding: 140px 52px 60px;
  max-width: 1260px;
  margin: 0 auto;
}

.s-intro {
  text-align: center;
  margin-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

.s-intro .label { justify-content: center; }
.s-intro .label::before { display: none; }

.s-intro h2 {
  max-width: 660px;
  margin-top: 12px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.s-intro-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
  margin-top: 18px;
  margin-bottom: 40px;
}


.s-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.s-row.s-flip .s-text { order: 2; }
.s-row.s-flip .s-vis  { order: 1; }

.s-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.s-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--acc);
  opacity: 0.25;
  letter-spacing: -0.04em;
}
.s-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc2);
}

.s-text h3 { margin-bottom: 18px; }

.s-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  max-width: 420px;
  margin-bottom: 28px;
}

.s-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s-chips span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(230, 223, 214, 0.07);
  border-left: 2px solid rgba(85, 239, 196, 0.55);
  color: var(--muted);
}

.s-vis {
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-vis canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── CHAT DEMO ── */
.chat-demo {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.chat-msg {
  display: flex;
  opacity: 0;
  animation: msgIn 0.4s ease forwards;
}
.chat-msg span {
  padding: 11px 16px;
  border-radius: 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 80%;
}
.chat-msg.bot  { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot  span { background: var(--s3); color: var(--txt); border-bottom-left-radius: 4px; }
.chat-msg.user span { background: var(--acc); color: #fff; border-bottom-right-radius: 4px; }

.chat-card {
  background: var(--s3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  opacity: 0;
  animation: msgIn 0.4s ease forwards;
}
.cc-title { font-size: 0.85rem; color: var(--txt); margin-bottom: 12px; }
.cc-btns { display: flex; gap: 8px; }
.cc-btns button {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--acc);
  color: #fff;
}
.cc-btns button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.chat-typing {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  background: var(--s3);
  border-radius: 18px;
  width: fit-content;
  opacity: 0;
  animation: msgIn 0.4s ease forwards;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingDot 1.4s ease infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.a1 { animation-delay: 0.4s; }
.a2 { animation-delay: 1.2s; }
.a3 { animation-delay: 2.0s; }
.a4 { animation-delay: 2.8s; }
.a5 { animation-delay: 3.6s; }

/* ── PHONE MOCKUP ── */
.phone-mock {
  width: 220px;
  background: var(--s2);
  border: 1px solid rgba(230,223,214,0.12);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  position: relative;
}
.phone-mock::before {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  background: var(--s3);
  border-radius: 3px;
  margin: 0 auto 10px;
}

.phone-screen {
  background: var(--s1);
  border-radius: 26px;
  overflow: hidden;
  height: 340px;
}

.phone-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: phoneFeed 8s ease-in-out infinite alternate;
}
@keyframes phoneFeed {
  from { transform: translateY(0); }
  to   { transform: translateY(-200px); }
}

.feed-card {
  padding: 12px;
  background: var(--s1);
  border-bottom: 1px solid var(--border);
}
.fc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  flex-shrink: 0;
}
.fc-avatar.av2 { background: linear-gradient(135deg, #48dbfb, #54a0ff); }
.fc-avatar.av3 { background: linear-gradient(135deg, #a29bfe, #fd79a8); }
.fc-name { font-size: 0.7rem; font-weight: 600; flex: 1; }
.fc-follow {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid var(--acc);
  border-radius: 100px;
  color: var(--acc);
}

.fc-thumb {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.thumb-1 { background: linear-gradient(135deg, #e8491c33, #f5c84233); }
.thumb-2 { background: linear-gradient(135deg, #48dbfb22, #54a0ff33); }
.thumb-3 { background: linear-gradient(135deg, #a29bfe33, #fd79a833); }

.fc-stats { display: flex; gap: 10px; }
.fc-stats span { font-size: 0.65rem; color: var(--muted); }

.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 4px;
  font-size: 0.9rem;
}
.phone-nav .active { color: var(--acc); }

/* ── FIGMA MOCK ── */
.figma-mock {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  background: #1e1c22;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.fm-bar {
  height: 40px;
  background: #2c2a32;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fm-logo { color: var(--acc); font-size: 16px; line-height: 1; }
.fm-tools { display: flex; gap: 4px; flex: 1; }
.fmt-btn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: rgba(230,223,214,0.45);
  font-size: 12px;
  cursor: default;
}
.fmt-btn.fmt-active { background: var(--acc); color: #fff; }
.fm-user {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--acc2);
  color: #0c0b0e;
  font-weight: 700;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.fm-body { display: flex; height: 240px; }
.fm-layers {
  width: 118px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.fml-title {
  padding: 8px 10px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(230,223,214,0.3);
}
.fml-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  margin: 1px 4px;
  border-radius: 4px;
  color: rgba(230,223,214,0.55);
  cursor: default;
  font-size: 10.5px;
  white-space: nowrap;
}
.fml-item.fml-active { background: rgba(232,73,28,0.18); color: var(--txt); }
.fml-item.fml-indent { padding-left: 18px; font-size: 10px; }
.fml-ico { color: rgba(232,73,28,0.65); flex-shrink: 0; font-style: normal; }
.fm-canvas {
  flex: 1;
  background: #141217;
  display: grid;
  place-items: center;
  padding: 14px;
}
.fmc-frame {
  width: 100%;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
}
.fmc-hero {
  background: #f6f5f3;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-bottom: 1px solid #e8e6e2;
}
.fmc-line {
  height: 6px;
  border-radius: 3px;
  background: #d8d6d2;
}
.fmc-line.fw  { width: 78%; background: #b8b5b0; }
.fmc-line.med { width: 52%; }
.fmc-line.sm  { width: 68%; }
.fmc-btn {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--acc);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  margin-top: 3px;
}
.fmc-cards {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
}
.fmc-card {
  flex: 1;
  background: #f4f3f0;
  border-radius: 4px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.fmc-card.fmc-card--sel {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
  animation: fmPulse 2s ease-in-out infinite;
}
@keyframes fmPulse {
  0%, 100% { outline-color: var(--acc); }
  50%       { outline-color: var(--acc2); }
}
.fmc-card-ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc2) 100%);
  opacity: 0.65;
}

/* ── PROCESS ── */
#processo {
  padding: 120px 52px;
  background: var(--s1);
}

.pr-wrap { max-width: 1260px; margin: 0 auto; }

.pr-intro { margin-bottom: 80px; }
.pr-intro h2 { margin-top: 8px; max-width: 560px; }
.pr-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 460px;
}

/* Timeline */
.pr-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pr-line {
  position: absolute;
  top: 31px;
  left: calc(12.5% + 10px);
  right: calc(12.5% + 10px);
  height: 1px;
  background: linear-gradient(to right, rgba(232,73,28,0.5), rgba(245,200,66,0.4), rgba(232,73,28,0.5));
  opacity: 0.35;
  pointer-events: none;
}

.pr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.pr-dot {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid rgba(232,73,28,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pr-dot span {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--acc);
  letter-spacing: 0.06em;
}
.pr-step:hover .pr-dot {
  border-color: var(--acc);
  box-shadow: 0 0 0 8px rgba(232,73,28,0.08);
}
.pr-dot--acc {
  background: var(--acc);
  border-color: var(--acc);
  box-shadow: 0 8px 24px rgba(232,73,28,0.35);
}
.pr-dot--acc span { color: #fff; }

.pr-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  width: 100%;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pr-step:hover .pr-card {
  transform: translateY(-5px);
  border-color: rgba(232,73,28,0.2);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}
.pr-card--acc {
  border-color: rgba(232,73,28,0.3);
  background: linear-gradient(135deg, rgba(232,73,28,0.08), var(--s2));
}

.pr-ico {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.pr-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.pr-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.72;
}

/* ── STACK ── */
#stack {
  padding: 120px 52px;
  background: var(--bg);
}

.sk-wrap { max-width: 1260px; margin: 0 auto; }

.sk-intro { margin-bottom: 64px; }
.sk-intro h2 { margin-top: 8px; }

.sk-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sk-group {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.sk-group:hover {
  transform: translateY(-5px);
  border-color: rgba(232,73,28,0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.sk-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sk-head span { font-size: 1.4rem; }
.sk-head h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.01em;
}

.sk-tags {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sk-tags span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 14px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sk-tags span:hover {
  color: var(--txt);
  border-color: rgba(232,73,28,0.28);
  background: rgba(232,73,28,0.06);
}

/* ── STACK BAND ── */
.stack-band {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 52px;
  background: var(--s1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.stack-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.stack-label::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--border);
  margin-left: 24px;
  vertical-align: middle;
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-chips span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--s2);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.stack-chips span:hover {
  color: var(--txt);
  border-color: rgba(232,73,28,0.3);
  background: rgba(232,73,28,0.07);
}

/* ── CTA ── */
#contatto {
  background: var(--s1);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.cta2-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(232,73,28,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta2-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta2-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  margin-top: 10px;
  line-height: 1.0;
}
.cta2-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
  margin-top: 4px;
}
.cta2-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.cta2-btn-main {
  padding: 16px 32px;
  background: var(--acc);
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 8px 28px rgba(232,73,28,0.35);
}
.cta2-btn-main:hover {
  background: #d03e17;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(232,73,28,0.45);
}
.cta2-btn-sec {
  padding: 16px 32px;
  border: 1px solid var(--border);
  color: var(--txt);
  border-radius: 100px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}
.cta2-btn-sec:hover { border-color: var(--acc); color: var(--acc); }
.cta2-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.cta2-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.cta2-badge strong { color: var(--txt); }
.cta2-badge-ico { font-size: 1rem; }
.cta2-sep { width: 1px; height: 20px; background: var(--border); }

.cta-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 28% 50%, rgba(232,73,28,0.1), transparent 65%);
  pointer-events: none;
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1260px;
  margin: 0 auto;
  min-height: 540px;
  position: relative;
  z-index: 1;
}

.cta-left {
  padding: 96px 72px 96px 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.cta-left h2 {
  margin-top: 12px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}
.cta-left > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-right {
  padding: 80px 52px 80px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 380px;
}

.cta-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cta-card:hover {
  transform: translateX(6px);
  border-color: rgba(232,73,28,0.3);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.cca-ico { font-size: 1.6rem; flex-shrink: 0; }
.cca-text { display: flex; flex-direction: column; gap: 3px; }
.cca-label {
  font-size: 0.68rem;
  color: var(--dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cca-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.01em;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  pointer-events: none;
}

.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 64px 52px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.footer-brand-sub {
  font-size: 0.68rem;
  color: var(--acc);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.footer-brand-desc {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.6;
  margin-top: 8px;
  display: block;
}

.footer-cols {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 110px;
}
.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt);
  margin-bottom: 2px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--txt); }

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--txt); }
.footer-contact-link svg { flex-shrink: 0; opacity: 0.6; }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.footer-social a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  color: var(--txt);
  border-color: var(--txt);
}

.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 20px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.f-copy {
  font-size: 0.72rem;
  color: var(--dim);
}
.f-made {
  font-size: 0.72rem;
  color: var(--dim);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════
   ── CHI SONO ──
══════════════════════════════════════════ */
#chi-sono {
  padding: 120px 52px;
  background: var(--s1);
  position: relative;
  overflow: hidden;
}
#chi-sono::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(232,73,28,0.07), transparent 70%);
  pointer-events: none;
}

.cs-wrap { max-width: 1260px; margin: 0 auto; }

.cs-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 60px;
  position: relative;
  transition: box-shadow 0.4s ease;
}
.cs-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(232,73,28,0.3) 0%, transparent 50%, rgba(245,200,66,0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cs-card:hover { box-shadow: 0 40px 80px rgba(0,0,0,0.35); }
.cs-card:hover::after { opacity: 1; }

.cs-img-col { position: relative; }

.cs-img-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--s3);
  border: 1px solid var(--border);
}
.cs-img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cs-img-ph {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, rgba(232,73,28,0.1) 0%, rgba(245,200,66,0.06) 100%);
}
.cs-img-ph span { font-size: 3.5rem; opacity: 0.35; }
.cs-img-ph p    { font-size: 0.72rem; color: var(--dim); }

.cs-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  background: var(--acc);
  color: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 20px 44px rgba(232,73,28,0.35);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 44px rgba(232,73,28,0.35); }
  50%       { transform: scale(1.04); box-shadow: 0 24px 52px rgba(232,73,28,0.5); }
}
.cs-badge-n {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.cs-badge-l {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.9;
  line-height: 1.4;
}

.cs-deco-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cd1 {
  width: 12px; height: 12px;
  background: var(--acc2);
  top: -6px; left: -6px;
  animation: floatDot 4s ease-in-out infinite alternate;
}
.cd2 {
  width: 7px; height: 7px;
  background: var(--acc);
  top: 38%; left: -20px;
  animation: floatDot 5s ease-in-out 0.5s infinite alternate-reverse;
}
@keyframes floatDot {
  from { transform: translateY(0) scale(1); opacity: 0.5; }
  to   { transform: translateY(-12px) scale(1.25); opacity: 1; }
}

.cs-bio {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
  margin: 18px 0 36px;
}

.cs-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.cs-stat { display: flex; flex-direction: column; gap: 4px; }

.cs-n {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--acc);
  letter-spacing: -0.04em;
  line-height: 1;
}
.cs-l {
  font-size: 0.68rem;
  color: var(--dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cs-divider { width: 1px; height: 36px; background: var(--border); }

.cs-skills { display: flex; flex-direction: column; gap: 18px; }

.cs-sk-row { display: flex; flex-direction: column; gap: 7px; }

.cs-sk-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--txt);
}
.cs-sk-info span:last-child { color: var(--acc2); }

.cs-sk-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.cs-sk-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ══════════════════════════════════════════
   ── PERCHÉ NOI ──
══════════════════════════════════════════ */
#perche-noi {
  padding: 120px 52px;
  background: var(--bg);
}

.pn-wrap { max-width: 1260px; margin: 0 auto; }

.pn-intro { max-width: 560px; margin-bottom: 72px; }
.pn-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 18px;
}

.pn-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pn-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pn-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 36px 64px rgba(0,0,0,0.4);
  border-color: rgba(232,73,28,0.35);
}
.pn-card:nth-child(2) { animation: cardFloat 6s ease-in-out infinite alternate; }
.pn-card:nth-child(3) { animation: cardFloat 7.5s ease-in-out 1s infinite alternate-reverse; }
@keyframes cardFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}
.pn-card:hover { animation: none !important; }

.pn-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.pn-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.pn-card:hover .pn-card-img img { transform: scale(1.05); }

.pn-img-ph {
  width: 100%;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s ease;
}
.pn-card:hover .pn-img-ph { transform: scale(1.08); }

.pn-ph-1 { background: linear-gradient(135deg, rgba(245,200,66,0.18), rgba(232,73,28,0.12)); }
.pn-ph-2 { background: linear-gradient(135deg, rgba(232,73,28,0.14), rgba(245,200,66,0.1)); }
.pn-ph-3 { background: linear-gradient(135deg, rgba(72,219,251,0.12), rgba(162,155,254,0.12)); }

.pn-num {
  position: absolute;
  top: 14px; right: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  background: rgba(12,11,14,0.65);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  color: rgba(230,223,214,0.55);
}

.pn-card-body {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pn-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc2);
  margin-bottom: 12px;
}

.pn-card-body h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  margin-bottom: 12px;
  line-height: 1.1;
}

.pn-card-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.78;
  flex: 1;
  margin-bottom: 24px;
}

.pn-kpi {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.pn-kpi-n {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--acc);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pn-kpi-l {
  font-size: 0.7rem;
  color: var(--dim);
  font-weight: 500;
}


/* ══════════════════════════════════════════
   ── FILOSOFIA ──
══════════════════════════════════════════ */
#filosofia {
  padding: 120px 52px;
  background: var(--s1);
  position: relative;
  overflow: hidden;
}
#filosofia::before {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(232,73,28,0.06), transparent 70%);
  pointer-events: none;
}

.fil-wrap { max-width: 1260px; margin: 0 auto; }

.fil-intro { max-width: 580px; margin-bottom: 64px; }
.fil-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 18px;
}

/* Bento grid: [main(row1-2)] [card2] / [card3] / [wide(full)] */
.fil-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
}

.fil-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.fil-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,73,28,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.fil-card > * { position: relative; z-index: 1; }
.fil-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232,73,28,0.28);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.fil-card:hover::before { opacity: 1; }

/* Main card: spans rows 1-2 on col 1 */
.fil-main {
  grid-row: 1 / 3;
  grid-column: 1;
}

/* Wide card: spans both cols at bottom */
.fil-wide {
  grid-column: 1 / -1;
  flex-direction: row;
}
.fil-wide .fil-card-img { width: 260px; flex-shrink: 0; }
.fil-wide .fil-img-sm { min-height: 100%; }

/* Image areas */
.fil-card-img { overflow: hidden; }
.fil-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.fil-card:hover .fil-card-img img { transform: scale(1.04); }

.fil-img-ph {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s ease;
}
.fil-card:hover .fil-img-ph { transform: scale(1.08); }

.fil-ph-main { min-height: 280px; background: linear-gradient(135deg, rgba(232,73,28,0.14), rgba(245,200,66,0.08)); }
.fil-img-sm  { min-height: 150px; }
.fil-ph-2    { height: 100%; background: linear-gradient(135deg, rgba(245,200,66,0.12), rgba(232,73,28,0.07)); }
.fil-ph-3    { height: 100%; background: linear-gradient(135deg, rgba(72,219,251,0.11), rgba(162,155,254,0.09)); }
.fil-ph-4    { height: 100%; background: linear-gradient(135deg, rgba(85,239,196,0.11), rgba(0,184,148,0.08)); }

.fil-card-text { padding: 32px 36px; }

.fil-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc2);
  margin-bottom: 12px;
}

.fil-card-text h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.1;
}
.fil-card-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.fil-card-text p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.78;
}

/* ── SERVICES TABS ── */
#servizi { padding: 120px 0 100px; background: var(--s1); max-width: none; margin: 0; }
.sv2-wrap { max-width: 1260px; margin: 0 auto; padding: 0 52px; }
.sv2-header { margin-bottom: 56px; }
.sv2-sub { color: var(--muted); font-size: 1rem; margin-top: 14px; }

.sv2-tabs-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--acc);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sv2-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.sv2-tab {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.sv2-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.sv2-tab:hover {
  background: var(--s2);
  border-color: rgba(232,73,28,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.sv2-tab--active {
  background: var(--s2);
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc), 0 8px 28px rgba(232,73,28,0.18);
}
.sv2-tab--active::after { transform: scaleX(1); }
.sv2-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.07em;
}
.sv2-name {
  font-family: 'Unbounded', 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.2;
}
.sv2-tab:not(.sv2-tab--active) .sv2-name { color: var(--muted); }

.sv2-body { position: relative; min-height: 420px; }
.sv2-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sv2-panel--active {
  display: grid;
  animation: sv2Fade 0.35s ease;
}
@keyframes sv2Fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sv2-text { display: flex; flex-direction: column; gap: 20px; }
.sv2-text h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); font-family: 'Unbounded', 'Syne', sans-serif; }
.sv2-header h2 { font-family: 'Unbounded', 'Syne', sans-serif; }
.sv2-text p { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 480px; }
.sv2-vis { display: flex; align-items: center; justify-content: center; }
.sv2-vis canvas { max-width: 100%; height: auto; }

/* ── SERVICES GRID ── */
.sv-wrap { max-width: 1260px; margin: 0 auto; }
.sv-intro { margin-bottom: 60px; }
.sv-intro h2 { margin-top: 8px; }
.sv-sub { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-top: 16px; max-width: 480px; }

.sv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sv-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sv-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,73,28,0.28);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}
.sv-card:hover::after { opacity: 1; }
.sv-card--wide { grid-column: span 2; }

.sv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sv-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.06em;
}
.sv-ico { font-size: 1.6rem; line-height: 1; }
.sv-card h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.15; }
.sv-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; flex: 1; }
.sv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.sv-chips span {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
}

/* ── PERCHÉ NOI v2 ── */
#perche-noi { padding: 120px 52px; background: var(--bg); }
.pn2-wrap {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pn2-left { display: flex; flex-direction: column; gap: 24px; }
.pn2-left h2 { margin-top: 8px; }
.pn2-desc { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 460px; }
.pn2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pn2-stat {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s, border-color 0.3s;
}
.pn2-stat:hover { transform: translateY(-3px); border-color: rgba(232,73,28,0.3); }
.pn2-ico { font-size: 1.4rem; line-height: 1; }
.pn2-n {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--acc);
  line-height: 1;
}
.pn2-l { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* ── PORTFOLIO ── */
#portfolio {
  padding: 120px 52px;
  background: var(--bg);
}
.pf-wrap { max-width: 1260px; margin: 0 auto; }
.pf-intro { margin-bottom: 60px; }
.pf-intro h2 { margin-top: 8px; }
.pf-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 480px;
}
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pf-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,73,28,0.3);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.pf-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
}
.pf-card--wide .pf-card-imgs {
  width: 55%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.pf-card--wide .pf-card-info {
  flex: 1;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pf-slider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}
.pf-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pf-slide--active { opacity: 1; }
.pf-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.pf-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.pf-dot--active {
  background: var(--acc);
  transform: scale(1.2);
}
.pf-stories {
  display: flex;
  gap: 10px;
  padding: 20px 20px 0;
  height: 230px;
}
.pf-story {
  flex: 1;
  border-radius: 10px;
  object-fit: cover;
  height: 100%;
}
.pf-video-wrap {
  height: 230px;
  overflow: hidden;
}
.pf-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-card:not(.pf-card--wide) .pf-card-info { padding: 28px 28px 32px; }
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.pf-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pf-card-info h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin-bottom: 12px;
  line-height: 1.1;
}
.pf-card-info p {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.72;
}
.pf-slider-video {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}
.pf-video--full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--acc);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.pf-link:hover { gap: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #nav    { padding: 0 36px; }
  #hero   { padding: 100px 48px 80px; column-gap: 40px; }
  #hero { grid-template-columns: 1fr 1fr; padding: 100px 40px 80px; }
  .card-stack { width: 320px; height: 360px; }
  .hcard { width: 240px; padding: 20px; }
  #servizi { padding: 100px 36px 40px; }
  .s-row  { gap: 48px; }
  #processo, #stack, #contatto { padding: 100px 36px; }
  .footer-inner { padding: 52px 36px 40px; }
  .footer-bottom-inner { padding: 18px 36px; }

  #chi-sono, #perche-noi, #filosofia { padding: 100px 36px; }
  .cs-card { grid-template-columns: 300px 1fr; gap: 48px; padding: 48px 44px; }
  .pn-cards { gap: 16px; }
  .fil-wide .fil-card-img { width: 200px; }
  #processo { padding: 100px 36px; }
  .pr-timeline { gap: 12px; }
  #stack { padding: 100px 36px; }
  .sk-groups { grid-template-columns: repeat(2, 1fr); }
  .cta-left { padding: 80px 48px 80px 36px; }
  .cta-right { padding: 60px 36px 60px 48px; }
  /* footer inner already handled above */
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }

  /* Processo */
  .pr-timeline { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pr-line { display: none; }

  /* Stack */
  .sk-groups { grid-template-columns: repeat(2, 1fr); }

  /* CTA */
  .cta-wrap { grid-template-columns: 1fr; }
  .cta-left { border-right: none; border-bottom: 1px solid var(--border); padding: 72px 48px; }
  .cta-right { padding: 60px 48px 72px; }
  .cta-cards { max-width: 100%; }

  /* Footer */
  .footer-inner { flex-wrap: wrap; gap: 40px; }
  .footer-cols { gap: 36px; flex-wrap: wrap; }

  /* New sections */
  .cs-card { grid-template-columns: 1fr; gap: 32px; padding: 40px 36px; }
  .cs-img-col { max-width: 300px; margin: 0 auto; width: 100%; }
  .cs-badge { bottom: -14px; right: -8px; }
  .pn-cards { grid-template-columns: 1fr; max-width: 420px; }
  .fil-bento { grid-template-columns: 1fr; }
  .fil-main { grid-row: auto; }
  .fil-wide { flex-direction: column; }
  .fil-wide .fil-card-img { width: 100%; }

  /* Stack band */
  .stack-band { padding: 20px 36px; gap: 16px; }

  /* Services tabs */
  .sv2-wrap { padding: 0 36px; }
  .sv2-tab { min-width: 100px; padding: 14px 16px; }

  /* Portfolio */
  #portfolio { padding: 80px 36px; }
  .pf-card--wide { flex-direction: column; }
  .pf-card--wide .pf-card-imgs { width: 100%; }
  .pf-slider { height: 260px; }
  .pf-card--wide .pf-card-info { padding: 32px 36px; }
}

@media (max-width: 640px) {
  #nav    { padding: 0 20px; }
  #hero   {
    grid-template-columns: 1fr;
    padding: 100px 24px 80px;
    text-align: center;
    row-gap: 40px;
  }
  .hero-text  { align-items: center; }
  .hero-sub   { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  #hero       { grid-template-columns: 1fr; row-gap: 48px; }
  .card-stack { width: 280px; height: 300px; }
  .hcard      { width: 220px; padding: 18px; }
  .hc-mid     { bottom: 50px; left: 5px; }
  .hc-front   { top: 0; left: 20px; }
  #servizi { padding: 80px 20px 20px; }
  .s-row  { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .s-row.s-flip .s-text { order: 1; }
  .s-row.s-flip .s-vis  { order: 2; }
  .s-text p { max-width: 100%; }
  #processo, #stack { padding: 80px 20px; }
  #contatto { padding: 0; }
  .cta2-wrap { padding: 80px 24px; gap: 40px; }
  .cta2-badges { gap: 12px; }
  .cta2-sep { display: none; }
  .pr-timeline { grid-template-columns: 1fr; }
  .pr-line { display: none; }
  .sk-groups { grid-template-columns: 1fr; }
  .cta-left { padding: 60px 24px; }
  .cta-right { padding: 48px 24px 60px; }
  .footer-inner { padding: 40px 20px 32px; flex-direction: column; gap: 32px; }
  .footer-cols { gap: 28px; }
  .footer-bottom-inner { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .s-vis canvas { max-height: 280px; }
  .chat-demo { max-width: 100%; }
  .phone-mock { width: 180px; }

  #perche-noi, #portfolio { padding: 80px 20px; }
  .pn2-wrap { grid-template-columns: 1fr; gap: 48px; }
  #servizi { padding: 80px 0; }
  /* Stack band */
  .stack-band { flex-direction: column; align-items: flex-start; padding: 20px; gap: 12px; }
  .stack-label::after { display: none; }

  .sv2-wrap { padding: 0 20px; }
  .sv2-tabs { gap: 6px; }
  .sv2-tab { min-width: calc(33% - 6px); padding: 12px 14px; }
  .sv2-panel--active { grid-template-columns: 1fr; gap: 36px; }
  .sv2-vis canvas { max-height: 280px; }
  .sv2-text h3 { font-size: 1.9rem; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card--wide { flex-direction: column; }
  .pf-card--wide .pf-card-imgs { width: 100%; }
  .pf-slider { height: 220px; }
  .pf-card--wide .pf-card-info { padding: 28px 24px; }
  .pf-stories { height: 180px; }
  .pf-video-wrap { height: 200px; }
  .cs-card { padding: 32px 24px; gap: 28px; border-radius: 20px; }
  .cs-img-col { max-width: 100%; }
  .cs-img-ph  { min-height: 260px; }
  .cs-badge   { bottom: -12px; right: -4px; padding: 12px 16px; }
  .cs-badge-n { font-size: 1.5rem; }
  .cs-stats   { gap: 18px; flex-wrap: wrap; }
  .cs-n       { font-size: 1.6rem; }
  .pn-cards   { max-width: 100%; }
  .pn-card:nth-child(2),
  .pn-card:nth-child(3) { animation: none; }
  .fil-card-text { padding: 24px 24px; }
}
