/* ============================================================
   ARGUS SECURITY — Gruppo Pasquariello
   style.css — Design system principale
   (base, navbar, hero, card, form, slider, footer)
   Le media query sono in responsive.css
   Le animazioni reveal sono in animations.css
   ============================================================ */

/* ===== BASE ===== */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}
.font-serif { font-family: var(--font-serif); }

/* ===== ACCENT GRADIENT (testo) ===== */
.text-accent-gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== PULSANTI ===== */
.btn-primary {
  position: relative;
  background: #3B82F6;
  color: #F8FAFC;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  border-radius: 8px;
}
.btn-primary:hover {
  background: #60A5FA;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.btn-whatsapp {
  position: relative;
  background: #25D366;
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  border-radius: 8px;
}
.btn-whatsapp:hover {
  background: #1EBE5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-secondary {
  position: relative;
  border: 1.5px solid #334155;
  color: #E2E8F0;
  background: rgba(11, 15, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  border-radius: 8px;
}
.btn-secondary:hover {
  border-color: #3B82F6;
  color: #F8FAFC;
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.navbar.scrolled {
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid #1E293B;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.navbar-link {
  position: relative;
  color: #94A3B8;
  transition: color 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.navbar-link:hover { color: #F8FAFC; }
.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3B82F6;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-link:hover::after { width: 100%; }

/* ===== LOGO ===== */
.brand-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* ===== HERO HOME ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/hero-bg.webp');
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
}
/* Overlay: scuro a sinistra per il testo, l'auto resta visibile a destra */
.hero-overlay {
  background: linear-gradient(100deg,
    rgba(11, 15, 25, 0.95) 0%,
    rgba(11, 15, 25, 0.88) 28%,
    rgba(11, 15, 25, 0.62) 48%,
    rgba(11, 15, 25, 0.30) 62%,
    rgba(11, 15, 25, 0.15) 74%,
    rgba(11, 15, 25, 0.30) 100%
  );
}
/* Leggibilità testi hero su qualsiasi sfondo (mai su h1: rovinerebbe il gradiente) */
#home p, #home .section-label {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}
#home .trust-badge, #home .vb-card { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); }

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== BREADCRUMB (pagine servizio) ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--muted); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ===== HERO PAGINE SERVIZIO ===== */
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.page-hero-overlay {
  background: linear-gradient(100deg,
    rgba(11, 15, 25, 0.95) 0%,
    rgba(11, 15, 25, 0.88) 30%,
    rgba(11, 15, 25, 0.68) 55%,
    rgba(11, 15, 25, 0.40) 75%,
    rgba(11, 15, 25, 0.50) 100%
  );
}
/* Leggibilità testi hero pagine (mai su h1: rovinerebbe il gradiente) */
#servizio p, #servizio .section-label, #servizio .breadcrumb {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}
#servizio p { color: #EDF2F9; font-weight: 500; }
#servizio .vb-card { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); }

/* ===== ETICHETTE DI SEZIONE ===== */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3B82F6;
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #1E293B 50%, transparent 100%);
}
.accent-line {
  width: 40px;
  height: 2px;
  background: #3B82F6;
}

/* ===== NUMERI STATISTICHE ===== */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ===== TRUST BADGE ===== */
.trust-badge {
  background: #151B2B;
  border: 1px solid #1E293B;
  border-radius: 8px;
}

/* ===== CARD (stile servizi e vantaggi) ===== */
.vb-card {
  background: #151B2B;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.vb-card:hover {
  border-color: #3B82F6;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.vb-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.vb-icon svg { width: 20px; height: 20px; color: #3B82F6; }
.vb-title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 10px;
  line-height: 1.3;
}
.vb-desc {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 18px;
}
.vb-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: #60A5FA;
  transition: var(--transition-fast);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border: 1.5px solid rgba(96, 165, 250, 0.45);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.10);
}
@media (max-width: 1023px) {
  .vb-link {
    width: 100%;
    justify-content: center;
    padding: 16px 22px;
    font-size: 1.1rem;
    margin-top: 8px;
    background: rgba(59, 130, 246, 0.16);
  }
}
.vb-link:hover {
  color: #FFFFFF;
  background: #3B82F6;
  border-color: #3B82F6;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}
.vb-link svg { width: 19px; height: 19px; transition: transform 0.3s ease; }
.vb-link:hover svg { transform: translateX(3px); }

/* ===== TAG VANTAGGI ===== */
.adv-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3B82F6;
  display: block;
  margin-bottom: 10px;
}

/* ===== CHECKLIST ===== */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #151B2B;
  border: 1px solid #1E293B;
  border-radius: 10px;
  transition: var(--transition-fast);
}
.check-item:hover { border-color: rgba(59, 130, 246, 0.4); }
.check-item svg {
  width: 18px;
  height: 18px;
  color: #3B82F6;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== IMMAGINI DI SERVIZIO ===== */
.service-img {
  border-radius: 16px;
  border: 1px solid #1E293B;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-img-frame { position: relative; }
.service-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 25, 0.55) 100%);
  pointer-events: none;
}

/* ===== SLIDER GALLERIA ===== */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide { position: relative; min-width: 100%; }
.slider-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 15, 25, 0.88) 100%);
}
.slider-caption h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 4px;
}
.slider-caption p { color: #CBD5E1; font-size: 0.875rem; margin: 0; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid #334155;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider-arrow svg { width: 20px; height: 20px; }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}
.slider-dot.active { background: var(--accent); transform: scale(1.25); }

/* ===== FORM ===== */
.form-input {
  background: #151B2B;
  border: 1px solid #1E293B;
  color: #F8FAFC;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-input::placeholder { color: #64748B; }
.form-input option { background: #151B2B; color: #F8FAFC; }
/* Messaggio di conferma invio (gestito da js/forms.js) */
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86EFAC;
  font-size: 0.9rem;
}
.form-success.show { display: flex; align-items: center; gap: 10px; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== FAQ ACCORDION ===== */
.faq-item {
  background: #151B2B;
  border: 1px solid #1E293B;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.open { border-color: rgba(59, 130, 246, 0.45); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  color: #F8FAFC;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  border: none;
}
.faq-question svg {
  width: 18px;
  height: 18px;
  color: #3B82F6;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 24px 20px 24px;
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== MENU MOBILE ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(30px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: #F8FAFC;
  opacity: 0.8;
  transition: var(--transition-fast);
}
.mobile-menu a:hover { color: #3B82F6; opacity: 1; }

/* ===== FOOTER ===== */
.footer-link {
  color: #94A3B8;
  transition: var(--transition-fast);
  font-size: 0.875rem;
}
.footer-link:hover { color: #3B82F6; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0B0F19; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3B82F6; }

/* ===== Utilità aggiuntive pagina Chi Siamo ===== */
.min-h-\[70vh\] { min-height: 70vh; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.mt-14 { margin-top: 3.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.rounded-lg { border-radius: 0.5rem; }
.bg-accent\/10 { background-color: rgba(59,130,246,0.1); }
.leading-snug { line-height: 1.375; }
.p-6 { padding: 1.5rem; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:p-10 { padding: 2.5rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* ===== Layout sezione Contatti (griglia 2+3 colonne) ===== */
@media (min-width: 1024px) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
}

/* ===== Utilità aggiuntive (contatti/vantaggi) ===== */
.p-7 { padding: 1.75rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-2 { margin-top: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.flex-shrink-0 { flex-shrink: 0; }
.break-all { word-break: break-all; }
.items-stretch { align-items: stretch; }
.transition-colors { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.hover\:text-accent:hover { color: #3B82F6; }
.hover\:border-accent:hover { border-color: #3B82F6; }
.hover\:underline:hover { text-decoration: underline; }

/* ===== Mobile: modulo contatti prima dei recapiti ===== */
@media (max-width: 1023px) {
  .modulo-mobile-first {
    order: -1;
  }
}
