/* ==========================================================================
   tpl_aurora - Cerri PC Customized Theme
   ========================================================================== */

:root {
  --aurora-primary: #10b981;          /* Verde smeraldo tech moderno */
  --aurora-primary-hover: #059669;    /* Verde smeraldo scuro per hover */
  --aurora-primary-light: #ecfdf5;    /* Sfondo chiaro menta per elementi attivi */
  --aurora-ink: #0f172a;             /* Deep slate/navy per testo e scuri */
  --aurora-muted: #64748b;           /* Grigio bilanciato per metadati e sottotitoli */
  --aurora-surface: #f8fafc;         /* Sfondo generale pulito e riposante */
  --aurora-border: #e2e8f0;          /* Bordo sottile e neutro */
  --aurora-accent: #06b6d4;          /* Accento ciano per sfumature dinamiche */
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--aurora-ink);
  background-color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 2000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: var(--aurora-ink);
  border: 2px solid var(--aurora-primary);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* --- Header & Topbar --- */
.topbar {
  font-size: 0.875rem;
  background: var(--aurora-ink);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--aurora-border);
  z-index: 1020;
  transition: all 0.25s ease-in-out;
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* --- Branding Cerri PC --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--aurora-ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(16, 185, 129, 0.3);
}

/* --- Navigation --- */
.desktop-nav ul,
.offcanvas-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.desktop-nav a,
.offcanvas-body a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--aurora-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .active > a,
.offcanvas-body a:hover,
.offcanvas-body .active > a {
  color: var(--aurora-primary-hover);
  background: var(--aurora-primary-light);
}

.desktop-nav li {
  position: relative;
}

/* Dropdown Menu */
.desktop-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--aurora-border);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2rem -0.5rem rgba(15, 23, 42, 0.12);
  z-index: 100;
}

.desktop-nav li:hover > ul {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Offcanvas --- */
.offcanvas {
  max-width: 22rem;
  border-left: 1px solid var(--aurora-border);
}

.offcanvas-body ul {
  display: grid;
  gap: 0.35rem;
}

.navbar-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.6rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar-toggler span {
  width: 1.5rem;
  height: 2px;
  background: var(--aurora-ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* --- Hero Section --- */
.hero {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    var(--aurora-surface);
  border-bottom: 1px solid var(--aurora-border);
}

/* --- Breadcrumbs & Layout --- */
.breadcrumbs {
  background: #ffffff;
  border-bottom: 1px solid var(--aurora-border);
  font-size: 0.875rem;
  padding: 0.75rem 0;
}

.breadcrumbs a {
  color: var(--aurora-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--aurora-primary);
}

.site-main {
  min-height: 60vh;
  padding: 2.5rem 0;
}

.site-main .card {
  border-color: var(--aurora-border);
  border-radius: 0.85rem;
  box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.03);
}

/* --- Modules & Cards --- */
.module-title {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 1rem;
  color: var(--aurora-ink);
  letter-spacing: -0.01em;
}

.aurora-module {
  padding: 1.5rem;
  border: 1px solid var(--aurora-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.02);
}

/* --- Articles & Blog --- */
.eyebrow {
  color: var(--aurora-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-meta {
  color: var(--aurora-muted);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aurora-article {
  max-width: 52rem;
}

.aurora-article h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--aurora-ink);
  line-height: 1.15;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #334155;
}

.article-body > :first-child {
  margin-top: 0;
}

.aurora-blog .card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1rem;
  overflow: hidden;
}

.aurora-blog .card:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 1.25rem 2.5rem -0.5rem rgba(15, 23, 42, 0.1) !important;
}

.aurora-blog .card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --- Footer --- */
.site-footer {
  background: var(--aurora-ink);
  color: #94a3b8;
  padding-top: 3.5rem;
}

.site-footer h5, .site-footer h6 {
  color: #ffffff;
  font-weight: 700;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--aurora-primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: #64748b;
}

/* --- Utilities --- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--aurora-primary);
  color: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(16, 185, 129, 0.35);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1000;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.back-to-top:hover {
  background: var(--aurora-primary-hover);
  transform: translateY(-2px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Error Page --- */
.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--aurora-surface);
}

.error-page main {
  max-width: 38rem;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid var(--aurora-border);
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.05);
}



/* mod_hero */
/* --- Supporto Modulo Hero Custom --- */
.bg-emerald-subtle { background-color: #ecfdf5 !important; }
.border-emerald-subtle { border-color: #a7f3d0 !important; }
.text-emerald { color: #10b981 !important; }
.bg-emerald { background-color: #10b981 !important; }

.btn-emerald {
  background-color: #10b981;
  color: #ffffff;
  border: none;
  transition: all 0.25s ease;
}
.btn-emerald:hover {
  background-color: #059669;
  color: #ffffff;
  transform: translateY(-2px);
}
.shadow-emerald {
  box-shadow: 0 0.5rem 1.25rem rgba(16, 185, 129, 0.3);
}

.btn-outline-slate {
  border: 2px solid #cbd5e1;
  color: #0f172a;
}
.btn-outline-slate:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.icon-check-emerald { color: #10b981; font-weight: bold; }
.transform-translate-stat { transform: translate(-10px, 20px); }
.stat-icon { width: 40px; height: 40px; font-size: 1.2rem; }

/* mod_contatti */

/* --- Modulo Contatti --- */
.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.min-vh-300 {
  min-height: 380px;
}

/* --- Sezione Prodotti (mod_custom) --- */
.product-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.aurora-card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aurora-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08) !important;
  border-color: #a7f3d0 !important; /* Bordo verde chiaro al passaggio */
}

.aurora-card-hover .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.aurora-card-hover:hover .arrow {
  transform: translateX(4px);
}

/* Colori Slate & Emerald Custom */
.bg-slate-900 { background-color: #0f172a !important; }
.text-slate-900 { color: #0f172a !important; }
.text-slate-300 { color: #cbd5e1 !important; }

.bg-emerald { background-color: #10b981 !important; }
.bg-emerald-subtle { background-color: #d1fae5 !important; }
.text-emerald { color: #059669 !important; }
.border-emerald { border-color: #10b981 !important; }

.btn-emerald {
  background-color: #10b981;
  color: #ffffff;
  border: none;
}
.btn-emerald:hover {
  background-color: #059669;
  color: #ffffff;
}

/* --- Sezione Assistenza Tecnica Scura --- */
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.border-slate-700 { border-color: #334155 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-800 { color: #1e293b !important; }

/* Palette sfondi icone */
.bg-emerald-subtle { background-color: #d1fae5 !important; }
.text-emerald { color: #059669 !important; }

.bg-purple-subtle { background-color: #f3e8ff !important; }
.text-purple { color: #9333ea !important; }

.bg-blue-subtle { background-color: #dbeafe !important; }
.text-blue { color: #2563eb !important; }

.bg-amber-subtle { background-color: #fef3c7 !important; }
.text-amber { color: #d97706 !important; }

/* Card Gradiente Assistenza Remota */
.bg-gradient-emerald {
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%) !important;
}

.btn-slate-900 {
  background-color: #0f172a;
  color: #ffffff;
}
.btn-slate-900:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.border-dashed-emerald {
  border: 2px dashed #10b981 !important;
}

/* Sfondo verde brand Aurora con leggero gradiente */
.bg-emerald-main {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

/* Colori e variazioni testo */
.text-emerald {
  color: #059669 !important;
}
.text-white-80 {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Pulsante principale scuro su sfondo verde per alto contrasto */
.btn-dark-emerald {
  background-color: #0f172a;
  color: #ffffff;
  border: none;
}
.btn-dark-emerald:hover {
  background-color: #1e293b;
  color: #ffffff;
}

/* Pulsante outline verde all'interno del box bianco */
.btn-outline-emerald {
  color: #059669;
  border-color: #059669;
}
.btn-outline-emerald:hover {
  background-color: #059669;
  color: #ffffff;
}

/* Attiva lo scorrimento fluido in tutta la pagina */
html {
  scroll-behavior: smooth;
}

/* Se hai un'intestazione / Navbar FISSA (sticky/fixed) in alto,
   aggiungi questo margine per evitare che la Navbar copra l'inizio della sezione */
section[id] {
  scroll-margin-top: 120px; /* Regola questo valore in base all'altezza della tua navbar */
}



/* ============================================================
   STILE ESCLUSIVO PER IL BOTTONE SHOP (.nav-cta-button)
   ============================================================ */

/* Stato base del pulsante */
.mod-menu.nav .nav-item a.nav-cta-button {
  background-color: #10b981 !important; /* Verde Smeraldo Aurora */
  color: #0f172a !important;           /* Testo scuro ardesia per contrasto */
  font-weight: 800 !important;
  font-size: 0.85rem;
  letter-spacing: 0.5px;

  padding: 0.45rem 1.25rem !important;
  border-radius: 50px !important;       /* Forma a pillola */
  margin-left: 0.5rem;

  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  transition: all 0.3s ease-in-out !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Effetto Hover e Focus */
.mod-menu.nav .nav-item a.nav-cta-button:hover,
.mod-menu.nav .nav-item a.nav-cta-button:focus {
  background-color: #059669 !important; /* Verde più scuro al passaggio */
  color: #ffffff !important;           /* Testo bianco */
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);        /* Leggero sollevamento */
}

/* Adattamento su schermi piccoli (Mobile) */
@media (max-width: 767.98px) {
  .mod-menu.nav .nav-item a.nav-cta-button {
    margin-left: 0;
    margin-top: 0.5rem;
    display: flex;
    width: 100%;
    text-align: center;
  }
}
