@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --beige: #F6F3E8;
  --blue: hsl(214 60% 48%);
  --blue-dark: hsl(214 60% 38%);
  --blue-darker: hsl(214 60% 40%);
  --text-dark: hsl(0 0% 18%);
  --text-muted: hsl(0 0% 40%);
  --off-white: hsl(0 0% 98%);
  --input-bg: #FAF8F0;
  --input-border: hsl(40 10% 85%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--beige);
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

button { font-family: inherit; }

img, video { max-width: 100%; }

.accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

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

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: transparent;
  color: var(--off-white);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 1000px);
  padding: 12px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(45, 45, 45, 0.08);
  color: var(--text-dark);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.navbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 19px;
  font-weight: 400;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: center;
}

.navbar-links a { color: inherit; cursor: pointer; }
.navbar-links .sep { opacity: 0.5; }

.navbar-lang { display: flex; gap: 4px; margin-left: 6px; }
.navbar-lang a {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  color: inherit;
  opacity: 0.65;
}
.navbar-lang a.active { opacity: 1; background: var(--blue); color: #fff; }
.navbar.scrolled .navbar-lang a.active { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 256px;
  background: linear-gradient(to top, var(--beige), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 24px;
  padding-top: 112px;
  text-align: center;
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-content h1 { margin: 0; }

.hero-line1 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  color: #F5F3E8;
}

.hero-line2 {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 8.5vw, 100px);
  letter-spacing: -1px;
  line-height: 0.95;
  color: #F5F3E8;
}

.hero-sub {
  font-size: 18px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0;
  line-height: 1.5;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 40px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.btn-primary:hover { transform: scale(1.04); }

.btn-primary.small {
  margin-top: 36px;
  padding: 14px 28px;
}

/* ---------- Logo belt ---------- */
.logo-belt {
  position: relative;
  padding: 20px 0;
  overflow: hidden;
  background: var(--blue);
}

.logo-belt-fade-top,
.logo-belt-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 1;
}
.logo-belt-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--blue), transparent);
}
.logo-belt-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--blue), transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  margin: 0 12px;
  height: 28px;
  width: 90px;
}

.logo-item img {
  max-height: 24px;
  max-width: 80px;
  object-fit: contain;
}

.logo-item img.white { filter: brightness(0) invert(1); mix-blend-mode: screen; }
.logo-item img.color { mix-blend-mode: multiply; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal].phone-reveal {
  transform: translateY(40px) scale(0.9);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].phone-reveal.revealed {
  opacity: 1;
  transform: scale(1);
}
[data-reveal].delay-1 { transition-delay: 0.12s; }
[data-reveal].delay-2 { transition-delay: 0.15s; }
[data-reveal].delay-3 { transition-delay: 0.24s; }
[data-reveal].delay-4 { transition-delay: 0.3s; }

/* ---------- Section shared ---------- */
.section {
  padding: 120px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.section-title {
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 48px;
  color: var(--text-dark);
}

/* ---------- Contenuti / phones ---------- */
.phones-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.phone-mock {
  border-radius: 36px;
  background: #111;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(45, 45, 45, 0.18);
  overflow: hidden;
  position: relative;
}

.phone-mock.small { width: 220px; height: 460px; }
.phone-mock.tall { width: 260px; height: 540px; }
.phone-mock.case { width: 190px; height: 400px; border-radius: 32px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 18px;
  background: #111;
  border-radius: 10px;
  z-index: 2;
}
.phone-mock.case .phone-notch { top: 18px; width: 70px; height: 16px; }

.phone-mock video,
.phone-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  display: block;
  transition: transform 0.4s ease;
}
.phone-mock.case video,
.phone-mock.case img { border-radius: 24px; }

.phone-mock:hover img,
.phone-mock:hover video { transform: scale(1.06); }

.arrow-svg { flex-shrink: 0; }

.comment-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  border-radius: 20px;
  padding: 10px 18px 10px 8px;
  box-shadow: 0 4px 16px rgba(45, 45, 45, 0.18);
  width: 220px;
}

.comment-badge img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--beige);
  line-height: 1.35;
}

.pill-caption-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.pill-caption {
  background: var(--blue);
  color: var(--beige);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Chi sono ---------- */
.chi-sono {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.chi-sono h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 32px;
  color: var(--text-dark);
}

.chi-sono-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--blue-darker);
}
.chi-sono-text p { margin: 0; }

.chi-sono-portrait { position: relative; }
.chi-sono-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}

@media (max-width: 860px) {
  .chi-sono { grid-template-columns: 1fr; }
}

/* ---------- Case studies ---------- */
.case-section {
  padding: 100px 24px;
  background: var(--blue);
  position: relative;
}

.case-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.case-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.case-track::-webkit-scrollbar { display: none; }

.case-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-right: 24px;
}

.case-slide.closing {
  justify-content: center;
  gap: 20px;
  min-height: 460px;
}

.case-copy {
  max-width: 640px;
  text-align: center;
}

.case-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--beige);
  opacity: 0.75;
  margin: 0 0 16px;
}

.case-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  color: var(--beige);
}

.case-body {
  margin: 0;
  color: var(--beige);
  opacity: 0.85;
  font-size: 16px;
  line-height: 1.6;
}
.case-body strong { color: var(--beige); }

.case-visuals {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.case-visual-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-stat-pill {
  display: block;
  background: var(--beige);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  text-align: center;
  margin-bottom: 12px;
}
.case-stat-pill.hidden { visibility: hidden; }

.case-photo {
  width: 250px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.case-photo:hover img { transform: scale(1.06); }

.case-closing-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--beige);
  opacity: 0.75;
  margin: 0;
}

.case-closing-title .accent {
  color: inherit;
}

.case-closing-title {
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--beige);
  max-width: 760px;
  margin: 0;
  line-height: 1.1;
}

.case-next-btn {
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--blue-darker);
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Quote ---------- */
.quote-section {
  padding: 140px 24px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0 0 28px;
}

.quote-attr {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  transition-delay: 0.15s;
}

/* ---------- Dove lavoro ---------- */
.dove-lavoro { padding: 80px 24px; max-width: 1280px; margin: 0 auto; }

.dove-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 40px;
  color: var(--text-dark);
  text-align: center;
}

.dove-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.dove-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.dove-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dove-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(45, 45, 45, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  z-index: 2;
}

/* ---------- Statistiche ---------- */
.stats-title {
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 56px;
  color: var(--text-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--blue);
  box-shadow: 0 4px 24px rgba(45, 45, 45, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 32px;
  transition: opacity 0.8s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(45, 45, 45, 0.2); }

.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 12px;
}

.stat-label { margin: 0 0 8px; color: var(--off-white); font-size: 15px; }
.stat-source { margin: 0; color: hsla(0, 0%, 98%, 0.7); font-size: 13px; }

.stats-statement {
  text-align: center;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 500;
  margin: 32px 0 0;
  color: var(--text-dark);
}

/* ---------- Servizi ---------- */
.servizi-sub {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  color: var(--text-muted);
  font-size: 16px;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.servizio-card {
  background: var(--blue);
  box-shadow: 0 4px 24px rgba(45, 45, 45, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 24px;
  transition: opacity 0.8s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.servizio-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 28px rgba(45, 45, 45, 0.14); }

.servizio-glyph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(246, 243, 232, 0.18);
  color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
}

.servizio-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; color: var(--beige); }
.servizio-card p { font-size: 14px; color: hsla(0, 0%, 98%, 0.75); line-height: 1.6; margin: 0; }

/* ---------- Contatti / form ---------- */
.contatti-section { padding: 120px 24px; max-width: 1100px; margin: 0 auto; }

.form-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(45, 45, 45, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease, background 0.3s ease;
}

.form-card.submitted { background: var(--blue); }

.form-inner { width: 100%; max-width: 480px; }

.form-thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
}
.form-thanks[hidden] { display: none; }
.form-thanks span {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 32px);
  color: var(--beige);
}

.form-wizard { display: flex; flex-direction: column; gap: 24px; }
.form-wizard[hidden] { display: none; }

.progress-row { display: flex; gap: 8px; }
.progress-seg { height: 4px; flex: 1; border-radius: 4px; background: var(--input-border); transition: background 0.2s ease; }
.progress-seg.active { background: var(--blue); }

.step-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }

.step-fields { display: flex; flex-direction: column; gap: 16px; }

.step-fields input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  font-size: 15px;
  font-family: inherit;
}

.choice-list { display: flex; flex-direction: column; gap: 10px; }

.choice-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-dark);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.choice-btn:hover,
.choice-btn.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.choice-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-dark);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.choice-pill:hover,
.choice-pill.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.pill-row { display: flex; gap: 8px; }

.biz-block p { margin: 0 0 10px; font-size: 14px; color: var(--text-dark); }

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.btn-back {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-back.hidden { visibility: hidden; }

.btn-next {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn-next[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links a { color: inherit; }

.footer-copy { font-size: 14px; color: var(--text-muted); }

@media (max-width: 640px) {
  .section, .contatti-section, .chi-sono, .dove-lavoro { padding-left: 16px; padding-right: 16px; }
  .form-card { padding: 32px 20px; }
}
