@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ======================================
   RESET & BASE
   ====================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ======================================
   DESIGN TOKENS
   ====================================== */
:root {
  --blue: #005EFF;
  --blue-dark: #0047CC;
  --blue-bg: rgba(0, 94, 255, 0.06);
  --blue-bg2: rgba(0, 94, 255, 0.12);
  --coral: #FF5231;
  --coral-dark: #E03B1E;
  --dark: #0A0A0A;
  --text: #1C1C1C;
  --text-2: #555;
  --text-3: #888;
  --border: #E8E8E8;
  --border-2: #CACACA;
  --bg: #FFFFFF;
  --bg-soft: #F6F6F6;
  --r: 10px;
  --r-lg: 20px;
  --sh: 0 4px 24px rgba(0,0,0,0.07);
  --sh-lg: 0 16px 48px rgba(0,0,0,0.12);
  --max-w: 1280px;
}

/* ======================================
   TYPOGRAPHY
   ====================================== */
.label-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--dark);
}
h1 { font-size: clamp(2.8rem, 6.5vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

p { font-size: 1rem; line-height: 1.75; color: var(--text-2); }
.lead { font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.75; color: var(--text-2); }

/* ======================================
   LAYOUT
   ====================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

section { padding: clamp(64px, 9vw, 128px) 0; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.centered { text-align: center; }
.section-head h2 { margin-bottom: 16px; max-width: 760px; }
.section-head.centered h2 { margin-left: auto; margin-right: auto; }
.section-head .lead { max-width: 580px; }
.section-head.centered .lead { margin: 0 auto; }

/* ======================================
   FILM STRIP SCROLLING DIVIDER
   ====================================== */
.film-strip {
  height: 34px;
  background: var(--dark);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.film-strip::before,
.film-strip::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.07) 0px,
    rgba(255,255,255,0.07) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
  z-index: 1;
}
.film-strip::before { top: 5px; }
.film-strip::after  { bottom: 5px; }

.film-strip-track {
  display: flex;
  gap: 0;
  animation: filmScroll 28s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.film-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  flex-shrink: 0;
}

.film-strip-item .dot {
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

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

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,94,255,0.3);
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}
.btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,82,49,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 800;
}
.btn-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.btn-lg { padding: 17px 36px; font-size: 1.0625rem; border-radius: 12px; }

/* ======================================
   COOKIE BANNER
   ====================================== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #111;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  padding: 18px 0;
}
#cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  min-width: 220px;
}
.cookie-text a { color: var(--blue); font-weight: 600; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-cookie-accept:hover { background: var(--blue-dark); }

.btn-cookie-decline {
  padding: 10px 18px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.18);
  transition: color 0.2s, border-color 0.2s;
}
.btn-cookie-decline:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.4); }

/* ======================================
   HEADER / NAV
   ====================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
#header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 0;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--dark);
  flex-shrink: 0;
  margin-right: 52px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .logo-dot { color: var(--blue); }
.nav-logo .logo-bar {
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  margin: 0 3px 2px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }

.nav-cta { margin-left: auto; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.875rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 998;
  padding: 32px 24px 48px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
#mobile-nav.active { display: flex; }
#mobile-nav a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
  display: block;
}
#mobile-nav .mobile-cta {
  margin-top: 28px;
  display: block;
}

/* ======================================
   HERO
   ====================================== */
#hero {
  padding-top: 68px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.hero-blob-1 {
  position: absolute;
  top: -160px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,94,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute;
  bottom: 60px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,82,49,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* Horizontal timeline accent bar */
.hero-timeline-bar {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.htb-segment {
  height: 4px;
  flex: 1;
}
.htb-segment:nth-child(1) { background: var(--blue); }
.htb-segment:nth-child(2) { background: #3D7FFF; }
.htb-segment:nth-child(3) { background: #7AA6FF; }
.htb-segment:nth-child(4) { background: #FFAA95; }
.htb-segment:nth-child(5) { background: var(--coral); }
.htb-segment:nth-child(6) { background: var(--border); flex: 3; }

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(40px,6vw,80px) 0 clamp(32px,4vw,56px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-left {}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-bg);
  border: 1px solid rgba(0,94,255,0.14);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero-chip .chip-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; } 50% { opacity:0.25; }
}

.hero-h1 { margin-bottom: 24px; }
.hero-h1 em { font-style: normal; color: var(--blue); }
.hero-h1 .accent-coral { color: var(--coral); }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 490px;
}

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

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-item {}
.stat-num {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-num sup { font-size: 1rem; font-weight: 700; }
.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.01em;
}

/* Frame grid (hero right) */
.hero-right { position: relative; }

.frame-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.frame-grid::after {
  content: '';
  position: absolute;
  top: -24px; right: -24px;
  width: 55%; height: 55%;
  background: var(--blue-bg);
  border-radius: 20px;
  z-index: -1;
}
.frame-grid::before {
  content: '';
  position: absolute;
  bottom: -16px; left: -16px;
  width: 30%; height: 30%;
  background: rgba(255,82,49,0.06);
  border-radius: 12px;
  z-index: -1;
}

.frame-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16/9;
  position: relative;
}
.frame-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.frame-item:hover img { transform: scale(1.04); }

.frame-item.fblue {
  background: var(--blue);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
}
.frame-item.fcoral {
  background: var(--coral);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 3px;
}
.frame-item.fdark {
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}

.f-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.f-label {
  font-size: 7px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 6px;
}

/* Timeline tick overlay on frame grid */
.frame-timecode {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.85);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

/* ======================================
   SERVICES
   ====================================== */
#servizi { background: var(--bg-soft); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.service-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.svc-icon {
  width: 52px; height: 52px;
  background: var(--blue-bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}
.svc-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p  { font-size: 0.875rem; line-height: 1.65; }

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}
.svc-link:hover { gap: 10px; }
.svc-link svg { width: 12px; height: 12px; }

/* ======================================
   WORKFLOW
   ====================================== */
#workflow {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
#workflow::before {
  content: '';
  position: absolute;
  top: 50%; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,94,255,0.12) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

#workflow .section-head h2    { color: #fff; }
#workflow .section-head .lead { color: rgba(255,255,255,0.55); max-width: 520px; }
#workflow .section-head.centered .lead { margin: 0 auto; }

.workflow-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
}

.workflow-progress-track {
  position: absolute;
  top: 31px; left: 10%; right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}
.workflow-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  transition: width 1.6s cubic-bezier(0.4,0,0.2,1);
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.step-node {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step-node.lit {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 8px rgba(0,94,255,0.15);
}

.step-node-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  transition: color 0.4s;
}
.step-node.lit .step-node-num { color: #fff; }

.step-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.step-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ======================================
   FORMATS / DELIVERABLES
   ====================================== */
#formati {}

.formats-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 56px;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.format-card {
  background: var(--bg-soft);
  border-radius: var(--r);
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
}
.format-card:hover {
  border-color: var(--blue);
  background: var(--blue-bg);
  transform: translateY(-3px);
}

.format-ratio {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.format-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.format-spec {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ======================================
   PORTFOLIO
   ====================================== */
#portfolio { background: var(--bg-soft); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.portfolio-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #111;
  position: relative;
  aspect-ratio: 16/10;
  transition: transform 0.3s ease;
}
.portfolio-card:hover { transform: scale(1.012); }

.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.3s;
}
.portfolio-card:hover img { opacity: 0.42; transform: scale(1.04); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}

.portfolio-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.portfolio-cat::before {
  content: '';
  display: inline-block;
  width: 16px; height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.portfolio-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

.portfolio-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
  font-style: italic;
  margin-top: 28px;
}

/* ======================================
   TURNAROUND / PREVENTIVO
   ====================================== */
#preventivo {
  background: var(--blue);
  padding: clamp(64px,9vw,110px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#preventivo::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

#preventivo h2   { color: #fff; }
#preventivo .lead { color: rgba(255,255,255,0.75); max-width: 580px; margin: 14px auto 40px; }

.ta-grid {
  display: flex;
  gap: 56px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.ta-item { text-align: center; }
.ta-time {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 1;
}
.ta-time span { font-size: 1.2rem; font-weight: 700; }
.ta-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ======================================
   TESTIMONIALS
   ====================================== */
#testimonianze {}

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

.testi-card {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testi-stars span {
  color: #F59E0B;
  font-size: 1rem;
}

.testi-text {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.72;
  font-style: italic;
  flex: 1;
  margin-bottom: 24px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-bg2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--blue);
  font-size: 1rem;
  flex-shrink: 0;
}
.testi-name  { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.testi-role  { font-size: 0.78rem; color: var(--text-3); margin-top: 1px; }

.testi-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
  font-style: italic;
  margin-top: 28px;
}

/* ======================================
   GUIDE / ARTICLES
   ====================================== */
#guide { background: var(--bg-soft); }

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

.guide-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.guide-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.guide-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.guide-card:hover .guide-img img { transform: scale(1.05); }

.guide-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.guide-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.guide-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.guide-excerpt {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.guide-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.guide-meta span { display: flex; align-items: center; gap: 4px; }
.guide-meta svg { width: 12px; height: 12px; }

/* ======================================
   FAQ
   ====================================== */
#faq { background: #fff; }

.faq-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.faq-sticky { position: sticky; top: 96px; }
.faq-sticky h2 { margin-bottom: 16px; }
.faq-sticky .lead { margin-bottom: 28px; }

.faq-list {}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  user-select: none;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue); }

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}
.faq-icon svg { width: 13px; height: 13px; stroke: var(--dark); transition: transform 0.35s, stroke 0.3s; }
.faq-item.open .faq-icon { background: var(--blue); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); stroke: #fff; }
.faq-item.open .faq-question { color: var(--blue); }

.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.faq-answer-inner {
  padding: 0 0 22px;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.72;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* ======================================
   CONTACT
   ====================================== */
#contatti { background: var(--bg-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}

.contact-form-box {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 48px;
  border: 1px solid var(--border);
}
.contact-form-box h3 { font-size: 1.75rem; margin-bottom: 6px; }
.contact-form-box .lead { font-size: 0.9375rem; margin-bottom: 32px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,94,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 115px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-3);
  pointer-events: none;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 24px;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-check label {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.55;
  cursor: pointer;
}
.form-check a { color: var(--blue); font-weight: 600; }
.form-check a:hover { text-decoration: underline; }

.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 14px;
}
.form-msg.success {
  background: #F0FFF4;
  border: 1px solid #86EFAC;
  color: #166534;
}
.form-msg.error {
  background: #FFF5F5;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

/* Contact info panel */
.contact-info {}
.contact-info h3 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-info .lead { font-size: 0.9375rem; margin-bottom: 32px; }

.cinfo-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.cinfo-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--blue-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.cinfo-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.cinfo-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}
.cinfo-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
}
.cinfo-val a:hover { color: var(--blue); }

.cinfo-hours {
  background: var(--dark);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-top: 28px;
}
.cinfo-hours-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.cinfo-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cinfo-hours-row:last-child { border-bottom: none; }
.cinfo-hours-row span:last-child { font-weight: 600; }

/* ======================================
   FOOTER
   ====================================== */
#footer {
  background: var(--dark);
  color: #fff;
  padding: 52px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
  align-items: start;
}

.footer-brand {}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 2px;
}
.footer-logo .logo-dot { color: var(--blue); }
.footer-logo .logo-bar {
  display: inline-block;
  width: 14px; height: 2.5px;
  background: var(--coral);
  border-radius: 2px;
  margin: 0 2px 1px;
  vertical-align: middle;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  max-width: 220px;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.85); }

/* ======================================
   LEGAL PAGES
   ====================================== */
.legal-header {
  padding: 120px 0 56px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.legal-header .label-tag { margin-bottom: 12px; }
.legal-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.legal-header p  { max-width: 580px; }

.legal-body {
  padding: 64px 0 96px;
}
.legal-content {
  max-width: 780px;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal-content p  { margin-bottom: 16px; font-size: 0.9375rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; margin-bottom: 6px; list-style: disc; }
.legal-content a  { color: var(--blue); }
.legal-content a:hover { text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 0.875rem; }
.legal-content th { background: var(--bg-soft); padding: 10px 14px; text-align: left; font-weight: 700; font-size: 0.8rem; border-bottom: 2px solid var(--border); color: var(--dark); }
.legal-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; }

/* ======================================
   SCROLL ANIMATIONS
   ====================================== */
/* Cards always fully visible — no JS-gated opacity/transform hiding */
.fade-up {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1100px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-sticky { position: static; }
  .formats-intro { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-right { display: none; }
  .workflow-timeline { grid-template-columns: 1fr 1fr 1fr; }
  .workflow-step:nth-child(4),
  .workflow-step:nth-child(5) { display: none; }
  .workflow-progress-track { left: 16%; right: 16%; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-info { order: -1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  #hero { padding-top: 68px; }
  .hero-h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-box { padding: 28px 22px; }

  .workflow-timeline {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .workflow-progress-track { display: none; }
  .workflow-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
  }
  .step-node { flex-shrink: 0; margin-bottom: 0; }

  .ta-grid { gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { justify-content: center; }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .cookie-inner { flex-direction: column; gap: 14px; }
  .cookie-btns { width: 100%; }
  .btn-cookie-accept, .btn-cookie-decline { flex: 1; text-align: center; justify-content: center; }
}
