/* ============================================================
   ALPHA Trasporti Sanitari — Design System v2 "Fiducia"
   Pattern: Trust & Authority · Stile: Accessible & Ethical
   Brand: navy + rosso del logo ALPHA · Font: Figtree
   Mobile-first · WCAG AA (contrasti ≥ 4.5:1, target ≥ 44px)
   ============================================================ */

/* ---------- 1. Design token ---------- */
:root {
  /* Colori brand (dal logo: stella navy + rossa) */
  --navy:        #16355e;   /* titoli, header scuro, footer */
  --navy-scuro:  #0f2543;
  --rosso:       #b3252b;   /* accento brand, uso parsimonioso */
  --rosso-tinta: #faeceb;

  /* Alias storici (usati dagli stili inline delle pagine) */
  --blu:         #095c9e;   /* azione/CTA — 5.2:1 su bianco */
  --blu-scuro:   #16355e;
  --verde:       #177a43;   /* successo — 4.6:1 su bianco */
  --verde-scuro: #116336;
  --ink:         #1a2637;   /* testo principale */
  --ink-2:       #46586c;   /* testo secondario — 6.6:1 su bianco */
  --bg:          #f5f8fb;   /* fondo pagina */
  --card:        #ffffff;   /* superfici */
  --arancio:     #b97900;   /* stelle recensioni (testo) */
  --stella:      #f5a623;   /* stelle decorative */
  --wa:          #128c4b;   /* WhatsApp — scurito per contrasto testo bianco */
  --wa-vivo:     #25d366;   /* WhatsApp brand (solo superfici grandi/float) */
  --bordo:       #dbe4ee;

  /* Tinte di supporto */
  --tinta-blu:   #e9f1f9;
  --tinta-navy:  #eaeff7;
  --tinta-verde: #e8f5ee;
  --tinta-ambra: #fdf3dd;

  /* Tipografia */
  --font-testo: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spaziatura (scala 4/8) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* Raggi */
  --r-s: 10px; --r-m: 14px; --r-l: 18px; --r-xl: 24px; --r-pill: 999px;

  /* Ombre (a strati, morbide) */
  --ombra-1: 0 1px 2px rgba(22, 53, 94, 0.06), 0 1px 6px rgba(22, 53, 94, 0.05);
  --ombra-2: 0 2px 6px rgba(22, 53, 94, 0.07), 0 8px 24px rgba(22, 53, 94, 0.08);
  --ombra-3: 0 6px 16px rgba(22, 53, 94, 0.10), 0 18px 44px rgba(22, 53, 94, 0.12);

  /* Focus visibile (accessibilità) */
  --anello: 0 0 0 3px rgba(9, 92, 158, 0.35);
}

/* ---------- 2. Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-testo);
  color: var(--ink); background: var(--bg); line-height: 1.6;
  font-size: 16px;
  padding-bottom: 74px; /* spazio barra chiamata mobile */
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: var(--sp-8) 0; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin-bottom: 10px; letter-spacing: -0.6px; }
h3 { font-size: 19px; margin-bottom: 6px; }
.sotto-h2 { color: var(--ink-2); font-size: 17px; margin-bottom: 30px; max-width: 680px; }

a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--anello); border-radius: 6px;
}

/* Icone SVG inline (sostituiscono le emoji) */
svg.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.btn svg.ic { vertical-align: middle; }

/* ---------- 3. Topbar + Header + Menu ---------- */
.topbar {
  background: var(--navy); color: #fff; font-size: 14px; padding: 8px 0;
  border-bottom: 3px solid var(--rosso);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; opacity: 0.95; }
header.main {
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  box-shadow: var(--ombra-1); border-bottom: 1px solid var(--bordo);
  position: sticky; top: 0; z-index: 50;
}
header.main .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 800; font-size: 16px; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 10px; flex: none; letter-spacing: -0.2px; }
.logo img { height: 52px; width: auto; display: block; }
.logo small { display: block; font-weight: 600; font-size: 10.5px; color: var(--ink-2); letter-spacing: 0; }

nav.menu { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
nav.menu a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px;
  padding: 10px 14px; border-radius: var(--r-s); transition: background .18s, color .18s;
  cursor: pointer;
}
nav.menu a:hover { background: var(--tinta-blu); color: var(--blu); }
nav.menu a.attiva { color: var(--blu); background: var(--tinta-blu); font-weight: 700; }
.hamburger {
  display: none; background: none; border: none; font-size: 26px; cursor: pointer;
  color: var(--navy); padding: 8px 10px; line-height: 1; border-radius: var(--r-s);
  min-width: 44px; min-height: 44px;
}
.menu-mobile {
  display: none; background: #fff; border-top: 1px solid var(--bordo);
  box-shadow: 0 14px 24px rgba(22, 53, 94, 0.12);
}
.menu-mobile.aperto { display: block; }
.menu-mobile a {
  display: block; padding: 15px 22px; text-decoration: none; color: var(--ink);
  font-weight: 600; border-bottom: 1px solid var(--bordo); font-size: 16px;
}
.menu-mobile a.attiva { color: var(--blu); background: var(--tinta-blu); font-weight: 700; }
@media (max-width: 920px) {
  nav.menu { display: none; }
  .hamburger { display: block; }
  .logo span { display: none; }
  .logo img { height: 46px; }
}

/* ---------- 4. Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--r-m); padding: 15px 24px; font-size: 17px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: normal; text-align: center; line-height: 1.25; font-family: inherit;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn:hover { transform: translateY(-2px); }
.btn-tel { background: var(--blu); color: #fff; box-shadow: 0 8px 20px rgba(9, 92, 158, 0.28); }
.btn-tel:hover { background: #084e87; box-shadow: 0 12px 26px rgba(9, 92, 158, 0.34); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(18, 140, 75, 0.28); }
.btn-wa:hover { background: #0f7a41; }
.btn-ghost { background: #fff; color: var(--blu); border: 2px solid var(--blu); box-shadow: var(--ombra-1); }
.btn-ghost:hover { background: var(--tinta-blu); }
.btn-piccolo { padding: 11px 18px; font-size: 15px; min-height: 44px; }
@media (max-width: 480px) { .btn { font-size: 15.5px; padding: 14px 16px; } }

/* ---------- 5. Hero (home e pagine interne) ---------- */
.hero, .hero-interna {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--tinta-navy) 0%, transparent 60%),
    radial-gradient(700px 380px at -10% 110%, var(--tinta-blu) 0%, transparent 55%),
    linear-gradient(170deg, #eef3fa 0%, var(--bg) 68%);
  position: relative; overflow: hidden;
}
.hero { padding: var(--sp-8) 0 var(--sp-7); }
.hero-interna { padding: var(--sp-7) 0 var(--sp-6); }
.hero .wrap, .hero-interna .wrap { position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-foto { max-height: 340px; object-position: top; }
}
.hero h1, .hero-interna h1 {
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.1; letter-spacing: -1.2px;
  max-width: 780px; color: var(--navy);
}
.hero h1 em, .hero-interna h1 em { font-style: normal; color: var(--blu); }
.hero .sottotitolo, .hero-interna .sottotitolo {
  font-size: clamp(17px, 2.3vw, 20px); color: var(--ink-2); margin: 16px 0 22px; max-width: 660px;
}
.hero-foto { max-height: 460px; }
.hero-check { list-style: none; margin: 0 0 26px; }
.hero-check li {
  font-size: 17px; font-weight: 600; padding: 5px 0 5px 32px; position: relative; color: var(--ink);
}
.hero-check li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 22px; height: 22px;
  border-radius: 50%; background-color: var(--tinta-verde);
}
.hero-check li::after {
  content: ""; position: absolute; left: 5px; top: 13px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--verde-scuro); border-bottom: 2.5px solid var(--verde-scuro);
  transform: rotate(-45deg);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta .num { font-size: 15px; color: var(--ink-2); width: 100%; }
.urgenza {
  margin-top: 18px; display: inline-block; background: var(--tinta-ambra); color: #6d4a00;
  border: 1px solid #eeddb4; border-radius: var(--r-s); padding: 9px 14px;
  font-size: 14.5px; font-weight: 600;
}
.briciole { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.briciole a { color: var(--blu); text-decoration: none; font-weight: 700; }

/* Sfondo decorativo (ex blob): aloni statici, sobri */
.blob { position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.6; }
.blob-1 { width: 460px; height: 460px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(22, 53, 94, 0.10) 0%, transparent 70%); }
.blob-2 { width: 380px; height: 380px; bottom: -190px; left: -130px;
  background: radial-gradient(circle, rgba(9, 92, 158, 0.10) 0%, transparent 70%); }

/* ---------- 6. Card e griglie ---------- */
.griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card, .dubbio, .servizio {
  background: var(--card); border: 1px solid var(--bordo); border-radius: var(--r-l);
  padding: 24px; box-shadow: var(--ombra-1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover, .dubbio:hover, .servizio:hover {
  transform: translateY(-4px); box-shadow: var(--ombra-2); border-color: #c9d7e6;
}
.card p { font-size: 15px; color: var(--ink-2); }

/* Icona di card/servizio: riquadro tinta con SVG */
.icona {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--tinta-blu); color: var(--blu); margin-bottom: 14px;
  font-size: 24px; /* fallback per eventuali emoji rimaste */
}
.icona svg { width: 24px; height: 24px; }
.icona strong { font-size: 20px; font-weight: 800; }

/* Dubbi (home) */
.dubbio .domanda { font-weight: 600; color: var(--ink-2); font-style: italic; margin-bottom: 6px; font-size: 15px; }
.dubbio .risposta { font-size: 19px; font-weight: 800; color: var(--navy); }
.dubbio p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }

/* Servizi (home) */
.servizio { display: flex; flex-direction: column; }
.servizio h3 { font-size: 18px; margin-bottom: 6px; }
.servizio p { font-size: 14.5px; color: var(--ink-2); flex: 1; margin-bottom: 14px; }
.servizio a {
  font-weight: 700; color: var(--blu); text-decoration: none; font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; min-height: 32px;
}
.servizio a:hover { text-decoration: underline; }

/* ---------- 7. Foto ---------- */
.foto {
  width: 100%; display: block; border-radius: var(--r-xl); object-fit: cover;
  box-shadow: var(--ombra-3);
}
.didascalia { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; text-align: center; }
.due-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 820px) { .due-col { grid-template-columns: 1fr; } }

/* Citazione (home) */
.citazione { background: #fff; }
.cit-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 36px; align-items: center; }
@media (max-width: 820px) { .cit-grid { grid-template-columns: 1fr; } }
.foto-reparto { max-height: 400px; }
.citazione blockquote {
  font-size: clamp(19px, 3vw, 25px); line-height: 1.5; font-weight: 600; color: var(--navy);
}
.citazione blockquote::before {
  content: "\201C"; color: var(--rosso); font-size: 64px; display: block;
  line-height: 0.4; margin-bottom: 16px; font-family: Georgia, serif;
}
.foto-ambulanza { max-height: 440px; max-width: 640px; margin: 26px auto 0; }
.foto-squadra { max-height: 460px; max-width: 640px; margin: 0 0 22px; object-position: center 25%; }

/* ---------- 8. Numeri ---------- */
.numeri {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-scuro) 100%);
  color: #fff; padding: 34px 0; border-top: 3px solid var(--rosso);
}
.numeri .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; }
.numeri strong { display: block; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.5px; }
.numeri span { font-size: 13.5px; opacity: 0.85; }
@media (max-width: 640px) { .numeri .wrap { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }

/* ---------- 9. Processo (passi) ---------- */
.passi { counter-reset: p; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.passo {
  background: var(--card); border: 1px solid var(--bordo); border-radius: var(--r-m);
  padding: 18px 16px; box-shadow: var(--ombra-1); position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.passo:hover { transform: translateY(-4px); box-shadow: var(--ombra-2); }
.passo::before {
  counter-increment: p; content: counter(p);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.passo strong { display: block; margin-bottom: 3px; color: var(--navy); }
.passo span { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 10. Liste benefici ---------- */
.spunte { list-style: none; margin: 0 0 16px; }
.spunte li { padding: 7px 0 7px 32px; position: relative; font-size: 15.5px; }
.spunte li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--tinta-verde);
}
.spunte li::after {
  content: ""; position: absolute; left: 5px; top: 15px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--verde-scuro); border-bottom: 2.5px solid var(--verde-scuro);
  transform: rotate(-45deg);
}

/* ---------- 11. Card corso grande ---------- */
.corso-card {
  background: var(--card); border: 1px solid var(--bordo); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--ombra-1); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.corso-card:hover { transform: translateY(-5px); box-shadow: var(--ombra-2); }
.corso-card img { width: 100%; height: 240px; object-fit: cover; }
.corso-card .corpo { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.corso-card .corpo p.desc { color: var(--ink-2); font-size: 15px; margin: 6px 0 14px; }
.corso-card .btn { margin-top: auto; }
.griglia-corsi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .griglia-corsi { grid-template-columns: 1fr; } }

/* ---------- 12. FAQ / Accordion ---------- */
details {
  background: var(--card); border: 1px solid var(--bordo); border-radius: var(--r-m);
  margin-bottom: 10px; box-shadow: var(--ombra-1); overflow: hidden;
  transition: box-shadow .2s ease;
}
details[open] { box-shadow: var(--ombra-2); }
summary {
  padding: 17px 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  color: var(--navy); min-height: 48px;
}
summary:hover { color: var(--blu); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 24px; color: var(--blu); font-weight: 400; flex: none;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--tinta-blu); line-height: 1;
  transition: transform .2s ease;
}
details[open] summary::after { content: "–"; transform: rotate(180deg); }
details .contenuto { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }

/* ---------- 13. Box informativi ---------- */
.box-info { border-radius: var(--r-l); padding: 28px; border: 1px solid transparent; }
.box-blu, .box-formazione { background: var(--tinta-blu); border-color: #d4e3f0; }
.box-verde, .box-dona { background: var(--tinta-verde); border-color: #cfe8da; }
.box-ambra { background: var(--tinta-ambra); border-color: #eeddb4; }
.box-info h3 { font-size: 20px; margin-bottom: 8px; }
.box-info p { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.box-info p:last-child { margin-bottom: 0; }

/* ---------- 14. Badge recensioni Google ---------- */
.gbadge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--bordo); border-radius: var(--r-l);
  padding: 22px 40px; box-shadow: var(--ombra-2);
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gbadge:hover { transform: translateY(-3px); box-shadow: var(--ombra-3); }
.gbadge .voto {
  font-weight: 800; font-size: 19px; letter-spacing: 1.5px; color: var(--navy);
  border-bottom: 2.5px solid var(--rosso); padding-bottom: 3px;
}
.gbadge .stelle-oro { color: var(--stella); font-size: 27px; letter-spacing: 4px; line-height: 1.2; }
.gbadge .basato { font-size: 14.5px; color: var(--ink-2); }
.gbadge .basato b { color: var(--ink); text-decoration: underline; }
.glogo { font-size: 21px; font-weight: 700; letter-spacing: -0.5px; margin-top: 2px; }
.glogo .b1 { color: #4285F4; } .glogo .r1 { color: #EA4335; }
.glogo .y1 { color: #FBBC05; } .glogo .g1 { color: #34A853; }
.centro-badge { text-align: center; margin-bottom: 24px; }

/* ---------- 15. Recensioni ---------- */
.rec {
  background: var(--card); border: 1px solid var(--bordo); border-radius: var(--r-l);
  padding: 22px; box-shadow: var(--ombra-1);
  transition: transform .22s ease, box-shadow .22s ease;
}
.rec:hover { transform: translateY(-4px); box-shadow: var(--ombra-2); }
.rec .stelle { color: var(--stella); font-size: 17px; letter-spacing: 2px; }
.rec p { font-size: 15px; margin: 10px 0 14px; color: var(--ink); }
.rec .autore { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.rec .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- 16. CTA finale ---------- */
.cta-finale {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-scuro) 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-finale::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% -20%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}
.cta-finale .wrap { position: relative; }
.cta-finale h2 { color: #fff; }
.cta-finale p { opacity: 0.92; max-width: 560px; margin: 0 auto 24px; }
.cta-finale .btn-tel { background: #fff; color: var(--navy); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.cta-finale .btn-tel:hover { background: #f0f4f9; }
.cta-finale a { color: #fff; }

/* ---------- 17. Footer ---------- */
footer { background: var(--navy-scuro); color: #aebccd; font-size: 14px; padding: 44px 0 110px; border-top: 3px solid var(--rosso); }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
footer a { color: #aebccd; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer li { list-style: none; padding: 3px 0; }
.piva { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; font-size: 12.5px; }

/* ---------- 18. Flottanti ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 88px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa-vivo);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 26px rgba(18, 140, 75, 0.45); text-decoration: none; font-size: 28px;
  animation: waBounce 4.5s 2s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.barra-chiamata {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(15, 37, 67, 0.16); border-top: 1px solid var(--bordo);
  display: flex; gap: 10px; padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.barra-chiamata .btn { flex: 1; padding: 13px 8px; font-size: 15px; }
@media (min-width: 900px) {
  .barra-chiamata { display: none; }
  body { padding-bottom: 0; }
  footer { padding-bottom: 44px; }
  .wa-float { bottom: 24px; }
}
.fine-sezione { text-align: center; margin-top: 32px; }

/* ---------- 18b. Blog ---------- */
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px;
}
.post-meta .categoria {
  background: var(--tinta-blu); color: var(--blu); font-weight: 700;
  border-radius: var(--r-pill); padding: 4px 12px; font-size: 12.5px;
}
.articolo { max-width: 760px; }
.articolo h2 { font-size: clamp(21px, 3vw, 26px); margin: 36px 0 10px; }
.articolo h3 { font-size: 18px; margin: 26px 0 8px; }
.articolo p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.7; }
.articolo ul, .articolo ol { margin: 0 0 16px 22px; }
.articolo li { margin-bottom: 8px; font-size: 16px; line-height: 1.65; }
.articolo a { color: var(--blu); font-weight: 600; }
.articolo a.btn-tel, .articolo a.btn-wa { color: #fff; font-weight: 700; }
.articolo a.btn-ghost { color: var(--blu); font-weight: 700; }
.articolo .foto { margin: 24px 0 6px; }
.articolo .scorri-tabella { overflow-x: auto; margin: 18px 0 22px; }
.articolo table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.articolo th { background: var(--tinta-navy); color: var(--navy); text-align: left; padding: 10px 12px; border: 1px solid var(--bordo); }
.articolo td { padding: 10px 12px; border: 1px solid var(--bordo); vertical-align: top; }
.articolo tbody tr:nth-child(even) td { background: var(--bg); }
.articolo blockquote {
  border-left: 4px solid var(--rosso); background: var(--tinta-navy);
  border-radius: 0 var(--r-m) var(--r-m) 0; padding: 16px 20px; margin: 0 0 16px;
  font-size: 16.5px; color: var(--navy); font-weight: 600;
}
.cta-articolo {
  background: var(--tinta-blu); border: 1px solid #d4e3f0; border-radius: var(--r-l);
  padding: 24px; margin: 30px 0; text-align: center;
}
.cta-articolo p { margin-bottom: 14px; }
.griglia-blog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

/* ---------- 19. Animazioni ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes waBounce {
  0%, 86%, 100% { transform: translateY(0); }
  90% { transform: translateY(-8px); }
  95% { transform: translateY(0); }
  97% { transform: translateY(-4px); }
}
.anim { opacity: 0; animation: fadeUp .7s cubic-bezier(.16, 1, .3, 1) forwards; }
.anim-1 { animation-delay: .05s; } .anim-2 { animation-delay: .16s; }
.anim-3 { animation-delay: .28s; } .anim-4 { animation-delay: .4s; }
.anim-5 { animation-delay: .52s; }
.hero-foto-wrap { opacity: 0; animation: fadeUp .8s .3s cubic-bezier(.16, 1, .3, 1) forwards; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
.reveal.visibile { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .hero-foto-wrap { opacity: 1; animation: none; }
  .wa-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .dubbio, .servizio, .rec, .passo, .gbadge, .corso-card { transition: none; }
}
