/*
Theme Name:   Astra SpartanWeb
Theme URI:    https://spartanweb.it
Description:  Child theme di Astra per SpartanWeb S.r.l. - Soluzioni Informatiche
Author:       SpartanWeb S.r.l.
Author URI:   https://spartanweb.it
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-spartanweb
*/

/* ============================================================
   CSS VARIABLES — Velzon-inspired palette
   ============================================================ */
:root {
  --sw-primary:       #405189;
  --sw-primary-dark:  #2a3a6b;
  --sw-primary-light: #5b6fa8;
  --sw-primary-soft:  #eef0f7;
  --sw-accent:        #f06548;
  --sw-accent-hover:  #e05539;
  --sw-accent-soft:   #fde7e2;
  --sw-success:       #0ab39c;
  --sw-info:          #299cdb;
  --sw-warning:       #f7b84b;
  --sw-bg:            #f3f6f9;
  --sw-card:          #ffffff;
  --sw-body:          #495057;
  --sw-heading:       #212529;
  --sw-muted:         #878a99;
  --sw-border:        #e9ebec;
  --sw-shadow:        0 1px 2px rgba(56,65,74,0.10);
  --sw-shadow-lg:     0 10px 30px -3px rgba(56,65,74,0.12);
  --sw-radius:        0.5rem;
  --sw-radius-lg:     0.75rem;
}

/* ============================================================
   RESET / BASE — override Astra defaults dove necessario
   ============================================================ */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  background-color: var(--sw-bg) !important;
  color: var(--sw-body) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  color: var(--sw-heading) !important;
  letter-spacing: -0.01em;
}

/* Nasconde header e footer di Astra sulla front-page
   (li gestiamo noi con topbar+navbar e custom footer) */
body.home .site-header,
body.home .site-footer,
body.home #masthead,
body.home #colophon {
  display: none !important;
}

/* Rimuove padding/margin che Astra aggiunge al content sulla home */
body.home .site-content,
body.home #content,
body.home .ast-container,
body.home .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
body.home .ast-article-single {
  padding: 0 !important;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.sw-topbar {
  background: var(--sw-primary-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 8px 0;
}
.sw-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.sw-topbar a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.sw-topbar a:hover { color: #fff; }
.sw-topbar i { margin-right: 4px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.sw-navbar {
  background: var(--sw-card);
  box-shadow: var(--sw-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.sw-navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.sw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}
.sw-brand-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-light) 100%);
  border-radius: var(--sw-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(64,81,137,0.3);
  flex-shrink: 0;
}
.sw-brand-icon img {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.sw-brand-text {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sw-primary) !important;
  line-height: 1.1;
}
.sw-brand-text span { color: var(--sw-accent) !important; }
.sw-brand-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--sw-muted) !important;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Nav menu WordPress-generated */
.sw-nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
}
.sw-nav-menu li { margin: 0; }
.sw-nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sw-body) !important;
  text-decoration: none !important;
  padding: 10px 16px;
  border-radius: var(--sw-radius);
  transition: background 0.15s, color 0.15s;
  display: block;
}
.sw-nav-menu a:hover {
  background: var(--sw-primary-soft);
  color: var(--sw-primary) !important;
}
.sw-nav-menu .current-menu-item > a {
  color: var(--sw-primary) !important;
  background: var(--sw-primary-soft);
}
.sw-nav-cta > a {
  background: var(--sw-primary) !important;
  color: white !important;
  margin-left: 8px;
  padding: 10px 22px !important;
  border-radius: var(--sw-radius) !important;
}
.sw-nav-cta > a:hover {
  background: var(--sw-primary-dark) !important;
  color: white !important;
}

/* ============================================================
   HERO
   ============================================================ */
.sw-hero {
  background: linear-gradient(135deg, #405189 0%, #2a3a6b 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 130px;
}
.sw-hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5; pointer-events: none;
}
.sw-hero::before {
  content: '';
  position: absolute; top: -80px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(240,101,72,0.18) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.sw-hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(91,111,168,0.3) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.sw-hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.sw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.sw-hero-badge .sw-dot {
  width: 6px; height: 6px;
  background: var(--sw-accent);
  border-radius: 50%;
  animation: sw-ping 2s ease-out infinite;
}
@keyframes sw-ping {
  0%   { box-shadow: 0 0 0 0 rgba(240,101,72,0.6); }
  100% { box-shadow: 0 0 0 8px rgba(240,101,72,0); }
}


.sw-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
  color: white !important;
  line-height: 1.15 !important;
  margin-bottom: 18px !important;
  font-weight: 700 !important;
}

.sw-hero h1 .sw-highlight {
  background: linear-gradient(120deg, var(--sw-accent) 0%, #ff8a72 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sw-hero h2 .sw-highlight {
  background: linear-gradient(120deg, var(--sw-accent) 0%, #ff8a72 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sw-hero h2 {
  font-size: clamp(2rem, 2vw, 2.4rem) !important;
  color: white !important;
  line-height: 1.15 !important;
  margin-bottom: 18px !important;
  font-weight: 700 !important;
}
.sw-hero h2 .sw-highlight {
  background: linear-gradient(120deg, var(--sw-accent) 0%, #ff8a72 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}




.sw-hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.sw-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Buttons */
.sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--sw-radius);
  text-decoration: none !important;
  transition: all 0.18s;
  border: none; cursor: pointer;
}
.sw-btn-accent {
  background: var(--sw-accent);
  color: white !important;
  box-shadow: 0 4px 14px rgba(240,101,72,0.4);
}
.sw-btn-accent:hover {
  background: var(--sw-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240,101,72,0.5);
  color: white !important;
}
.sw-btn-soft {
  background: rgba(255,255,255,0.1);
  color: white !important;
  border: 1px solid rgba(255,255,255,0.2);
}
.sw-btn-soft:hover { background: rgba(255,255,255,0.18); color: white !important; }
.sw-btn-primary {
  background: var(--sw-primary);
  color: white !important;
}
.sw-btn-primary:hover { background: var(--sw-primary-dark); color: white !important; }

/* Trust strip */
.sw-trust {
  display: flex; align-items: center; gap: 16px;
  color: rgba(255,255,255,0.7); font-size: 0.82rem;
}
.sw-avatars { display: flex; }
.sw-avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--sw-primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; color: white;
  margin-left: -8px;
}
.sw-avatars span:first-child { margin-left: 0; }
.sw-avatars span:nth-child(1) { background: #f06548; }
.sw-avatars span:nth-child(2) { background: #0ab39c; }
.sw-avatars span:nth-child(3) { background: #299cdb; }
.sw-avatars span:nth-child(4) { background: #f7b84b; }
.sw-trust strong { color: white; }

/* Hero visual / mock dashboard */
.sw-hero-visual { position: relative; }
.sw-mock-card {
  background: white;
  border-radius: var(--sw-radius-lg);
  padding: 16px;
  box-shadow: 0 25px 60px -10px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative; z-index: 2;
}
.sw-mock-winbar {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0 12px;
  border-bottom: 1px solid #f3f3f9;
  margin-bottom: 14px;
}
.sw-mock-winbar span {
  width: 10px; height: 10px; border-radius: 50%;
}
.sw-mock-winbar span:nth-child(1) { background: #f06548; }
.sw-mock-winbar span:nth-child(2) { background: #f7b84b; }
.sw-mock-winbar span:nth-child(3) { background: #0ab39c; }
.sw-mock-winbar small {
  margin-left: auto; color: #878a99; font-size: 0.72rem;
}
.sw-mock-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
  margin-bottom: 14px;
}
.sw-mock-stat {
  background: #f3f6f9; padding: 12px; border-radius: var(--sw-radius);
}
.sw-mock-stat-label {
  font-size: 0.65rem; color: #878a99;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.sw-mock-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 700; color: #212529;
}
.sw-mock-trend { font-size: 0.7rem; color: #0ab39c; margin-left: 4px; }
.sw-mock-chart {
  height: 110px;
  background: linear-gradient(180deg,rgba(64,81,137,0.08) 0%,transparent 100%);
  border-radius: var(--sw-radius); overflow: hidden;
}
.sw-mock-chart svg { width: 100%; height: 100%; }

/* Floating cards */
.sw-float {
  position: absolute;
  background: white; padding: 12px 16px;
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-lg);
  display: flex; align-items: center; gap: 12px;
  z-index: 3;
}
.sw-float-1 { top: -20px; left: -30px; animation: sw-float 5s ease-in-out infinite; }
.sw-float-2 { bottom: -20px; right: -20px; animation: sw-float 5s ease-in-out 1.5s infinite; }
@keyframes sw-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.sw-float-icon {
  width: 36px; height: 36px; border-radius: var(--sw-radius);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.sw-float-icon.success { background: rgba(10,179,156,0.15); color: #0ab39c; }
.sw-float-icon.info    { background: rgba(41,156,219,0.15); color: #299cdb; }
.sw-float-text { font-size: 0.78rem; }
.sw-float-text strong { display: block; color: #212529; font-weight: 600; font-size: 0.85rem; }
.sw-float-text small   { color: #878a99; }

/* ============================================================
   METRICS BAR
   ============================================================ */
.sw-metrics-wrap {
  margin-top: -50px;
  padding: 0 24px;
  position: relative; z-index: 5;
}
.sw-metrics {
  background: white;
  border-radius: var(--sw-radius-lg);
  box-shadow: var(--sw-shadow-lg);
  max-width: 1240px;
  margin: 0 auto;
}
.sw-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px;
}
.sw-metric {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 20px;
  border-right: 1px solid #f3f3f9;
}
.sw-metric:last-child { border-right: none; }
.sw-metric-icon {
  width: 48px; height: 48px; border-radius: var(--sw-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.sw-icon-primary { background: var(--sw-primary-soft); color: var(--sw-primary); }
.sw-icon-accent  { background: var(--sw-accent-soft);  color: var(--sw-accent); }
.sw-icon-success { background: rgba(10,179,156,0.12);  color: var(--sw-success); }
.sw-icon-info    { background: rgba(41,156,219,0.12);  color: var(--sw-info); }
.sw-icon-warning { background: rgba(247,184,75,0.15);  color: var(--sw-warning); }
.sw-icon-purple  { background: rgba(102,16,242,0.1);   color: #6610f2; }
.sw-metric-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: var(--sw-heading); line-height: 1;
}
.sw-metric-label { font-size: 0.82rem; color: var(--sw-muted); margin-top: 4px; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.sw-section { padding: 90px 24px; }
.sw-section-inner { max-width: 1240px; margin: 0 auto; }
.sw-section-white { background: white; }
.sw-section-bg    { background: var(--sw-bg); }

.sw-section-head {
  text-align: center; max-width: 640px; margin: 0 auto 60px;
}
.sw-section-tag {
  display: inline-block;
  background: var(--sw-primary-soft); color: var(--sw-primary);
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 14px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.sw-section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem) !important;
  margin-bottom: 12px !important;
}
.sw-section-sub { color: var(--sw-muted); font-size: 1rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.sw-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.sw-service {
  background: white;
  border-radius: var(--sw-radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--sw-border);
  transition: all 0.25s;
}
.sw-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--sw-shadow-lg);
  border-color: transparent;
}
.sw-service-icon {
  width: 56px; height: 56px; border-radius: var(--sw-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.sw-service h3 {
  font-size: 1.05rem !important; font-weight: 600 !important; margin-bottom: 10px !important;
}
.sw-service p { font-size: 0.875rem; color: var(--sw-muted); line-height: 1.65; margin-bottom: 16px; }
.sw-service-link {
  font-size: 0.8rem; color: var(--sw-primary) !important;
  text-decoration: none !important; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s;
}
.sw-service:hover .sw-service-link { gap: 8px; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.sw-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.sw-product {
  background: white;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none !important;
  color: inherit !important;
  display: flex; flex-direction: column;
}
.sw-product:hover {
  transform: translateY(-6px);
  box-shadow: var(--sw-shadow-lg);
}
.sw-product-cover {
  height: 160px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sw-cover-blue   { background: linear-gradient(135deg,#405189 0%,#5b6fa8 100%); }
.sw-cover-orange { background: linear-gradient(135deg,#f06548 0%,#ff8a72 100%); }
.sw-cover-teal   { background: linear-gradient(135deg,#0ab39c 0%,#34d3bb 100%); }
.sw-product-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.sw-product-cover-icon {
  font-size: 3.5rem; color: rgba(255,255,255,0.95);
  z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.sw-product-status {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.95); color: #212529;
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 50px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
}
.sw-live-dot {
  width: 6px; height: 6px; background: #0ab39c; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(10,179,156,0.3);
}
.sw-product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.sw-product-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sw-muted); font-weight: 600; margin-bottom: 6px; }
.sw-product h3 { font-size: 1.25rem !important; font-weight: 600 !important; margin-bottom: 6px !important; }
.sw-product-domain { font-size: 0.78rem; color: var(--sw-primary); margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
.sw-product p { font-size: 0.875rem; color: var(--sw-body); line-height: 1.65; margin-bottom: 18px; flex: 1; }
.sw-product-features { list-style: none; margin-bottom: 20px; }
.sw-product-features li { font-size: 0.82rem; color: var(--sw-body); padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.sw-product-features li i { color: var(--sw-success); font-size: 0.95rem; }
.sw-product-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px;
  background: var(--sw-primary-soft); color: var(--sw-primary) !important;
  border-radius: var(--sw-radius); font-size: 0.85rem; font-weight: 500;
  text-decoration: none !important; transition: all 0.18s;
}
.sw-product:hover .sw-product-cta { background: var(--sw-primary); color: white !important; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.sw-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.sw-step {
  background: white; padding: 28px 24px;
  border-radius: var(--sw-radius-lg);
  border: 1px solid var(--sw-border);
  position: relative;
}
.sw-step-num {
  position: absolute; top: -16px; left: 24px;
  width: 36px; height: 36px;
  background: var(--sw-primary); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(64,81,137,0.3);
}
.sw-step h4 { font-size: 1rem !important; font-weight: 600 !important; margin: 12px 0 8px !important; }
.sw-step p  { font-size: 0.85rem; color: var(--sw-muted); line-height: 1.6; }

/* ============================================================
   CTA BOX
   ============================================================ */
.sw-cta-section { padding: 80px 24px; }
.sw-cta-box {
  max-width: 1240px; margin: 0 auto;
  background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
  border-radius: var(--sw-radius-lg); padding: 60px 50px;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
}
.sw-cta-box::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(240,101,72,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.sw-cta-content { position: relative; }
.sw-cta-content h2 { color: white !important; font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important; margin-bottom: 12px !important; }
.sw-cta-content p { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 28px; }
.sw-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sw-cta-icon { font-size: 8rem; color: rgba(255,255,255,0.07); text-align: center; position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.sw-footer {
  background: white;
  border-top: 1px solid var(--sw-border);
  padding: 60px 24px 0;
}
.sw-footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.sw-footer-about { font-size: 0.875rem; color: var(--sw-muted); line-height: 1.7; margin: 16px 0 20px; max-width: 300px; }
.sw-footer-social { display: flex; gap: 8px; }
.sw-footer-social a {
  width: 36px; height: 36px; border-radius: var(--sw-radius);
  background: var(--sw-primary-soft); color: var(--sw-primary);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none !important; transition: all 0.18s;
}
.sw-footer-social a:hover { background: var(--sw-primary); color: white; }
.sw-footer-col h5 {
  font-size: 0.85rem !important; font-weight: 600 !important;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 18px !important;
}
.sw-footer-col ul { list-style: none; margin: 0; padding: 0; }
.sw-footer-col ul li { margin-bottom: 10px; }
.sw-footer-col ul li a { color: var(--sw-muted) !important; text-decoration: none !important; font-size: 0.875rem; transition: color 0.15s; }
.sw-footer-col ul li a:hover { color: var(--sw-primary) !important; }
.sw-footer-bottom {
  max-width: 1240px; margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--sw-border);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; font-size: 0.82rem; color: var(--sw-muted);
}
.sw-footer-bottom a { color: var(--sw-muted) !important; text-decoration: none !important; }
.sw-footer-bottom a:hover { color: var(--sw-primary) !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.sw-fade {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.sw-fade.sw-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
  .sw-hero-inner       { grid-template-columns: 1fr; }
  .sw-hero-visual      { display: none; }
  .sw-metrics-grid     { grid-template-columns: repeat(2,1fr); }
  .sw-metric           { border-right: none; border-bottom: 1px solid #f3f3f9; }
  .sw-footer-grid      { grid-template-columns: 1fr 1fr; }
  .sw-cta-box          { grid-template-columns: 1fr; padding: 40px 30px; }
  .sw-cta-icon         { display: none; }
}
@media (max-width: 640px) {
  .sw-nav-menu         { display: none; }
  .sw-topbar           { display: none; }
  .sw-metrics-grid     { grid-template-columns: 1fr; }
  .sw-footer-grid      { grid-template-columns: 1fr; }
  .sw-float            { display: none; }
  .sw-hero             { padding: 60px 20px 100px; }
}
/* Forza full-width sulla home — override contenitore Astra */
body.home .site-main,
body.home .ast-article-single,
body.home #primary,
body.home .content-area,
body.home .ast-container,
body.home .ast-grid-right-section,
body.home .ast-grid-left-section {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.home {
  overflow-x: hidden;
}