/* ============================================
   ANASMILANO – Design tokens & global layout
   ============================================ */

:root {
  /* Colors (brand) */
  --color-primary: #1a3a6b;
  --color-primary-light: #2e6db4;
  --color-white: #ffffff;
  --color-bg: #f4f7fc;
  --color-bg-alt: #e8eef7;
  --color-text: #1a2744;
  --color-text-muted: #5c6b82;
  --color-border: #c5d3e8;
  --color-success: #0d7a4f;
  --color-error: #b42318;
  /* Rosso sezione “Difficoltà frequenti” (saturato, vivo) */
  --color-pain-red: #dc2626;
  --color-pain-red-deep: #b91c1c;
  --color-pain-red-hot: #ef4444;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: clamp(1.75rem, 4vw, 2.25rem);
  --fs-hero: clamp(2rem, 5vw, 2.75rem);
  --lh-tight: 1.2;
  --lh-normal: 1.55;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container-max: 72rem;
  --container-padding: var(--space-4);
  --header-h: 4rem;
  --radius: 0.3125rem;
  --radius-lg: 0.5rem;
  /* Bottoni / etichette: angoli moderati (non capsula eccessiva) */
  --radius-pill: 0.375rem;
  --shadow-sm: 0 1px 2px rgb(26 58 107 / 0.06);
  --shadow-md: 0 4px 14px rgb(26 58 107 / 0.1);
  --shadow-lg: 0 12px 40px rgb(26 58 107 / 0.14);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-3));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-white);
  padding-bottom: 5rem;
}

@media (min-width: 48rem) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: 42rem;
  margin-inline: auto;
}

.container--form {
  max-width: 36rem;
  margin-inline: auto;
}

.container--header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.22),
    0 2px 8px rgb(0 0 0 / 0.2);
}

.brand__mark--footer {
  width: 3.5rem;
  height: 3.5rem;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.18),
    0 4px 14px rgb(0 0 0 / 0.35);
}

.brand--footer {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: var(--space-8);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-color: var(--color-white);
  --btn-border: transparent;
  --btn-shadow: var(--shadow-md);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

.btn--primary {
  --btn-bg: linear-gradient(165deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  background: linear-gradient(165deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--secondary {
  --btn-bg: var(--color-white);
  --btn-color: var(--color-primary);
  --btn-border: var(--color-white);
  --btn-shadow: 0 4px 20px rgb(0 0 0 / 0.12);
}

.btn--secondary:hover {
  --btn-bg: #f0f4fa;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: var(--fs-base);
}

.btn--block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-primary) 0%, #152d52 100%);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-1);
}

.nav__list a {
  color: rgb(255 255 255 / 0.9);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav__list a:hover {
  color: var(--color-white);
  background: rgb(255 255 255 / 0.1);
}

.nav__cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 56rem) {
  .nav-toggle {
    display: none;
  }

  .nav__list {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav {
    flex: 1;
    justify-content: flex-end;
  }
}

@media (max-width: 55.99rem) {
  /* Logo a sinistra, hamburger a destra (nav fuori dal flex in riga) */
  .container--header {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }

  .nav-toggle {
    order: 2;
    margin-left: auto;
  }

  .nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }

  .site-header.is-open .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex: none;
    width: auto;
    order: unset;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    background: var(--color-primary);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: var(--shadow-lg);
  }

  .site-header.is-open .nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .site-header.is-open .nav__list a {
    padding: var(--space-3);
  }

  .site-header.is-open .nav__cta {
    display: inline-flex;
    margin-top: var(--space-3);
    justify-content: center;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-12);
}

/* Più respiro tra sezioni (dal blocco sotto l’hero) */
main .section:not(.section--hero) {
  padding-block: calc(var(--space-12) + var(--space-4)) calc(var(--space-12) + var(--space-2));
}

.section--hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-16) var(--space-12);
  color: var(--color-white);
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgb(46 109 180 / 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgb(255 255 255 / 0.06) 0%, transparent 45%),
    linear-gradient(160deg, var(--color-primary) 0%, #0a1a32 45%, #0f2444 70%, #1a4a7a 100%);
}

.section--muted {
  background: var(--color-bg);
}

/* ---------- Sezione “Problemi” (pain) ---------- */
.section--pain {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgb(220 38 38 / 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgb(26 58 107 / 0.07) 0%, transparent 50%),
    linear-gradient(180deg, #eef2f9 0%, var(--color-bg) 45%, #f8fafc 100%);
}

.pain-deco {
  position: absolute;
  inset: -20% -10% auto 40%;
  height: 60%;
  max-height: 24rem;
  background: radial-gradient(circle, rgb(46 109 180 / 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.pain-layout {
  position: relative;
  z-index: 1;
}

.pain-header {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: var(--space-12);
  text-align: center;
}

.pain-kicker {
  display: inline-block;
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  background: linear-gradient(165deg, var(--color-pain-red-hot) 0%, var(--color-pain-red) 45%, var(--color-pain-red-deep) 100%);
  border-radius: var(--radius-pill);
  border: 1px solid rgb(127 29 29 / 0.65);
  box-shadow:
    0 2px 6px rgb(220 38 38 / 0.45),
    inset 0 1px 0 rgb(255 255 255 / 0.22);
}

.pain-title {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-primary);
}

.pain-title__line {
  display: block;
  margin-top: var(--space-2);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  font-size: 0.92em;
}

.pain-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 36rem) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

.pain-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-5) var(--space-5) var(--space-6);
  background: linear-gradient(165deg, #fffefe 0%, #fff5f5 100%);
  border-radius: var(--radius);
  border: 1px solid rgb(220 38 38 / 0.28);
  box-shadow:
    0 2px 8px rgb(26 58 107 / 0.05),
    0 8px 28px rgb(220 38 38 / 0.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(165deg, #ffffff 0%, #ffecec 100%);
  border-color: rgb(220 38 38 / 0.55);
  box-shadow:
    0 8px 24px rgb(26 58 107 / 0.08),
    0 14px 40px rgb(220 38 38 / 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .pain-card:hover {
    transform: none;
  }
}

.pain-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--color-white);
  background: linear-gradient(145deg, var(--color-pain-red-hot) 0%, var(--color-pain-red) 55%, var(--color-pain-red-deep) 100%);
  border-radius: var(--radius);
  border: 1px solid rgb(127 29 29 / 0.55);
  box-shadow:
    0 3px 10px rgb(220 38 38 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.2);
}

.pain-card__text {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  color: var(--color-text);
}

.pain-foot {
  margin-top: var(--space-10);
  max-width: 44rem;
  margin-inline: auto;
  padding: var(--space-5) var(--space-6);
  text-align: center;
  background: linear-gradient(120deg, var(--color-primary) 0%, #243d5c 100%);
  color: rgb(255 255 255 / 0.92);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgb(26 58 107 / 0.25);
  border: 1px solid rgb(255 255 255 / 0.12);
}

.pain-foot__text {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.pain-foot__text strong {
  color: var(--color-white);
  font-weight: var(--fw-bold);
}

.section--alt {
  background: var(--color-bg-alt);
}

/* ---------- Sezione Chi siamo ---------- */
.section--chi {
  position: relative;
  overflow: hidden;
  background-color: #0f1c2e;
  background-image:
    radial-gradient(ellipse 90% 80% at 50% 40%, rgb(15 36 68 / 0.35) 0%, transparent 55%),
    linear-gradient(160deg, rgb(10 26 46 / 0.88) 0%, rgb(26 58 107 / 0.72) 48%, rgb(8 18 32 / 0.92) 100%),
    url("img/mani.avif");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.section--chi .section__title {
  color: var(--color-white);
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.35);
}

.chi-wrap {
  width: 100%;
}

.chi-head {
  margin-bottom: var(--space-8);
}

.chi-head .section__title {
  margin-bottom: 0;
}

/* Testo a sinistra, pilastri a destra (desktop) */
.chi-body {
  display: grid;
  gap: var(--space-8);
  align-items: stretch;
}

.chi-card {
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgb(255 255 255 / 0.95);
}

.chi-card__text {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: var(--color-text);
}

.chi-card__text strong {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.chi-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 100%;
}

@media (min-width: 56rem) {
  .chi-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr);
    gap: var(--space-8) var(--space-10);
  }

  .chi-pillars {
    justify-content: center;
  }
}

.chi-pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.98) 0%, rgb(232 238 247 / 0.95) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.chi-pillar:hover {
  transform: translateY(-3px);
  border-color: rgb(46 109 180 / 0.45);
  box-shadow: var(--shadow-md);
}

.chi-pillar__ic {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-white);
  background: linear-gradient(145deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: var(--radius);
}

.chi-pillar__ic svg {
  width: 1.1rem;
  height: 1.1rem;
}

.chi-pillar__txt {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .chi-pillar:hover {
    transform: none;
  }
}

/* ---------- Immagini di contenuto (no hero) ---------- */
.inline-figure {
  margin: var(--space-6) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.inline-figure__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 12rem;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

@media (min-width: 48rem) {
  .inline-figure__img {
    max-height: 15rem;
  }
}

.section--cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #142a4d 100%);
  color: var(--color-white);
}

.section--trust {
  background: linear-gradient(180deg, #e4ecf8 0%, var(--color-bg) 100%);
}

.section__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-10);
  color: var(--color-primary);
}

/* Titoli centrati dal primo blocco sotto l’hero in giù (il hero resta com’era) */
main .section:not(.section--hero) .section__title {
  text-align: center;
}

.section__title--light {
  color: var(--color-white);
}

.section__text {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
}

.section__text--light {
  color: rgb(255 255 255 / 0.88);
}

.section__note {
  margin: var(--space-8) 0 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.section__highlight {
  margin: var(--space-8) 0 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-align: center;
}

.section__actions {
  margin-top: var(--space-8);
  text-align: center;
}

.text-center {
  text-align: center;
}

/* ---------- Hero ---------- */
.hero__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 48rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 22rem);
    align-items: center;
    gap: var(--space-8) var(--space-10);
  }
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  color: var(--color-white);
}

.hero__lead {
  margin: var(--space-5) 0 var(--space-3);
  font-weight: var(--fw-semibold);
  color: rgb(255 255 255 / 0.95);
}

.hero__panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: var(--space-4);
}

/* Composición visual derecha */
.hero__viz {
  position: relative;
  width: 100%;
  max-width: 21rem;
  min-height: 18.5rem;
  margin-inline: auto;
}

.hero__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  opacity: 0.55;
  animation: heroGlowPulse 7s ease-in-out infinite;
}

.hero__glow--a {
  width: 11rem;
  height: 11rem;
  top: -1rem;
  right: -0.5rem;
  background: var(--color-primary-light);
}

.hero__glow--b {
  width: 8rem;
  height: 8rem;
  bottom: 0;
  left: -1rem;
  background: #3d8ad9;
  animation-delay: -3.5s;
}

.hero__ring {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  width: min(16rem, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgb(255 255 255 / 0.18);
  transform: translate(-50%, -50%);
  animation: heroRingSpin 48s linear infinite;
  pointer-events: none;
}

/* Chips flotantes */
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.95);
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
  white-space: nowrap;
  z-index: 5;
  animation: heroChipFloat 5s ease-in-out infinite;
}

.hero__chip--tl {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.hero__chip--tr {
  top: 8%;
  right: 0;
  animation: heroChipFloat 5.8s ease-in-out infinite;
  animation-delay: -1.2s;
}

.hero__chip--bl {
  bottom: 4%;
  left: -2%;
  animation: heroChipFloat 6.5s ease-in-out infinite;
  animation-delay: -2.5s;
}

.hero__chip-ic {
  display: flex;
  width: 1.35rem;
  height: 1.35rem;
  color: rgb(255 255 255 / 0.95);
}

.hero__chip-ic svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 47.99rem) {
  .hero__chip--bl {
    left: 0;
  }
}

/* Tarjeta principal glass */
.hero__card {
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 0.32);
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 0.22) 0%,
    rgb(255 255 255 / 0.08) 50%,
    rgb(255 255 255 / 0.06) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px rgb(0 0 0 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.hero__card--main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 15.5rem;
  margin-inline: auto;
  margin-top: 2.25rem;
  padding: var(--space-6) var(--space-5) var(--space-5);
  animation: heroCardFloat 6s ease-in-out infinite;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: rgb(255 255 255 / 0.95);
  background: rgb(13 122 79 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius-pill);
}

.hero__badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #5ee9a0;
  box-shadow: 0 0 0 3px rgb(94 233 160 / 0.35);
  animation: heroDotPulse 2.2s ease-in-out infinite;
}

.hero__stat {
  display: block;
  font-size: clamp(2.25rem, 6vw, 2.85rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.2);
}

.hero__stat-label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgb(255 255 255 / 0.88);
}

.hero__card-note {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: rgb(255 255 255 / 0.72);
}

/* Tarjeta secundaria */
.hero__card--accent {
  position: absolute;
  z-index: 4;
  right: -0.25rem;
  bottom: 0.5rem;
  width: 5.5rem;
  padding: var(--space-3) var(--space-3);
  text-align: center;
  animation: heroCardFloat 7s ease-in-out infinite;
  animation-delay: -2s;
}

.hero__accent-val {
  display: block;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.1;
}

.hero__accent-lbl {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.75);
}

@keyframes heroCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes heroChipFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-6px) translateX(2px);
  }
}

@keyframes heroGlowPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

@keyframes heroRingSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes heroDotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .hero__ring,
  .hero__chip,
  .hero__card--main,
  .hero__card--accent,
  .hero__badge-dot {
    animation: none !important;
  }
}

/* ---------- Lists ---------- */
.checklist {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
  color: inherit;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  background: var(--color-primary-light);
  border-radius: var(--radius);
}

.section--hero .checklist li {
  color: rgb(255 255 255 / 0.95);
}

.section--hero .checklist li::before {
  background: rgb(255 255 255 / 0.25);
  color: var(--color-white);
}

.checklist--large li {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
}

/* Solo sezione “Con noi è diverso”: griglia 3×2 su desktop, allineamento uniforme */
@media (min-width: 48rem) {
  #soluzione .checklist--soluzione-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--space-8);
    column-gap: var(--space-8);
    align-items: stretch;
  }

  #soluzione .checklist--soluzione-row li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: 0;
    padding-left: 0;
    min-height: 100%;
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    line-height: 1.35;
  }

  #soluzione .checklist--soluzione-row li::before {
    position: static;
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
  }

  #soluzione .checklist--soluzione-row .checklist__label {
    flex: 1;
    min-width: 0;
    text-wrap: balance;
  }
}

.checklist--columns {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 40rem) {
  .checklist--columns {
    grid-template-columns: 1fr 1fr;
  }
}

.bullet-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 40rem) {
  .bullet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bullet-grid li {
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.bullet-grid li::before {
  content: "• ";
  color: var(--color-primary-light);
  font-weight: var(--fw-bold);
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 40rem) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.card__icon--round {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: var(--fs-xl);
}

.card__title {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.card__text {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

.trust-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 48rem) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card--trust {
  text-align: center;
  background: linear-gradient(180deg, var(--color-white) 0%, #f0f5fc 100%);
}

.card--trust .card__icon {
  margin-inline: auto;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 48rem) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .two-col--invalidita {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
  }

  .two-col--legge104 {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;
  }
}

.invalidita__figure,
.legge104__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.invalidita__figure {
  background: var(--color-bg);
}

.legge104__figure {
  background: var(--color-white);
}

.invalidita__img,
.legge104__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 48rem) {
  .invalidita__figure,
  .legge104__figure {
    position: relative;
    min-height: 0;
  }

  #invalidita .invalidita__figure {
    align-self: start;
    width: 100%;
    max-height: min(24rem, 52vh);
    aspect-ratio: 4 / 3;
  }

  .invalidita__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .legge104__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

#invalidita .container > .section__title,
#legge-104 .container > .section__title {
  text-align: center;
  margin-bottom: var(--space-6);
}

#invalidita .invalidita__body,
#legge-104 .legge104__body {
  text-align: left;
}

#invalidita .invalidita__body .section__text,
#legge-104 .legge104__body .section__text {
  max-width: 48rem;
  margin-inline: 0;
}

#invalidita .invalidita__body .checklist,
#legge-104 .legge104__body .checklist {
  max-width: 42rem;
  margin-inline: 0;
}

.aside__title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-lg);
  color: var(--color-primary);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.step__num {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.step__title {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-lg);
  color: var(--color-primary);
}

.step__body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item:hover {
  border-color: var(--color-primary-light);
}

.faq__item[open] {
  box-shadow: var(--shadow-md);
}

.faq__q {
  padding: var(--space-4) var(--space-5);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  list-style: none;
  color: var(--color-primary);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  float: right;
  font-weight: var(--fw-bold);
  color: var(--color-primary-light);
}

.faq__item[open] .faq__q::after {
  content: "−";
}

.faq__a {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--color-bg-alt);
  padding-top: var(--space-3);
}

/* ---------- Form ---------- */
.form-intro {
  margin-bottom: var(--space-8);
}

.contact-form {
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.field {
  margin-bottom: var(--space-5);
}

.field__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.req {
  color: var(--color-error);
}

.field__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--fs-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.field__input:hover {
  border-color: var(--color-primary-light);
}

.field__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgb(46 109 180 / 0.2);
}

.field__input--textarea {
  min-height: 7rem;
  resize: vertical;
}

.field__input.is-invalid {
  border-color: var(--color-error);
}

.field__input.is-valid {
  border-color: var(--color-success);
}

.field__error {
  display: block;
  min-height: 1.25rem;
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--color-error);
}

.field--checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}

.field--checkbox input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-primary);
}

.field--checkbox label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

.form__success {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: #e6f4ed;
  color: var(--color-success);
  border-radius: var(--radius);
  font-weight: var(--fw-medium);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1f38;
  color: rgb(255 255 255 / 0.85);
  padding-block: var(--space-12) var(--space-8);
}

.footer__top {
  margin-bottom: var(--space-10);
}

.footer__cols {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 48rem) {
  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__heading {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.95);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__links a {
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__copy {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.55);
  text-align: center;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: var(--space-3) var(--container-padding);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgb(255 255 255 / 0.95) 30%, var(--color-white) 100%);
  box-shadow: 0 -4px 20px rgb(26 58 107 / 0.08);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.mobile-cta.is-hidden {
  transform: translateY(100%);
  pointer-events: none;
  opacity: 0;
}

@media (min-width: 48rem) {
  .mobile-cta {
    display: none;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.1s;
}

/* ============================================
   Mobile (≤47.99rem): solo refinos; il layout
   desktop resta governato dai min-width sopra
   ============================================ */
@media (max-width: 47.99rem) {
  html {
    overflow-x: clip;
  }

  body {
    overflow-x: clip;
    padding-bottom: max(5rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
  }

  .container {
    padding-inline: max(var(--space-3), env(safe-area-inset-left, 0px))
      max(var(--space-3), env(safe-area-inset-right, 0px));
  }

  .container--header {
    gap: var(--space-2);
    padding-inline: max(var(--space-3), env(safe-area-inset-left, 0px))
      max(var(--space-3), env(safe-area-inset-right, 0px));
  }

  .brand__mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .section {
    padding-block: var(--space-10);
  }

  main .section:not(.section--hero) {
    padding-block: calc(var(--space-10) + var(--space-2)) var(--space-10);
  }

  .section--hero {
    padding-block: var(--space-10) var(--space-8);
  }

  .section__title {
    margin-bottom: var(--space-6);
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    text-wrap: balance;
  }

  .section__text,
  .section__text--light {
    font-size: var(--fs-base);
    text-wrap: pretty;
  }

  .hero__grid {
    gap: var(--space-6);
  }

  .hero__title {
    font-size: clamp(1.45rem, 6.5vw, 2.35rem);
    text-wrap: balance;
  }

  .hero__lead {
    margin-top: var(--space-4);
  }

  .hero__panel {
    padding-block: var(--space-2);
  }

  .hero__viz {
    max-width: min(21rem, 100%);
    min-height: 16.5rem;
  }

  .hero__chip {
    font-size: 0.62rem;
    padding: var(--space-2) var(--space-2);
    max-width: calc(100vw - 2 * var(--space-3));
  }

  .hero__chip--tr {
    max-width: 11rem;
    right: 0;
    left: auto;
  }

  .hero__card--main {
    margin-top: var(--space-6);
    padding: var(--space-5) var(--space-4);
  }

  .hero__card--accent {
    right: 0;
    bottom: 0.25rem;
  }

  .btn--lg {
    min-height: 2.75rem;
    padding-inline: var(--space-4);
  }

  .cards-grid {
    gap: var(--space-4);
  }

  .card {
    padding: var(--space-5);
  }

  .trust-grid {
    gap: var(--space-4);
  }

  .step {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .step__title {
    font-size: var(--fs-base);
  }

  .faq__q {
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-sm);
    padding-right: var(--space-8);
  }

  .faq__a {
    padding-inline: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .contact-form {
    padding: var(--space-5);
  }

  .chi-card {
    padding: var(--space-5);
  }

  .chi-pillar {
    padding: var(--space-3) var(--space-4);
  }

  /* Sotto ~768px: checklist a colonna singola (anche tra 640–768px evita celle troppo strette) */
  .checklist--columns {
    grid-template-columns: 1fr;
  }

  .bullet-grid {
    grid-template-columns: 1fr;
  }

  #invalidita .two-col--invalidita,
  #legge-104 .two-col--legge104 {
    gap: var(--space-6);
  }

  /* Legge 104: su mobile immagine sopra, testo sotto (desktop resta testo | immagine) */
  #legge-104 .legge104__figure {
    order: -1;
  }

  .checklist li {
    overflow-wrap: break-word;
  }

  .pain-card {
    padding: var(--space-4) var(--space-5);
  }

  .pain-foot {
    padding: var(--space-4) var(--space-5);
  }

  .pain-foot__text {
    font-size: var(--fs-base);
  }

  .site-footer {
    padding-block: var(--space-10) max(var(--space-8), env(safe-area-inset-bottom, 0px));
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  }

  .footer__top {
    margin-bottom: var(--space-8);
  }

  .brand--footer {
    margin-inline: auto;
    margin-bottom: var(--space-6);
  }

  .footer__cols {
    gap: var(--space-6);
    text-align: center;
  }

  .footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__links a,
  .footer__links li {
    word-break: break-word;
  }

  .footer__copy {
    font-size: 0.8125rem;
    padding-inline: var(--space-2);
  }

  .inline-figure__img {
    max-height: 10rem;
  }

  .mobile-cta {
    padding-inline: max(var(--space-3), env(safe-area-inset-left, 0px))
      max(var(--space-3), env(safe-area-inset-right, 0px));
  }
}

/* Una colonna per le card “problemi” sotto ~640px (evita colonne troppo strette) */
@media (max-width: 39.99rem) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}
