/* Landing dell'anomalia FBA di luglio 2026: hero blu come la homepage, scheda di controllo bianca sovrapposta.
   Colori dalla palette in core/css/base.css (--sfi-*). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#controllo { scroll-margin-top: 1rem; }

body.audit-landing {
  margin: 0;
  color: var(--sfi-ink);
  background: #F4F7FC;
  font-family: var(--tblr-font-sans-serif);
  -webkit-font-smoothing: antialiased;
}

.audit-landing h1, .audit-landing h2, .audit-landing h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: inherit; }
.audit-landing p { margin: 0; }
.audit-landing svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.audit-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Hero ---------- */

.audit-hero {
  position: relative;
  padding: 2.75rem 0 11rem;
  color: #fff;
  background:
    radial-gradient(56rem 28rem at 88% 0%, rgba(23, 99, 233, .5), transparent 62%),
    radial-gradient(36rem 22rem at 0% 100%, rgba(0, 185, 232, .2), transparent 65%),
    linear-gradient(180deg, var(--sfi-navy) 0%, var(--sfi-deep) 100%);
  isolation: isolate;
  overflow: hidden;
}

.audit-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 11rem; z-index: -1; pointer-events: none; }
.audit-wave path:first-child { fill: rgba(0, 185, 232, .22); }
.audit-wave path:last-child { fill: #F4F7FC; }

.audit-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3rem; align-items: center; }

.audit-pill {
  display: inline-block;
  margin-bottom: 1.1rem !important;
  padding: .4rem 1rem;
  border: 1px solid rgba(127, 221, 245, .45);
  border-radius: 999px;
  background: rgba(23, 99, 233, .28);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.audit-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1.06; }
.audit-hero h1 span {
  background: linear-gradient(90deg, #7DEBFF, #2CC5F2 60%, #22B3EE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.audit-lead { max-width: 36rem; margin-top: 1.25rem !important; font-size: 1.1rem; line-height: 1.55; color: #DCE6FF; }
.audit-lead strong { color: #fff; }

.audit-checks { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-weight: 600; }
.audit-checks li { display: inline-flex; align-items: center; gap: .5rem; }
.audit-checks li::before {
  content: "";
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--sfi-electric) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* Scheda della discrepanza */
.audit-diff {
  padding: 1.6rem;
  border-radius: 22px;
  background: #fff;
  color: var(--sfi-ink);
  box-shadow: 0 30px 60px -20px rgba(4, 12, 40, .6), 0 12px 24px -12px rgba(4, 12, 40, .35);
}
.audit-diff__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.audit-diff__head h2 { font-size: 1.4rem; }
.audit-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: #FDECEE; color: #C8293A; font-size: .78rem; font-weight: 700; }
.audit-badge svg { width: .95rem; height: .95rem; stroke-width: 2.4; }

.audit-diff__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1.2rem 0 0; }
.audit-diff__tiles div { padding: .85rem 1rem; border-radius: 14px; background: #EEF3FC; }
.audit-diff__tiles dt { font-size: .85rem; font-weight: 600; color: var(--sfi-muted); }
.audit-diff__tiles dd { margin: .15rem 0 0; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.audit-diff__tiles .is-alert { background: #FDECEE; }
.audit-diff__tiles .is-alert dd { color: #C8293A; }
.audit-diff__note { margin-top: .5rem !important; font-size: .75rem; color: var(--sfi-muted); }

.audit-diff__ack { display: flex; align-items: center; gap: .8rem; margin-top: 1rem !important; padding: .85rem 1rem; border-radius: 14px; background: #EEF3FC; font-weight: 700; line-height: 1.35; }
.audit-diff__ack span { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--sfi-green); color: #fff; }
.audit-diff__ack svg { width: 1.1rem; height: 1.1rem; stroke-width: 3; }
.audit-diff__case { margin-top: .9rem !important; font-size: .9rem; color: var(--sfi-muted); }
.audit-diff__case strong { color: #0B7A53; }

/* Pulsante che porta alla scheda di controllo e riassunto di "Cosa ottieni": solo su mobile. */
.audit-jump, .audit-upload__summary { display: none; }

/* ---------- Scheda di controllo ---------- */

.audit-upload {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  grid-template-areas: "main get" "cta cta";
  gap: 1.75rem 2.25rem;
  margin-top: -8rem;
  padding: 2rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px -20px rgba(16, 36, 72, .3);
}
.audit-upload__main { grid-area: main; }
.audit-upload__head { display: flex; align-items: center; gap: 1.1rem; }
.audit-upload__icon { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 16px; background: #E8F0FD; color: var(--sfi-electric); }
.audit-upload__icon svg { width: 2.2rem; height: 2.2rem; }
.audit-upload__head h2 { font-size: 1.65rem; }
.audit-upload__head p { margin-top: .25rem !important; color: var(--sfi-muted); }

.audit-reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.audit-report { padding: 1rem; border: 1px solid var(--sfi-border); border-radius: 16px; background: #FAFBFE; }
.audit-report__title { display: flex; align-items: flex-start; gap: .75rem; }
.audit-report__title svg { flex: none; width: 1.8rem; height: 1.8rem; color: var(--sfi-electric); }
.audit-report__title strong { display: block; font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.audit-report__title small { display: block; font-size: .85rem; color: var(--sfi-electric); }
.audit-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  margin-top: .9rem;
  padding: 1rem;
  border: 1.5px dashed #BFD3FA;
  border-radius: 12px;
  background: #F1F6FF;
  color: var(--sfi-ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.audit-drop svg { width: 1.8rem; height: 1.8rem; color: var(--sfi-electric); }
.audit-drop:hover { color: var(--sfi-ink); border-color: var(--sfi-electric); background: #E8F0FD; text-decoration: none; }

.audit-upload__get { grid-area: get; align-self: center; padding-left: 2rem; border-left: 1px solid var(--sfi-border); }
.audit-upload__get h3 { font-size: 1.2rem; }
.audit-upload__get ul { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .92rem; line-height: 1.4; }
.audit-upload__get li { display: flex; gap: .6rem; }
.audit-upload__get li::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310A772' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center/100% no-repeat;
}

.audit-upload__cta { grid-area: cta; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.audit-upload__cta p { font-size: .82rem; color: var(--sfi-muted); text-align: center; }
.audit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3.4rem;
  padding: .85rem 2.2rem;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--sfi-electric), #1E8EF2);
  box-shadow: 0 12px 26px -10px rgba(23, 99, 233, .8);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, filter .2s;
}
.audit-btn svg { width: 1.3rem; height: 1.3rem; stroke-width: 2.4; }
.audit-btn:hover { color: #fff; text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.audit-btn:focus-visible, .audit-drop:focus-visible { outline: 3px solid var(--sfi-cyan); outline-offset: 3px; }

/* ---------- Cosa è successo ---------- */

.audit-what { padding: 3.5rem 0 2.5rem; }
.audit-what h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); text-align: center; }
.audit-what__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.audit-what__grid article { display: flex; align-items: center; gap: 1.1rem; padding: .25rem 2rem; }
.audit-what__grid article + article { border-left: 1px solid #D5DEEC; }
.audit-what__grid p { font-size: 1.02rem; line-height: 1.5; }
.audit-round-icon { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: #E3ECFC; color: var(--sfi-electric); }
.audit-round-icon svg { width: 1.8rem; height: 1.8rem; }

/* ---------- Come funziona ---------- */

.audit-how {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 2rem;
  border-radius: 18px;
  background: #E9EFF9;
}
.audit-how__intro h2 { font-size: 1.55rem; }
.audit-how__intro p { margin-top: .3rem !important; font-size: 1.05rem; color: var(--sfi-electric-dark); }
.audit-how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.audit-how__steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center; }
.audit-how__steps li + li::before { content: "→"; position: absolute; left: -.9rem; top: 2.3rem; color: var(--sfi-electric); font-size: 1.5rem; transform: translateX(-50%); }
.audit-how__steps span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .5rem; border-radius: 50%; background: var(--sfi-electric); color: #fff; font-weight: 800; }
.audit-how__steps strong { font-size: .98rem; }
.audit-how__steps small { font-size: .92rem; color: var(--sfi-ink); }

/* ---------- Caso documentato ---------- */

.audit-case-wrap { padding: 2rem 0 4rem; }
.audit-case {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 20rem);
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.4rem;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(30rem 14rem at 100% 110%, rgba(0, 185, 232, .45), transparent 70%),
    linear-gradient(110deg, var(--sfi-navy), var(--sfi-deep) 60%, #1A3BA0);
  isolation: isolate;
}
.audit-case__shield { width: 3.8rem; height: 4.2rem; stroke: #fff; stroke-width: 3.2; }
.audit-case__main { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .22); }
.audit-case h2 { font-size: 1.3rem; }
.audit-case__figure { margin-top: .3rem !important; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.audit-case__figure span { color: #38CFF3; }
.audit-case__note { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .22); font-size: .95rem; line-height: 1.5; color: #DCE6FF; }

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .audit-hero { padding-bottom: 10rem; }
  .audit-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .audit-upload { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "get" "cta"; }
  .audit-upload__get { padding: 1.4rem 0 0; border-left: 0; border-top: 1px solid var(--sfi-border); }
  .audit-what__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 34rem; margin-left: auto; margin-right: auto; }
  .audit-what__grid article { padding: 0; }
  .audit-what__grid article + article { border-left: 0; }
  .audit-how { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .audit-case { grid-template-columns: auto minmax(0, 1fr); }
  .audit-case__note { grid-column: 1 / -1; padding: 1.2rem 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
}

@media (max-width: 767.98px) {
  .audit-container { width: calc(100% - 40px); }

  /* Hero compatta: niente righe ripetute nella scheda, pulsante che porta subito al controllo */
  .audit-hero { padding: 1.25rem 0 6.5rem; }
  .audit-hero__grid { gap: 1.1rem; }
  .audit-wave { height: 5rem; }
  .audit-pill { margin-bottom: .75rem !important; padding: .3rem .75rem; font-size: .68rem; }
  .audit-hero h1 { font-size: 2rem; }
  .audit-lead { margin-top: .75rem !important; font-size: .95rem; line-height: 1.5; }
  .audit-checks { gap: .3rem .9rem; margin-top: .85rem; font-size: .82rem; }
  .audit-checks li { gap: .35rem; }
  .audit-checks li::before { width: 1rem; height: 1rem; }
  .audit-diff { padding: 1rem; border-radius: 16px; }
  .audit-diff__head h2 { font-size: 1.05rem; }
  .audit-badge { padding: .2rem .55rem; font-size: .7rem; }
  .audit-diff__tiles { gap: .4rem; margin-top: .8rem; }
  .audit-diff__tiles div { padding: .55rem .65rem; border-radius: 10px; }
  .audit-diff__tiles dt { font-size: .7rem; }
  .audit-diff__tiles dd { font-size: 1.15rem; }
  .audit-diff__note { margin-top: .4rem !important; font-size: .7rem; }
  .audit-diff__ack, .audit-diff__case { display: none; }
  .audit-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3.1rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #4ED3F5, #1E8EF2);
    box-shadow: 0 12px 26px -10px rgba(46, 190, 240, .75);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  .audit-jump:hover { color: #fff; text-decoration: none; }
  .audit-jump svg { width: 1.2rem; height: 1.2rem; stroke-width: 2.4; }

  /* Scheda di controllo: protagonista, compatta */
  .audit-upload { gap: 1rem; margin-top: -4.5rem; padding: 1.15rem; border-radius: 18px; }
  .audit-upload__head { align-items: flex-start; gap: .8rem; }
  .audit-upload__icon { width: 2.75rem; height: 2.75rem; border-radius: 12px; }
  .audit-upload__icon svg { width: 1.5rem; height: 1.5rem; }
  .audit-upload__head h2 { font-size: 1.25rem; }
  .audit-upload__head p { font-size: .88rem; }
  .audit-reports { grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: 1rem; }
  .audit-report { padding: .75rem; border-radius: 14px; }
  .audit-report__title svg { width: 1.5rem; height: 1.5rem; }
  .audit-report__title strong { font-size: .9rem; }
  .audit-report__title small { font-size: .78rem; }
  .audit-drop { flex-direction: row; justify-content: center; margin-top: .6rem; padding: .6rem; font-size: .88rem; }
  .audit-drop svg { width: 1.3rem; height: 1.3rem; }
  .audit-upload__get { padding-top: .9rem; }
  .audit-upload__get h3 { font-size: 1rem; }
  .audit-upload__get ul { display: none; }
  .audit-upload__summary { display: block; margin-top: .3rem !important; font-size: .9rem; line-height: 1.45; color: var(--sfi-muted); }
  .audit-btn { width: 100%; padding: .85rem 1rem; font-size: 1rem; }
  .audit-btn svg:first-child { display: none; }

  /* "Cosa è successo" ripete l'hero: su mobile si salta */
  .audit-what { display: none; }

  .audit-how { gap: 1rem; margin-top: 2rem; padding: 1.2rem 1.1rem; }
  .audit-how__intro h2 { font-size: 1.2rem; }
  .audit-how__intro p { font-size: .95rem; }
  .audit-how__steps { grid-template-columns: minmax(0, 1fr); gap: .75rem; text-align: left; }
  .audit-how__steps li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: .8rem; align-items: center; text-align: left; }
  .audit-how__steps li + li::before { display: none; }
  .audit-how__steps span { grid-row: span 2; width: 2.2rem; height: 2.2rem; margin: 0; }
  .audit-how__steps strong, .audit-how__steps small { grid-column: 2; }
  .audit-how__steps li:first-child strong { grid-row: span 2; }
  .audit-how__steps strong { font-size: .92rem; }
  .audit-how__steps small { font-size: .85rem; }
  .audit-case-wrap { padding: 1.25rem 0 2.5rem; }
  .audit-case { gap: 1rem; padding: 1.25rem; border-radius: 16px; }
  .audit-case__shield { width: 2.5rem; height: 2.8rem; }
  .audit-case__main { padding-left: 1rem; }
  .audit-case h2 { font-size: 1rem; }
  .audit-case__figure { font-size: 1.5rem; }
  .audit-case__note { padding-top: 1rem; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .audit-btn, .audit-drop { transition: none; }
  .audit-btn:hover { transform: none; }
}
