/* =================================================================
   AGENZIA MADONIA — Restyling 2025
   Vanilla CSS · Custom properties · Grid + Flexbox · Mobile-first
   ================================================================= */

/* -----------------------------------------------------------------
   1. DESIGN TOKENS
----------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #003781;          /* Allianz blue (primario)        */
  --navy-700: #002a63;
  --navy-900: #001b41;
  --accent: #00b3a4;        /* teal (accento fresco / CTA)    */
  --accent-600: #009b8e;
  --accent-tint: #e6f7f5;

  /* Neutri */
  --ink: #0d1b2a;           /* titoli                          */
  --body: #4a5868;          /* testo                           */
  --muted: #6b7888;
  --line: #e8edf3;
  --line-strong: #d6deea;
  --surface: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f3f7fc;        /* sezioni alternate               */
  --bg-soft: #eaf1f9;

  /* On-color text */
  --on-navy: #ffffff;
  --on-accent: #00261f;

  /* Raggi */
  --r-sm: 10px;
  --r: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Ombre morbide e diffuse */
  --shadow-xs: 0 1px 2px rgba(13, 27, 42, .06);
  --shadow-sm: 0 6px 18px -10px rgba(13, 27, 42, .22);
  --shadow: 0 18px 44px -22px rgba(13, 27, 42, .30);
  --shadow-lg: 0 34px 70px -28px rgba(13, 27, 42, .38);
  --shadow-navy: 0 30px 60px -25px rgba(0, 55, 129, .55);

  /* Layout */
  --container: 1200px;
  --header-h: 74px;

  /* Tipografia */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);

  /* Transizioni */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .35s var(--ease);
}

/* -----------------------------------------------------------------
   2. RESET & BASE
----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(.98rem, .95rem + .2vw, 1.05rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

a { color: var(--navy); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 700;
}

button { font-family: inherit; cursor: pointer; }

ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

section[id], body#top { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* -----------------------------------------------------------------
   3. LAYOUT HELPERS
----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

.section { padding-block: clamp(60px, 9vw, 116px); }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section__title { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.7rem); }
.section__intro {
  margin-top: 18px;
  color: var(--body);
  font-size: clamp(1rem, .97rem + .3vw, 1.12rem);
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: rgba(255, 255, 255, .92); }
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 179, 164, .18);
}

/* -----------------------------------------------------------------
   4. BOTTONI
----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  letter-spacing: .01em;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--navy);
  color: var(--on-navy);
  box-shadow: 0 14px 30px -14px rgba(0, 55, 129, .7);
}
.btn--primary:hover { background: var(--navy-700); box-shadow: 0 20px 38px -14px rgba(0, 55, 129, .8); }

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: 0 14px 30px -14px rgba(0, 179, 164, .7);
}
.btn--accent:hover { background: var(--accent-600); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--navy); background: rgba(0, 55, 129, .05); }

.btn--outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* Link con freccia */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-600);
  font-weight: 600;
  font-size: .94rem;
}
.link-arrow span { transition: transform var(--t); }

/* -----------------------------------------------------------------
   5. ANIMAZIONI DI ENTRATA (progressive enhancement)
----------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* -----------------------------------------------------------------
   6. HEADER / NAVBAR
----------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  min-height: var(--header-h);
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}
/* Navbar: solo il logo, senza riquadro (il logo ha già il proprio sfondo) */
.header .brand__logo {
  width: 56px; height: 56px;
  background: none;
  border: none;
  box-shadow: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__text small { font-size: .76rem; color: var(--muted); }

/* Nav desktop */
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav__link {
  position: relative;
  display: block;
  padding: 9px 13px;
  color: var(--ink);
  font-weight: 500;
  font-size: .94rem;
  white-space: nowrap;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__actions .btn--primary { display: none; }

/* Hamburger */
.menu-toggle {
  width: 46px; height: 46px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile a tutto schermo */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: calc(var(--header-h) + 28px) clamp(24px, 7vw, 48px) 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.mobile-nav__list a {
  display: block;
  padding: 16px 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav__list a:hover { color: var(--navy); }
.mobile-nav__contacts {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}
.mobile-nav__contacts a { color: var(--navy); }

/* -----------------------------------------------------------------
   7. HERO
----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 50% at 12% 8%, rgba(0, 179, 164, .12), transparent 60%),
    radial-gradient(48% 48% at 92% 18%, rgba(0, 55, 129, .14), transparent 58%),
    radial-gradient(42% 42% at 78% 96%, rgba(0, 179, 164, .10), transparent 62%),
    linear-gradient(180deg, #f4f8fd 0%, #ffffff 70%);
}
.hero__inner {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px);
}
.hero__title {
  font-size: clamp(2.1rem, 1.1rem + 4.4vw, 3.6rem);
  font-weight: 800;
  margin-top: 6px;
}
.hero__text {
  margin-top: 22px;
  max-width: 50ch;
  font-size: clamp(1.02rem, .98rem + .4vw, 1.18rem);
  color: var(--body);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}
.hero__trust li { position: relative; }
.hero__trust strong { color: var(--ink); font-family: var(--font-display); }
.hero__trust li + li::before {
  content: "";
  position: absolute;
  left: -14px; top: 50%;
  width: 1px; height: 16px;
  background: var(--line-strong);
  transform: translateY(-50%);
}

/* Visual */
.hero__media { position: relative; justify-self: center; width: 100%; max-width: 540px; }
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__badge {
  position: absolute;
  left: -14px; bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.hero__badge-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--navy);
  line-height: 1;
}
.hero__badge-label { font-size: .8rem; color: var(--body); line-height: 1.3; }

/* -----------------------------------------------------------------
   8. BANNER PROMO
----------------------------------------------------------------- */
.promo { padding-block: clamp(20px, 5vw, 48px); margin-top: clamp(-40px, -4vw, -20px); position: relative; z-index: 2; }
.promo__card {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0, 179, 164, .35), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  box-shadow: var(--shadow-navy);
  overflow: hidden;
}
.promo__main { display: flex; gap: clamp(18px, 3vw, 28px); align-items: flex-start; }
.promo__badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 78px; height: 78px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  box-shadow: 0 12px 26px -10px rgba(0, 179, 164, .8);
}
.promo__title { color: #fff; font-size: clamp(1.3rem, 1rem + 1.5vw, 1.95rem); }
.promo__text { margin-top: 12px; color: rgba(255, 255, 255, .82); max-width: 58ch; }
.promo__contacts { display: flex; flex-wrap: wrap; gap: 14px; }
.promo__contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-md);
  color: #fff;
  transition: background var(--t), transform var(--t);
}
.promo__contact:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.promo__contact-ico { font-size: 1.3rem; opacity: .9; }
.promo__contact small { display: block; font-size: .76rem; color: rgba(255, 255, 255, .65); }
.promo__contact strong { font-size: 1.05rem; }
.promo__disclaimer {
  margin-top: 18px;
  font-size: .76rem;
  color: var(--muted);
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* -----------------------------------------------------------------
   9. STATISTICHE + AZIONI
----------------------------------------------------------------- */
.stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 6vw, 80px);
  max-width: 620px;
  margin: 0 auto clamp(44px, 6vw, 64px);
  padding: clamp(26px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.stat { text-align: center; flex: 1; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 64%;
  background: var(--line-strong);
  transform: translateY(-50%);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 3.6rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -.03em;
}
.stat__label { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* Card azione */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 28px);
}
.action-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.action-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.action-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.action-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.action-card:hover .action-card__media img { transform: scale(1.05); }
.action-card__body { padding: 22px 24px 26px; }
.action-card__body h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--ink); }
.action-card:hover .link-arrow span { transform: translateX(5px); }

/* -----------------------------------------------------------------
   10. BANNER CATASTROFI (CTA band)
----------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 27, 65, .94) 0%, rgba(0, 55, 129, .78) 55%, rgba(0, 55, 129, .55) 100%),
    url("../assets/prod-catastrofi.jpg") center / cover no-repeat;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-block: clamp(48px, 7vw, 84px);
  color: #fff;
}
.cta-band__text { max-width: 640px; }
.cta-band__title { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem); }
.cta-band__sub { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }

/* -----------------------------------------------------------------
   11. POSTER CARDS (I tuoi percorsi)
----------------------------------------------------------------- */
.cards { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.cards--percorsi { grid-template-columns: repeat(2, 1fr); }

.poster-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform var(--t), box-shadow var(--t);
}
.poster-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.poster-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 27, 65, .85) 0%, rgba(0, 27, 65, .25) 45%, rgba(0, 27, 65, 0) 70%);
  transition: opacity var(--t);
}
.poster-card__title {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.poster-card__title::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t), transform var(--t);
}
.poster-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.poster-card:hover img { transform: scale(1.07); }
.poster-card:hover .poster-card__title::after { opacity: 1; transform: translateX(0); }

/* -----------------------------------------------------------------
   12. PRODOTTI ASSICURATIVI
----------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.product-card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--navy);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-xs);
}
.product-card__name {
  padding: 16px 18px 20px;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
}
.products--collapsed .product-card:nth-child(n+9) { display: none; }
.products__more { text-align: center; margin-top: clamp(32px, 5vw, 48px); }

/* -----------------------------------------------------------------
   13. CHI SIAMO
----------------------------------------------------------------- */
.about__inner {
  display: grid;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 6 / 5;
  object-fit: cover;
}
.about__body p { margin-top: 16px; color: var(--body); }
.about__body p strong { color: var(--ink); }
.about__points { margin: 26px 0 30px; display: grid; gap: 14px; }
.about__points li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.about__points li span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-600);
  font-size: .8rem;
  font-weight: 700;
}

/* -----------------------------------------------------------------
   14. CONTATTI / FORM
----------------------------------------------------------------- */
.contact__inner {
  display: grid;
  gap: clamp(36px, 5vw, 60px);
  align-items: start;
}
.contact__lead { margin-top: 18px; font-size: 1.08rem; color: var(--body); }
.contact__list { margin-top: 32px; display: grid; gap: 20px; }
.contact__list li { display: flex; align-items: flex-start; gap: 16px; }
.contact__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 1.2rem;
}
.contact__list strong { color: var(--ink); }
.contact__list a { color: var(--navy); font-weight: 600; }
.contact__list a:hover { text-decoration: underline; }

/* Card "consulente dedicato" */
.contact__advisor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}
.contact__advisor img {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
  border: 2px solid var(--accent-tint);
}
.contact__advisor strong { display: block; color: var(--ink); }
.contact__advisor p { margin-top: 3px; font-size: .9rem; color: var(--body); }

/* Form card */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.5vw, 38px);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.field__opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0, 55, 129, .12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #dc2f3a; box-shadow: 0 0 0 4px rgba(220, 47, 58, .1); }
.field__error { display: none; margin-top: 6px; font-size: .82rem; color: #dc2f3a; font-weight: 500; }
.field.has-error .field__error { display: block; }

/* Checkbox GDPR */
.field--check { margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .9rem; color: var(--body); font-weight: 400; }
.check input {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  accent-color: var(--navy);
  cursor: pointer;
}

.form__privacy { margin-top: 16px; font-size: .8rem; color: var(--muted); text-align: center; }

/* Messaggio di conferma (nascosto finché il form non viene inviato) */
.form-success[hidden] { display: none; }
.form-success {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--accent-tint);
  border: 1px solid rgba(0, 179, 164, .35);
  border-radius: var(--r-md);
}
.form-success__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}
.form-success strong { color: var(--ink); display: block; }
.form-success p { font-size: .9rem; margin-top: 2px; }

/* -----------------------------------------------------------------
   15. BLOG
----------------------------------------------------------------- */
.cards--blog { grid-template-columns: 1fr; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.post-card__link { color: inherit; display: block; }
.post-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 13px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  background: rgba(0, 55, 129, .9);
  backdrop-filter: blur(4px);
  border-radius: var(--r-full);
}
.post-card__body { padding: 20px 22px 24px; }
.post-card__date { font-size: .82rem; color: var(--muted); font-weight: 500; }
.post-card__title { margin: 8px 0 16px; font-size: 1.12rem; line-height: 1.3; }
.post-card:hover .link-arrow span { transform: translateX(5px); }

/* -----------------------------------------------------------------
   16. FOOTER
----------------------------------------------------------------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); }
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 52px);
  padding-block: clamp(52px, 7vw, 84px);
}
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: rgba(255, 255, 255, .6); }
.footer__tagline { margin-top: 20px; max-width: 38ch; font-size: .96rem; color: rgba(255, 255, 255, .68); }
.footer__partners { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.footer__partners img {
  height: 44px;
  width: auto;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
  object-fit: contain;
}
/* Logo già in versione chiara: va direttamente sullo sfondo scuro */
.footer__partners img.on-dark { background: transparent; padding: 0; height: 38px; align-self: center; }
.footer__col h3 {
  color: #fff;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: rgba(255, 255, 255, .72); font-size: .95rem; transition: color var(--t); }
.footer__col a:hover { color: var(--accent); }
.footer__map-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  aspect-ratio: 5 / 4;
}
.footer__map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }

.footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 26px; }
.footer__legal p { font-size: .82rem; color: rgba(255, 255, 255, .6); line-height: 1.7; }
.footer__legal strong { color: rgba(255, 255, 255, .82); }
.footer__copy { margin-top: 8px; }

/* -----------------------------------------------------------------
   17. TORNA SU
----------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-700); transform: translateY(-3px); }

/* -----------------------------------------------------------------
   18. RESPONSIVE
----------------------------------------------------------------- */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cards--percorsi { grid-template-columns: repeat(2, 1fr); }
  .cards--blog { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .header__actions .btn--primary { display: inline-flex; }
}

@media (min-width: 768px) {
  .actions-grid { grid-template-columns: repeat(3, 1fr); }
  .promo__card { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .cta-band__inner { flex-wrap: nowrap; }
}

/* La navbar orizzontale compare solo quando c'è spazio: sotto si usa l'hamburger */
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .cards--percorsi { grid-template-columns: repeat(3, 1fr); }
  .cards--blog { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(4, 1fr); }
  .about__inner { grid-template-columns: 1fr 1.1fr; }
  .contact__inner { grid-template-columns: .9fr 1.1fr; }
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
}

@media (min-width: 1280px) {
  .cards--percorsi { grid-template-columns: repeat(4, 1fr); }
}

/* -----------------------------------------------------------------
   19. PREFERENZE DI MOVIMENTO RIDOTTO
----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   20. PAGINE INTERNE — componenti condivisi
   ================================================================= */

/* Utility */
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.measure { max-width: 760px; }
.measure-center { max-width: 760px; margin-inline: auto; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent-tint); }

/* Hero banner pagine interne (navy) */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(75% 130% at 100% 0%, rgba(0, 179, 164, .28), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
}
.page-hero__inner { padding-block: clamp(40px, 6vw, 84px); }
.page-hero .eyebrow { color: rgba(255, 255, 255, .9); }
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); max-width: 22ch; }
.page-hero__lead { margin-top: 18px; max-width: 62ch; color: rgba(255, 255, 255, .85); font-size: clamp(1rem, .97rem + .4vw, 1.15rem); }
.page-hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: rgba(255, 255, 255, .85); font-size: .92rem; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { color: rgba(255, 255, 255, .45); }
.breadcrumb [aria-current] { color: #fff; }

/* Stato nav attivo */
.nav__link[aria-current="page"] { color: var(--navy); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Chip / meta */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: var(--r-full); font-size: .74rem; font-weight: 700; letter-spacing: .03em; background: rgba(255, 255, 255, .16); color: #fff; }
.chip--solid { background: var(--accent); color: var(--on-accent); }
.chip--light { background: var(--accent-tint); color: var(--accent-600); }

/* Prosa / articoli */
.prose { color: var(--body); font-size: clamp(1rem, .98rem + .3vw, 1.1rem); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); color: var(--ink); margin-top: 1.7em; }
.prose h3 { font-size: 1.25rem; color: var(--ink); margin-top: 1.4em; }
.prose p { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: .5em; }
.prose li { line-height: 1.6; }
.prose ul li::marker { color: var(--accent-600); }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: 16px 22px; border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--ink); }
.prose img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.prose th, .prose td { padding: 11px 16px; text-align: left; }
.prose thead th { background: var(--navy); color: #fff; font-weight: 600; }
.prose tbody td { border-top: 1px solid var(--line); color: var(--ink); }
.prose tbody tr:nth-child(even) { background: var(--bg-alt); }
.prose tbody tr:last-child td strong { color: var(--navy); }

/* Layout articolo con sidebar */
.article-layout { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (min-width: 1024px) { .article-aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-xs); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.aside-list { display: grid; gap: 16px; }
.aside-list a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; color: var(--ink); font-weight: 500; font-size: .9rem; line-height: 1.3; }
.aside-list img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.aside-list a:hover { color: var(--navy); }

/* Layout prodotto (dettaglio) */
.product-layout { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1fr 1fr; } }
.product-figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .product-figure { position: sticky; top: calc(var(--header-h) + 20px); } }
.product-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Lista coperture / feature con spunta */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink); }
.feature-list li::before { content: "✓"; flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-600); font-weight: 700; font-size: .8rem; margin-top: 1px; }

/* Griglia valori (icona + titolo + testo) */
.value-grid { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid--3 { grid-template-columns: repeat(3, 1fr); } .value-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow-xs); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.value-card__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); font-size: 1.5rem; margin-bottom: 18px; }
.value-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.value-card p { color: var(--body); font-size: .97rem; }

/* Step numerati */
.steps { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-xs); }
.step__num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--body); }

/* FAQ accordion (HTML nativo, senza JS) */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); overflow: hidden; }
.faq summary { cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent-600); transition: transform var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--body); }

/* Team */
.team-grid { display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 30px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); color: inherit; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--accent-600)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; }
.team-card h3 { font-size: 1.02rem; }
.team-card p { font-size: .88rem; color: var(--muted); margin-top: -4px; }

/* Profilo membro */
.member { display: grid; gap: clamp(26px, 4vw, 48px); align-items: start; }
@media (min-width: 768px) { .member { grid-template-columns: 220px 1fr; } }
.member__avatar { width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: var(--r-xl); display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--accent-600)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; box-shadow: var(--shadow); }

/* Split 2 colonne (immagine + testo) */
.split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; }

/* CTA strip riutilizzabile */
.cta-strip { background: radial-gradient(80% 140% at 0% 0%, rgba(0, 179, 164, .3), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy-900)); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-navy); }
.cta-strip__text h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); max-width: 24ch; }
.cta-strip__text p { color: rgba(255, 255, 255, .82); margin-top: 8px; max-width: 54ch; }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tag articolo */
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: .8rem; padding: 6px 12px; border-radius: var(--r-full); background: var(--bg-alt); color: var(--body); border: 1px solid var(--line); }

/* Categoria heading (pagina soluzioni) */
.cat-block + .cat-block { margin-top: clamp(44px, 6vw, 72px); }
.cat-block__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.cat-block__head h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
.cat-block__count { font-size: .85rem; color: var(--muted); background: var(--bg-alt); padding: 4px 12px; border-radius: var(--r-full); border: 1px solid var(--line); }
.cat-block__link { margin-left: auto; color: var(--accent-600); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cat-block__link span { transition: transform var(--t); }
.cat-block__link:hover span { transform: translateX(4px); }

/* =================================================================
   21. FOTO TEAM + CARD DOCUMENTI
   ================================================================= */
/* Card team con foto reale (immagine in alto, testo sotto) */
.team-card { padding: 0; overflow: hidden; gap: 0; }
.team-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--bg-soft);
  transition: transform .6s var(--ease);
}
.team-card:hover .team-card__photo { transform: scale(1.04); }
.team-card__body { padding: 16px 16px 20px; }

/* Foto nella scheda del singolo membro */
.member__photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* Documenti / link utili (Già cliente) */
.doc-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  color: var(--ink);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.doc-card__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 1.3rem;
}
.doc-card__txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.doc-card__txt strong { font-size: .98rem; }
.doc-card__txt small { color: var(--muted); font-size: .83rem; margin-top: 2px; }
.doc-card__go { color: var(--accent-600); font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }

/* =================================================================
   22. ANIMAZIONI AVANZATE
   ================================================================= */

/* Reveal "focus-in": fade + slide + scale + sfocatura */
.js .reveal {
  opacity: 0;
  transform: translateY(30px) scale(.97);
  filter: blur(5px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  will-change: opacity, transform, filter;
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Barra di avanzamento dello scroll */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0;
  height: 3px; z-index: 1500;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* Pallino "eyebrow" pulsante */
.eyebrow .dot { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 179, 164, .18); }
  50% { box-shadow: 0 0 0 8px rgba(0, 179, 164, .04); }
}

/* Hero: blob animati nello sfondo (mesh in movimento) */
.hero__bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.hero__bg .blob--1 { width: 42vw; height: 42vw; max-width: 540px; max-height: 540px; left: -6%; top: -10%; background: radial-gradient(circle, rgba(0, 179, 164, .55), transparent 70%); animation: blobFloat 18s ease-in-out infinite; }
.hero__bg .blob--2 { width: 36vw; height: 36vw; max-width: 480px; max-height: 480px; right: -4%; top: 4%; background: radial-gradient(circle, rgba(0, 55, 129, .5), transparent 70%); animation: blobFloat 23s ease-in-out infinite reverse; }
.hero__bg .blob--3 { width: 28vw; height: 28vw; max-width: 380px; max-height: 380px; right: 20%; bottom: -14%; background: radial-gradient(circle, rgba(0, 179, 164, .45), transparent 70%); animation: blobFloat 27s ease-in-out infinite; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(7%, 9%) scale(1.1); }
  66% { transform: translate(-6%, 4%) scale(.94); }
}

/* Hero: entrata a cascata (solo con JS attivo) */
.js .hero__content > * { opacity: 0; animation: heroUp .85s var(--ease) forwards; }
.js .hero__content > *:nth-child(1) { animation-delay: .15s; }
.js .hero__content > *:nth-child(2) { animation-delay: .28s; }
.js .hero__content > *:nth-child(3) { animation-delay: .41s; }
.js .hero__content > *:nth-child(4) { animation-delay: .54s; }
.js .hero__content > *:nth-child(5) { animation-delay: .67s; }
.js .hero__frame { animation: heroImg 1.2s var(--ease) .35s both; }
.js .hero__badge { opacity: 0; animation: heroPop .7s var(--ease) 1s forwards, badgeFloat 5s ease-in-out 1.9s infinite; }
@keyframes heroUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes heroImg { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes heroPop { from { opacity: 0; transform: scale(.8) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Tilt 3D e bottoni magnetici: il movimento è gestito da JS, qui solo il contesto */
.btn { will-change: transform; }
.poster-card, .product-card, .action-card, .value-card, .team-card, .post-card, .doc-card { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg .blob, .eyebrow .dot,
  .js .hero__content > *, .js .hero__frame, .js .hero__badge { animation: none !important; opacity: 1 !important; transform: none !important; }
  .scroll-progress { display: none; }
  .js .reveal { filter: none; transform: none; }
}
