/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.35s ease 0.05s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── VARIABLES ──────────────────────────────────────────────── */
:root {
  --accent: #e8192c;
  --accent-dim: rgba(232,25,44,0.08);
  --accent-border: rgba(232,25,44,0.25);
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface2: #ebebeb;
  --dark: #0a0a0a;
  --dark2: #111111;
  --border: rgba(0,0,0,0.09);
  --border-dark: rgba(255,255,255,0.09);
  --gray: #aaaaaa;
  --gray-light: #666666;
  --max-w: 1280px;
}

/* ─── UTILITIES ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.accent { color: var(--accent); }
.label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.label-dark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--dark); background: rgba(0,0,0,0.03); }
.btn-secondary-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-secondary-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s, border-color 0.35s, padding 0.3s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
  padding: 14px 40px;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.35s;
}
nav.scrolled .nav-logo { color: var(--dark); }
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  position: relative;
}
nav.scrolled .nav-links a { color: var(--gray-light); }
.nav-links a:hover { color: #fff; }
nav.scrolled .nav-links a:hover { color: var(--dark); }
.nav-links a.active { color: #fff; }
nav.scrolled .nav-links a.active { color: var(--dark); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav-cta {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: opacity 0.2s, transform 0.2s, background 0.35s, color 0.35s, border-color 0.35s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
nav.scrolled .nav-cta { background: var(--accent); color: #fff; border-color: transparent; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s;
}
nav.scrolled .hamburger span { background: var(--dark); }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  transition: color 0.2s;
  padding: 4px 0;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 26px;
  color: var(--gray-light);
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SECTION SHARED ─────────────────────────────────────────── */
section { padding: 100px 0; }
.section-header { margin-bottom: 64px; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 14px;
  color: var(--dark);
}
.section-title-white {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 14px;
  color: #fff;
}
.section-desc {
  max-width: 540px;
  font-size: 17px;
  color: var(--gray-light);
  line-height: 1.75;
  margin-top: 18px;
}

/* ─── PAGE HERO (pagine interne) ─────────────────────────────── */
.page-hero {
  padding: 170px 0 90px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero .bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 20% 50%, black 10%, transparent 60%);
}
.page-hero .glow {
  position: absolute;
  top: -160px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 20px;
}
.page-hero-title .accent { color: #fff; }
.page-hero .label { color: rgba(255,255,255,0.75); }
.page-hero-desc {
  max-width: 560px;
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 36px;
}

/* ─── STATS BAR ──────────────────────────────────────────────── */
.stats-bar { background: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 44px 36px;
  border-right: 1px solid rgba(255,255,255,0.22);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.stat-sub { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ─── FORM ───────────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.form-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.form-card > p { font-size: 15px; color: var(--gray-light); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 16px;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray); }
.form-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,180,80,0.07);
  border: 1px solid rgba(0,180,80,0.18);
  border-radius: 6px;
  font-size: 13px;
  color: #1a8a4a;
  margin-bottom: 20px;
}

/* ─── TWO-COL GRID ───────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.two-col.center { align-items: center; }

/* ─── FEATURE LIST ───────────────────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
  padding-top: 2px;
}
.feature-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}
.feature-item p { font-size: 14px; color: var(--gray-light); line-height: 1.65; }

/* ─── STEP LIST ──────────────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; }
.step-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-dot {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}
.step-item p { font-size: 13px; color: var(--gray-light); line-height: 1.6; }

/* ─── ICON CARD ──────────────────────────────────────────────── */
.icon-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.icon-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.icon-card-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.icon-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--dark);
}
.icon-card p { font-size: 14px; color: var(--gray-light); line-height: 1.65; }

/* ─── CTA BOX ────────────────────────────────────────────────── */
.cta-box {
  background: var(--accent);
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #fff;
}
.cta-box p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 480px; }
.cta-box .btn-primary { background: #fff; color: var(--accent); }
.cta-box .btn-primary:hover { opacity: 0.92; transform: translateY(-2px); }

/* ─── QUOTE ─────────────────────────────────────────────────── */
.quote-block {
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  background: var(--accent-dim);
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}
.quote-block p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.55;
}

/* ─── MISSIONE ───────────────────────────────────────────────── */
.missione-section { background: var(--accent); padding: 100px 0; }
.missione-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.missione-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.missione-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.missione-desc { font-size: 17px; color: rgba(255,255,255,0.82); line-height: 1.75; }
.missione-right { display: flex; flex-direction: column; gap: 16px; }
.missione-stat {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 26px 30px;
}
.missione-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.missione-stat-label { font-size: 14px; color: rgba(255,255,255,0.72); }

/* ─── HOME — HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 72px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 40px;
  padding: 6px 16px;
  margin-bottom: 32px;
  width: fit-content;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-tag span {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
}
.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
}
.hero-headline .hl { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45); text-underline-offset: 6px; }
.hero-sub {
  max-width: 500px;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-sub strong { color: #fff; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* Buttons on red backgrounds (hero, page-hero, cta-box) */
.hero .btn-primary,
.page-hero .btn-primary {
  background: #fff;
  color: var(--accent);
}
.hero .btn-primary:hover,
.page-hero .btn-primary:hover { opacity: 0.92; transform: translateY(-2px); }
.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  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}
}

/* Photo right column */
.hero-photo-wrap { position: relative; flex-shrink: 0; }
.hero-photo-accent {
  position: absolute;
  top: -10px; right: -10px;
  width: 100%; height: 100%;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 18px;
  opacity: 1;
  pointer-events: none;
}
.hero-photo-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  position: relative;
  z-index: 1;
}
.hero-photo-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--accent) 0%, transparent 100%);
  border-radius: 0 0 16px 16px;
  z-index: 2;
  pointer-events: none;
}
.hero-photo-badge {
  position: absolute;
  bottom: 28px; left: -24px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.hero-photo-badge strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-photo-badge small {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 3px;
  font-weight: 500;
}

/* ─── HOME — CHI SONO ────────────────────────────────────────── */
.chi-sono-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.chi-sono-text p {
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.85;
  margin-bottom: 18px;
}
.chi-sono-right { position: sticky; top: 110px; }
.milestones { display: flex; flex-direction: column; }
.milestone {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.milestone:last-child { border-bottom: none; }
.milestone-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 44px;
  padding-top: 1px;
}
.milestone-text { font-size: 14px; color: var(--gray-light); line-height: 1.65; }
.milestone-text strong { color: var(--dark); font-weight: 600; }

/* ─── HOME — COSA OFFRO ──────────────────────────────────────── */
.offro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.offro-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.offro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.offro-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.offro-card:hover::before { transform: scaleX(1); }
.offro-card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.offro-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--dark);
}
.offro-card p {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 28px;
}
.offro-card a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.offro-card:hover a { gap: 10px; }

/* ─── FOR CHI ────────────────────────────────────────────────── */
.for-chi-list { display: flex; flex-direction: column; gap: 14px; }
.for-chi-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.for-chi-item:hover {
  border-color: var(--accent-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.for-chi-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.for-chi-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}
.for-chi-item p { font-size: 13px; color: var(--gray-light); line-height: 1.6; }

/* ─── RISULTATI ──────────────────────────────────────────────── */
.risultati-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.risultato-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.risultato-card:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.risultato-card .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.risultato-card p { font-size: 13px; color: var(--gray-light); line-height: 1.6; }

/* ─── FINANZA ────────────────────────────────────────────────── */
.finanza-cards { display: flex; flex-direction: column; gap: 14px; }
.finanza-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.finanza-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.finanza-card-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.finanza-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.finanza-card p { font-size: 14px; color: var(--gray-light); }

/* ─── VIDEO ──────────────────────────────────────────────────── */
.video-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 40px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--gray-light);
  transition: all 0.2s;
  cursor: pointer;
  background: #fff;
  min-height: 44px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: block;
}
.video-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface2);
  overflow: hidden;
}
.video-thumb img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.video-card:hover .video-play { background: rgba(0,0,0,0.12); }
.play-btn {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.video-card:hover .play-btn { transform: scale(1.12); }
.video-info { padding: 18px 20px; }
.video-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.video-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--dark);
}
.video-meta { font-size: 12px; color: var(--gray); display: flex; gap: 12px; }

/* ─── CALCOLATORE ────────────────────────────────────────────── */
.calc-wrapper { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.calc-header { background: var(--accent); padding: 32px 40px; }
.calc-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #fff;
}
.calc-header p { font-size: 15px; color: rgba(255,255,255,0.6); }
.calc-body { display: grid; grid-template-columns: 1fr 1fr; }
.calc-inputs { padding: 40px; border-right: 1px solid var(--border); }
.calc-results { padding: 40px; background: var(--surface); }
.calc-field { margin-bottom: 28px; }
.calc-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calc-label span:first-child {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.calc-label span:last-child {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--surface2);
  outline: none;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.2s;
}
.range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 16px;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.result-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.result-card.highlight {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  grid-column: 1 / -1;
}
.result-card label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 8px;
  display: block;
}
.result-card .value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.result-card .value.big { font-size: 42px; color: var(--accent); }
.result-card .value.med { font-size: 26px; color: var(--dark); }
.calc-insight {
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.65;
}
.calc-insight strong { color: var(--dark); }

/* ─── SERVIZI ────────────────────────────────────────────────── */
.servizi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.servizio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.servizio-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.servizio-icon { font-size: 26px; margin-bottom: 14px; }
.servizio-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.servizio-card ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.servizio-card li {
  font-size: 13px;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.servizio-card li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.avg-ticket {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray);
}
.avg-ticket strong { color: var(--accent); font-size: 13px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}
.footer-brand h2 span { color: var(--accent); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col li a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-link:hover { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); }

/* ─── BACK TO TOP ────────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
  border: none;
  box-shadow: 0 4px 16px rgba(232,25,44,0.4);
}
.back-top.visible { opacity: 1; transform: none; }
.back-top:hover { opacity: 0.88; }

/* ─── RESPONSIVE — TABLET ────────────────────────────────────── */
@media (max-width: 1100px) {
  .offro-grid { grid-template-columns: repeat(2, 1fr); }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.22); }
  .two-col, .chi-sono-grid, .missione-grid { grid-template-columns: 1fr; gap: 48px; }
  .chi-sono-right { position: static; }
  .calc-body { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
  .result-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo-wrap { max-width: 340px; margin: 0 auto; order: -1; }
  .hero-photo-badge { left: -10px; bottom: 20px; }
  .hero-headline { font-size: clamp(40px, 10vw, 68px); }
}

/* ─── RESPONSIVE — MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  nav { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: 90px; padding-bottom: 60px; }
  .hero-headline { font-size: clamp(38px, 11vw, 60px); }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
  .hero-photo-wrap { max-width: 280px; }
  .hero-photo-badge { left: -8px; padding: 10px 14px; }
  .hero-photo-badge strong { font-size: 20px; }
  .hero-scroll { display: none; }

  .page-hero { padding: 120px 0 56px; }
  .page-hero-title { font-size: clamp(32px, 9vw, 52px); }
  .page-hero-desc { font-size: 16px; }
  .page-hero-inner > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 36px !important; }

  .section-title,
  .section-title-white { font-size: clamp(26px, 7vw, 40px); }
  .section-header { margin-bottom: 44px; }

  .offro-grid { grid-template-columns: 1fr; }
  .servizi-grid { grid-template-columns: 1fr 1fr; }
  .risultati-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 20px; }
  .stat-number { font-size: clamp(26px, 6vw, 36px); }

  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }

  .calc-header { padding: 24px 20px; }
  .calc-inputs, .calc-results { padding: 24px 20px; }
  .result-cards { grid-template-columns: 1fr; }
  .result-card.highlight { grid-column: auto; }

  .cta-box { flex-direction: column; padding: 28px 24px; }
  .missione-grid { grid-template-columns: 1fr; gap: 36px; }
  .missione-title { font-size: clamp(34px, 8vw, 52px); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .back-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* ─── RESPONSIVE — SMALL MOBILE ─────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .servizi-grid { grid-template-columns: 1fr; }
  .risultati-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.22); }
  .hero-photo-wrap { max-width: 240px; }
  .offro-card { padding: 28px 22px; }
  .btn-primary, .btn-secondary { font-size: 14px; padding: 13px 22px; }
  .video-filter { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: 12px; }
}

/* ─── TOUCH TARGETS ──────────────────────────────────────────── */
@media (hover: none) {
  .btn-primary:hover, .btn-secondary:hover { transform: none; opacity: 1; }
  .offro-card:hover, .icon-card:hover, .servizio-card:hover,
  .video-card:hover, .for-chi-item:hover, .finanza-card:hover { transform: none; box-shadow: none; }
}
