/* ==========================================================================
   Landing Audit Gratuito – stile dedicato, coerente con Unlimited
   ========================================================================== */

/* Sfondo pagina e nav come Contatti */
.audit-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #000000;
}

.audit-page .nav-link,
.audit-page .mobile-nav-link {
  color: #ffffff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  text-shadow: none;
}

.audit-page .nav-link-home,
.audit-page .mobile-nav-link-home {
  color: #ffffff;
}

.audit-page .nav-link::after,
.audit-page .mobile-nav-link::after {
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

/* ==========================================================================
   Header (Audit): niente navigazione / menu
   - Desktop: nascondi link navbar
   - Mobile: nascondi hamburger e drawer
   ========================================================================== */

.audit-page .site-nav {
  display: none;
}

.audit-page .nav-toggle {
  display: none;
}

.audit-page .mobile-menu-backdrop,
.audit-page .mobile-menu-drawer {
  display: none;
}

.audit-page .audit-header-tagline {
  margin-left: 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.95;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .audit-page .audit-header-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
}

/* Main */
.audit-main {
  min-height: calc(100vh - var(--header-height, 84px));
  padding-bottom: 3rem;
}

/* Container */
.audit-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.audit-container--narrow {
  max-width: 720px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.audit-hero {
  min-height: calc(100vh - var(--header-height, 84px));
  display: flex;
  align-items: center;
  padding: 2.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  background: url("/assets/img/home/hero_img.webp") center center / cover no-repeat;
}

.audit-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 18% 25%,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.72) 65%,
      rgba(0, 0, 0, 0.88)
    );
  z-index: 0;
}

.audit-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  justify-items: center;
}

.audit-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  width: min(920px, 100%);
  align-items: center;
  text-align: center;
}

.audit-hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
}

.audit-hero-subtitle {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #e5e7eb;
  max-width: 44ch;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.audit-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.05rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.95);
  background: linear-gradient(
      120deg,
      rgba(56, 189, 248, 0.95),
      rgba(99, 102, 241, 0.92),
      rgba(236, 72, 153, 0.88)
    );
  color: #e5e7eb;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(56, 189, 248, 0.25);
  transition: box-shadow 0.2s ease, transform 0.12s ease, border-color 0.2s ease, filter 0.2s ease;
  align-self: flex-start;
}

.audit-hero-content .audit-cta {
  align-self: center;
}

.audit-cta:hover,
.audit-cta:focus-visible {
  border-color: rgba(96, 165, 250, 1);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  color: #e5e7eb;
  filter: saturate(1.1) brightness(1.02);
}

.audit-cta:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .audit-cta {
    animation: audit-cta-pulse 2.8s ease-in-out infinite;
  }
}

@keyframes audit-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 55px rgba(0, 0, 0, 0.55),
      0 0 30px rgba(56, 189, 248, 0.2);
  }
  50% {
    box-shadow:
      0 22px 70px rgba(0, 0, 0, 0.62),
      0 0 50px rgba(56, 189, 248, 0.32);
  }
}
/* (Hero media rimossa: ora è background) */

/* ==========================================================================
   SEZIONI GENERICHE
   ========================================================================== */
.audit-section {
  padding: 3.5rem 0;
}

.audit-section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
}

/* ==========================================================================
   PROBLEMA (4 blocchi)
   ========================================================================== */
.audit-problema {
  background: rgba(15, 23, 42, 0.5);
}

.audit-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.audit-block {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.audit-block:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.6);
}

.audit-block-icon {
  display: inline-flex;
  color: var(--color-accent);
  flex-shrink: 0;
}

.audit-block-icon svg {
  width: 32px;
  height: 32px;
}

.audit-block-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.audit-block-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9ca3af;
}

/* ==========================================================================
   COSA OTTIENI (lista)
   ========================================================================== */
.audit-list {
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audit-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.audit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ==========================================================================
   DIFFERENZIAZIONE
   ========================================================================== */
.audit-differenza-lead {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.audit-differenza-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #9ca3af;
  text-align: center;
}

/* ==========================================================================
   PROCESSO (3 step)
   ========================================================================== */
.audit-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 180px;
}

.audit-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-step-label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e5e7eb;
  text-align: center;
}

/* ==========================================================================
   FORM
   ========================================================================== */
.audit-form-section {
  padding: 4rem 0;
}

.audit-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.85);
}

.audit-form-wrap .audit-section-title {
  margin-bottom: 1.5rem;
  text-align: left;
}

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.audit-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.audit-form-row .audit-form-group {
  flex: 1;
  min-width: 0;
}

.audit-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.audit-form-group label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.audit-input,
.audit-select {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.65rem 0.85rem;
  color: #f9fafb;
  font-size: 0.95rem;
  width: 100%;
}

.audit-input::placeholder {
  color: #6b7280;
}

.audit-input:focus-visible,
.audit-select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: rgba(56, 189, 248, 0.8);
}

.audit-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.audit-form-divider {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.audit-error {
  min-height: 1rem;
  font-size: 0.8rem;
  color: #f97373;
}

.audit-cta-submit {
  margin-top: 0.5rem;
  width: 100%;
  border: none;
  font-family: inherit;
}

/* ==========================================================================
   URGENZA
   ========================================================================== */
.audit-urgenza {
  background: rgba(15, 23, 42, 0.5);
}

.audit-urgenza-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
  text-align: center;
}

/* ==========================================================================
   CTA FINALE
   ========================================================================== */
.audit-cta-finale {
  padding: 4rem 0;
}

.audit-cta-finale-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  text-align: center;
}

.audit-cta-finale .audit-container {
  text-align: center;
}

.audit-cta-finale .audit-cta {
  display: inline-flex;
  margin: 0 auto;
}

/* ==========================================================================
   POPUP CONFERMA
   ========================================================================== */
.audit-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.audit-popup-backdrop[hidden] {
  display: none;
}

.audit-popup {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.audit-popup-text {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.audit-popup-close {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.audit-popup-close:hover,
.audit-popup-close:focus-visible {
  border-color: var(--color-accent);
  background: rgba(56, 189, 248, 0.15);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .audit-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .audit-hero {
    background-image: url("/assets/img/home/hero_mobile.webp");
    background-position: center top;
  }

  .audit-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .audit-hero-content {
    align-items: center;
    padding: 1.5rem 1.25rem;
  }

  .audit-hero-subtitle {
    max-width: none;
  }

  .audit-cta {
    align-self: center;
  }

  .audit-blocks {
    grid-template-columns: 1fr;
  }

  .audit-steps {
    flex-direction: column;
    align-items: center;
  }

  .audit-step {
    min-width: 0;
  }

  .audit-form-wrap {
    padding: 1.75rem 1.25rem;
  }

  .audit-form-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .audit-hero {
    padding: 1.75rem 1rem 2rem;
  }

  .audit-section {
    padding: 2.5rem 0;
  }

  .audit-container {
    padding: 0 1rem;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.audit-faq-grid {
  display: grid;
  gap: 1rem;
}

.audit-faq-item {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.audit-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: none;
}

.audit-faq-item summary::-webkit-details-marker {
  display: none;
}

.audit-faq-answer {
  margin: 0.75rem 0 0;
  color: rgba(229, 231, 235, 0.95);
  line-height: 1.75;
  font-size: 1rem;
}
