/* =========================================================
   CynthIA — Stylesheet
   Cybersecurity & Advanced AI Solutions
   Palette derivata dal logo: viola #93117e, arancio #f29400, grigio #58585a
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f4f8;
  --surface: #ffffff;
  --surface-2: #f4f0f5;
  --border: rgba(88, 88, 90, 0.14);
  --border-strong: rgba(88, 88, 90, 0.28);

  --text: #2b2b2d;
  --text-muted: #58585a;
  --text-dim: #8b8b8d;

  --purple: #93117e;
  --purple-soft: #b3168f;
  --coral: #c8625e;
  --orange: #f29400;
  --orange-deep: #b35900;

  --gradient-brand: linear-gradient(120deg, var(--purple) 0%, var(--coral) 50%, var(--orange) 100%);
  --gradient-text: linear-gradient(120deg, #93117e 0%, #c8625e 50%, #f29400 100%);
  --gradient-radial: radial-gradient(circle at 15% 10%, rgba(147,17,126,0.08), transparent 40%),
                      radial-gradient(circle at 85% 0%, rgba(242,148,0,0.08), transparent 45%),
                      radial-gradient(circle at 50% 100%, rgba(147,17,126,0.05), transparent 50%);

  --shadow-glow: 0 1px 2px rgba(43,43,45,0.04), 0 24px 48px -24px rgba(147,17,126,0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-radial);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(147, 17, 126, 0.07);
  border: 1px solid rgba(147, 17, 126, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(242,148,0,0.6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 10px 30px -8px rgba(147, 17, 126, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(147, 17, 126, 0.55); }
.btn-secondary {
  background: rgba(88,88,90,0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--purple); background: rgba(147,17,126,0.05); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f5f4f6;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -6px rgba(43, 43, 45, 0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 84px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
header.site-header .logo:hover .logo-img,
footer.site-footer .logo:hover .logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 16px rgba(147, 17, 126, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -20px;
  height: 2px;
  background: var(--gradient-brand);
}
.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 90px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Visual panel */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}
.orbit-ring.r2 { inset: 40px; border-style: dashed; opacity: 0.6; }
.orbit-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 70px 8px rgba(147,17,126,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 4s ease-in-out infinite;
}
.orbit-core svg { width: 46%; height: 46%; }
.orbit-node {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}
.orbit-node svg { width: 24px; height: 24px; color: var(--purple); }
.orbit-node.n1 { top: -8px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.orbit-node.n2 { bottom: 6%; left: -8px; animation-delay: 1.5s; }
.orbit-node.n3 { bottom: 6%; right: -8px; animation-delay: 3s; }
.orbit-node.n4 { top: 30%; right: -14px; animation-delay: 4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.orbit-node.n1 { animation-name: float-n1; }
@keyframes float-n1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 70px 8px rgba(147,17,126,0.32); }
  50% { box-shadow: 0 0 90px 14px rgba(242,148,0,0.32); }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(147, 17, 126, 0.08);
  border: 1px solid rgba(147, 17, 126, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--orange-deep); }

.pill-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pill-tag.security { color: var(--purple); background: rgba(147, 17, 126, 0.08); border: 1px solid rgba(147,17,126,0.25); }
.pill-tag.ai { color: var(--orange-deep); background: rgba(242, 148, 0, 0.1); border: 1px solid rgba(242,148,0,0.3); }

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---------- Steps / process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step .step-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: block;
}
.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Stats band ---------- */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  background: var(--bg-alt);
}
.stats-band .grid-4 { text-align: center; }
.stats-band .stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-band .stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Values ---------- */
.value-item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: none; }
.value-item .num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple);
  min-width: 36px;
}
.value-item h4 { margin-bottom: 6px; font-size: 1.05rem; }
.value-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(147,17,126,0.08), rgba(242,148,0,0.08));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-glow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(147,17,126,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 24px; }
.field-check input { margin-top: 3px; }
.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 14px; }
.form-message {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-message.is-visible { display: block; }
.form-message.success {
  background: rgba(147,17,126,0.06);
  border: 1px solid rgba(147,17,126,0.25);
  color: var(--purple);
}
.form-message.error {
  background: rgba(200,48,48,0.06);
  border: 1px solid rgba(200,48,48,0.3);
  color: #b32424;
}
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none !important; }

.contact-info-list { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--text-muted); font-size: 0.92rem; }
.contact-info-item a:hover { color: var(--purple); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand .logo-img { height: 46px; }
.footer-tagline {
  font-style: italic;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  margin-top: 8px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.87rem; margin-top: 12px; max-width: 280px; }
.footer-col address { font-style: normal; }
.footer-col p.footer-legal-name { color: var(--text); font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.footer-col p.footer-legal-line { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }
.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.82rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.social-row a:hover { color: var(--purple); border-color: var(--purple); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--purple); }

/* ---------- Slogan / Tagline ---------- */
.tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero .tagline { font-size: 0.9rem; }
.page-hero .tagline { margin-top: -6px; }

/* ---------- Legal content pages ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content .updated-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 26px;
  margin-bottom: 10px;
}
.legal-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content ul li {
  color: var(--text-muted);
  font-size: 0.98rem;
  padding-left: 20px;
  position: relative;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.legal-content .contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 8px;
}
.legal-content .contact-box p { margin-bottom: 6px; }

/* ---------- Service banners (illustrazioni originali) ---------- */
.service-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  background: linear-gradient(135deg, rgba(147,17,126,0.05), rgba(242,148,0,0.05));
  border: 1px solid var(--border);
  padding: 20px;
}
.service-banner svg { width: 100%; height: auto; display: block; }
.sb-pulse {
  animation: sbPulse 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.sb-pulse.d1 { animation-delay: .5s; }
.sb-pulse.d2 { animation-delay: 1s; }
.sb-pulse.d3 { animation-delay: 1.5s; }
.sb-pulse.d4 { animation-delay: 2s; }
.sb-float {
  animation: sbFloat 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.sb-float.d1 { animation-delay: .8s; }
.sb-float.d2 { animation-delay: 1.6s; }
.sb-flow { stroke-dasharray: 5 7; animation: sbFlow 12s linear infinite; }
.sb-flow.rev { animation-direction: reverse; }

@keyframes sbPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}
@keyframes sbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes sbFlow {
  to { stroke-dashoffset: -120; }
}

/* ---------- Service detail block ---------- */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block .card ul li svg { color: var(--purple); }

/* ---------- Utility ---------- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

/* Tablet landscape / desktop piccolo: layout a colonne che si adattano */
@media (max-width: 980px) {
  .hero-grid, .split, .service-block { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 28px; }
}

/* Tablet (portrait/landscape): il menu desktop non ha più spazio sufficiente
   accanto al logo, quindi passiamo al menu a comparsa già da qui */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  .logo-img { height: 56px; }
  header.site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    box-shadow: 0 12px 24px -12px rgba(43, 43, 45, 0.18);
  }
  .nav-cta .btn-primary {
    padding: 11px 18px;
    font-size: 0.88rem;
  }
}

/* Smartphone: layout a singola colonna */
@media (max-width: 720px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  section { padding: 64px 0; }
  .hero { padding: 60px 0 56px; }
  .service-banner { padding: 14px; }
  .service-block { padding: 40px 0; }
  .cta-band { padding: 40px 22px; }
  .form-card, .contact-info-list { padding: 0; }
  .form-card { padding: 28px 22px; }
}

/* Smartphone piccoli: margini più stretti e pulsanti che vanno a capo
   invece di forzare lo scroll orizzontale */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav { padding: 10px 16px; }
  .logo-img { height: 46px; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px 32px; }
  .step, .card { padding: 24px; }
  .cta-band { padding: 32px 18px; border-radius: 18px; }
}
