/* =========================================================================
   ADL 360 srl — components.css (shell condivisa Fase B1 — 2026-05-13)
   Stili dei soli componenti shell:
     - .site-header + nav desktop + dropdown + nav mobile + hamburger
     - .site-footer (3 colonne + footer-bottom)
     - .barra-cta-mobile (sticky bottom)
   Nessuno stile di hero, sezioni body, FAQ, card, CTA finale (per ora inline pagina).
   ========================================================================= */

/* ============================= HEADER ============================= */
.site-header {
  background: var(--c-secondario);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.header-logo:hover { text-decoration: none; }
.header-logo-text {
  color: #fff;
  font-family: var(--font-titoli);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.header-logo-text span {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: rgba(255,255,255,.6);
}

/* --- Nav desktop --- */
nav.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav.nav-desktop a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  transition: color .2s;
  text-decoration: none;
}
nav.nav-desktop a:hover { color: #fff; text-decoration: none; }
.nav-tel {
  color: var(--c-accento) !important;
  font-weight: 700 !important;
}

/* --- Dropdown Servizi --- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-family: inherit;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1A1A2E;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  min-width: 250px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 9999;
}
.nav-dropdown.aperto .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
  text-decoration: none;
}

/* --- Social --- */
.nav-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-social a {
  display: flex;
  align-items: center;
  opacity: .7;
  transition: opacity .2s;
}
.nav-social a:hover { opacity: 1; }

/* --- Hamburger + nav mobile --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--c-secondario);
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  z-index: 99;
}
.nav-mobile.aperto { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
}
.nav-mobile a:hover { color: #fff; }
.nav-mobile .nav-tel { color: var(--c-accento) !important; }

/* ============================= FOOTER ============================= */
.site-footer {
  background: var(--c-secondario);
  color: rgba(255,255,255,.8);
  padding: 56px 20px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-col h3 {
  font-family: var(--font-titoli);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-logo { margin-bottom: 14px; display: inline-block; }
.footer-zone {
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-accento);
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}
.footer-col ul li {
  font-size: .88rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-col ul li a {
  color: rgba(255,255,255,.75);
  transition: color .2s;
  text-decoration: none;
}
.footer-col ul li a:hover { color: #fff; }
.f-icon {
  font-style: normal;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a {
  color: rgba(255,255,255,.55);
  transition: color .2s;
  text-decoration: none;
}
.footer-bottom a:hover { color: #fff; }

/* =============================== HERO =============================== */
/* Critical anti-FOUC inline in pagina (~1 KB) — qui il resto, inclusi
   trust card visive, CTA enfatizzate (hover translateY + glow shadow),
   glow radiale dietro la hero (frontend-design), immagine integrata. */

.hero-pillar {
  background: linear-gradient(135deg,#0d1a2e 0%, #1A1A2E 65%, #0a2438 100%);
  color: #fff;
  padding: 64px 20px 56px;
  position: relative;
  overflow: hidden;
}
/* Glow radiale arancio in alto a destra (frontend-design hero pattern) */
.hero-pillar::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232,66,10,.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
/* Glow secondario in basso a sinistra (più leggero, profondità) */
.hero-pillar::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255,215,0,.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-pillar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { min-width: 0; }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,66,10,.18);
  border: 1px solid rgba(232,66,10,.45);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-accento);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 4px 14px rgba(232,66,10,.18);
}

/* H1 */
.hero-pillar h1 {
  font-family: var(--font-titoli);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -.01em;
}

/* Subtitle */
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 580px;
}
.hero-sub-mobile { display: none; }
.hero-sub-desktop { display: block; }

/* CTA row (ordine: dopo subtitle, prima dei trust) */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

/* Trust card row — DOPO le CTA */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  max-width: 580px;
}
.hero-stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-stat-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,215,0,.4);
  transform: translateY(-2px);
}
.hero-stat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,215,0,.12);
  border: 1px solid rgba(255,215,0,.22);
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
}
.hero-stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hero-stat-main {
  color: #fff;
  font-family: var(--font-titoli);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.hero-stat-sub {
  color: rgba(255,255,255,.62);
  font-size: .76rem;
  line-height: 1.3;
}
/* Legacy chip (fallback se trust_items[i] è stringa) */
.hero-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
}
.hero-stat strong { color: var(--c-accento); font-size: .95rem; }

/* Immagine hero — integrata, ombra morbida, bordo sottile */
.hero-img-wrap {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg,#0d1a2e,#1e3a5f);
  box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 6px 18px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA primaria/secondaria — enfatizzate (frontend-design pattern) */
.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-primario);
  color: #fff;
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 4px 16px rgba(232,66,10,.32);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-tel:hover {
  background: #c73508;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232,66,10,.45);
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 15px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 4px 16px rgba(37,211,102,.32);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-wa:hover {
  background: #1da851;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
}

/* ===================== BARRA CTA MOBILE STICKY ===================== */
.barra-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-secondario);
  border-top: 2px solid var(--c-primario);
  z-index: 200;
  padding: 8px 12px 10px;
}
.barra-label {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  margin-bottom: 6px;
}
.barra-label span {
  color: var(--c-accento);
  font-weight: 700;
}
.barra-pulsanti {
  display: flex;
  gap: 8px;
}
.barra-pulsanti a {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-chiama { background: var(--c-primario); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }

/* ============================= MOBILE ============================= */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav.nav-desktop { display: none; }
  .nav-social { display: none; }
  .barra-cta-mobile { display: block; }
  body { padding-bottom: 80px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  /* HERO mobile */
  .hero-pillar { padding: 36px 16px 32px; }
  .hero-pillar::before { width: 320px; height: 320px; top: -30%; right: -20%; }
  .hero-pillar::after { display: none; }
  .hero-pillar-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-pillar h1 { font-size: 1.55rem; margin-bottom: 14px; }
  .hero-sub { font-size: .98rem; margin-bottom: 20px; }
  .hero-sub-mobile { display: block; }
  .hero-sub-desktop { display: none; }
  .hero-img-wrap { display: none; }

  /* CTA full-width su mobile, verticali */
  .hero-cta-row { flex-direction: column; gap: 10px; }
  .hero-cta-row .btn-tel,
  .hero-cta-row .btn-wa {
    width: 100%;
    justify-content: center;
    font-size: 1.02rem;
  }

  /* Trust card 1 colonna su mobile (leggibilità) */
  .hero-stats { grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
  .hero-stat-card { padding: 12px 14px; }
  .hero-stat-icon { width: 34px; height: 34px; font-size: 1.05rem; }
  .hero-stat-main { font-size: .9rem; }
  .hero-stat-sub { font-size: .76rem; }
}
