/* ==========================================================================
   FOGLIO DI STILE PREMIUM ELEGANT SLATE (DARK SOFT 2026)
   COMPUTER ASSISTENZA BOLOGNA
   --------------------------------------------------------------------------
   Design scuro morbido (Slate/Indigo), riposante per la vista, privo di neri
   profondi, con font sans-serif uniforme ed header brand visivamente d'impatto.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CARATTERI SANS-SERIF UNIFORMI (NESSUN CARATTERE CON GRAZIE/SERIF)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-regular.woff2') format('woff2');
}

/* Forziamo il carattere Sans-Serif su TUTTI gli elementi della pagina senza eccezioni */
*,
*::before,
*::after,
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
small,
strong,
b,
i,
em,
li,
button,
input,
select,
textarea {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* --------------------------------------------------------------------------
   2. VARIABILI CROMATICHE SLATE SOFT
   -------------------------------------------------------------------------- */

/* Reset universale dei colori del testo per contrasto perfetto in Slate Dark Mode */
* {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

:root,
[data-theme="light"],
[data-theme="dark"] {
  --pico-background-color: #0f172a !important;
  /* Slate 900 */
  --pico-color: #f8fafc !important;
  /* Testo chiaro */
  --pico-card-background-color: #1e293b !important;
  /* Slate 800 */
  --pico-card-section-bg-color: #1e293b !important;
  --pico-border-color: rgba(255, 255, 255, 0.1) !important;
  --pico-form-element-background-color: #1e293b !important;
  --pico-form-element-border-color: rgba(255, 255, 255, 0.2) !important;
  --pico-form-element-color: #f8fafc !important;
  --pico-form-element-active-background-color: #0f172a !important;
  --pico-form-element-active-border-color: #60a5fa !important;
}

body,
html,
main,
section,
article,
div,
p,
span,
li,
dt,
dd,
td,
th {
  color: #e2e8f0 !important;
  opacity: 1 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  color: #ffffff !important;
  opacity: 1 !important;
}

small,
em,
i {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}

/* Stile per i separatori (effetto "scavato" / engraved) */
hr {
  border: none !important;
  height: 1px !important;
  background: transparent !important;
  border-top: 2px solid rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  margin: 1.25rem 0 !important;
  width: 100% !important;
}

/* Regole per l'elenco puntato nelle card e nelle pagine */
article li,
.service-card li,
.page-content li {
  color: #cbd5e1 !important;
  opacity: 1 !important;
  margin-bottom: 0.5rem;
}

article strong,
.service-card strong,
.page-content strong {
  color: #60a5fa !important;
  /* Azzurro fluorescente ad altissimo contrasto */
}

/* Garantisce testo bianco puro ed icone bianche su tutti i pulsanti a pillola */
.btn-pill-phone,
a.btn-pill-phone,
a.btn-pill-phone *,
.nav-phone-button,
a.nav-phone-button,
a.nav-phone-button *,
footer a.btn-pill-phone,
footer a.btn-pill-phone *,
footer a.btn-secondary-outline,
footer a.btn-secondary-outline * {
  color: #ffffff !important;
  fill: #ffffff !important;
  text-decoration: none !important;
}

.btn-pill-phone svg,
.nav-phone-button svg,
footer a.btn-pill-phone svg {
  fill: #ffffff !important;
  stroke: none !important;
}

.btn-secondary-outline,
a.btn-secondary-outline,
a.btn-secondary-outline * {
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-primary-glow,
a.btn-primary-glow,
a.btn-primary-glow * {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Sfondi Slate morbidi */
--pico-background-color: #0f172a !important;
/* Slate 900 */
--pico-color: #f8fafc !important;
/* Testo chiaro */
--pico-card-background-color: #1e293b !important;
/* Slate 800 */
--pico-card-section-bg-color: #1e293b !important;
--pico-border-color: rgba(255, 255, 255, 0.1) !important;

/* Colori di accento */
--primary-color: #3b82f6;
/* Blu elettrico */
--primary-hover: #60a5fa;
--accent-purple: #8b5cf6;
--emerald-green: #10b981;
/* Verde per chiamate */
--emerald-hover: #059669;

/* Ombre morbide */
--shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.25);
--shadow-elevated: 0 20px 45px -10px rgba(59, 130, 246, 0.3);
--shadow-glow: 0 0 25px rgba(59, 130, 246, 0.35);
}

/* Sfondo ed impostazioni generali di pagina */
html,
html[data-theme],
body,
main {
  margin: 0;
  padding: 0;
  background-color: #0f172a !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   3. HEADER STICKY E BRANDING LOGO D'IMPATTO (NON PIATTO)
   -------------------------------------------------------------------------- */

header.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.85rem 0;
}

header.main-header nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* Stile del brand logo moderno con icona e sfumatura di colore */
.brand-logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
}

.brand-icon {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-primary {
  color: #ffffff !important;
}

.brand-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

header.main-header nav ul {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

header.main-header nav ul li {
  margin: 0 !important;
  padding: 0 !important;
}

header.main-header nav ul li a {
  color: #cbd5e1 !important;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

header.main-header nav ul li a:hover {
  color: #ffffff !important;
}

/* Distanziamento speciale per il pulsante del telefono nel menu */
header.main-header nav ul li.nav-phone-item {
  margin-left: 1.25rem !important;
}

/* Stili dei pulsanti verdi trasparenti da flickering (transizioni mirate su transform e filter) */
.btn-pill-phone,
a.btn-pill-phone,
.nav-phone-button,
a.nav-phone-button,
#accept-privacy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  padding: 0.75rem 1.8rem !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  border: none !important;
  outline: none !important;
  white-space: nowrap !important;
}

.nav-phone-button,
a.nav-phone-button {
  padding: 0.55rem 1.35rem !important;
  font-size: 0.95rem !important;
  gap: 0.5rem !important;
}

.btn-pill-phone:hover,
.btn-pill-phone:focus,
.btn-pill-phone:active,
a.btn-pill-phone:hover,
a.btn-pill-phone:focus,
a.btn-pill-phone:active,
.nav-phone-button:hover,
.nav-phone-button:focus,
.nav-phone-button:active,
a.nav-phone-button:hover,
a.nav-phone-button:focus,
a.nav-phone-button:active,
#accept-privacy-btn:hover,
#accept-privacy-btn:focus,
#accept-privacy-btn:active {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  filter: brightness(1.1) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  outline: none !important;
}

.btn-pill-phone svg,
.nav-phone-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   4. HERO SECTION CORRETTA (SUL COPERTINA A SCHEDA RILEVATA DALLO SFONDO)
   -------------------------------------------------------------------------- */

.hero-wrapper {
  padding: 1.75rem 0 3rem 0;
  background: transparent;
}

.hero-card-container {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 24px;
  padding: 1.5rem 3.5rem 4rem 3.5em;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Titolo Hero senza andare a capo in modo innaturale */
.hero-title {
  color: #ffffff !important;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  white-space: nowrap;
  /* Impedisce al titolo principale di spezzarsi in 2 righe su desktop */
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  color: #cbd5e1 !important;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.25rem !important;
  flex-wrap: nowrap !important;
}

/* Pulsanti primari con sfumatura blu/viola e bagliore reattivo */
.btn-primary-glow,
a.btn-primary-glow {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap !important;
  border: none !important;
  outline: none !important;
}

.btn-primary-glow:hover,
.btn-primary-glow:focus,
.btn-primary-glow:active,
a.btn-primary-glow:hover,
a.btn-primary-glow:focus,
a.btn-primary-glow:active {
  background: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%) !important;
  filter: brightness(1.1) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5) !important;
  color: #ffffff !important;
  outline: none !important;
}

/* Pulsanti secondari trasparenti grigi ("Richiedi Preventivo", ecc.) con micro-animazione fluida */
.btn-secondary-outline,
a.btn-secondary-outline {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  outline: none !important;
}

.btn-secondary-outline:hover,
.btn-secondary-outline:focus,
.btn-secondary-outline:active,
a.btn-secondary-outline:hover,
a.btn-secondary-outline:focus,
a.btn-secondary-outline:active {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  outline: none !important;
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   5. CONTATORI STATISTICI SOVRAPPOSTI PER METÀ ALLA HERO CARD CON HOVER ZOOM
   -------------------------------------------------------------------------- */

.stats-section {
  margin-top: -5.5rem !important;
  /* Maggiore sovrapposizione in alto sulla scheda hero */
  position: relative;
  z-index: 10;
  max-width: 1360px !important;
  /* Lieve rientro di ~25px per lato dai bordi della scheda hero */
  margin-left: auto !important;
  margin-right: auto !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px;
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
  cursor: pointer;
}

/* Lieve zoom ed elevazione tridimensionale al passaggio del mouse */
.stat-card:hover {
  transform: translateY(-6px) scale(1.05) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3) !important;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #3b82f6 !important;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   6. GRIGLIE E BLOCCO PERCHÉ SCEGLIERCI PERFETTAMENTE CENTRATO
   -------------------------------------------------------------------------- */

.custom-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

.custom-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
}

/* Blocco Perché Sceglierci perfettamente centrato ed equilibrato a tutta larghezza container */
.trust-banner {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px;
  padding: 3rem;
  margin: 3.5rem 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.trust-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr !important;
  gap: 3rem !important;
  align-items: center !important;
  justify-content: center !important;
}

.service-card-enhanced,
.service-card {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-body h3,
.service-card h3,
.service-card h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 0.5rem;
}

.service-card-body p,
.service-card p {
  color: #cbd5e1 !important;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.promo-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
}

.page-header-banner {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

footer.main-footer {
  background-color: #0b1120 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
  color: #cbd5e1 !important;
  font-size: 0.9rem !important;
  text-align: left !important;
}

/* Centriamo il blocco griglia nel footer e diamo più spazio alla colonna orari */
footer.main-footer .custom-grid-3 {
  max-width: 1220px;
  margin: 0 auto;
  grid-template-columns: 1.4fr 1.4fr 0.9fr !important;
}

footer.main-footer p {
  font-size: 0.9rem !important;
}

footer.main-footer h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 1rem;
}

footer.main-footer a {
  color: #60a5fa !important;
}

/* --------------------------------------------------------------------------
   7. MEDIA QUERIES RESPONSIVE (SMARTPHONE E TABLET)
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.2rem !important;
    white-space: normal !important;
  }
}

@media (max-width: 992px) {
  header.main-header nav {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  header.main-header nav ul {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.85rem !important;
  }

  header.main-header nav ul li.nav-phone-item {
    margin-left: 0 !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
  }

  .nav-phone-button {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-grid,
  .trust-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .hero-card-container {
    padding: 2.25rem 1.5rem !important;
  }

  .hero-actions {
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .hero-actions a {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-tag {
    white-space: normal !important;
    height: auto !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  .custom-grid-3,
  footer.main-footer .custom-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem !important;
  }

  .hero-card-container {
    padding: 1.5rem 1rem !important;
  }

  .custom-grid-3,
  .custom-grid-2,
  footer.main-footer .custom-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .trust-banner {
    padding: 1.75rem 1.25rem !important;
  }
}