/* ============================================================
   SYGMUND — Redesign 2026
   Stile: Minimal & Professionale
   ============================================================ */

:root {
  --c-ink: #332577;          /* viola/navy scuro brand */
  --c-ink-soft: #453596;
  --c-text: #1F2937;
  --c-muted: #6B7280;
  --c-line: #E5E7EB;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F1EA;
  --c-bg-deep: #241A5E;
  --c-accent: #EC8412;       /* arancione brand */
  --c-accent-soft: #FBEFDD;
  --c-success: #10B981;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 19, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 19, 48, 0.08);

  --container: 1200px;
  --container-narrow: 920px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--c-ink); text-decoration: none; }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); text-wrap: balance; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.brand-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800;
}
.nav-links {
  display: flex; align-items: center; gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--c-text);
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--c-accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 11px 18px; font-size: 0.9rem; }

/* Hamburger (mobile) */
.nav-burger {
  display: none;
  background: transparent; border: 1px solid var(--c-line);
  border-radius: 10px; padding: 9px 12px;
  cursor: pointer; font-size: 1.15rem; line-height: 1;
  color: var(--c-ink);
}
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    padding: 10px 0 24px;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.mobile-open .nav-links a {
    display: block;
    padding: 13px 24px;
    font-size: 1rem;
  }
  .nav.mobile-open .nav-links a:hover { background: var(--c-bg-alt); color: var(--c-accent); }
  .nav { position: relative; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-ink);
  color: #fff;
}
.btn-primary:hover { background: var(--c-accent); color: #fff; }

.btn-accent {
  background: var(--c-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--c-ink); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-ink); }

.btn-link {
  background: transparent;
  color: var(--c-ink);
  padding: 13px 0;
}
.btn-link:hover { color: var(--c-accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--c-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 36px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--c-muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--c-success); }

/* hero visual: card preview */
.hero-card {
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
  position: relative;
}
.hero-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.hero-card-title { font-weight: 700; color: var(--c-ink); }
.hero-card-tag {
  font-size: 0.75rem; padding: 4px 10px; border-radius: 999px;
  background: #DCFCE7; color: #166534; font-weight: 600;
}
.hero-card-row {
  display: flex; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--c-line);
  font-size: 0.95rem;
}
.hero-card-row:last-child { border-bottom: 0; }
.hero-card-row strong { color: var(--c-ink); }
.hero-card-foot {
  margin-top: 18px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--c-muted);
  display: flex; align-items: center; gap: 10px;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logo-strip {
  padding: 30px 0 60px;
  border-bottom: 1px solid var(--c-line);
}
.logo-strip-label {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: 22px;
}
.logo-row {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 34px;
  opacity: 1;
}
.logo-row img {
  height: 72px !important;
  width: auto;
  object-fit: contain;
  filter: none;
}
.logo-row span {
  font-weight: 700; font-size: 1.05rem; color: var(--c-ink);
  letter-spacing: 0.02em;
}

/* ============================================================
   SECTIONS GENERIC
   ============================================================ */
section { padding: 90px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark {
  background: var(--c-bg-deep);
  color: #E6E8F0;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-lead { color: #9CA3AF; }

.section-head {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 54px;
}

.section-head .eyebrow { margin-bottom: 14px; }
.section-lead {
  color: var(--c-muted);
  font-size: 1.1rem;
}

/* ============================================================
   PROBLEM / VALUE PILLARS (4 cards)
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-num {
  font-size: 1.8rem; font-weight: 800; color: var(--c-accent);
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.pillar h3 { margin-bottom: 6px; font-size: 1.08rem; }
.pillar p { color: var(--c-muted); font-size: 0.95rem; margin: 0; }

/* ============================================================
   SERVICES (2 big cards)
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.service-card {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 38px;
  background: #fff;
  display: flex; flex-direction: column;
  transition: all .2s ease;
}
.service-card:hover { border-color: var(--c-ink); box-shadow: var(--shadow-md); }
.service-tag {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-accent); margin-bottom: 12px;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card p { color: var(--c-muted); margin-bottom: 22px; }
.service-list {
  list-style: none; padding: 0; margin: 0 0 28px;
}
.service-list li {
  padding: 10px 0; border-top: 1px solid var(--c-line);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: var(--c-text);
}
.service-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent); flex: none;
}
.service-card .btn { align-self: flex-start; margin-top: auto; }

/* ============================================================
   STEPS (How it works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
}
.step {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--c-muted); font-size: 0.95rem; margin: 0; }

/* ============================================================
   DIFFERENTIATORS
   ============================================================ */
.diffs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 40px;
}
.diff {
  display: flex; gap: 20px;
}
.diff-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.diff-icon svg { width: 24px; height: 24px; }
.diff h3 { margin-bottom: 6px; font-size: 1.1rem; }
.diff p { color: var(--c-muted); margin: 0; }

/* ============================================================
   STATS (numbers)
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-size: 2.6rem; font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  color: #9CA3AF;
  font-size: 0.95rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial p {
  color: var(--c-text);
  font-size: 1.02rem;
  margin-bottom: 22px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--c-ink); font-size: 0.95rem;
}
.testimonial-author strong { display: block; color: var(--c-ink); font-size: 0.95rem; }
.testimonial-author span { color: var(--c-muted); font-size: 0.85rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 800px; margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--c-line);
}
.faq-item:last-child { border-bottom: 1px solid var(--c-line); }
.faq-q {
  width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 22px 0; font-size: 1.05rem; font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans);
}
.faq-q::after {
  content: "+"; font-size: 1.4rem; color: var(--c-accent); font-weight: 400;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0; overflow: hidden;
  color: var(--c-muted);
  transition: max-height .25s ease;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 22px;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0 0 8px; }
.cta-strip p { color: #C7CAD9; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--c-line);
  padding: 70px 0 30px;
  font-size: 0.92rem;
  color: var(--c-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-ink); margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; }
.footer-grid a { color: var(--c-muted); }
.footer-grid a:hover { color: var(--c-ink); }
.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}

/* ============================================================
   PRICING (Sportello page)
   ============================================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  display: flex; flex-direction: column;
  transition: all .2s ease;
}
.price-card.is-featured {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: #E6E8F0;
  position: relative;
}
.price-card.is-featured h3,
.price-card.is-featured .price { color: #fff; }
.price-card .badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--c-accent); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.price-card .who { font-size: 0.88rem; color: var(--c-muted); margin-bottom: 22px; min-height: 42px; }
.price-card.is-featured .who { color: #C7CAD9; }
.price {
  font-size: 1.9rem; font-weight: 800;
  color: var(--c-ink); letter-spacing: -0.03em;
  line-height: 1;
}
.price small { font-size: 0.85rem; font-weight: 500; color: var(--c-muted); }
.price-card.is-featured .price small { color: #C7CAD9; }
.price-list {
  list-style: none; padding: 0; margin: 22px 0 26px;
  font-size: 0.92rem;
}
.price-list li {
  padding: 8px 0;
  display: flex; align-items: flex-start; gap: 10px;
}
.price-list li::before {
  content: "✓"; color: var(--c-success); font-weight: 700; flex: none;
}
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card.is-featured .btn-primary { background: var(--c-accent); }
.price-card.is-featured .btn-primary:hover { background: #fff; color: var(--c-ink); }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  padding: 80px 0 50px;
  text-align: center;
  background: var(--c-bg-alt);
}
.page-header h1 { margin-bottom: 14px; }
.page-header p { color: var(--c-muted); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ============================================================
   TEAM
   ============================================================ */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member {
  text-align: left;
}
.member-photo {
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.6rem; color: var(--c-muted);
  margin-bottom: 14px;
  width: 100%;
  object-fit: cover;
}
img.member-photo { display: block; background: transparent; }
.member strong { display: block; color: var(--c-ink); }
.member span { color: var(--c-muted); font-size: 0.9rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { font-size: 1.1rem; margin-top: 30px; margin-bottom: 4px; }
.contact-info p { color: var(--c-muted); margin: 0; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; color: var(--c-ink);
  font-weight: 600; margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--c-ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   IMAGE PLACEHOLDERS (per foto da sostituire)
   ============================================================ */
.img-ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(247,148,29,0.08) 0%, rgba(15,19,48,0.05) 100%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(15,19,48,0.04) 12px 13px);
  border: 1px dashed rgba(15,19,48,0.18);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--c-muted);
  overflow: hidden;
}
.img-ph svg { width: 28px; height: 28px; opacity: 0.5; margin-bottom: 8px; }
.img-ph-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-ink); opacity: 0.55;
}
.img-ph-desc {
  font-size: 0.85rem; margin-top: 4px;
  color: var(--c-muted); font-style: italic;
}
.img-ph-16x9 { aspect-ratio: 16/9; }
.img-ph-4x3 { aspect-ratio: 4/3; }
.img-ph-1x1 { aspect-ratio: 1/1; }
.img-ph-portrait { aspect-ratio: 3/4; }
.img-ph-wide { aspect-ratio: 21/9; }

.img-ph-round {
  border-radius: 50%;
  aspect-ratio: 1/1;
}

/* image showcase section (full-width banner with image) */
.image-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.image-showcase .img-ph {
  min-height: 380px;
}
.image-showcase h2 { margin-bottom: 14px; }
.image-showcase p { color: var(--c-muted); font-size: 1.08rem; margin-bottom: 22px; }

.team-photo {
  margin-bottom: 14px;
}

/* ============================================================
   STICKY MOBILE CTA (CRO)
   ============================================================ */
.sticky-cta {
  display: none;
}
@media (max-width: 980px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }
  .sticky-cta .sc-info { font-size: 0.78rem; color: var(--c-muted); line-height: 1.3; }
  .sticky-cta .sc-info strong { display: block; color: var(--c-ink); font-size: 0.88rem; }
  .sticky-cta .btn { padding: 11px 18px; font-size: 0.88rem; flex: none; }
  body { padding-bottom: 70px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .diffs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .testimonials { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-strip { padding: 36px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .image-showcase { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 60px 0; }
  .hero { padding: 50px 0 40px; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PARLANO DI NOI — versione testuale (niente riquadri/trasparenze)
   ============================================================ */
.press-names {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 36px; align-items: baseline;
}
.press-names span {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-ink);
  opacity: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.press-names span::after {
  content: "";
}


/* ============================================================
   DROPDOWN ACCEDI (3 destinazioni)
   ============================================================ */
.access-wrap { position: relative; }
.access-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 300px;
  padding: 10px;
  display: none;
  z-index: 100;
}
.access-wrap.open .access-menu { display: block; }
.access-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background .12s;
}
.access-item:hover { background: var(--c-bg-alt); }
.access-item .ai-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.access-item strong { display: block; font-size: 0.92rem; color: var(--c-ink); }
.access-item span { display: block; font-size: 0.78rem; color: var(--c-muted); }


/* ============================================================
   RESPONSIVE REFINEMENTS — tablet e mobile perfetti
   ============================================================ */

/* --- TABLET (768-1200): pricing 4 colonne troppo strette --- */
@media (max-width: 1240px) and (min-width: 981px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
}

/* --- Grid inline non responsive: forzo 1 colonna su schermi stretti.
       Copre: foto+app sportello, titolare-block, price summary landing,
       blocco piccole organizzazioni, contact, roi-grid inline, ecc. --- */
@media (max-width: 860px) {
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- MOBILE (≤ 640) --- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .container, .container-narrow { padding: 0 18px; }

  /* Hero: CTA a tutta larghezza, testo respirabile */
  .hero { padding: 44px 0 36px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-lead { font-size: 1.05rem; }
  .hero-trust { gap: 10px 18px; font-size: 0.85rem; }

  /* Titoli fluidi più contenuti */
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }

  /* Loghi clienti più piccoli */
  .logo-row { gap: 18px 24px; }
  .logo-row img { height: 44px !important; }
  .press-names span { font-size: 0.98rem; }
  .press-names { gap: 8px 22px; }

  /* Cards e sezioni */
  .pillars, .steps, .services, .testimonials,
  .pricing, .includes-grid, .feature-grid, .diffs { grid-template-columns: 1fr !important; }
  .trust-row, .stats { grid-template-columns: 1fr 1fr !important; }
  .team { grid-template-columns: 1fr 1fr !important; }
  .service-card, .price-card { padding: 26px 22px; }
  .cta-strip { flex-direction: column; text-align: center; align-items: stretch; }
  .cta-strip .btn { justify-content: center; }
  .guarantee-strip { flex-direction: column; text-align: center; }

  /* Form: input più alti per il tocco */
  .form-group input, .form-group textarea, .calc-input input, .calc-input select {
    font-size: 16px; /* evita zoom automatico iOS */
    min-height: 46px;
  }
  .btn { min-height: 46px; }

  /* Footer in colonna singola, centrato meglio */
  .footer-grid { grid-template-columns: 1fr !important; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

  /* Dropdown Accedi: non sforare lo schermo */
  .access-menu {
    position: fixed;
    left: 12px; right: 12px; top: 70px;
    min-width: 0;
  }

  /* Immagini hero pagine interne */
  img[style*="aspect-ratio: 21/9"] { aspect-ratio: 16/10 !important; }

  /* Calcolatori: slider e output comodi */
  .calc-slider-row { flex-wrap: wrap; }
  .roi-inputs, .roi-results, .calc-panel, .calc-output { padding: 22px 18px; }
  .big-result .val { font-size: 2rem; }

  /* Approfondimenti: summary più compatti */
  .doc-article summary { padding: 16px 18px; font-size: 0.98rem; }
  .doc-article .doc-body { padding: 0 18px 18px; }
  .method-box { padding: 24px 18px; }
}

/* --- MOLTO PICCOLO (≤ 380): iPhone SE e simili --- */
@media (max-width: 380px) {
  .trust-row, .stats, .team { grid-template-columns: 1fr !important; }
  .nav-actions .btn { padding: 10px 14px; font-size: 0.85rem; }
  .brand img { height: 30px !important; }
}

/* --- Prevenzione overflow orizzontale globale --- */
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }

/* --- Tablet landscape: hero grid piu' bilanciato --- */
@media (min-width: 981px) and (max-width: 1180px) {
  .hero-grid { gap: 36px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.86rem; }
}

/* ============================================================
   DROPDOWN "RISORSE" nel menu principale
   ============================================================ */
.nav-drop { position: relative; }
.nav-drop-trigger {
  font-size: 0.92rem; color: var(--c-text); font-weight: 500;
  white-space: nowrap; cursor: pointer; display: inline-block;
}
.nav-drop-trigger:hover, .nav-drop-trigger:focus-visible { color: var(--c-accent); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%; transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 330px;
  padding: 10px;
  display: none;
  z-index: 120;
}
/* ponte invisibile per non perdere l'hover tra trigger e menu */
.nav-drop-menu::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--c-muted); font-weight: 700;
  padding: 8px 14px 6px;
}

/* Mobile: dentro il menu hamburger le voci Risorse appaiono in lista piatta */
@media (max-width: 1200px) {
  .nav-drop-trigger { display: none; }
  .nav-drop-menu {
    display: block !important;
    position: static; transform: none;
    border: none; box-shadow: none;
    min-width: 0; padding: 0;
  }
  .nav-drop-menu::before { display: none; }
  .nav-drop-label { padding: 12px 24px 2px; }
  .nav.mobile-open .nav-links .access-item {
    display: flex; padding: 11px 24px;
  }
}

/* ============================================================
   HERO — impatto d'apertura: aurora animata, entrata, float
   ============================================================ */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 560px;
  z-index: 0;
  background:
    radial-gradient(440px 340px at 16% 28%, rgba(236,132,18,0.20), transparent 60%),
    radial-gradient(500px 360px at 84% 18%, rgba(51,37,119,0.18), transparent 62%),
    radial-gradient(360px 300px at 60% 60%, rgba(236,132,18,0.10), transparent 60%);
  filter: blur(6px);
  animation: heroAurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroAurora {
  0%   { transform: translate3d(0,0,0) scale(1);    opacity: .85; }
  100% { transform: translate3d(0,-16px,0) scale(1.07); opacity: 1; }
}
.hero > .container { position: relative; z-index: 1; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-grid > div:first-child > * { opacity: 0; animation: heroFadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-grid > div:first-child > *:nth-child(1) { animation-delay: .05s; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: .13s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: .21s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: .29s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: .37s; }
.hero-grid > div:first-child > *:nth-child(6) { animation-delay: .45s; }

/* --- Visual hero: mockup app reale + chip factual --- */
.hero-visual { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 500px; }
.hero-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(236,132,18,0.28), rgba(51,37,119,0.10) 55%, transparent 70%);
  filter: blur(8px); z-index: 0;
  animation: heroGlow 7s ease-in-out infinite alternate;
}
@keyframes heroGlow { from { transform: scale(1); opacity:.85; } to { transform: scale(1.12); opacity:1; } }
.hero-phone {
  position: relative; z-index: 1;
  width: 270px; max-width: 80%;
  background: linear-gradient(160deg, #2A2350 0%, #14102E 100%);
  border-radius: 40px; padding: 8px;
  box-shadow: 0 34px 64px rgba(36,26,94,0.32), 0 3px 10px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.2,.7,.2,1) .3s both, heroFloat 6.5s ease-in-out 1.1s infinite;
}
.hero-phone-cam {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #0A0A14; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06); z-index: 3;
}
.hero-screen {
  position: relative; width: 100%; aspect-ratio: 9 / 18.5;
  background: #FBF8F3; border-radius: 32px; overflow: hidden;
}
.hero-screen .scene {
  position: absolute; inset: 0; padding: 26px 18px 18px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.hero-screen .scene.is-active { opacity: 1; transform: none; }

/* elementi app */
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-logo { font-weight: 800; color: var(--c-ink); font-size: 0.95rem; letter-spacing: -0.01em; }
.app-hello { font-size: 0.92rem; color: var(--c-muted); margin-top: 8px; line-height: 1.35; }
.app-hello strong { color: var(--c-ink); font-size: 1.05rem; }
.app-btn {
  border: none; cursor: default;
  background: var(--c-accent); color: #fff; font-family: var(--font-sans);
  font-weight: 700; font-size: 0.9rem; padding: 12px; border-radius: 12px; width: 100%;
}
.app-btn.ghost { background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); }
.scene[data-scene="0"] .app-btn:first-of-type { margin-top: auto; }

/* avatar persone */
.avatar { border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.av-user  { background: linear-gradient(135deg, var(--c-accent), #f6a94b); }
.av-pro   { background: linear-gradient(135deg, #7a6be0, #3d2f8f); }
.av-pro2  { background: linear-gradient(135deg, #4db6ac, #00897b); }
.av-pro3  { background: linear-gradient(135deg, #f06292, #c2185b); }
.av-xs { width: 22px; height: 22px; }
.av-sm { width: 28px; height: 28px; }
.av-md { width: 40px; height: 40px; }
.av-lg { width: 104px; height: 104px; }
.av-fill { width: 100%; height: 100%; border-radius: 0; }

.app-online { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 0.74rem; color: var(--c-muted); }
.av-stack { display: inline-flex; }
.av-stack .avatar { border: 2px solid #FBF8F3; margin-left: -8px; }
.av-stack .avatar:first-child { margin-left: 0; }

.app-h { font-weight: 700; color: var(--c-ink); font-size: 1rem; margin-bottom: 4px; }
.app-h.center { text-align: center; line-height: 1.3; }
.app-slot { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 11px 14px; font-size: 0.85rem; font-weight: 600; color: var(--c-ink); display: flex; justify-content: space-between; align-items: center; }
.app-slot.on { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-accent); }
.app-slot .slot-ok { font-size: 0.8rem; }
.scene[data-scene="1"] .app-btn { margin-top: auto; }
.app-spinner {
  width: 42px; height: 42px; border-radius: 50%; margin: 34px auto 8px;
  border: 4px solid var(--c-accent-soft); border-top-color: var(--c-accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.app-match {
  margin-top: 14px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  padding: 12px; display: flex; align-items: center; gap: 10px;
}
.app-match .m-info { flex: 1; }
.app-match .m-info strong { display: block; font-size: 0.86rem; color: var(--c-ink); }
.app-match .m-info small { font-size: 0.74rem; color: var(--c-muted); }
.app-match .m-check { width: 22px; height: 22px; border-radius: 50%; background: #16A34A; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex: none; }

/* scena videochiamata — professionista + utente */
.scene-call { padding: 0 !important; background: radial-gradient(120% 90% at 50% 35%, #2A2358 0%, #14102E 100%); }
.scene-call .call-pro { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.scene-call .call-pro .avatar { box-shadow: 0 12px 34px rgba(0,0,0,0.4); }
.scene-call .call-live {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.62rem; font-weight: 700; color: #fff; letter-spacing: 0.04em;
  background: rgba(0,0,0,0.35); padding: 4px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px);
}
.scene-call .call-live .rec { width: 7px; height: 7px; border-radius: 50%; background: #FF5A5F; animation: pulse 1.6s infinite; }
.scene-call .call-name { position: absolute; bottom: 82px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; font-size: 0.86rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.scene-call .call-self {
  position: absolute; right: 12px; bottom: 78px; width: 60px; height: 82px; border-radius: 12px;
  overflow: hidden; border: 2px solid rgba(255,255,255,0.75);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.scene-call:not(.is-active) .call-self { opacity: 0; }
.scene-call.is-active .call-self { animation: selfIn .55s cubic-bezier(.2,.7,.2,1) .45s both; }
@keyframes selfIn { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
.scene-call .call-self-tag { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: 0.58rem; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.scene-call .call-bar { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; }
.scene-call .cb { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
.scene-call .cb svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene-call .cb.end { background: #DC2626; }
.scene-call .cb.end svg { fill: #fff; stroke: none; }

/* caption e chip */
.hero-visual-cap {
  position: relative; z-index: 1;
  margin: 22px 0 0; text-align: center; width: 100%;
  font-size: 0.86rem; color: var(--c-muted);
}
.hero-chip {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--c-line); border-radius: 999px;
  padding: 9px 15px; font-size: 0.82rem; font-weight: 600; color: var(--c-ink);
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.hero-chip.chip-1 { top: 10%; left: -2%;  animation: heroFloat 6s ease-in-out infinite; }
.hero-chip.chip-2 { top: 45%; right: -4%; animation: heroFloat 7s ease-in-out .5s infinite; }
.hero-chip.chip-3 { bottom: 8%; left: 4%;  animation: heroFloat 6.5s ease-in-out .2s infinite; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (max-width: 600px) {
  .hero-visual { min-height: 380px; }
  .hero-chip.chip-1 { left: 0; }
  .hero-chip.chip-2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-glow,
  .hero-phone,
  .hero-chip,
  .hero-grid > div:first-child > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-chip.chip-1, .hero-chip.chip-2, .hero-chip.chip-3 { transform: none; }
}


/* ============================================================
   ACCESSIBILITÀ
   ============================================================ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-ink); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav-drop.open .nav-drop-menu { display: block; }

/* ============================================================
   CAROSELLO LOGHI CLIENTI (marquee)
   ============================================================ */
.marquee {
  overflow: hidden;
  margin-top: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 64px;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee-track img { height: 56px; width: auto; object-fit: contain; flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   VIDEO TESTIMONIANZE
   ============================================================ */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-wrap {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--c-bg-deep); box-shadow: var(--shadow-md);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}


/* Card singola centrata in una griglia a 2 colonne */
.services .span-center {
  grid-column: 1 / -1;
  width: 100%;
  max-width: calc(50% - 12px);
  margin: 0 auto;
}
@media (max-width: 860px) {
  .services .span-center { max-width: 100%; }
}


/* Card servizi: pari altezza + lista sportello espandibile */
.service-card .service-list .extra { display: none; }
.service-card.expanded .service-list .extra { display: list-item; }
.svc-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-accent-soft); color: var(--c-accent);
  border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.85rem;
  padding: 8px 16px; margin: 4px 0 16px;
}
.svc-toggle:hover { background: var(--c-accent); color: #fff; }

/* Avatar con foto reale */
.av-photo { overflow: hidden; }
.av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Videochiamata con foto reali */
.scene-call .call-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
}
.scene-call .call-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(transparent, rgba(10,8,30,0.78));
}
.scene-call .call-self img { width: 100%; height: 100%; object-fit: cover; display: block; }
