/* =========================
HOMEPAGE – Stili dedicati v4 (moderno) - VERSIONE CORRETTA
========================= */

:root {
  --qa-gray: #2d3748;
  --qa-gray-light: #718096;
  --qa-yellow: #f8c300;
  --qa-yellow-light: #ffd93d;
  --qa-link: #0066cc;
  --qa-link-2: #3b82f6;
  --qa-border: #e2e8f0;
  --qa-bg-soft: #f7fafc;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

/* ============= LAYOUT HOME ============= */

/* Allineamento header a sinistra (solo per homepage) */
.is-home .header-content {
  justify-content: flex-start;
}

.home-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ============= PULSANTI ============= */
.is-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--qa-gray);
  color: white;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.01em;
}

.is-home .btn:hover {
  background: var(--qa-yellow);
  color: var(--qa-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.is-home .btn.cta {
  background: linear-gradient(135deg, var(--qa-yellow) 0%, var(--qa-yellow-light) 100%);
  color: var(--qa-gray);
  font-weight: 700;
}

.is-home .btn.cta:hover {
  background: linear-gradient(135deg, var(--qa-yellow-light) 0%, var(--qa-yellow) 100%);
  transform: translateY(-2px) scale(1.02);
}

/* ============= HERO ============= */
.is-home .home-hero {
  display: grid;
  /* Modificato per mettere il testo (1fr) a sinistra e l'immagine (1.3fr) a destra */
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: stretch;
  margin: 2.5rem 0 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f7fafc 0%, #fff 100%);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.is-home .home-hero .media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.is-home .home-hero .media:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.is-home .home-hero .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.is-home .home-hero .media:hover img {
  transform: scale(1.05);
}

.is-home .home-hero .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.is-home .home-hero .kicker {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--qa-link-2);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.is-home .home-hero .title {
  font-size: 2.5rem;
  line-height: 1.15;
  color: #1a202c;
  margin: 0.5rem 0 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.is-home .home-hero .excerpt {
  color: var(--qa-gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.is-home .home-hero .meta {
  font-size: 0.9rem;
  color: var(--qa-gray-light);
  margin-bottom: 1.5rem;
}

/* ============= SEZIONE SERVIZI - SPECIFICITÀ AUMENTATA ============= */
.is-home .services-section {
  margin: 3rem 0 4rem !important;
  padding: 3rem 2.5rem !important;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-lg) !important;
  position: relative;
  overflow: hidden;
}

.is-home .services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--qa-yellow) 0%, var(--qa-yellow-light) 50%, var(--qa-yellow) 100%);
}

.is-home .services-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white !important;
}

.is-home .services-badge {
  display: inline-block;
  background: rgba(248, 195, 0, 0.15) !important;
  color: var(--qa-yellow) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 2px solid rgba(248, 195, 0, 0.3);
}

.is-home .services-header h2 {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  margin: 1rem 0 !important;
  letter-spacing: -0.02em;
  color: white !important;
  text-align: center !important;
}

.is-home .services-subtitle {
  font-size: 1.1rem;
  color: #cbd5e0 !important;
  margin: 0;
  font-weight: 400;
}

.is-home .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.is-home .service-card {
  background: white !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  transition: var(--transition);
  box-shadow: var(--shadow-md) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: none !important;
}

.is-home .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--qa-link-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.is-home .service-card--consultants::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
}

.is-home .service-card--certification::before {
  background: linear-gradient(90deg, #10b981, #059669) !important;
}

.is-home .service-card--content::before {
  background: linear-gradient(90deg, #f59e0b, #d97706) !important;
}

.is-home .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.is-home .service-card:hover::before {
  transform: scaleX(1);
}

.is-home .service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.is-home .service-card--consultants .service-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  color: #1e40af !important;
}

.is-home .service-card--certification .service-icon {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
  color: #065f46 !important;
}

.is-home .service-card--content .service-icon {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) !important;
  color: #92400e !important;
}

.is-home .service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.is-home .service-card h3 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem !important;
  color: #1a202c !important;
  letter-spacing: -0.01em;
  text-align: left !important;
}

.is-home .service-card > p {
  color: var(--qa-gray-light) !important;
  line-height: 1.7;
  margin-bottom: 1.5rem !important;
  flex-grow: 1;
  text-align: left !important;
}

.is-home .service-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem !important;
}

.is-home .service-features li {
  padding: 0.5rem 0;
  color: var(--qa-gray) !important;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.25rem;
  text-align: left;
}

.is-home .service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #10b981 !important;
  font-size: 1.1rem;
}

.is-home .service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--qa-gray) !important;
  color: white !important;
  text-decoration: none !important;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: center;
  margin-top: auto;
  border: none !important;
}

.is-home .service-card--consultants .service-btn:hover {
  background: #3b82f6 !important;
  transform: translateY(-2px);
}

.is-home .service-card--certification .service-btn:hover {
  background: #10b981 !important;
  transform: translateY(-2px);
}

.is-home .service-card--content .service-btn:hover {
  background: #f59e0b !important;
  transform: translateY(-2px);
}

.is-home .services-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.is-home .services-footer p {
  color: #cbd5e0 !important;
  font-size: 1.1rem;
  margin-bottom: 1.5rem !important;
  text-align: center !important;
}

/* ============= SEZIONI ============= */
.is-home .section {
  margin: 4rem 0 2rem;
}

.is-home .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.is-home .section-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--qa-gray);
  margin: 0;
}

.is-home .link-more {
  color: var(--qa-link-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.is-home .link-more:hover {
  color: var(--qa-yellow);
  text-decoration: underline;
}

/* ============= CARD GRID (articoli precedenti) ============= */
.is-home .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.is-home .card {
  border: 1px solid var(--qa-border);
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.is-home .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--qa-link-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.is-home .card:hover::before {
  transform: scaleX(1);
}

.is-home .card a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.is-home .card img {
  width: 100%;
  height: 280px;
  object-fit: contain; /* Manteniamo 'contain' come è ora */
  object-position: center;
  display: block;
  transition: var(--transition);
  /* MODIFICA: Cambiamo il colore di sfondo da #f3f4f6 a bianco */
  background-color: #ffffff; 
}

.is-home .card:hover img {
  transform: scale(1.05);
}

.is-home .card .body {
  padding: 1.5rem;
}

.is-home .card .kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--qa-link-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.is-home .card .title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--qa-gray);
  margin-bottom: 0.75rem;
}

.is-home .card .excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--qa-gray-light);
  margin-bottom: 0.75rem;
}

.is-home .card .meta {
  font-size: 0.8rem;
  color: var(--qa-gray-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.is-home .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ============= TOPICS GRID ============= */
.is-home .topics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.is-home .topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  background: white;
  border: 2px solid transparent;
  min-height: 160px;
}

.is-home .topic-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.is-home .topic-card h3 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: inherit !important;
  text-align: center !important;
  line-height: 1.3;
}

/* ================================================================= */
/* ============= BLOCCO ARGOMENTI MODIFICATO (v2 - Colori) ============= */
/* ================================================================= */

/* Colori specifici per ogni argomento (corretti e distinti) */

/* ISO 9001 -> Blu */
.is-home .topic-card--blue {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #1e40af;
}
.is-home .topic-card--blue .topic-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}
.is-home .topic-card--blue:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Quality Manager -> Stone (Marrone/Pietra) */
.is-home .topic-card--darkblue {
  background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
  color: #44403c;
}
.is-home .topic-card--darkblue .topic-icon {
  background: linear-gradient(135deg, #a8a29e, #78716c);
  color: white;
}
.is-home .topic-card--darkblue:hover {
  border-color: #78716c;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ISO 14001 -> Verde (Come richiesto) */
.is-home .topic-card--green {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  color: #065f46;
}
.is-home .topic-card--green .topic-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}
.is-home .topic-card--green:hover {
  border-color: #10b981;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ISO 45001 -> Rosso (Come richiesto) */
.is-home .topic-card--orange {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  color: #991b1b;
}
.is-home .topic-card--orange .topic-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}
.is-home .topic-card--orange:hover {
  border-color: #ef4444;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Lean Production -> Teal (Verde Acqua) */
.is-home .topic-card--emerald {
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
  color: #047857;
}
.is-home .topic-card--emerald .topic-icon {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: white;
}
.is-home .topic-card--emerald:hover {
  border-color: #14b8a6;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Kaizen -> Lime */
.is-home .topic-card--lime {
  background: linear-gradient(135deg, #ecfccb 0%, #f7fee7 100%);
  color: #3f6212;
}
.is-home .topic-card--lime .topic-icon {
  background: linear-gradient(135deg, #84cc16, #65a30d);
  color: white;
}
.is-home .topic-card--lime:hover {
  border-color: #84cc16;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Audit -> Azzurro */
.is-home .topic-card--sky {
  background: linear-gradient(135deg, #cffafe 0%, #ecfeff 100%);
  color: #0891b2;
}
.is-home .topic-card--sky .topic-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}
.is-home .topic-card--sky:hover {
  border-color: #06b6d4;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Libri Consigliati -> Viola Chiaro (Lavender) */
.is-home .topic-card--crimson {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  color: #5b21b6;
}
.is-home .topic-card--crimson .topic-icon {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: white;
}
.is-home .topic-card--crimson:hover {
  border-color: #8b5cf6;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Qualità Pop -> Rosa / Fucsia */
.is-home .topic-card--fuchsia {
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  color: #9d174d;
}
.is-home .topic-card--fuchsia .topic-icon {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
}
.is-home .topic-card--fuchsia:hover {
  border-color: #ec4899;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Quality Hacks -> Giallo */
.is-home .topic-card--yellow {
  background: linear-gradient(135deg, #fef9c3 0%, #fefce8 100%);
  color: #854d0e;
}
.is-home .topic-card--yellow .topic-icon {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: white;
}
.is-home .topic-card--yellow:hover {
  border-color: #eab308;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Approfondimenti -> Viola */
.is-home .topic-card--forest {
  background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
  color: #581c87;
}
.is-home .topic-card--forest .topic-icon {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  color: white;
}
.is-home .topic-card--forest:hover {
  border-color: #9333ea;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Tutti gli Articoli -> Grigio (Slate) */
.is-home .topic-card--slate {
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  color: #334155;
}
.is-home .topic-card--slate .topic-icon {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
}
.is-home .topic-card--slate:hover {
  border-color: #64748b;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Aforismi -> Arancione */
.is-home .topic-card--plum {
  background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 100%);
  color: #9a3412;
}
.is-home .topic-card--plum .topic-icon {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}
.is-home .topic-card--plum:hover {
  border-color: #f97316;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Box "Tutto il resto" -> Scuro */
.is-home .topic-card--all {
  background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
  color: #f9fafb;
}
.is-home .topic-card--all .topic-icon {
  background: linear-gradient(135deg, #9ca3af, #f9fafb);
  color: #1f2937;
}
.is-home .topic-card--all:hover {
  border-color: #f9fafb;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Allarga il box "Tutto il resto" */
.is-home .topic-card--all {
  grid-column: span 2;
}

/* ============= FINE BLOCCO MODIFICATO ============= */


.is-home .topic-card:hover .topic-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ============= CONNESSIONI ============= */
.is-home .connection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.is-home .connection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.is-home .connection-card--newsletter {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #1e40af;
}

.is-home .connection-card--newsletter:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.is-home .connection-card--forum {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  color: #065f46;
}

.is-home .connection-card--forum:hover {
  border-color: #10b981;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.is-home .connection-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.is-home .connection-card--newsletter .connection-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.is-home .connection-card--forum .connection-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.is-home .connection-card:hover .connection-icon {
  transform: scale(1.1) rotate(5deg);
}

.is-home .connection-card h3 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.75rem !important;
  color: inherit !important;
  text-align: center !important;
}

.is-home .connection-card p {
  color: var(--qa-gray-light) !important;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 !important;
  text-align: center !important;
}

/* Social Media Section */
.is-home .card img {
  width: 100%;
  height: 280px;
  object-fit: contain; /* Manteniamo 'contain' come è ora */
  object-position: center;
  display: block;
  transition: var(--transition);
  /* MODIFICA: Cambiamo il colore di sfondo da #f3f4f6 a bianco */
  background-color: #ffffff; 
}

.is-home .social-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 0 1.5rem !important;
  color: var(--qa-gray) !important;
  text-align: center !important;
}

.is-home .social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.is-home .social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  color: white !important;
}

.is-home .social-btn span {
  color: white;
}

.is-home .social-btn--linkedin {
  background: #0077b5;
}

.is-home .social-btn--linkedin:hover {
  background: #005885;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.is-home .social-btn--facebook {
  background: #1877f2;
}

.is-home .social-btn--facebook:hover {
  background: #0c63d4;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.is-home .social-btn--x {
  background: #000000;
}

.is-home .social-btn--x:hover {
  background: #333333;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ============= CTA ROW ============= */
.is-home .cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .is-home .home-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .is-home .home-hero .title {
    font-size: 2rem;
  }
  
  .is-home .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .is-home .card img {
    height: 260px;
  }
  
  .is-home .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .is-home .services-section {
    padding: 2.5rem 2rem !important;
  }
  
  .is-home .services-header h2 {
    font-size: 1.9rem !important;
  }
  
  .is-home .topics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .is-home .topic-card {
    padding: 1.5rem 0.75rem;
    min-height: 140px;
  }
  
  .is-home .topic-icon {
    width: 64px;
    height: 64px;
  }
  
  .is-home .topic-card h3 {
    font-size: 0.9rem !important;
  }
  
  .is-home .section-head h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .home-wrap {
    padding: 1.5rem 1rem;
  }
  
  .is-home .home-hero {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
  }
  
  .is-home .home-hero .title {
    font-size: 1.75rem;
  }
  
  .is-home .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .is-home .card img {
    height: 220px;
  }
  
  .is-home .services-section {
    padding: 2rem 1.5rem !important;
    margin: 2rem 0 3rem !important;
  }
  
  .is-home .services-header h2 {
    font-size: 1.6rem !important;
  }
  
  .is-home .services-subtitle {
    font-size: 1rem;
  }
  
  .is-home .service-card {
    padding: 1.75rem !important;
  }
  
  .is-home .topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
  }
  
  .is-home .topic-card {
    padding: 1.25rem 0.5rem;
    min-height: 130px;
  }
  
  .is-home .topic-icon {
    width: 56px;
    height: 56px;
  }
  
  .is-home .topic-card h3 {
    font-size: 0.85rem !important;
  }
  
  .is-home .section {
    margin: 3rem 0 1.5rem;
  }
  
  .is-home .cta-row {
    flex-direction: column;
  }
  
  .is-home .btn {
    width: 100%;
  }
  
  .is-home .connection-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .is-home .connection-card {
    padding: 2rem 1.5rem;
  }
  
  .is-home .connection-icon {
    width: 64px;
    height: 64px;
  }
  
  .is-home .social-section {
    padding: 2rem 1.5rem;
  }
  
  .is-home .social-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .is-home .social-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Disabilita transizioni su mobile */
  .is-home .topic-card:hover,
  .is-home .topic-card:hover .topic-icon,
  .is-home .connection-card:hover,
  .is-home .connection-card:hover .connection-icon,
  .is-home .social-btn:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .is-home .home-hero .title {
    font-size: 1.5rem;
  }
  
  .is-home .card img {
    height: 200px;
  }
  
  .is-home .services-section {
    padding: 1.5rem 1rem !important;
  }
  
  .is-home .services-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
  
  .is-home .services-header h2 {
    font-size: 1.4rem !important;
  }
  
  .is-home .services-subtitle {
    font-size: 0.95rem;
  }
  
  .is-home .service-card {
    padding: 1.5rem !important;
  }
  
  .is-home .service-card h3 {
    font-size: 1.3rem !important;
  }
  
  .is-home .service-icon {
    width: 56px;
    height: 56px;
  }
  
  .is-home .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  
  .is-home .topic-card {
    padding: 1rem 0.5rem;
    min-height: 120px;
  }
  
  .is-home .topic-icon {
    width: 48px;
    height: 48px;
  }
  
  .is-home .topic-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .is-home .topic-card h3 {
    font-size: 0.8rem !important;
  }
  
  .is-home .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .is-home .section-head h2 {
    font-size: 1.35rem;
  }
  
  .is-home .connection-card {
    padding: 1.75rem 1.25rem;
  }
  
  .is-home .connection-card h3 {
    font-size: 1.3rem !important;
  }
  
  .is-home .connection-card p {
    font-size: 0.95rem;
  }
  
  .is-home .social-title {
    font-size: 1.3rem !important;
  }
  
  .is-home .social-section {
    padding: 1.75rem 1.25rem;
  }
  
  .is-home .social-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Ottimizzazione INP: Disabilita transizioni costose su mobile */
@media (max-width: 768px) {
  .is-home .card::before,
  .is-home .card:hover,
  .is-home .card:hover img,
  .is-home .home-hero .media:hover,
  .is-home .home-hero .media:hover img,
  .is-home .service-card:hover,
  .is-home .service-card:hover .service-icon {
    transition: none;
    transform: none;
  }
  
  /* Semplifica le animazioni dei pulsanti */
  .is-home .btn:hover,
  .is-home .btn.cta:hover,
  .is-home .service-btn:hover {
    transform: none;
  }
	
}