/* ============================================
   FONT INTER (self-hosted, no Google dipendenza)
   ============================================ */
/* latin-ext 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter/inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter/inter-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter/inter-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter/inter-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter/inter-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext 700 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter/inter-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 700 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter/inter-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext 800 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/inter/inter-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 800 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/inter/inter-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --blue: #0b4eff;
  --blue-dark: #0838b8;
  --ink: #0d1b2a;
  --ink-soft: #3a4a5c;
  --muted: #6b7b8c;
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --bg-accent: #0d1b2a;
  --border: #e3e8ef;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 12px 28px -10px rgba(11, 78, 255, 0.18), 0 4px 12px -6px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 30px 60px -25px rgba(11, 78, 255, 0.32), 0 12px 30px -16px rgba(13, 27, 42, 0.16);
  --maxw: 1140px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

::selection { background: rgba(11, 78, 255, 0.18); color: var(--ink); }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.028em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; }

p  { margin: 0 0 1em; color: var(--ink-soft); }

a  { color: inherit; text-decoration: none; }

ul, ol { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }
.container.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 12px;
}
.eyebrow.light { color: #7aa8ff; }

.lead, .section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 65ch;
}

.section-head { margin-bottom: 48px; max-width: 780px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 78, 255, 0.24);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo span { color: var(--blue); }

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 4px 0;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.nav a:hover { color: var(--blue); background-size: 100% 2px; }

/* Focus ring globale (accessibilità) */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(11, 78, 255, 0.08), transparent 60%),
    radial-gradient(800px 400px at 0% 20%, rgba(11, 78, 255, 0.05), transparent 60%);
  background-position: center top;
  background-size: cover;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-width: 0;
}
.hero-copy,
.hero-visual {
  min-width: 0;
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy .lead { margin-bottom: 28px; font-size: 1.15rem; }
.cta-group { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-group .micro {
  font-size: 0.88rem;
  color: #52606e;
  margin: 0;
  max-width: 46ch;
}

.hero-trust {
  display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: rgba(11, 78, 255, 0.06);
  border: 1px solid rgba(11, 78, 255, 0.14);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
a.hero-trust:hover { background: rgba(244, 123, 48, 0.14); border-color: rgba(244, 123, 48, 0.35); transform: translateY(-1px); }
.hero-trust .stars { color: #f5a623; letter-spacing: 1px; font-size: 0.85rem; }
.hero-trust strong { color: var(--ink); font-weight: 700; }

.hero-visual {
  position: relative;
  width: 100%;
}
.hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow:
    0 30px 60px -25px rgba(11, 78, 255, 0.28),
    0 50px 80px -40px rgba(13, 27, 42, 0.18);
}
.pen-card {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 #fff inset,
    0 30px 60px -25px rgba(11, 78, 255, 0.28),
    0 50px 80px -40px rgba(13, 27, 42, 0.18);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 40px;
}
.pen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f7f9ff, #eef2ff 60%, #e6ecff);
}
.pen-halo {
  position: absolute;
  inset: 20% -10% auto auto;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 78, 255, 0.32), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}
.pen {
  position: absolute;
  width: 70%;
  height: 22px;
  border-radius: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(-18deg);
  box-shadow: 0 10px 20px rgba(13, 27, 42, 0.1);
}
.pen::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 0 6px 6px 0;
}
.pen-1 { top: 26%; background: var(--blue); }
.pen-2 { top: 40%; background: #e63946; }
.pen-3 { top: 54%; background: #2a9d8f; }
.pen-4 { top: 68%; background: #f4a261; }
.pen-logo {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px -14px rgba(11, 78, 255, 0.25);
  text-align: center;
}
.pen-logo span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pen-logo small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .cta-group { align-items: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; justify-self: center; }
}
@media (max-width: 680px) {
  .hero-visual { max-width: 100%; }
  .hero { padding: 56px 0 64px; }
  .cta-group .micro { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .hero-visual { margin: 0; width: 100%; }
}

/* ---------- Logo strip (social proof) ---------- */
.logo-strip {
  padding: 36px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logo-strip-label {
  text-align: center;
  margin: 0 0 22px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 160px;
  flex-shrink: 0;
}
.client-logo img {
  max-height: 50px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
  display: block;
}
.client-logo:hover img { filter: grayscale(0%); opacity: 1; }
.client-logo img[src*="clienti/nicolai"] {
  max-height: 65px;
  max-width: 182px;
}
.client-logo:has(img[src*="clienti/nicolai"]) {
  width: 200px;
}
.client-logo img[src*="roy-rogers"] {
  max-height: 85px;
  max-width: 237px;
}
.client-logo:has(img[src*="roy-rogers"]) {
  width: 260px;
  height: 95px;
  margin-left: -30px;
}
.client-logo img[src*="giorgio"] {
  max-height: 60px;
  max-width: 168px;
}
.client-logo:has(img[src*="giorgio"]) {
  width: 192px;
  height: 84px;
}

/* ---------- Social proof (numbers + testimonials) ---------- */
.section-proof {
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(11, 78, 255, 0.06), transparent 60%),
    var(--bg);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.stats li {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 4px 8px;
}
.stats li:last-child { border-right: 0; }
.stat-num {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-num span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats li { border-right: 0; }
  .stats li:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stats li { border-right: 0 !important; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .stats li:last-child { border-bottom: 0; padding-bottom: 4px; }
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 0.95rem;
}
.testimonial blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  flex: 1;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.testimonial figcaption strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-muted { background: var(--bg-muted); }
.section-accent {
  background: var(--bg-accent);
  color: #eaf0f8;
}
.section-accent h2 { color: #fff; }
.section-accent p { color: #b9c4d1; }

.section-final {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(11, 78, 255, 0.1), transparent 60%),
    var(--bg);
  padding: 100px 0;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(11, 78, 255, 0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.95rem; }

@media (max-width: 900px) {
  .feature-grid, .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid, .cards { grid-template-columns: 1fr; }
}

/* ---------- Benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  max-width: 880px;
}
.benefits li {
  padding: 18px 20px 18px 44px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  position: relative;
  color: var(--ink-soft);
}
.benefits li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 18px;
  color: var(--blue);
  font-weight: 700;
}
.benefits strong { color: var(--ink); display: block; margin-bottom: 2px; }

@media (max-width: 700px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Pillars (Consulenza) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(4px);
}
.pillar-num {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #7aa8ff;
  font-weight: 700;
  margin-bottom: 14px;
}
.pillar h3 { color: #fff; }
.pillar p { color: #b9c4d1; margin: 0; }

@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Guide ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
}
.guide-card h3 { margin-bottom: 10px; }
.guide-card p { margin: 0; }

@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- Visual grid ---------- */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.visual-tile.wide { grid-column: span 2; }
.visual-ph {
  background: linear-gradient(135deg, #f0f4ff, #e4eaff);
  border: 1px dashed #c5cee5;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 16px;
  text-align: center;
}
.visual-tile.wide .visual-ph { aspect-ratio: 2 / 1; }
.color-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.swatch {
  width: 36px; height: 36px; border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.12);
}
.s1 { background: var(--blue); }
.s2 { background: #e63946; }
.s3 { background: #2a9d8f; }
.s4 { background: #f4a261; }
.s5 { background: #1d1d1d; }
.color-variants .label {
  width: 100%;
  text-align: center;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .visual-grid { grid-template-columns: repeat(2, 1fr); }
  .visual-tile.wide { grid-column: span 2; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-grid li {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
}
.trust-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 999px;
  margin-bottom: 14px;
  text-indent: -9999px;
}
.trust-grid h3 { margin-bottom: 6px; font-size: 1rem; }
.trust-grid p { margin: 0; font-size: 0.94rem; }

@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Video carousel (edge-to-edge) ---------- */
.section-video {
  width: 100%;
  padding: 64px 0 48px;
  margin: 0;
  background: #fff;
}
.video-head { text-align: center; margin-bottom: 32px; }
.video-head h2 { margin: 0; }
.video-carousel-stage { position: relative; max-width: 900px; margin: 0 auto; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-carousel-nav:hover { background: rgba(0, 0, 0, 0.85); transform: translateY(-50%) scale(1.06); }
.video-carousel-prev { left: 20px; }
.video-carousel-next { right: 20px; }
.video-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 0;
}
.video-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(13, 27, 42, 0.20);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-dot:hover { background: rgba(13, 27, 42, 0.45); }
.video-dot.is-active { background: var(--blue); transform: scale(1.25); }
@media (max-width: 560px) {
  .video-carousel-nav { width: 40px; height: 40px; }
  .video-carousel-prev { left: 10px; }
  .video-carousel-next { right: 10px; }
}

/* ---------- Casi d'uso ---------- */
.casi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.caso-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.caso-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.caso-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 20px 0;
  height: 82px;
}
.caso-media img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.caso-body {
  padding: 0 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.caso-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  min-height: 2.6em;
  line-height: 1.3;
  display: grid;
  align-content: end;
}
.caso-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
@media (max-width: 900px) { .casi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .casi-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.section-form {
  background:
    linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}
.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.form-copy h2 { margin-bottom: 14px; }
.form-copy-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-reassure {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.form-reassure li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
}
.form-reassure li::before {
  content: "✓";
  color: var(--blue);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.lead-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lead-form label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 78, 255, 0.14);
}
.lead-form textarea { resize: vertical; min-height: 80px; }
.field-optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.lead-form input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink-soft);
  border: 1px dashed #c5cdd8;
  border-radius: 10px;
  background: #f7f9fc;
  cursor: pointer;
}
.lead-form input[type="file"]:focus {
  outline: none;
  border-color: var(--blue);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(11, 78, 255, 0.14);
}
.lead-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.lead-form input[type="file"]::file-selector-button:hover {
  background: var(--blue-dark);
}
.radio-row { display: flex; gap: 20px; padding-top: 4px; }
.radio, .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.lead-form .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.lead-form .checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--blue);
  margin: 0;
  cursor: pointer;
}
.lead-form .checkbox span { white-space: normal; }
@media (max-width: 700px) {
  .lead-form .checkbox { align-items: flex-start; }
}

.form-note {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #0a7f3f;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(10, 127, 63, 0.08);
  border: 1px solid rgba(10, 127, 63, 0.2);
}
.form-note[data-status="error"] {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.25);
}

@media (max-width: 900px) {
  .form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: #fafbfd;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--blue); }

/* =========================================================
   ENHANCEMENTS — scroll progress, reveal, mobile nav, sticky CTA
   ========================================================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  z-index: 99;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hamburger button */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: var(--bg-muted); border-color: var(--blue); }
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(160%) blur(12px);
  z-index: 18;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 24px 32px;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.mobile-nav a.btn {
  border-bottom: 0;
  margin-top: 12px;
  font-size: 1.05rem;
  padding: 16px 28px;
}

/* Mobile sticky CTA bar */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 15;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px -10px rgba(13, 27, 42, 0.12);
}

/* Mobile breakpoint behavior */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .cta-header { display: none; }
  .mobile-cta { display: block; }
  body { padding-bottom: 80px; }
  .pen-logo { padding: 10px 14px; }
  .marquee-track { gap: 36px; }
  .client-logo { height: 56px; width: 130px; }
  .client-logo img { max-height: 40px; max-width: 110px; }
  .client-logo img[src*="clienti/nicolai"] { max-height: 52px; max-width: 143px; }
  .client-logo:has(img[src*="clienti/nicolai"]) { width: 160px; }
  .client-logo img[src*="roy-rogers"] { max-height: 68px; max-width: 186px; }
  .client-logo:has(img[src*="roy-rogers"]) { width: 208px; height: 76px; margin-left: -20px; }
  .client-logo img[src*="giorgio"] { max-height: 48px; max-width: 132px; }
  .client-logo:has(img[src*="giorgio"]) { width: 156px; height: 67px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-progress { display: none; }
  * { scroll-behavior: auto; }
}

/* ===== BIC PALETTE OVERRIDE ===== */
/* =========================================================
   BIC palette — override layer applicato sopra styles.css
   Caricare DOPO styles.css per via della cascade.

   Palette ispirata a bicgraphic.com:
   - Arancio BIC   #f47b30  (CTA, accent)
   - Navy BIC      #002664  (testo, sezioni scure)
   - Crema calda   #f8f5ee  (background muted)
   - Giallo BIC    #ffc629  (dettaglio penna)
   ========================================================= */

:root {
  --blue: #f47b30;          /* accent / CTA principale */
  --blue-dark: #d96618;     /* hover CTA */
  --ink: #002664;           /* testi principali */
  --ink-soft: #2d4470;      /* testi secondari */
  --muted: #6b7790;         /* testi muted */
  --bg: #ffffff;
  --bg-muted: #f8f5ee;      /* crema caldo */
  --bg-accent: #002664;     /* sezioni scure */
  --border: #ebe5d6;        /* bordo warm */
  --shadow-sm: 0 1px 2px rgba(0, 38, 100, 0.06);
  --shadow-md:
    0 12px 28px -10px rgba(244, 123, 48, 0.22),
    0 4px 12px -6px rgba(0, 38, 100, 0.10);
  --shadow-lg:
    0 30px 60px -25px rgba(244, 123, 48, 0.32),
    0 12px 30px -16px rgba(0, 38, 100, 0.18);
}

/* ---------- Selezione testo ---------- */
::selection { background: rgba(244, 123, 48, 0.22); color: var(--ink); }

/* ---------- Bottone primario ---------- */
.btn-primary { box-shadow: 0 8px 20px rgba(244, 123, 48, 0.28); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(244, 123, 48, 0.12), transparent 60%),
    radial-gradient(800px 400px at 0% 20%, rgba(0, 38, 100, 0.06), transparent 60%);
}

.hero-trust {
  background: rgba(244, 123, 48, 0.08);
  border-color: rgba(244, 123, 48, 0.20);
}

/* ---------- Pen visual ---------- */
.pen-card {
  box-shadow:
    0 1px 0 #fff inset,
    0 30px 60px -25px rgba(244, 123, 48, 0.28),
    0 50px 80px -40px rgba(0, 38, 100, 0.20);
}
.pen-card::before {
  background: linear-gradient(135deg, #fff8f0, #fdeede 60%, #fbe2c8);
}
.pen-halo {
  background: radial-gradient(circle, rgba(244, 123, 48, 0.36), transparent 60%);
}
.pen-1 { background: #f47b30; }   /* arancio BIC */
.pen-2 { background: #002664; }   /* navy BIC */
.pen-3 { background: #1f7ad6; }   /* blu BIC chiaro */
.pen-4 { background: #ffc629; }   /* giallo BIC */
.pen-logo {
  box-shadow: 0 14px 28px -14px rgba(244, 123, 48, 0.28);
}

/* ---------- Logo strip ---------- */
.client-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ---------- Social proof gradient ---------- */
.section-proof {
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(244, 123, 48, 0.08), transparent 60%),
    var(--bg);
}

/* ---------- Section accent (Consulenza) ---------- */
.section-accent { color: #f0ecdf; }
.section-accent p { color: #c5cee0; }
.eyebrow.light,
.pillar-num { color: #ffb780; }   /* arancio chiaro su navy */

/* ---------- Feature icon ---------- */
.feature-icon {
  background: rgba(244, 123, 48, 0.12);
  color: var(--blue);
}

/* ---------- Visual placeholder ---------- */
.visual-ph {
  background: linear-gradient(135deg, #fff4e6, #ffe6cc);
  border-color: #f1d6b0;
}

/* ---------- Color swatches ---------- */
.s1 { background: #f47b30; }
.s2 { background: #002664; }
.s3 { background: #1f7ad6; }
.s4 { background: #ffc629; }
.s5 { background: #1d1d1d; }

/* ---------- Form ---------- */
.section-form {
  background: linear-gradient(180deg, #f8f5ee 0%, #ffffff 100%);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(244, 123, 48, 0.18);
}

/* ---------- Final CTA ---------- */
.section-final {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(244, 123, 48, 0.14), transparent 60%),
    var(--bg);
}

/* ---------- Footer ---------- */
.site-footer { background: #F3F2F0; }

/* ---------- Logo immagine ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 24px; width: auto; display: block; }
.site-footer .logo img { height: 20px; }

/* ---------- Hamburger ---------- */
.nav-toggle:hover { border-color: var(--blue); }

/* ===== PROGETTI REALIZZATI — pen previews ===== */
.pen-preview { display:flex; align-items:center; gap:10px; margin-top:18px; }
.mp { display:flex; align-items:center; width:110px; flex-shrink:0; }
.mp-end { width:13px; height:13px; flex-shrink:0; }
.mp-body { flex:1; height:13px; display:flex; align-items:center; padding-left:6px; }
.mp-tip { width:0; height:0; border-top:6.5px solid transparent; border-bottom:6.5px solid transparent; flex-shrink:0; }
.mp-lbl { font-size:0.78rem; color:var(--muted); letter-spacing:0.03em; }

/* ===== PROGETTI GRID ===== */
/* Gallery progetti (incastro con bottom allineato) */
.progetti-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(12, 90px);
  grid-auto-flow: column;
  gap: 16px;
  margin-top: 40px;
}
.progetti-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.progetti-gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.progetti-gallery .fg-tall { grid-row: span 5; }
.progetti-gallery .fg-medium { grid-row: span 4; }
.progetti-gallery .fg-square { grid-row: span 3; }
.progetti-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .progetti-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(18, 80px);
  }
}
@media (max-width: 560px) {
  .progetti-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-auto-flow: row;
    gap: 10px;
  }
  .progetti-gallery .fg-tall,
  .progetti-gallery .fg-medium,
  .progetti-gallery .fg-square { grid-row: auto; }
  .progetti-gallery figure { aspect-ratio: 1; }
}

.progetti-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; }
.pg-card { background:var(--bg-muted); padding:36px 28px; border:1px solid var(--border); transition:box-shadow 0.2s,transform 0.2s; }
.pg-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.pg-card.wide { grid-column:span 2; }
.pg-sector { font-size:0.72rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--blue); font-weight:700; margin-bottom:12px; }
.pg-card h3 { margin-bottom:10px; }
.pg-card > p { margin-bottom:18px; font-size:0.95rem; }
.pg-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.pg-tag { background:rgba(244,123,48,0.08); color:var(--ink-soft); padding:4px 12px; border-radius:999px; font-size:0.78rem; font-weight:600; border:1px solid rgba(244,123,48,0.2); }

@media (max-width:900px) { .progetti-grid { grid-template-columns:1fr; } .pg-card.wide { grid-column:span 1; } }

/* ===== COSA ACCADRÀ ===== */
.cosa-layout { display:grid; grid-template-columns:1fr 0.85fr; gap:64px; align-items:start; }
.cosa-steps { display:flex; flex-direction:column; }
.cosa-step { display:flex; gap:22px; padding:28px 0; border-bottom:1px solid var(--border); }
.cosa-step:first-child { padding-top:0; }
.cosa-step:last-child { border-bottom:none; }
.cs-num { width:44px; height:44px; flex-shrink:0; background:var(--blue); border-radius:10px; display:grid; place-items:center; font-weight:800; font-size:1.1rem; color:#fff; }
.cs-body h3 { margin-bottom:5px; font-size:1.05rem; }
.cs-body p { margin:0; font-size:0.95rem; }
.cs-timing { display:inline-block; margin-top:8px; font-size:0.75rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--blue); font-weight:700; }
.cosa-aside { position:sticky; top:80px; }
.callout-box { background:var(--bg-accent); border-radius:var(--radius-lg); padding:36px 32px; color:#eaf0f8; }
.callout-box .eyebrow { color:#ffb780; margin-bottom:14px; }
.callout-box h3 { color:#fff; font-size:1.4rem; margin-bottom:10px; }
.callout-box > p { color:#b9c4d1; margin-bottom:20px; font-size:0.95rem; }
.callout-checks { display:flex; flex-direction:column; gap:9px; margin-bottom:28px; }
.callout-check { font-size:0.95rem; color:#c5d4e8; display:flex; gap:10px; align-items:flex-start; }
.callout-check::before { content:'✓'; color:#ffb780; font-weight:700; flex-shrink:0; margin-top:1px; }
.callout-aside-note { margin-top:16px; background:var(--bg-muted); border-radius:var(--radius); padding:20px; border:1px solid var(--border); }
.callout-aside-note p { font-size:0.88rem; color:var(--ink-soft); margin:0; line-height:1.6; }
.callout-aside-note strong { color:var(--ink); }

@media (max-width:900px) { .cosa-layout { grid-template-columns:1fr; } .cosa-aside { position:static; } }

/* ===== FAQ layout override ===== */
.faq-layout { display:grid; grid-template-columns:0.6fr 1.4fr; gap:64px; align-items:start; }
.faq-side { position:sticky; top:80px; }
.faq-side-callout { background:var(--bg-muted); border-radius:var(--radius-lg); padding:32px; border:1px solid var(--border); margin-top:28px; }
.faq-side-callout .eyebrow { margin-bottom:10px; }
.faq-side-callout h3 { font-size:1.25rem; margin-bottom:10px; }
.faq-side-callout p { font-size:0.9rem; margin-bottom:20px; }
@media (max-width:900px) { .faq-layout { grid-template-columns:1fr; } .faq-side { position:static; } }

/* ===== NUM GRANDI (perché BIC) ===== */
.bic-why-layout { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.bic-nums-block { position:sticky; top:80px; }
.bic-nums-grid { display:grid; grid-template-columns:1fr 1fr; gap:2px; margin-bottom:24px; }
.bic-num-cell { background:var(--bg-accent); padding:32px 24px; }
.bic-num-cell .big { font-size:clamp(2rem,3.5vw,2.8rem); font-weight:800; color:#f47b30; letter-spacing:-0.03em; line-height:1; }
.bic-num-cell .lbl { font-size:0.82rem; color:#b9c4d1; margin-top:6px; line-height:1.4; }
.bic-badges-row { display:flex; flex-wrap:wrap; gap:8px; }
.bic-badge { background:rgba(244,123,48,0.08); color:var(--ink-soft); padding:5px 12px; border-radius:999px; font-size:0.78rem; font-weight:600; border:1px solid rgba(244,123,48,0.2); }
.bic-features { display:flex; flex-direction:column; gap:0; }
.bic-feat { display:flex; gap:16px; align-items:flex-start; padding:24px 0; border-bottom:1px solid var(--border); }
.bic-feat:first-child { padding-top:0; }
.bic-feat:last-child { border-bottom:none; }
.bf-icon { width:44px; height:44px; flex-shrink:0; display:grid; place-items:center; margin-top:8px; }
.bf-icon img { width:100%; height:100%; object-fit:contain; display:block; }
.bf-text h4 { font-size:1rem; font-weight:600; margin-bottom:4px; letter-spacing:-0.005em; }
.bf-text p { margin:0; font-size:0.93rem; }
@media (max-width:900px) { .bic-why-layout { grid-template-columns:1fr; } .bic-nums-block { position:static; } }

/* ===== SCROLL PROGRESS OVERRIDE ===== */
.scroll-progress { background:var(--blue); }

/* ===== TRUSTPILOT ROW ===== */
.tp-row { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.tp-badge { display:inline-flex; align-items:center; gap:10px; background:var(--bg-muted); border:1px solid var(--border); border-radius:var(--radius); padding:12px 18px; }
.tp-badge .stars { font-size:1rem; }
.tp-badge-text { font-size:0.88rem; color:var(--ink-soft); }
.tp-badge-text strong { color:var(--ink); }
.tp-link { font-size:0.9rem; color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.tp-link:hover { color:var(--blue-dark); }

/* ============================================
   PAGINE LEGALI (privacy, cookie, termini)
   ============================================ */
.legal-body { background: var(--bg); }
.legal-page { padding: 56px 0 80px; }
.container.container-narrow { max-width: 780px; }
.legal-page h1 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal-page .legal-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 32px;
}
.legal-page section {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.legal-page section:last-of-type { border-bottom: 0; }
.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.legal-page h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.legal-page p,
.legal-page li {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin: 8px 0 14px;
}
.legal-page ul li { margin-bottom: 6px; }
.legal-page strong { color: var(--ink); }
.legal-page a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page a:hover { color: var(--blue-dark); }
/* Override per i pulsanti dentro le pagine legali */
.legal-page a.btn {
  text-decoration: none;
}
.legal-page a.btn-primary,
.legal-page a.btn-primary:hover {
  color: #fff;
}
.legal-page code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: var(--bg-muted);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 4px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.legal-table thead { background: var(--bg-muted); }
.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-table th { font-weight: 700; color: var(--ink); }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-back {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
@media (max-width: 560px) {
  .legal-page { padding: 32px 0 56px; }
  .legal-table { display: block; overflow-x: auto; }
}

/* ============================================
   COOKIE BANNER + MODAL + VIDEO OVERLAY (GDPR)
   ============================================ */
.cookie-banner[hidden],
.cookie-modal[hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(13, 27, 42, 0.30), 0 12px 24px -12px rgba(13, 27, 42, 0.15);
  padding: 22px 24px;
  max-width: 720px;
  margin: 0 auto;
  animation: cookie-slide-up 0.35s ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cookie-banner p { margin: 0 0 16px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.cookie-banner-link { margin: 0; font-size: 0.82rem; }
.cookie-banner-link a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-link a:hover { color: var(--blue-dark); }

.cookie-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex: 1 1 auto;
  min-width: 110px;
}
.cookie-btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.cookie-btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.cookie-btn-secondary {
  background: #fff;
  color: var(--ink);
}
.cookie-btn-secondary:hover { border-color: var(--ink); }

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.55);
  cursor: pointer;
}
.cookie-modal-content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
}
.cookie-modal-content h3 { margin: 0 0 8px; font-size: 1.2rem; }
.cookie-modal-content > p { margin: 0 0 20px; font-size: 0.92rem; color: var(--ink-soft); }
.cookie-cat {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.cookie-cat-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--blue);
}
.cookie-cat-head input[disabled] { cursor: not-allowed; opacity: 0.6; }
.cookie-cat-head strong { font-size: 0.98rem; color: var(--ink); }
.cookie-cat > p {
  margin: 8px 0 0 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Video cookie overlay (consenso funzionali mancante) */
.video-cookie-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(13, 27, 42, 0.92);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 14px;
  border-radius: inherit;
}
.video-cookie-overlay strong { font-size: 1rem; }
.video-cookie-overlay p { margin: 0; max-width: 360px; font-size: 0.9rem; opacity: 0.9; }
.video-cookie-overlay .cookie-btn { flex: 0 0 auto; }

/* Mobile */
@media (max-width: 560px) {
  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 18px 18px;
  }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-btn { width: 100%; flex: 1 1 100%; }
  .cookie-modal-content { padding: 22px 20px 20px; }
}
