/*
 * Humza Multiservizi — design system v2.1.0
 * ============================================================================
 * UN SOLO stylesheet: tutti i template usano queste classi. Zero stili inline,
 * zero <style> nei template. !important solo dove è tecnicamente obbligatorio
 * (.screen-reader-text, .hp-field, .lang-nav--hidden, reduced-motion) e in stampa.
 *
 * SISTEMA DI BREAKPOINT — mobile-first, SOLO min-width (mai max-width):
 * così non esistono né buchi né sovrapposizioni tra le fasce.
 *
 *   base    360px+  telefono stretto — 1 colonna, barra azioni fissa in fondo,
 *                   CTA a tutta larghezza, h1 max ~28px
 *   480px           telefono largo — email in topbar, timbri su una riga
 *   640px           phablet — 2 colonne, CTA affiancate (fine .btn--block-mobile)
 *   768px           tablet — compare .header-cta, sparisce .mobile-actions e
 *                   torna .wa-float, footer a 2 colonne, form a 2 colonne
 *   1024px          desktop — compare .nav-main, 3 colonne, sidebar affiancata,
 *                   hero a 2 colonne
 *   1200px          desktop largo — menu a respiro pieno, 4 colonne (.grid--4)
 *   1440px          schermi grandi — gutter e ritmo verticale maggiorati
 *
 * Tutte le misure intermedie sono fluide (clamp): nessun altro breakpoint.
 * I vecchi valori sparsi (767 / 899 / 900 / 991 / 992) sono stati riportati ai
 * vicini di questa scala: 900 → 1024 (griglie, hero, sidebar), 991/992 → 1024
 * (navigazione), 767 → 768 (topbar, header, barra mobile).
 *
 * CONTRASTO WCAG 2.2 AA verificato: l'arancio #E67E22 non è mai colore di testo
 * su bianco (2.85:1) e non porta mai testo bianco; i riempimenti arancio usano
 * testo navy (5.58:1), i testi arancio la variante inchiostro #B54708 (5.43:1).
 *
 * INDICE
 *   01. Token
 *   02. Reset e tipografia
 *   03. Accessibilità di servizio (skip link, sr-only, focus)
 *   04. Layout: container, sezioni, griglie
 *   05. Timbro (firma visiva) e badge
 *   06. Bottoni
 *   07. Topbar
 *   08. Header e navigazione desktop
 *   09. Menu mobile (drawer)
 *   10. Selettore lingua
 *   11. Hero
 *   12. Card (servizi, contatti, novità)
 *   13. Come funziona (passi)
 *   14. Perché Humza (why + checklist)
 *   15. Pagina interna: page-hero, breadcrumb, layout con sidebar
 *   16. Contenuto editoriale (.prose): liste, tabelle, citazioni
 *   17. Sidebar servizio (aside-box, orari)
 *   18. FAQ accordion
 *   19. CTA banner
 *   20. Mappa con consenso
 *   21. Form
 *   22. Novità: meta, paginazione, navigazione articolo
 *   23. Area clienti (tabs)
 *   24. Footer
 *   25. Barra azioni mobile + WhatsApp float
 *   26. Cookie banner
 *   27. Utility e stati vuoti
 *   28. RTL
 *   29. Motion
 *   30. Stampa
 * ============================================================================
 */

/* ==========================================================================
   01. TOKEN
   ========================================================================== */
:root {
  /* --- Colori --- */
  --c-primary: #E67E22;          /* arancio brand: superfici, accenti, icone */
  --c-primary-ink: #B54708;      /* arancio leggibile: link, label, testo */
  --c-primary-tint: #FBE9D9;     /* tinta 12% per riempimenti icone/badge */
  --c-primary-soft: #FEF5EC;     /* fondi caldi chiari, hover discreti */
  --c-navy: #16213E;             /* navy: fondi scuri, testo forte, bottoni */
  --c-navy-deep: #0D1730;        /* navy profondo: hover, bordi su scuro */
  --c-ink: #22303F;              /* testo body */
  --c-ink-soft: #5A6B7C;         /* testo secondario (4.6:1 su bianco) */
  --c-paper: #FAF7F2;            /* alternanza sezioni "carta" */
  --c-bg: #FFFFFF;
  --c-border: #E8E4DD;           /* bordo standard */
  --c-border-strong: #D8D2C8;    /* separatori e bordi di input */
  --c-success: #1E7A46;          /* verde vidimato (5.36:1 con bianco) */
  --c-success-tint: #E8F5EE;
  --c-danger: #C0392B;
  --c-danger-tint: #FDEEEC;
  --c-wa: #1E7A46;               /* WhatsApp accessibile */
  /* Focus: anello + alone. Su fondi scuri i due token si invertono. */
  --c-focus: #16213E;
  --c-focus-halo: #FFFFFF;

  /* --- Tipografia --- */
  --f-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Gurmukhi', system-ui, sans-serif;
  /* Scala armonica fluida. Valori a 360px → 1440px:
     fs-4 19→22 · fs-5 22→28 · fs-6 26→38 · fs-7 28→50 */
  --fs-0: 0.8125rem;   /* 13 — note, meta, timbri */
  --fs-1: 0.9375rem;   /* 15 — small, menu, didascalie */
  --fs-2: 1.0625rem;   /* 17 — body base */
  --fs-3: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);   /* 17→19 lead */
  --fs-4: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);  /* 19→22 h4 / h3 card */
  --fs-5: clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);   /* 22→28 h3 */
  --fs-6: clamp(1.625rem, 1.35rem + 1.2vw, 2.375rem);  /* 26→38 h2 sezione */
  --fs-7: clamp(1.75rem, 1.3rem + 2vw, 3.125rem);      /* 28→50 h1 hero */
  --lh-body: 1.65;
  --lh-long: 1.75;     /* testi lunghi delle pagine servizio (.prose) */
  --lh-head: 1.18;

  /* --- Spazio e forme --- */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --sec-y: clamp(3rem, 7vw, 5.5rem);        /* ritmo verticale delle sezioni */
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1.25rem;
  --sp-lg: 2rem;
  --sp-xl: 3rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  /* Ombre discrete: due strati corti, mai "alone" diffuso */
  --shadow-sm: 0 1px 2px rgba(22, 33, 62, 0.04), 0 2px 8px rgba(22, 33, 62, 0.04);
  --shadow-md: 0 2px 6px rgba(22, 33, 62, 0.05), 0 10px 24px rgba(22, 33, 62, 0.07);
  --shadow-lg: 0 4px 12px rgba(22, 33, 62, 0.08), 0 18px 42px rgba(22, 33, 62, 0.12);

  /* --- Movimento: due sole durate in tutto il sito --- */
  --t-fast: 0.14s ease;
  --t: 0.22s cubic-bezier(0.2, 0, 0.2, 1);

  /* --- Misure strutturali --- */
  --header-h: 64px;              /* altezza header, per sticky e scroll-padding */
  --logo-h: 36px;                /* il logo è 340×64: 36px ≈ 191px di larghezza */
  --mobile-actions-h: 60px;      /* barra azioni fissa (solo sotto 768px) */

  /* --- Piani z (unico punto di verità) ---
     990 wa-float · 1000 header · 1040 barra azioni · 1050 cookie · 1100 menu */
  --z-wa: 990;
  --z-header: 1000;
  --z-actions: 1040;
  --z-cookie: 1050;
  --z-menu: 1100;
  --z-skip: 10001;
}

@media (min-width: 480px) {
  :root { --logo-h: 38px; }
}
@media (min-width: 768px) {
  :root { --header-h: 72px; --logo-h: 42px; }
}
@media (min-width: 1024px) {
  :root { --logo-h: 40px; }
}
@media (min-width: 1200px) {
  :root { --header-h: 76px; --logo-h: 46px; }
}
@media (min-width: 1440px) {
  :root { --gutter: 2.5rem; --sec-y: 6rem; }
}

/* ==========================================================================
   02. RESET E TIPOGRAFIA
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-2);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  /* Spazio per .mobile-actions: azzerato da 768px in su (sezione 25). */
  padding-bottom: calc(var(--mobile-actions-h) + env(safe-area-inset-bottom, 0px));
}

img, svg, video { max-width: 100%; height: auto; }
img { border-radius: 0; }
figure { margin: 0; }

a {
  color: var(--c-primary-ink);
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-navy); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  color: var(--c-navy);
  line-height: var(--lh-head);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
  /* Le parole lunghe (BURGERKING-style, nomi di pratiche) non devono
     mai debordare dal contenitore su schermi da 360px. */
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-7); font-weight: 800; }
h2 { font-size: var(--fs-6); font-weight: 800; }
h3 { font-size: var(--fs-5); font-weight: 700; }
h4 { font-size: var(--fs-4); font-weight: 700; }
h5, h6 { font-size: var(--fs-2); font-weight: 700; }

p, ul, ol { margin: 0 0 1.1em; }
:where(main) :where(ul, ol) { padding-inline-start: 1.4em; }
:where(main) li::marker { color: var(--c-primary-ink); }
strong, b { color: var(--c-navy); font-weight: 700; }
small { font-size: var(--fs-1); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--sp-lg) 0; }

/* Numeri di pratica, protocolli, orari: cifre di larghezza fissa */
time, .piva, .hours td:last-child { font-variant-numeric: tabular-nums; }

table { border-collapse: collapse; width: 100%; font-size: var(--fs-1); }
th, td {
  text-align: start;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
th {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-navy);
  background: var(--c-paper);
}

/* ==========================================================================
   03. ACCESSIBILITÀ DI SERVIZIO
   ========================================================================== */
/* Un solo stile di focus in tutto il sito: anello + alone, sempre a contrasto.
   Nessun border-radius forzato: l'anello segue la forma dell'elemento. */
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--c-focus-halo), 0 0 0 5px var(--c-focus);
}
/* Su fondi scuri i due colori dell'anello si invertono */
.topbar, .hero, .section--navy, .site-footer, .cookie-banner, .aside-box--navy, .mobile-menu__backdrop {
  --c-focus: #FFFFFF;
  --c-focus-halo: #16213E;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 8px;
  z-index: var(--z-skip);
  background: var(--c-navy);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--f-display);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--t);
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   04. LAYOUT: CONTAINER, SEZIONI, GRIGLIE
   ========================================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); }
.section--paper { background: var(--c-paper); }
/* Variante calda chiara: usata dalle sezioni che devono staccare da .section--paper */
.section--soft { background: var(--c-primary-soft); }
.section--navy { background: var(--c-navy); }
.section--navy :is(h1, h2, h3, h4, h5) { color: #fff; }
.section--navy p, .section--navy li { color: rgba(255, 255, 255, 0.85); }
/* Due sezioni consecutive con lo stesso fondo: un solo respiro, non due */
.section--paper + .section--paper,
.section--soft + .section--soft,
.section--navy + .section--navy { padding-block-start: 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}
.section-head > :last-child { margin-bottom: 0; }
.section-head--wide { max-width: 760px; }
.section-head p { color: var(--c-ink-soft); font-size: var(--fs-3); }

/* Griglie — comportamento unico e prevedibile:
   .grid--2 : 1 col < 640 · 2 col ≥ 640
   .grid--3 : 1 col < 640 · 2 col 640–1023 · 3 col ≥ 1024
   .grid--4 : 1 col < 640 · 2 col 640–1199 · 4 col ≥ 1200
   Nota su .grid--4: serve ai 4 blocchi "perché Humza" della homepage. Con 3
   colonne fra 1024 e 1199 resterebbe una card orfana sulla seconda riga
   (3 + 1); 2+2 è bilanciato e la card resta della larghezza giusta. Quindi
   .grid--4 salta il passaggio a 3 colonne.
   I template usano anche "grid--2 grid--3" insieme: l'ordine delle regole qui
   sotto garantisce che vinca sempre la più larga applicabile. */
.grid { display: grid; gap: var(--sp-md); }
@media (min-width: 640px) {
  .grid { gap: 1.5rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   05. TIMBRO (FIRMA VISIVA) E BADGE
   ========================================================================== */
/* Eyebrow "timbro": la firma del sito. Una sola per sezione. */
.stamp {
  display: inline-block;
  max-width: 100%;
  border: 1.5px dashed var(--c-primary-ink);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-family: var(--f-display);
  font-size: var(--fs-0);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: balance;              /* niente ultima riga con una parola sola */
  color: var(--c-primary-ink);
  background: var(--c-bg);
  transform: rotate(-1deg);
  margin-bottom: 1rem;
}
@media (min-width: 480px) {
  .stamp { letter-spacing: 0.18em; padding-inline: 0.9rem; white-space: nowrap; }
}
.section--paper .stamp { background: var(--c-paper); }
.section--navy .stamp { color: var(--c-primary); border-color: var(--c-primary); background: transparent; }

.badge-update {
  display: inline-block;
  background: var(--c-success-tint);
  color: var(--c-success);
  font-size: var(--fs-0);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

/* ==========================================================================
   06. BOTTONI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent; /* azzera lo sfondo nativo dei <button> */
  font-family: var(--f-display);
  font-size: var(--fs-2);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;     /* etichette lunghe vanno a capo, non escono */
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t),
              box-shadow var(--t), transform var(--t-fast);
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Primario: arancio con testo NAVY (5.58:1) — mai bianco su arancio */
/* Testo bianco su arancio: leggibile perché grande e in grassetto (AA per testo grande, 3.2:1). */
.btn--primary { background: #DD7318; color: #fff; font-weight: 700; font-size: 1.1875rem; }
.btn--primary:hover { background: #C8620F; color: #fff; }
/* Navy: bianco su navy (16:1) */
.btn--navy { background: var(--c-navy); color: #fff; }
.btn--navy:hover { background: var(--c-navy-deep); color: #fff; }
/* Contorno su fondi chiari */
.btn--ghost { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.btn--ghost:hover { background: var(--c-navy); color: #fff; }
/* Contorno su fondi scuri */
.section--navy .btn--ghost, .btn--ghost-light { border-color: #fff; color: #fff; background: transparent; }
.section--navy .btn--ghost:hover, .btn--ghost-light:hover { background: #fff; color: var(--c-navy); }
/* WhatsApp: verde scuro accessibile */
.btn--wa { background: var(--c-wa); color: #fff; }
.btn--wa:hover { background: #166237; color: #fff; }

.btn--block { width: 100%; }
/* Contratto condiviso: a tutta larghezza sotto i 640px, poi larghezza naturale.
   Serve a impilare le CTA dell'hero con la STESSA larghezza su telefono. */
.btn--block-mobile { width: 100%; }
@media (min-width: 640px) { .btn--block-mobile { width: auto; } }

/* Fila di bottoni centrata (box CTA, 404, sezione mappa) */
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }
}
/* Azioni in chiusura di sezione (sotto la mappa in homepage) */
.section-actions { margin-top: 2rem; }

/* ==========================================================================
   07. TOPBAR
   ========================================================================== */
.topbar {
  background: var(--c-navy);
  color: #fff;
  font-size: var(--fs-0);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  min-height: 40px;
  flex-wrap: wrap;
  padding-block: 0.2rem;
}
.topbar__contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  white-space: nowrap;
}
.topbar a:hover { color: var(--c-primary); }
.topbar svg { width: 15px; height: 15px; flex: none; }

.topbar__end { display: flex; align-items: center; gap: 0.5rem 1rem; }
/* Specificità allineata a `.topbar a` (0,1,1), che altrimenti vince sul display. */
.topbar .topbar__area { display: none; font-family: var(--f-display); font-weight: 600; }
.topbar__area svg { width: 16px; height: 16px; }

/* Budget di larghezza della topbar (deve restare UNA riga a ogni misura):
   <480  due telefoni                                    ~215px
   ≥480  + email, testo a 13px                           ~390px su 440 utili
   ≥640  testo a 15px                                    ~440px su 590 utili
   ≥768  + "Area Clienti"                                ~520px su 706 utili
   ≥1024 + selettore lingua compatto                     ~900px su 960 utili
   Ciò che non entra vive nel drawer (hamburger fino a 1023px) e nel footer. */
.topbar__email { display: none; }
/* La lingua è il servizio principale del centro: il selettore resta
   raggiungibile a ogni larghezza, anche sul telefono. */
.topbar__lang { display: block; flex: none; }

/* Sotto 480px resta un solo numero: "Chiama" è comunque nella barra in fondo. */
.topbar .topbar__phone2 { display: none; }

@media (min-width: 480px) {
  .topbar .topbar__phone2 { display: inline-flex; }
}
@media (min-width: 640px) {
  .topbar { font-size: var(--fs-1); }
}
@media (min-width: 768px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__contacts { justify-content: flex-start; }
  .topbar .topbar__area { display: inline-flex; }
}
@media (min-width: 1024px) {
  /* L'email entra solo quando c'è spazio per tenere la barra su una riga. */
  .topbar__email { display: inline-flex; align-items: center; }
  .topbar__email a { overflow-wrap: anywhere; white-space: normal; }
}

/* Widget lingua (markup generato dallo script di GTranslate) */
@media (min-width: 360px) { .lang-widget select, .lang-widget .gt_selector, .lang-widget .goog-te-combo { max-width: 150px; } }
.lang-widget { display: inline-flex; align-items: center; }
.lang-widget select,
.lang-widget .gt_selector,
.lang-widget .goog-te-combo {
  font: inherit;
  font-size: var(--fs-1);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.3rem 1.9rem 0.3rem 0.6rem;
  min-height: 34px;
  max-width: 118px; /* sotto i 360px la barra deve restare su una riga */
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 14px;
}
.lang-widget select option { color: var(--c-ink); background: #fff; }
.lang-widget select:hover { border-color: var(--c-primary); }
.lang-widget__noscript { font-size: var(--fs-0); color: rgba(255, 255, 255, 0.75); }
/* Il widget non deve mai far crescere la topbar oltre una riga */
.lang-widget .gtranslate_wrapper { display: inline-flex; align-items: center; }
[dir="rtl"] .lang-widget select { padding: 0.3rem 0.6rem 0.3rem 1.9rem; background-position: left 0.5rem center; }

/* ==========================================================================
   08. HEADER E NAVIGAZIONE DESKTOP
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--t);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 0;
  margin-inline-end: auto;   /* spinge nav + CTA + hamburger a destra */
}
.brand img, .brand svg { height: var(--logo-h); width: auto; display: block; }

/* Menu orizzontale: solo da 1024px in su.
   Calcolo di sicurezza a 1024px (container 1024 − 64 di gutter = 960 utili):
   logo 40px alto ≈ 212 + menu 6 voci compatte ≈ 420 + CTA ≈ 122 + gap 24
   = 778 < 960. A 1200px (1136 utili) con misure piene: 244 + 510 + 122 + 48
   = 924 < 1136. Nessun overflow possibile nella fascia 1024–1250. */
.nav-main { display: none; }
.nav-main ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
}
.nav-main li { margin: 0; }
.nav-main a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--c-navy);
  font-family: var(--f-display);
  font-size: var(--fs-1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.nav-main a:hover { background: var(--c-primary-soft); color: var(--c-primary-ink); }
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a,
.nav-main [aria-current="page"] {
  color: var(--c-primary-ink);
  box-shadow: inset 0 -2px 0 var(--c-primary);
}

/* CTA "Prenota" nell'header: dal tablet in su (contratto condiviso). */
.header-cta { display: none; flex: none; white-space: nowrap; }

/* Hamburger: fino a 1023px */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--c-navy);
  transition: background-color var(--t-fast);
}
.nav-toggle:hover { background: var(--c-primary-soft); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (min-width: 768px) {
  .site-header__inner { gap: 0.75rem; }
  .header-cta {
    display: inline-flex;
    min-height: 44px;
    padding-inline: 1.1rem;
    font-size: var(--fs-1);
  }
}
@media (min-width: 1024px) {
  .site-header__inner { gap: 1rem; }
  .nav-main { display: flex; align-items: center; min-width: 0; }
  /* Fascia 1024–1199: menu compatto (font e padding ridotti) per stare
     comodamente dentro il container anche con 6 voci + CTA. */
  .nav-main a { font-size: 0.875rem; padding-inline: 0.55rem; }
  .nav-toggle { display: none; }
}
@media (min-width: 1200px) {
  .site-header__inner { gap: 1.5rem; }
  .nav-main ul { gap: 0.25rem; }
  .nav-main a { font-size: var(--fs-1); padding-inline: 0.85rem; }
  .header-cta { min-height: 48px; padding-inline: 1.5rem; font-size: var(--fs-2); }
}

/* ==========================================================================
   09. MENU MOBILE (DRAWER)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 23, 48, 0.55);
  border: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(88vw, 360px);
  background: var(--c-bg);
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mobile-menu__top .brand { margin-inline-end: 0; }
.mobile-menu__close {
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  flex: none;
  cursor: pointer;
  color: var(--c-navy);
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast);
}
.mobile-menu__close:hover { background: var(--c-primary-soft); }
.mobile-menu__close svg { width: 24px; height: 24px; }
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav li + li { border-top: 1px solid var(--c-border); }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--c-navy);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-3);
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.mobile-menu nav a:hover { background: var(--c-primary-soft); color: var(--c-primary-ink); }
.mobile-menu nav [aria-current="page"] { color: var(--c-primary-ink); }
/* Contatti in cima al drawer: da telefono la cosa più utile è chiamare. */
.mobile-menu__contacts {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--c-border);
  display: grid;
  gap: 0.15rem;
}
.mobile-menu__contacts li { margin: 0; }
.mobile-menu__contacts a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--c-navy);
  font-family: var(--f-display);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.mobile-menu__contacts a:hover { background: var(--c-primary-soft); color: var(--c-primary-ink); }
.mobile-menu__contacts svg { width: 20px; height: 20px; flex: none; color: var(--c-primary-ink); }

.mobile-menu__lang { border-top: 1px solid var(--c-border); padding-top: 1rem; }
/* Nel drawer si tocca col dito: le pillole della lingua vanno a 44px */
.mobile-menu__lang .lang-list a { min-height: 44px; }
.mobile-menu__cta { margin-top: auto; display: grid; gap: 0.6rem; }
/* Scroll lock iOS-safe: vedi body.menu-open in sezione 29. */

/* ==========================================================================
   10. SELETTORE LINGUA
   ========================================================================== */
/* Nomi nativi, mai solo bandiere. */
.lang-nav { display: block; }
.lang-nav--hidden { display: none !important; } /* GTranslate assente a runtime */
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-list li { margin: 0; }
.lang-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  font-size: var(--fs-1);
  text-decoration: none;
  color: var(--c-ink);
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.lang-list a:hover, .lang-list a[aria-current="true"] {
  border-color: var(--c-primary-ink);
  color: var(--c-primary-ink);
  background: var(--c-primary-soft);
}
/* In topbar (solo da 1024px, mouse) le pillole sono compatte: le 6 lingue
   devono stare in riga accanto ai contatti. Da 1200px tornano a misura piena. */
.topbar .lang-list { gap: 0.25rem; }
.topbar .lang-list a {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  min-height: 30px;
  padding: 0.2rem 0.55rem;
  font-size: var(--fs-0);
  background: transparent;
}
.topbar .lang-list a:hover, .topbar .lang-list a[aria-current="true"] {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: transparent;
}
@media (min-width: 1200px) {
  .topbar .lang-list { gap: 0.35rem; }
  .topbar .lang-list a { min-height: 32px; padding: 0.25rem 0.7rem; font-size: var(--fs-1); }
}

/* Fascia lingue in homepage: le 6 lingue come chip a timbro (non cliccabili,
   la traduzione si sceglie dal selettore in topbar o nel drawer). */
.lang-strip__inner { display: grid; gap: 1.5rem; align-items: center; }
.lang-strip__text > :last-child { margin-bottom: 0; }
.lang-strip__text p { color: var(--c-ink-soft); }
.lang-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.lang-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0.35rem 0.9rem;
  border: 1.5px dashed var(--c-primary-ink);
  border-radius: 999px;
  background: var(--c-bg);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-1);
  color: var(--c-navy);
}
@media (min-width: 768px) {
  .lang-strip__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; }
}

/* ==========================================================================
   11. HERO
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 2.75rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  border: 1.5px dashed var(--c-primary);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  color: var(--c-primary);
  font-family: var(--f-display);
  font-size: var(--fs-0);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-1deg);
  margin-bottom: 1.25rem;
}
.hero__badge svg { flex: none; }
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero__lead {
  font-size: var(--fs-3);
  line-height: var(--lh-long);
  color: rgba(255, 255, 255, 0.85);
  max-width: 34em;
  margin-bottom: 1.75rem;
}
/* CTA hero: sotto 640px impilate e della STESSA larghezza (vedi anche
   .btn--block-mobile, che i template applicano ai due bottoni). */
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
.hero__cta .btn { width: 100%; }
/* Riga di rassicurazione sotto le CTA */
.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  font-size: var(--fs-1);
  color: rgba(255, 255, 255, 0.85);
}
.hero__note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--c-primary); }
.hero__facts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-1);
  line-height: 1.45;
}
.hero__facts li { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; }
.hero__facts svg { width: 17px; height: 17px; color: var(--c-primary); flex: none; margin-top: 3px; }
.hero__art { max-width: 340px; margin-inline: auto; }
.hero__art svg, .hero__art img { width: 100%; height: auto; display: block; }

@media (min-width: 640px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; gap: 0.85rem; }
  .hero__cta .btn { width: auto; }
  .hero__art { max-width: 400px; }
}
@media (min-width: 768px) {
  /* Tablet: colonna singola, illustrazione contenuta e centrata. */
  .hero__facts { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
  .hero__facts li { align-items: center; }
  .hero__facts svg { margin-top: 0; }
  .hero__art { max-width: 420px; }
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
  .hero__art { max-width: 520px; }
}

/* ==========================================================================
   12. CARD (SERVIZI, CONTATTI, NOVITÀ)
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.card:focus-within { border-color: var(--c-primary); }
.card__icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--c-primary-tint);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 30px; height: 30px; }
.card__icon { color: var(--c-navy); }
.card h3 {
  font-size: var(--fs-4);
  margin-bottom: 0.45em;
  text-wrap: balance;
}
.card h3 a { color: inherit; text-decoration: none; }
/* Intera card cliccabile quando il titolo è un link */
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:hover { color: var(--c-primary-ink); }
.card p {
  color: var(--c-ink-soft);
  font-size: var(--fs-1);
  line-height: 1.6;
}
.card > p:last-of-type { margin-bottom: 0; }
/* Il testo non "balla": la riga di chiusura resta sempre in fondo alla card */
.card__more {
  /* Affordance discreta al posto del testo generico: cerchio con freccia,
     si accende al passaggio sull'intera card (che è tutta cliccabile). */
  margin-top: auto;
  align-self: flex-end;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  transition: background var(--t), color var(--t), transform var(--t);
}
.card__more svg { width: 18px; height: 18px; }
.card:hover .card__more { background: var(--c-navy); color: #fff; transform: translateX(3px); }
.card .btn { margin-top: auto; }
.card .contact-lines + p { margin-bottom: 0; }

/* Blocco "motivo" senza bordo: icona + titolo + testo, usato in homepage.
   Non è cliccabile, quindi niente bordo/ombra da card. */
.mini-card { display: flex; flex-direction: column; }
.mini-card .card__icon { margin-bottom: 0.9rem; }
.mini-card h3 { margin-bottom: 0.35em; }
.mini-card p { color: var(--c-ink-soft); font-size: var(--fs-1); line-height: 1.6; margin-bottom: 0; }

/* Card articolo (novità) */
.post-card { overflow: hidden; padding: 0; }
.post-card__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-paper); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-card__meta {
  font-size: var(--fs-0);
  color: var(--c-ink-soft);
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}
.post-card__meta .cat {
  color: var(--c-primary-ink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   13. COME FUNZIONA (PASSI)
   ========================================================================== */
.steps { counter-reset: step; }
.step { text-align: center; padding-inline: 0.5rem; }
.step__num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--fs-4); }
.step p { color: var(--c-ink-soft); font-size: var(--fs-1); margin-bottom: 0; }
@media (min-width: 1024px) {
  /* La linea tratteggiata ha senso solo quando i passi sono su una riga (3 col) */
  .steps { position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    inset-inline: 18%;
    border-top: 2px dashed var(--c-border-strong);
  }
  .step { position: relative; padding-inline: 1rem; }
}

/* ==========================================================================
   14. PERCHÉ HUMZA (WHY + CHECKLIST)
   ========================================================================== */
.why { display: grid; gap: clamp(2rem, 5vw, 2.75rem); align-items: center; }
.why__media { max-width: 560px; margin-inline: auto; width: 100%; }
.why__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 1024px) {
  .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .why__media { max-width: none; }
}

.checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--c-success); }

/* ==========================================================================
   15. PAGINA INTERNA: PAGE-HERO, BREADCRUMB, LAYOUT CON SIDEBAR
   ========================================================================== */
.page-hero {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-border);
  padding-block: clamp(1.75rem, 5vw, 3.25rem);
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero__sub {
  color: var(--c-ink-soft);
  font-size: var(--fs-3);
  line-height: var(--lh-long);
  max-width: 42em;
  margin: 0;
}

.breadcrumb { font-size: var(--fs-1); margin-bottom: 0.9rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--c-ink-soft); margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--c-border-strong); }
.breadcrumb a {
  color: var(--c-primary-ink);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.breadcrumb a:hover { text-decoration: underline; }

/* Contenuto + sidebar: colonna singola fino a 1023px, due colonne da 1024px. */
/* minmax(0): il testo con tabelle o parole lunghe non deve allargare la colonna oltre lo schermo */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 2.75rem); padding-block: var(--sec-y); }
.layout-sidebar > * { min-width: 0; }
@media (min-width: 1024px) {
  .layout-sidebar { grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); }
}

/* ==========================================================================
   16. CONTENUTO EDITORIALE (.prose)
   ========================================================================== */
.prose { max-width: 70ch; line-height: var(--lh-long); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; font-size: var(--fs-5); }
.prose h3 { margin-top: 1.4em; font-size: var(--fs-4); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15em; }
.prose img { border-radius: var(--radius-md); display: block; }
.prose figure { margin-bottom: 1.4em; }
.prose figcaption { font-size: var(--fs-1); color: var(--c-ink-soft); margin-top: 0.5rem; }
.prose--intro { margin-bottom: 2.75rem; } /* respiro tra intro editoriale e griglia card */

/* Liste editoriali: marker quadrato arancio (linguaggio "timbro").
   Valgono per le liste scritte dal cliente in wp-admin, sia classiche
   (senza class) sia a blocchi (ul.wp-block-list). Le liste-componente del
   tema (.checklist, .lang-list, .mini-list, .contact-lines...) restano intatte. */
.prose ul:not([class]),
.prose ul.wp-block-list { list-style: none; padding-inline-start: 0; }
.prose ul:not([class]) > li,
.prose ul.wp-block-list > li {
  position: relative;
  padding-inline-start: 1.6em;
  margin-bottom: 0.5em;
}
.prose ul:not([class]) > li::before,
.prose ul.wp-block-list > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.15em;
  top: 0.62em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 2px;
  background: var(--c-primary);
}
/* Secondo livello: marker vuoto, gerarchia leggibile a colpo d'occhio */
.prose ul:not([class]) ul > li::before,
.prose ul.wp-block-list ul > li::before { background: transparent; border: 2px solid var(--c-primary); }
.prose ol:not([class]) > li,
.prose ol.wp-block-list > li { margin-bottom: 0.5em; padding-inline-start: 0.25em; }
.prose ol:not([class]) > li::marker,
.prose ol.wp-block-list > li::marker { color: var(--c-primary-ink); font-weight: 700; }

.prose blockquote {
  margin: 1.6em 0;
  padding: 1.1rem 1.4rem;
  border-inline-start: 4px solid var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--c-navy);
  font-size: var(--fs-3);
  line-height: 1.6;
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--fs-1);
  font-style: normal;
  color: var(--c-ink-soft);
}

/* Tabelle: su mobile scorrono in orizzontale con ombra di affordance ai bordi.
   functions.php avvolge automaticamente ogni <table> del contenuto in .table-wrap. */
.prose .table-wrap, .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-bottom: 1.4em;
  border-radius: var(--radius-md);
  background:
    linear-gradient(to right, var(--c-bg) 30%, rgba(255, 255, 255, 0)) left center / 44px 100% no-repeat,
    linear-gradient(to left, var(--c-bg) 30%, rgba(255, 255, 255, 0)) right center / 44px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(22, 33, 62, 0.16), rgba(22, 33, 62, 0)) left center / 16px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(22, 33, 62, 0.16), rgba(22, 33, 62, 0)) right center / 16px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.table-wrap table { min-width: 30rem; margin-bottom: 0; }
.prose table tbody tr:last-child td { border-bottom: 0; }
.prose table tbody tr:nth-child(even) td { background: rgba(250, 247, 242, 0.7); }

.last-updated { font-size: var(--fs-0); color: var(--c-ink-soft); }

/* Immagine in evidenza dell'articolo */
.post-featured { margin: 0 0 1.8em; }
.post-featured img { width: 100%; border-radius: var(--radius-lg); display: block; }
.post-featured figcaption { font-size: var(--fs-1); color: var(--c-ink-soft); margin-top: 0.5rem; }

/* Box "gruppo" creati dal cliente con i pattern del tema (.wp-block-group.aside-box) */
.prose .aside-box { margin-block: 1.6em; }

/* Azioni rapide in cima alla pagina servizio: su telefono e tablet la sidebar
   finisce in fondo, quindi WhatsApp e Prenota devono essere subito lì.
   Da 1024px la sidebar è affiancata e questo blocco sparisce (niente doppioni).
   Selettori a due classi: devono battere .prose h2/.prose p. */
.quick-actions {
  margin: 0 0 2rem;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  border: 1px solid var(--c-border);
  border-inline-start: 4px solid var(--c-primary);
  border-radius: var(--radius-md);
  background: var(--c-paper);
}
.quick-actions .quick-actions__title { margin: 0 0 0.35em; font-size: var(--fs-4); }
.quick-actions .quick-actions__text { margin: 0 0 1rem; color: var(--c-ink-soft); font-size: var(--fs-1); }
.quick-actions__btns { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) {
  .quick-actions__btns { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .quick-actions { display: none; }
}

/* Sotto-pagine di un contenuto impaginato (wp_link_pages) */
.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-block: 1.5rem;
  font-weight: 600;
  color: var(--c-ink-soft);
}
.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.page-links a:hover { border-color: var(--c-primary-ink); color: var(--c-primary-ink); }

/* ==========================================================================
   17. SIDEBAR SERVIZIO (ASIDE-BOX, ORARI)
   ========================================================================== */
.aside-box {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.aside-box > :last-child { margin-bottom: 0; }
.aside-box h3 { font-size: var(--fs-4); }
.aside-box--navy { background: var(--c-navy); border-color: var(--c-navy); }
.aside-box--navy :is(h3, h4) { color: #fff; }
.aside-box--navy p { color: rgba(255, 255, 255, 0.85); }
.aside-box .btn { width: 100%; margin-bottom: 0.6rem; }
.aside-box .btn:last-child { margin-bottom: 0; }

.hours { width: 100%; font-size: var(--fs-1); }
.hours td { padding: 0.45rem 0; border: 0; }
.hours td:last-child { text-align: end; font-weight: 600; color: var(--c-navy); }
.aside-box--navy .hours td { color: rgba(255, 255, 255, 0.85); }
.aside-box--navy .hours td:last-child { color: #fff; }

/* Da 640px la sidebar diventa un blocco orizzontale ben spaziato (tablet):
   il box CTA occupa tutta la larghezza, gli altri due stanno affiancati.
   Da 1024px torna colonna verticale e sticky accanto al contenuto. */
.sticky-aside { display: grid; gap: 1.5rem; }
.sticky-aside > .aside-box { margin-bottom: 0; }
@media (min-width: 640px) {
  .sticky-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  /* Un box solo: occupa tutta la riga. Tre o più: il primo (la CTA) fa da
     fascia intera e gli altri si affiancano a due a due. */
  .sticky-aside > .aside-box:only-child,
  .sticky-aside > .aside-box:first-child:nth-last-child(n+3) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .sticky-aside {
    grid-template-columns: minmax(0, 1fr);
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
  .sticky-aside > .aside-box { grid-column: auto; }
}

/* ==========================================================================
   18. FAQ ACCORDION
   ========================================================================== */
/* Indice delle categorie in cima alla pagina FAQ */
.faq-nav { margin-bottom: 2rem; }
.faq-nav__label {
  margin: 0 0 0.6rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-1);
  color: var(--c-navy);
}
.faq-nav__list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.faq-nav__list li { margin: 0; }
.faq-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-bg);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-1);
  color: var(--c-navy);
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.faq-nav__link:hover {
  border-color: var(--c-primary-ink);
  color: var(--c-primary-ink);
  background: var(--c-primary-soft);
}

.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  background: var(--c-bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-item:hover { border-color: var(--c-border-strong); }
.faq-item:has(.faq-question[aria-expanded="true"]) { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.faq-heading { margin: 0; font-size: inherit; } /* h3 generato da main.js */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  font-family: var(--f-display);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-navy);
  text-align: start;
  cursor: pointer;
  min-height: 56px;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.faq-question:hover { background: var(--c-paper); color: var(--c-primary-ink); }
.faq-question svg {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform var(--t);
  color: var(--c-primary-ink);
}
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer { padding: 0 1.25rem 1.2rem; color: var(--c-ink); }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-answer[hidden] { display: none; }
.faq-cat { margin-top: 2.5rem; }
.faq-cat:first-of-type { margin-top: 0; }

/* ==========================================================================
   19. CTA BANNER (UNA SOLA PER PAGINA)
   ========================================================================== */
.cta-banner { background: #DD7318; }
.cta-banner__inner { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-banner h2 { color: #fff; }
.cta-banner p {
  color: #fff;
  font-weight: 700;
  font-size: 1.1875rem;
  opacity: 1;
  font-size: var(--fs-3);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.cta-banner .btn--navy { box-shadow: var(--shadow-sm); }
.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .cta-banner__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }
}

/* ==========================================================================
   20. MAPPA CON CONSENSO
   ========================================================================== */
.map-section iframe,
.map-container iframe {
  width: 100%;
  height: clamp(260px, 45vw, 420px);
  border: 0;
  border-radius: var(--radius-lg);
  display: block;
}
.map-container[hidden] { display: none; }
.map-placeholder {
  background: var(--c-paper);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3rem) 1.5rem;
  text-align: center;
}
.map-placeholder > :last-child { margin-bottom: 0; }
.map-placeholder p { color: var(--c-ink-soft); max-width: 46ch; margin-inline: auto; }
.map-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .map-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

/* ==========================================================================
   21. FORM
   ========================================================================== */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .form-span { grid-column: 1 / -1; }
}

.field { min-width: 0; }
.field label {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-1);
  color: var(--c-navy);
  margin-bottom: 0.4rem;
}
.field .req { color: var(--c-danger); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* niente zoom automatico su iOS */
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  min-height: 50px; /* comodo da toccare: 50px su mobile, 48px da tablet */
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316213E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px 18px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input[type="file"] { padding: 0.6rem 0.7rem; line-height: 1.5; }
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-family: var(--f-display);
  font-size: var(--fs-1);
  font-weight: 700;
  margin-inline-end: 0.75rem;
  padding: 0.45rem 0.9rem;
  min-height: 36px;
  border: 1.5px solid var(--c-navy);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-navy);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--c-navy); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #8A97A3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 33, 62, 0.15);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--c-danger);
  background: var(--c-danger-tint);
}
.field-error {
  color: var(--c-danger);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-1);
  margin-top: 0.35rem;
}
.field-hint { color: var(--c-ink-soft); font-size: var(--fs-0); margin-top: 0.3rem; }
/* Nota "i campi con * sono obbligatori": sta sopra al modulo, non sotto a un campo */
.form-required-note { margin-top: 0; margin-bottom: 1.25rem; }
@media (min-width: 768px) {
  .field input, .field select, .field textarea { min-height: 48px; padding-block: 0.7rem; }
}

/* Esito invio: sempre ben visibile, con barra di colore a sinistra */
.form-msg {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  border-inline-start-width: 4px;
  padding: 0.9rem 1.1rem;
  margin-top: 1.25rem;
  font-size: var(--fs-2);
  font-weight: 600;
}
.form-msg[hidden] { display: none; }
.form-msg--ok { background: var(--c-success-tint); border-color: var(--c-success); color: var(--c-success); }
.form-msg--err { background: var(--c-danger-tint); border-color: var(--c-danger); color: var(--c-danger); }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-1); color: var(--c-ink-soft); }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--c-primary-ink); }

.form-wrap { /* contenitore bianco del modulo su fondo carta */
  max-width: 780px;
  margin-inline: auto;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form-wrap > .field-hint { margin-top: 1rem; }
.form-wrap .btn { width: 100%; }
@media (min-width: 640px) { .form-wrap .btn { width: auto; } }

.phone-row { display: flex; gap: 0.6rem; }
.field .phone-row select { flex: 0 0 8.5rem; width: auto; }
.phone-row input { flex: 1; min-width: 0; }

/* Ricerca nel sito (archivio e stato vuoto) */
.search-form {
  display: grid;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.search-form .btn { width: 100%; }
@media (min-width: 640px) {
  .search-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .search-form .btn { width: auto; }
}

.hp-field { /* honeypot: fuori schermo, mai display:none (i bot lo saltano) */
  position: absolute !important;
  inset-inline-start: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   22. NOVITÀ: META, PAGINAZIONE, NAVIGAZIONE ARTICOLO
   ========================================================================== */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--c-ink-soft);
  font-size: var(--fs-1);
}
.post-meta li { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }

/* Lista compatta in sidebar ("Altre novità") */
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.mini-list li { margin: 0; }
.mini-list a {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--c-navy);
  text-decoration: none;
}
.mini-list a:hover { color: var(--c-primary-ink); text-decoration: underline; }
.mini-list time { display: block; font-size: var(--fs-0); color: var(--c-ink-soft); }

/* Paginazione archivio (markup di the_posts_pagination) */
.pagination { margin-top: 2.75rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-1);
  color: var(--c-navy);
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.pagination a.page-numbers:hover { border-color: var(--c-primary-ink); color: var(--c-primary-ink); background: var(--c-primary-soft); }
.pagination .page-numbers.current { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* Navigazione articolo precedente/successivo (markup di the_post_navigation) */
.post-navigation { border-top: 1px solid var(--c-border); padding-block: 1.75rem 3rem; }
.post-navigation .nav-links { display: grid; gap: 1rem; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.post-navigation a {
  display: block;
  min-height: 48px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-bg);
  text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.post-navigation a:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.post-navigation .nav-next { text-align: end; }
.post-nav__label {
  display: block;
  font-size: var(--fs-0);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary-ink);
  margin-bottom: 0.25rem;
}
.post-nav__title { font-family: var(--f-display); font-weight: 700; color: var(--c-navy); }

/* ==========================================================================
   23. AREA CLIENTI (TABS)
   ========================================================================== */
.auth-wrap { max-width: 560px; margin-inline: auto; }
/* Contratto JS: .tabs [role=tablist] > .tab [role=tab] + .tabpanel [role=tabpanel] */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 1.75rem;
}
.tab {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--f-display);
  font-size: var(--fs-1);
  font-weight: 700;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.tab:hover { color: var(--c-primary-ink); background: var(--c-primary-soft); }
.tab[aria-selected="true"] { color: var(--c-primary-ink); border-bottom-color: var(--c-primary); background: transparent; }
.tabpanel[hidden] { display: none; }
.auth-note { margin-top: 1.75rem; font-size: var(--fs-1); color: var(--c-ink-soft); text-align: center; }

/* ==========================================================================
   24. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-1);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color var(--t-fast);
}
.site-footer a:hover { color: var(--c-primary); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--sp-lg); padding-block: 3rem 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img, .footer-brand svg { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 42ch; }
.site-footer h3 { color: #fff; font-size: var(--fs-2); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer li { margin: 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-top: 0.75rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 6px; color: var(--c-primary); }
.footer-directions { margin-top: 0.35rem; }
.footer-directions a { font-weight: 600; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-0);
  color: rgba(255, 255, 255, 0.6);
}
.footer-legal a { color: rgba(255, 255, 255, 0.6); }

/* ==========================================================================
   25. BARRA AZIONI MOBILE + WHATSAPP FLOAT
   ========================================================================== */
/* Contratto condiviso: sotto 768px comanda .mobile-actions (Chiama · WhatsApp ·
   Prenota) e .wa-float sparisce; da 768px in su succede l'esatto contrario.
   Le regole valgono sia con .mobile-actions__item sia con semplici <a> figli. */
.mobile-actions {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-actions);
  display: grid;
  /* Colonne generate dal numero reale di voci: se il telefono non e'
     configurato la voce "Chiama" non viene stampata e le restanti due
     restano comunque a larghezza uguale (con repeat(3,...) l'ultima
     colonna resterebbe vuota e la barra sbilanciata a sinistra). */
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  background: var(--c-bg);
  border-top: 1px solid var(--c-border-strong);
  box-shadow: 0 -2px 14px rgba(22, 33, 62, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-actions__item,
.mobile-actions > a,
.mobile-actions > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--mobile-actions-h);
  padding: 0.4rem 0.25rem;
  background: none;
  border: 0;
  color: var(--c-navy);
  font-family: var(--f-display);
  font-size: var(--fs-0);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.mobile-actions > * + * { border-inline-start: 1px solid var(--c-border); }
.mobile-actions svg { width: 22px; height: 22px; flex: none; }
.mobile-actions__item:hover,
.mobile-actions__item:active,
.mobile-actions > a:hover,
.mobile-actions > a:active,
.mobile-actions > button:hover { background: var(--c-primary-soft); color: var(--c-primary-ink); }
/* Accenti: il verde WhatsApp e l'arancio della prenotazione restano riconoscibili
   senza rompere l'uguaglianza dei tre tocchi. */
.mobile-actions__item--wa svg { color: var(--c-wa); }
.mobile-actions__item--cta { color: var(--c-primary-ink); }
.mobile-actions__item--cta svg { color: var(--c-primary-ink); }

.wa-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: var(--z-wa);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--c-wa);
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t), background-color var(--t);
}
.wa-float:hover { transform: scale(1.06); background: #166237; color: #fff; }
.wa-float:active { transform: scale(0.98); }
.wa-float svg { width: 30px; height: 30px; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-actions { display: none; }
  .wa-float { display: grid; }
}

/* ==========================================================================
   26. COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-cookie); /* sopra la barra azioni (1040), sotto il menu (1100) */
  background: var(--c-navy);
  color: #fff;
  padding: 1.1rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 24px rgba(13, 23, 48, 0.25);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: var(--fs-1); color: rgba(255, 255, 255, 0.85); max-width: 60ch; }
.cookie-banner a { color: var(--c-primary); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-banner .btn { min-height: 44px; padding-block: 0.5rem; font-size: var(--fs-1); flex: 1 1 auto; }
/* Il pulsante arancione resta "testo grande" (AA con il bianco) anche nel banner */
.cookie-banner .btn--primary { font-size: 1.1875rem; font-weight: 700; }
@media (min-width: 640px) { .cookie-banner .btn { flex: 0 0 auto; } }

/* ==========================================================================
   27. UTILITY E STATI VUOTI
   ========================================================================== */
/* Bottone che sembra un link (footer "Impostazioni cookie") */
.link-plain {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 32px;
}
.link-plain:hover { color: var(--c-primary); }

.box-narrow { max-width: 640px; margin-inline: auto; margin-block-start: 3rem; }
.box-narrow h2 { font-size: var(--fs-5); margin-bottom: 0.4em; }
.box-narrow p { color: var(--c-ink-soft); }

.empty-state { text-align: center; max-width: 520px; margin-inline: auto; padding: 2.5rem 1.5rem; }
.empty-state .btn { width: auto; margin-top: 1rem; }
.services-grid-empty { text-align: center; color: var(--c-ink-soft); max-width: 52ch; margin-inline: auto; }
.section-note { max-width: 640px; margin: 2rem auto 0; text-align: center; color: var(--c-ink-soft); font-size: var(--fs-1); }

/* Numeri/email nelle card contatto: tocco pieno e mai fuori dal box */
.contact-lines { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.25rem; }
.contact-lines li { margin: 0; }
.contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-3);
  color: var(--c-navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-lines a:hover { color: var(--c-primary-ink); }

/* Utility di scala per i titoli dentro le card */
.h3 { font-size: var(--fs-4); }
.h4 { font-size: 1.0625rem; }

/* Pagina 404 */
.error-404 { text-align: center; padding-block: var(--sec-y); }
.error-404 .stamp { transform: rotate(-3deg); }
.error-404 p { max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; color: var(--c-ink-soft); font-size: var(--fs-3); }

/* ---------- Skin plugin booking ----------
   La rimappatura dei token --hb-* del plugin vive SOLO in booking-skin.css
   (accodato sempre dopo questo file, vedi functions.php): niente doppioni qui
   per evitare valori in conflitto. */

/* ==========================================================================
   28. RTL (URDU E OUTPUT GTRANSLATE)
   ========================================================================== */
[dir="rtl"] body, [dir="rtl"] { text-align: start; }
[dir="rtl"] .card__more svg { transform: scaleX(-1); }
[dir="rtl"] .card:hover .card__more { transform: translateX(-3px); }
[dir="rtl"] .hero__art { transform: scaleX(-1); }
[dir="rtl"] .field select { background-position: left 0.85rem center; }
html[lang="ur"] body, html.translated-rtl body {
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', var(--f-body);
  line-height: 1.9;
}
html.translated-rtl { direction: rtl; }

/* ==========================================================================
   29. MOTION
   ========================================================================== */
/* Stato nascosto SOLO con JS attivo (html.js impostato inline in header.php):
   senza JavaScript il contenuto resta sempre visibile. */
.js [data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].is-inview { opacity: 1; transform: none; }

/* Scroll lock iOS-safe: a menu aperto il body resta fissato alla posizione
   salvata da JS in --scroll-lock-top (ripristinata via scrollTo alla chiusura). */
body.menu-open {
  position: fixed;
  top: var(--scroll-lock-top, 0px);
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-animate], [data-animate] { opacity: 1; transform: none; }
  .card:hover, .wa-float:hover, .btn:active, .wa-float:active { transform: none; }
}

/* ==========================================================================
   30. STAMPA
   ========================================================================== */
/* Caso d'uso reale: il cliente stampa la lista documenti di una pagina servizio.
   Niente navigazione, niente CTA, niente barre: solo testo nero su bianco.
   Gli URL dei link NON vengono stampati (rumore inutile su carta). */
@media print {
  :root {
    --c-primary: #000;
    --c-primary-ink: #000;
    --c-primary-tint: #fff;
    --c-primary-soft: #fff;
    --c-navy: #000;
    --c-navy-deep: #000;
    --c-ink: #000;
    --c-ink-soft: #333;
    --c-paper: #fff;
    --c-border: #999;
    --c-border-strong: #666;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
  }
  .topbar,
  .site-header,
  .mobile-menu,
  .mobile-actions,
  .wa-float,
  .cookie-banner,
  .cta-banner,
  .skip-link,
  .breadcrumb,
  .nav-toggle,
  .lang-nav,
  .lang-strip,
  .pagination,
  .post-navigation,
  .map-container,
  .map-placeholder,
  .quick-actions,
  .faq-nav,
  .search-form,
  .btn,
  .footer-social,
  .site-footer nav { display: none !important; }
  /* La mappa sparisce, ma indirizzo e orari restano: servono su carta. */
  .map-grid { display: block !important; }

  body {
    padding-bottom: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 11.5pt;
    line-height: 1.5;
  }
  h1, h2, h3, h4 { color: #000 !important; break-after: avoid; page-break-after: avoid; }
  h1 { font-size: 20pt; }
  h2 { font-size: 15pt; }
  h3 { font-size: 13pt; }
  a { color: #000 !important; text-decoration: underline; }

  .container { max-width: none; padding-inline: 0; }
  .section, .layout-sidebar, .page-hero, .hero__inner { padding-block: 0.6cm; }
  .page-hero { background: none !important; border-bottom: 1px solid #000; }
  /* Fondi scuri (hero, sezioni navy): niente inchiostro sprecato */
  .hero, .section--navy { background: none !important; color: #000 !important; }
  .hero :is(h1, h2, h3, p, li), .section--navy :is(h1, h2, h3, p, li) { color: #000 !important; }
  .hero__badge { border-color: #000 !important; color: #000 !important; }
  .hero__art { display: none !important; }
  .layout-sidebar { display: block; }
  .prose { max-width: none; }
  .prose ul:not([class]) > li::before,
  .prose ul.wp-block-list > li::before { background: #000 !important; }

  .card, .aside-box, .faq-item, .form-wrap {
    border: 1px solid #999 !important;
    box-shadow: none !important;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .aside-box--navy { color: #000 !important; }
  .aside-box--navy :is(h3, h4, p) { color: #000 !important; }
  .sticky-aside { position: static !important; display: block !important; }

  .table-wrap { overflow: visible !important; background: none !important; }
  .table-wrap table { min-width: 0 !important; }
  table, tr, td, th { break-inside: avoid; page-break-inside: avoid; }
  th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Le risposte FAQ chiuse dall'accordion devono comunque finire su carta */
  .faq-answer[hidden] { display: block !important; }
  .faq-question svg { display: none !important; }

  .site-footer { background: none !important; color: #000 !important; }
  .site-footer a, .footer-legal, .footer-legal a { color: #000 !important; }
  .footer-contact svg { display: none !important; }
}

/* aggiunte template-client-portal: contenitore del portale del plugin */
.portal-embed { margin-block: 1.5rem 2.5rem; }
.portal-embed input, .portal-embed select, .portal-embed textarea { font-size: 16px; min-height: 48px; }
.portal-embed button, .portal-embed .button { min-height: 48px; }
.portal-embed :focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* ==========================================================================
   31. CARD CON FOTO (SERVIZI), HERO PAGINA SERVIZIO CON IMMAGINE, TEMI
   ========================================================================== */
/* La card servizio ha in testa una fotografia reale 16:10 (o il logo
   dell'ente su fondo chiaro); l'icona del servizio diventa un badge che
   "esce" dalla foto. Il corpo mantiene la struttura della card classica. */
.card--media { padding: 0; overflow: hidden; }
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-border);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.card:hover .card__media--photo img { transform: scale(1.04); }
/* Loghi: contenuti nel riquadro con margine fisso, mai tagliati (img in absolute:
   le percentuali di altezza in una griglia non sono affidabili con gli SVG). */
.card__media--logo { background: linear-gradient(180deg, #fff 0%, var(--c-paper) 100%); }
.card__media--logo img {
  position: absolute;
  inset: 14% 12%;
  width: 76%;
  height: 72%;
  object-fit: contain;
}
.card__badge {
  position: absolute;
  left: clamp(1.1rem, 3vw, 1.5rem);
  bottom: -22px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--c-navy);
  display: grid;
  place-items: center;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.card__badge svg { width: 24px; height: 24px; }
[dir="rtl"] .card__badge { left: auto; right: clamp(1.1rem, 3vw, 1.5rem); }
.card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: clamp(1.35rem, 3vw, 1.75rem);
}
.card__body > p:last-of-type { margin-bottom: 0; }
.card__body .card__more { margin-top: auto; }
.card__body h3 { margin-top: 0.25rem; }

/* Hero della pagina servizio con la stessa fotografia, grande, a destra. */
.page-hero__grid { display: grid; gap: 1.5rem; align-items: center; }
.page-hero__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero__media--logo { position: relative; }
.page-hero__media--logo img { position: absolute; inset: 14% 12%; width: 76%; height: 72%; object-fit: contain; }
@media (min-width: 768px) {
  .page-hero__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 3.5rem); }
}

/* Temi della pagina servizio: una foto per ogni cosa di cui si parla.
   Griglia di riquadri sotto l'hero (link alle sezioni) e figura accanto
   ai titoli nel testo. */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
@media (min-width: 480px) { .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .topics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; } }
@media (min-width: 1024px) { .topics { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); } }
.topic {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.topic__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: var(--c-paper);
  box-shadow: var(--shadow-sm);
}
.topic__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1); }
.topic__img--logo { position: relative; background: #fff; }
.topic__img--logo img { position: absolute; inset: 12% 10%; width: 80%; height: 76%; object-fit: contain; }
.topic__label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-1);
  line-height: 1.3;
  color: var(--c-navy);
  transition: color var(--t);
}
a.topic:hover .topic__img--photo img { transform: scale(1.05); }
a.topic:hover .topic__label { color: var(--c-primary-ink); }
a.topic:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 4px; border-radius: var(--radius-md); }
.topics-section { padding-block: clamp(1.75rem, 4vw, 2.5rem); border-bottom: 1px solid var(--c-border); }
.topics-section .h4 { margin-bottom: 1rem; }

.topic-figure { float: right; width: min(42%, 280px); margin: 0.25rem 0 1rem 1.5rem; }
.topic-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: var(--c-paper);
}
.topic-figure--logo img { object-fit: contain; padding: 0.9rem 1.1rem; background: #fff; box-sizing: border-box; }
.topic-figure figcaption { margin-top: 0.4rem; text-align: center; font-size: var(--fs-0); color: var(--c-ink-soft); }
[dir="rtl"] .topic-figure { float: left; margin: 0.25rem 1.5rem 1rem 0; }
.prose h2, .prose h3 { clear: both; }
@media (max-width: 639px) {
  .topic-figure, [dir="rtl"] .topic-figure { float: none; width: 100%; margin: 0 0 1.1rem; }
  .topic-figure img { aspect-ratio: 16 / 9; }
}

/* Tabella crediti immagini */
.credits-table th, .credits-table td { vertical-align: top; }
.credits-table td:first-child { font-weight: 600; color: var(--c-navy); }

/* ==========================================================================
   32. CORSO PROFESSIONALE: HERO (STESSO STILE DEL SITO), DECK, PAGINA
   ========================================================================== */
/* L'hero del corso usa gli stessi componenti dell'hero classico (.hero,
   .hero__badge, .hero__facts...): qui solo le poche aggiunte. */
.hero__accent { color: var(--c-primary); }
.hero__crumb { margin-bottom: 0.75rem; }
.hero__crumb .breadcrumb li, .hero__crumb .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.hero__crumb .breadcrumb li + li::before { color: rgba(255, 255, 255, 0.35); }
/* La colonna deve poter restringersi sotto la larghezza "naturale" del deck
   (otto schede affiancate): senza minmax(0) la griglia si allargherebbe. */
.hero--course .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero__deck { width: 100%; max-width: 560px; margin-inline: auto; min-width: 0; }
@media (min-width: 1024px) {
  .hero--course .hero__inner { grid-template-columns: minmax(0, 10fr) minmax(0, 9fr); align-items: center; }
  .hero__deck { max-width: none; }
}

/* Deck: le otto schede del programma, una card bianca con frecce e puntini.
   Senza JavaScript le schede stanno una sotto l'altra. */
.deck {
  min-width: 0;
  contain: inline-size;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--c-ink);
  overflow: hidden;
}
.deck__viewport { outline: none; }
.deck__viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--c-primary); }
.js .deck__viewport { overflow: hidden; }
.deck__track { list-style: none; margin: 0; padding: 0; }
.js .deck__track { display: flex; align-items: stretch; transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .js .deck__track { transition: none; } }
.deck__slide { margin: 0; padding: clamp(1.25rem, 3vw, 1.6rem); min-width: 0; }
.deck__slide + .deck__slide { border-top: 1px solid var(--c-border); }
.js .deck__slide { flex: 0 0 100%; border-top: 0; }
.js .deck__slide:not(.is-active) { visibility: hidden; }
.deck__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }
.deck__kicker {
  display: inline-block;
  max-width: 100%;
  border: 1.5px dashed var(--c-primary-ink);
  border-radius: 6px;
  padding: 0.28rem 0.7rem;
  font-family: var(--f-display);
  font-size: var(--fs-0);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary-ink);
}
.deck__num { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-0); color: var(--c-ink-soft); flex: none; }
.deck__title { font-size: var(--fs-5); line-height: 1.2; margin: 0 0 0.3em; color: var(--c-navy); text-wrap: balance; }
.deck__lead { color: var(--c-ink-soft); font-size: var(--fs-2); margin-bottom: 0.9rem; }
.deck__tiles { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.deck__tiles li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-paper);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-1);
  color: var(--c-navy);
  line-height: 1.3;
}
.deck__tile-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--c-primary-tint); color: var(--c-navy); display: grid; place-items: center; }
.deck__tile-icon svg { width: 20px; height: 20px; }
.deck__modules { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 0.9rem; }
.deck__modules li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }
.deck__module-num { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--c-navy); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-0); display: grid; place-items: center; margin-top: 2px; }
.deck__module-text { min-width: 0; }
.deck__module-text strong { display: block; color: var(--c-navy); font-size: var(--fs-1); line-height: 1.3; }
.deck__module-text span { display: block; font-size: var(--fs-0); color: var(--c-ink-soft); line-height: 1.35; }
.deck__list { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 0.9rem; }
.deck__list li { display: flex; gap: 0.45rem; align-items: flex-start; margin: 0; font-size: var(--fs-1); line-height: 1.4; }
.deck__list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--c-success); }
.deck__closing {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: var(--c-primary-soft);
  border-inline-start: 3px solid var(--c-primary);
  border-radius: var(--radius-sm);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-1);
  color: var(--c-navy);
  line-height: 1.4;
}
.deck__closing svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--c-primary-ink); }
.deck__cta { margin-top: 0.9rem; }
.deck__cta .btn { width: 100%; }
@media (min-width: 480px) { .deck__cta .btn { width: auto; } }
.deck__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-paper);
}
html:not(.js) .deck__bar { display: none; }
.deck__btn {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--c-navy);
  background: transparent;
  color: var(--c-navy);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.deck__btn:hover { background: var(--c-navy); color: #fff; }
.deck__btn svg { width: 18px; height: 18px; }
.deck__prev svg { transform: scaleX(-1); }
[dir="rtl"] .deck__prev svg { transform: none; }
[dir="rtl"] .deck__next svg { transform: scaleX(-1); }
.deck__dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; flex: 1; }
.deck__dots li { margin: 0; display: flex; }
.deck__dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.deck__dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c-border-strong); transition: transform var(--t), background var(--t); }
.deck__dot.is-active::before { background: var(--c-primary); transform: scale(1.35); }
.deck__dot:hover::before { background: var(--c-primary-ink); }
.deck__count { display: none; }
.deck__play .deck__ico-play { display: none; }
.deck__play[aria-pressed="false"] .deck__ico-pause { display: none; }
.deck__play[aria-pressed="false"] .deck__ico-play { display: block; }
.deck__play svg { width: 16px; height: 16px; fill: currentColor; }
.deck__ico-pause, .deck__ico-play { display: grid; }
@media (max-width: 479px) {
  .deck__tiles, .deck__modules, .deck__list { grid-template-columns: 1fr; }
  .deck__count { display: none; }
}

/* Pagina del corso: componenti del sito (card, mini-card, aside-box) */
.module-card .module-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.module-card .card__icon { margin-bottom: 0; }
.module-card__num { font-family: var(--f-display); font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--c-navy); letter-spacing: -0.02em; }
.module-card__kicker { display: block; font-size: var(--fs-0); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary-ink); margin-bottom: 0.3rem; }
.module-card__list { list-style: none; padding: 0; margin: 0.9rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; }
.module-card__list li { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0; font-size: var(--fs-1); line-height: 1.5; color: var(--c-ink); }
.module-card__list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--c-success); }

.course-enroll__grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) {
  .course-enroll__grid { grid-template-columns: minmax(300px, 2fr) minmax(0, 3fr); gap: 2.5rem; }
  .course-enroll__grid > .sticky-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.info-rows { margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; }
.info-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-1);
}
.info-rows dt { display: flex; align-items: center; gap: 0.45rem; color: rgba(255, 255, 255, 0.75); flex: none; }
.info-rows dt svg { width: 18px; height: 18px; color: var(--c-primary); }
.info-rows dd { margin: 0; text-align: end; font-weight: 600; color: #fff; }
.info-rows dd a { color: #fff; }
.info-rows dd a:hover { color: var(--c-primary); }
.price-line { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 1.8rem + 1.2vw, 2.75rem); line-height: 1; color: #fff; margin: 0.25rem 0 1rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.price-line span { font-size: var(--fs-1); font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.course-form-wrap .btn--primary { width: 100%; }
@media (min-width: 640px) { .course-form-wrap .btn--primary { width: auto; } }

/* Nota sui marchi nel footer */
.footer-disclaimer {
  max-width: 82ch;
  margin: 0 0 1.25rem;
  font-size: var(--fs-0);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   33. NOVITÀ: BARRA DI ANNUNCIO, ETICHETTE DEL CORSO, DECK SCURO, MENU
   ========================================================================== */
/* Barra di annuncio sopra la topbar: arancione del sito, testo navy. */
.announce { background: var(--c-primary-ink); color: #fff; }
.announce[hidden] { display: none; }
.announce__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding-block: 0.45rem;
  font-size: var(--fs-1);
  line-height: 1.35;
}
.announce__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-navy); color: #fff; }
.announce__icon svg { width: 16px; height: 16px; }
.announce__text { margin: 0; flex: 1; min-width: 0; }
.announce__text strong { color: #fff; }
.announce__more, .announce__when { display: none; }
.announce__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 36px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--c-navy);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-0);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t);
}
.announce__link:hover { background: var(--c-navy-deep); color: #fff; }
.announce__link svg { width: 15px; height: 15px; }
.announce__close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.announce__close:hover { background: rgba(255, 255, 255, 0.18); }
.announce__text { font-weight: 500; }
/* Sotto 640px la barra resta su una riga: solo "Nuovo: Corso professionale" e la freccia. */
@media (max-width: 639px) {
  .announce__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .announce__link { width: 36px; padding: 0; justify-content: center; border-radius: 50%; }
  .announce__link span { display: none; }
}
@media (min-width: 768px) {
  .announce__when { display: inline; }
}
@media (min-width: 1024px) {
  .announce__more { display: inline; }
}

/* Etichette e riquadri dell'hero del corso */
.hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.hero__badges .hero__badge { margin: 0; transform: none; }
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--c-primary-ink);
  color: #fff;
  font-family: var(--f-display);
  font-size: var(--fs-0);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}
.hero__pill svg { width: 15px; height: 15px; fill: currentColor; }
.hero__live {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-success);
  margin-inline-end: 0.55rem;
}
.hero__live::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--c-success);
  opacity: 0;
  animation: hero-live 2.4s ease-out infinite;
}
@keyframes hero-live {
  0%   { transform: scale(0.8); opacity: 0.7; }
  70%  { transform: scale(2); opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero__live::after { animation: none; } }
.hero__tiles {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 420px) { .hero__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero__tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.hero__tile-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; }
.hero__tile-icon svg { width: 20px; height: 20px; }
.hero__tile-label { display: block; font-size: var(--fs-0); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); line-height: 1.3; }
.hero__tile-value { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-2); color: #fff; line-height: 1.3; overflow-wrap: anywhere; }
.hero__facts a { color: inherit; text-decoration-color: rgba(255, 255, 255, 0.4); }
.hero__facts a:hover { color: var(--c-primary); }

/* Deck scuro (sta dentro l'hero navy): come i pannelli del materiale del corso */
.deck { background: var(--c-navy-deep); border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.88); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.deck__slide + .deck__slide { border-top-color: rgba(255, 255, 255, 0.12); }
.deck__kicker { border: 0; background: var(--c-primary-ink); color: #fff; padding: 0.32rem 0.75rem; border-radius: 999px; }
.deck__num { color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 0.2rem 0.6rem; }
.deck__title { color: #fff; }
.deck__lead { color: rgba(255, 255, 255, 0.75); }
.deck__tiles li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.deck__tile-icon { background: var(--c-primary); color: #fff; }
.deck__module-num { background: var(--c-primary-ink); color: #fff; }
.deck__module-text strong { color: #fff; }
.deck__module-text span { color: rgba(255, 255, 255, 0.68); }
.deck__list svg { color: var(--c-primary); }
.deck__closing { background: rgba(230, 126, 34, 0.14); color: #fff; border-inline-start-color: var(--c-primary); }
.deck__closing svg { color: var(--c-primary); }
.deck__bar { background: rgba(255, 255, 255, 0.04); border-top-color: rgba(255, 255, 255, 0.12); }
.deck__btn { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.deck__btn:hover { background: #fff; color: var(--c-navy); }
.deck__dot::before { background: rgba(255, 255, 255, 0.35); }
.deck__dot.is-active::before { background: var(--c-primary); }
.deck__dot:hover::before { background: #fff; }
.deck__count { color: rgba(255, 255, 255, 0.7); }
.deck__viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--c-primary); }

/* "Cosa ricevi": riquadri compatti e centrati (icona + titolo) */
.mini-card--tile {
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
}
.mini-card--tile .card__icon { margin-bottom: 0.75rem; }
.mini-card--tile h3 { margin-bottom: 0; font-size: var(--fs-2); }

/* Voce di menu "Corso" con etichetta Nuovo (testo vero, traducibile) */
.menu-badge {
  display: inline-block;
  margin-inline-start: 0.4rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: var(--c-primary-ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  vertical-align: middle;
}

/* ==========================================================================
   34. MAPPA STATICA (NESSUNA RICHIESTA A TERZI) E STATO TRADUZIONE
   ========================================================================== */
.map-static { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); background: var(--c-paper); }
.map-static img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.map-static__actions {
  position: absolute;
  inset-inline-start: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.map-static__actions .btn { min-height: 44px; padding-block: 0.55rem; box-shadow: var(--shadow-md); }
@media (max-width: 479px) {
  .map-static__actions { position: static; padding: 0.9rem; background: var(--c-bg); }
  .map-static__actions .btn { flex: 1 1 100%; }
}
.lang-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: 0.5rem;
  font-size: var(--fs-0);
  color: #fff;
  white-space: nowrap;
}
.lang-status[hidden] { display: none; }
.lang-status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--c-primary); animation: lang-spin 0.8s linear infinite; }
@keyframes lang-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lang-status::before { animation: none; } }

/* ==========================================================================
   35. RIFINITURE DALLA REVISIONE VISIVA
   ========================================================================== */
@media (max-width: 639px) {
  .breadcrumb ol { display: block; }
  .breadcrumb li { display: inline; }
  .breadcrumb li + li::before { margin-inline: 0.15rem; }
}
/* "Ultimo aggiornamento: 25 agosto 2026": mese in minuscolo */
.last-updated time { text-transform: lowercase; }
/* Tabelle: chiusura in basso */
.prose table tbody tr:last-child td { border-bottom: 1px solid var(--c-border); }
/* Tabelle sui telefoni: righe impilate, ogni cella con la sua intestazione (data-label da main.js) */
@media (max-width: 639px) {
  .prose table.is-stacked, .prose table.is-stacked tbody, .prose table.is-stacked tr, .prose table.is-stacked td { display: block; width: 100%; }
  .prose table.is-stacked thead { display: none; }
  .prose table.is-stacked tr { border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; background: var(--c-bg); }
  .prose table.is-stacked td { border: 0; border-bottom: 1px solid var(--c-border); padding: 0.55rem 0.8rem; }
  .prose table.is-stacked tr td:last-child { border-bottom: 0; }
  .prose table.is-stacked td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-0); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-primary-ink); margin-bottom: 0.15rem; }
  .prose table.is-stacked tbody tr:nth-child(even) td { background: transparent; }
  .prose .table-wrap:has(table.is-stacked) { overflow: visible; border: 0; }
}
/* Sidebar delle pagine servizio: accompagna lo scorrimento */
@media (min-width: 1024px) {
  .layout-sidebar > aside { align-self: stretch; }
  .sticky-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
}
/* Titoli alla stessa altezza nelle file di mini-card */
.mini-card--align h3 { min-height: 2.6em; }
/* Footer: social con icona */
.footer-social a { display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-social svg { width: 18px; height: 18px; flex: none; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   36. TOUCH: NIENTE ZOOM ACCIDENTALE
   ========================================================================== */
/* Il doppio tocco su pulsanti, link, slideshow e card non ingrandisce la pagina
   (lo zoom con due dita resta possibile: accessibilità). */
a, button, input, select, textarea, label, .deck, .card, .topic, .hero__tile, .mobile-actions, .wa-float { touch-action: manipulation; }
/* iPhone ingrandisce la pagina se un campo ha testo sotto i 16px: sui touch i campi sono a 16px. */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea, .lang-widget select, .lang-widget .gt_selector, .lang-widget .goog-te-combo { font-size: 16px !important; }
  .lang-widget select, .lang-widget .gt_selector { padding-block: 0.2rem; }
}
/* Pagina crediti: la tabella usa tutta la larghezza del contenitore */
.prose--wide { max-width: none; }
.credits-table { font-size: var(--fs-1); }
/* Tabelle impilate: le celle vanno a capo, mai fuori dal telefono */
@media (max-width: 639px) {
  .prose table.is-stacked { min-width: 0; table-layout: auto; }
  .prose table.is-stacked td { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .prose table.is-stacked td a { overflow-wrap: anywhere; }
}
/* Revisione del 26/08: dettagli emersi dalle catture pagina per pagina */
/* Riquadri di aiuto allineati alla colonna del testo, non centrati sul viewport */
.box-flush { max-width: 70ch; margin-inline: 0; margin-block-start: 3rem; }
/* Coppie di pulsanti affiancate: stessa altezza e larghezza naturale */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }
.btn-row > .btn { flex: 0 1 auto; }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }
/* Colonna della licenza nei crediti: niente parole spezzate su tre righe */
.credits-table td:nth-child(4) { min-width: 12ch; }
/* Mappa: i pulsanti stanno sotto la foto e non coprono le vie */
.map-static__actions { position: static; padding: 0.9rem; background: var(--c-bg); border-top: 1px solid var(--c-border); }
.map-static__actions .btn { box-shadow: none; }
@media (max-width: 479px) { .map-static__actions .btn { flex: 1 1 100%; } }
/* Dentro i riquadri, i pulsanti in coppia stanno affiancati (non barre a tutta larghezza) */
.aside-box .btn-row .btn { width: auto; margin-bottom: 0; }
@media (max-width: 479px) { .aside-box .btn-row .btn { width: 100%; } }

/* ===== Barra del sito collegato =====
   Colori, oro e titolo in grazie sono ripresi dal sito Easy Casa: la striscia
   si legge come un marchio diverso, non come un menu di Humza, cosi' si capisce
   subito che porta a un'altra attivita'. Testi e indirizzo si cambiano da
   Aspetto > Personalizza > Dati attivita' > Sito collegato. */
.partner-bar {
  background: linear-gradient(90deg, #0f241f 0%, #1a3c34 62%, #16332c 100%);
  border-bottom: 1px solid rgba(196, 163, 90, 0.34);
  color: #f4f1e9;
  font-size: var(--fs-0);
}
.partner-bar__inner { display: flex; justify-content: flex-end; }
.partner-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 42px;
  padding: 0.3rem 0;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}
.partner-bar__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(196, 163, 90, 0.5);
  border-radius: 50%;
  color: #c4a35a;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.partner-bar__kicker { color: rgba(244, 241, 233, 0.76); }
.partner-bar__name {
  font-family: Georgia, 'Times New Roman', 'Noto Serif', serif;
  font-size: 1.12em;
  letter-spacing: 0.005em;
  color: #fff;
}
.partner-bar__suffix {
  margin-left: 0.3em;
  font-family: var(--f-display);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #c4a35a;
  vertical-align: 0.15em;
}
.partner-bar__tag {
  padding-left: 0.7rem;
  border-left: 1px solid rgba(244, 241, 233, 0.26);
  color: rgba(244, 241, 233, 0.76);
}
.partner-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.2rem;
  padding: 0.26rem 0.8rem;
  border: 1px solid rgba(196, 163, 90, 0.62);
  border-radius: 999px;
  color: #e8d6ab;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.partner-bar__arrow { flex: none; }
.partner-bar__link:hover .partner-bar__cta,
.partner-bar__link:focus-visible .partner-bar__cta { background: #c4a35a; border-color: #c4a35a; color: #0f241f; }
.partner-bar__link:hover .partner-bar__mark,
.partner-bar__link:focus-visible .partner-bar__mark { background: rgba(196, 163, 90, 0.18); border-color: #c4a35a; }
.partner-bar__link:hover .partner-bar__name,
.partner-bar__link:focus-visible .partner-bar__name { text-decoration: underline; text-underline-offset: 3px; }
.partner-bar__link:focus-visible { outline: 2px solid #e8d6ab; outline-offset: 3px; border-radius: var(--radius-sm); }
/* Restringendo resta l'essenziale, cosi' la barra non va mai a capo */
@media (max-width: 899px) {
  .partner-bar__tag { display: none; }
}
@media (max-width: 639px) {
  /* Anche su telefono resta a destra, allineata al resto del sito */
  .partner-bar__kicker { display: none; }
  .partner-bar__link { gap: 0.5rem; }
}

/* Pulsante "Torna a Novità": centrato, con aria sotto anche quando non c'è
   la navigazione fra articoli (un solo articolo pubblicato). */
.post-back { justify-content: center; margin: 2rem auto clamp(2.5rem, 6vw, 4rem); }
.post-navigation + .post-back { margin-top: 0; }
