:root {
  --navy: #002147;
  --navy-dark: #001327;
  --navy-light: #0d3a66;
  --gold: #D4AF37;
  --gold-dark: #a97e14;
  --grey-bg: #F4F6F8;
  /* Tinta delle fasce della home (01/10): azzurro ghiaccio, cioe' il navy
     molto diluito, invece del grigio neutro che rendeva la pagina anonima.
     Le sezioni si alternano fra questa e il bianco. Cambiare qui le cambia
     tutte. */
  --tint: #F1F5FA;
  --tint-border: #DCE5EF;
  --border: #E3E8EE;
  --text: #12203A;
  --text-muted: #5B6B7F;
  --text-light: #8492A6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #FFFFFF;
}

h1, h2 { font-family: 'Inter', sans-serif; font-weight: 800; margin: 0; }

a { text-decoration: none; color: inherit; }

button { font-family: 'Inter', sans-serif; cursor: pointer; }

svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* Navbar */
.navbar {
  height: 84px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 0 48px; border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: baseline; gap: 5px; flex-shrink: 0; font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -0.3px; }
.logo-dot { color: var(--gold); }
.search-box {
  position: relative; flex-grow: 1; max-width: 640px; height: 46px; display: flex;
  border: 1px solid #D8DEE6; border-radius: 6px; overflow: hidden; margin: 0;
}
.search-box input {
  flex-grow: 1; border: none; outline: none; padding: 0 16px; font-size: 14px;
  font-family: 'Inter', sans-serif; color: var(--text);
}
.search-box button {
  border: none; background: var(--navy); width: 54px; display: flex;
  align-items: center; justify-content: center;
}
.search-box button svg { width: 18px; height: 18px; stroke: var(--gold); stroke-width: 2; }
.navbar-right { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.account-link { font-size: 13px; font-weight: 700; color: var(--navy); }
.account-link:hover { color: var(--gold-dark); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--navy); font-size: 26px;
  line-height: 1; padding: 4px 6px;
}
/* Fascia del logo in blu (25/10, Antonio): solo questa riga, il menu sotto resta
   bianco e la separa dalle bande blu delle pagine (carosello, .page-hero). */
.navbar { background: var(--navy); border-bottom: none; }
.navbar .logo { color: #FFFFFF; }
.navbar .search-box { border-color: transparent; }
.navbar .search-box button { background: var(--gold); }
.navbar .search-box button svg { stroke: var(--navy); }
.navbar .account-link { color: #FFFFFF; }
.navbar .account-link:hover { color: var(--gold); }
.navbar .nav-toggle { color: #FFFFFF; }

.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; }

/* Nav row + mega menu */
.nav-row {
  position: relative; height: 44px; background: #FFFFFF; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 4px; padding: 0 44px;
}
.nav-link {
  background: transparent; border: none; height: 44px; padding: 0 18px; display: flex;
  align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--text); font-family: 'Inter', sans-serif;
}
.nav-link-plain { text-decoration: none; }
.nav-link-plain:hover { color: var(--gold-dark); }
.nav-link .caret { width: 10px; height: 10px; stroke: var(--gold); stroke-width: 3; transition: transform .15s ease; }
.nav-link.is-active { background: #F2ECDA; }
.nav-link.is-active .caret { transform: rotate(180deg); }

.mega-panel {
  display: none; position: absolute; top: 44px; left: 0; width: 100%; background: #FFFFFF;
  box-shadow: 0 16px 32px rgba(0,33,71,0.18); border-top: 1px solid var(--border); z-index: 40;
}
.mega-panel.is-open { display: block; }

.mega-articoli { display: flex; }
.mega-articoli[hidden] { display: none; }
.mega-sidebar { width: 300px; flex-shrink: 0; border-right: 1px solid var(--border); padding: 0 0 16px; }
.sidebar-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  height: 48px; padding: 0 20px; background: #FFFFFF; border: none; text-align: left; font-size: 13px;
  font-weight: 500; color: var(--text); font-family: 'Inter', sans-serif;
}
.sidebar-row.is-active { background: #F2ECDA; font-weight: 700; }
.sidebar-row .side-arrow { width: 9px; height: 9px; stroke: var(--gold); stroke-width: 3; visibility: hidden; }
.sidebar-row.is-active .side-arrow { visibility: visible; }
/* Voce-link "Tutti gli articoli" (25/10): non apre un flyout, porta alla
   pagina. Separata dalle voci sotto da una riga, hover crema come le
   voci del flyout. */
.sidebar-row-link { font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); transition: background-color .15s; }
.sidebar-row-link:hover { background: #F2ECDA; }
.sidebar-row-link i { color: var(--gold); margin-right: 6px; font-size: 12px; }

/* Altezza minima (29/09): senza, il pannello saltava su/giu' cambiando tab
   dentro lo stesso menu (5 moduli vs 2 strumenti) - fastidioso, segnalato
   da Antonio. La sidebar si allunga da sola (stretch di default in flex). */
.mega-flyout { flex-grow: 1; padding: 28px 40px; display: flex; flex-wrap: wrap; gap: 10px 32px; align-content: flex-start; min-height: 248px; }
.flyout-col { columns: 2; column-gap: 32px; width: 100%; }
.flyout-col[hidden] { display: none; }
/* Hover (24/10): prima cambiava solo il colore del testo, grigio -> navy,
   troppo poco per accorgersene (segnalato da Antonio). Ora fascia crema,
   la stessa della voce attiva in sidebar. Padding compensato da margini
   negativi: il testo resta allineato dove stava, la fascia sborda. */
.flyout-col a { display: block; font-size: 13px; color: var(--text-muted); padding: 6px 10px; margin: 0 -10px 4px; border-radius: 6px; break-inside: avoid; transition: background-color .15s; }
.flyout-col a:hover { color: var(--navy); background: #F2ECDA; }
.flyout-cta { font-size: 13px; font-weight: 700; color: var(--gold-dark); align-self: flex-start; flex-basis: 100%; }

/* Era una colonna a destra del flyout (28/09); spostata sopra i link
   come riga orizzontale (03/10, richiesto da Antonio) - stessi colori
   di prima, solo disposizione diversa. */
.mega-feature-row { flex: 1 1 100%; margin: -28px -40px 20px; height: 48px; display: flex; align-items: center; background: #F2ECDA; padding: 0 24px; }
.showcase-card { display: flex; align-items: center; gap: 20px; }
.showcase-card[hidden] { display: none; }
.showcase-tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gold-dark); }
.showcase-card h4 { flex: 0 0 auto; font-size: 16px; font-weight: 800; color: var(--navy); margin: 0; line-height: 1.3; white-space: nowrap; }
.showcase-card p { flex: 1 1 auto; font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.showcase-card .flyout-cta { flex: 0 0 auto; }

.mega-simple { padding: 28px 40px; display: flex; flex-direction: column; gap: 20px; width: 100%; }
.mega-simple[hidden] { display: none; }
.mega-simple-title { font-weight: 700; font-size: 15px; color: var(--navy); }
/* Liste corte (3-5 voci) in una sola colonna erano perse in un pannello largo
   quanto tutta la pagina (segnalato da Antonio, 28/09, stesso problema gia'
   visto nel menu Articoli): due colonne + una riga di descrizione per voce,
   presa dalla meta description della pagina di destinazione, gia' scritta. */
.mega-simple-list { columns: 2; column-gap: 40px; }
.mega-simple-list a { display: block; padding: 6px 10px; margin: 0 -10px 6px; border-radius: 6px; break-inside: avoid; transition: background-color .15s; }
.mega-simple-list a:hover { background: #F2ECDA; }
.mega-simple-item-title { display: block; font-size: 14px; font-weight: 700; color: var(--navy); }

.mega-simple-list a:hover .mega-simple-item-title,
.flyout-col a:hover .mega-simple-item-title { color: var(--gold-dark); }
.mega-simple-desc { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-muted); line-height: 1.45; margin-top: 3px; }

/* Hero */
.hero { position: relative; width: 100%; height: 460px; overflow: hidden; background: var(--navy); }
/* 11/10: una sola foto su tutte le slide (prima erano 3 diverse, "andavano
   oltre la semplicita'"). La foto sta sul contenitore .hero, le slide sono
   trasparenti sopra - ognuna porta solo la propria sfumatura, cosi' il
   cambio slide non fa "saltare" la foto. */
.hero.has-photo { background-size: cover; background-position: center; }
.hero-slide { position: absolute; inset: 0; display: none; align-items: center; color: var(--gold); }
.hero-slide.is-active { display: flex; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(0,33,71,.88) 38%, rgba(0,33,71,.45) 68%, rgba(0,33,71,.2) 100%);
}
.hero:not(.has-photo) .hero-slide::before { background: var(--navy); }
.hero-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; stroke-width: 1.6; opacity: .5; }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 0 64px 0 100px; display: flex; flex-direction: column; gap: 14px; }
.hero-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.hero-content h1 { font-size: 34px; line-height: 1.25; color: #FFFFFF; }
.hero-content h1 em { color: var(--gold); font-style: normal; }
.hero-content p { margin: 0; font-size: 16px; line-height: 1.55; color: #C7D3E0; max-width: none; }
.hero-cta {
  align-self: flex-start; margin-top: 6px; background: var(--gold); color: var(--navy); border: none;
  border-radius: 4px; padding: 13px 26px; font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-dots { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.hero-dot { width: 32px; height: 32px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }
.hero-dot span { display: block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.hero-dot.is-active span { width: 14px; height: 14px; background: var(--gold); border: 2px solid #FFFFFF; }

/* Value props */
.value-props {
  background: var(--tint);
  padding: 32px 48px; border-bottom: 1px solid var(--border); display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.value-item { display: flex; align-items: flex-start; gap: 14px; }
.value-icon {
  width: 44px; height: 44px; flex-shrink: 0; background: #F2ECDA; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 22px; height: 22px; stroke: var(--gold-dark); fill: none; stroke-width: 1.8; }
.value-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.value-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Section head */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.section-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: 28px; color: var(--navy); }
.section-link { font-size: 14px; font-weight: 700; color: var(--navy); }
.section-link:hover { color: var(--gold-dark); }

/* Categories */
.categories { background: var(--tint); padding: 56px 48px 64px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Etichetta dei tre gruppi della home (29/09): stessa divisione del mega-menu. */
.cat-group-label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.cat-group-label + .category-grid { margin-bottom: 36px; }

/* Il titolo di questa sezione e' una frase, non due parole: il link va sotto
   invece che a fianco, cosi' il titolo prende tutta la larghezza e sta su una
   riga sola (misurato: gliene servono 1195px, accanto al link ne restavano
   1011). Il filo di letter-spacing negativo recupera gli ultimi pixel senza
   che si veda. Sul telefono va a capo comunque, e li' scende di corpo.
   Scoped: le altre sezioni hanno titoli corti e restano come sono. */
.categories .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
.categories .section-head h2 { line-height: 1.25; letter-spacing: -.3px; white-space: nowrap; }
@media (max-width: 1240px) {
  .categories .section-head h2 { white-space: normal; }
}
@media (max-width: 760px) {
  .categories .section-head h2 { font-size: 21px; }
}

/* ── Fascia contenuti della home, rifatta il 01/10 ──
   Prima: otto card identiche in tre blocchi impilati, 1268px di altezza su
   3707 totali. Ora una card larga per lo Speciale, card compatte per gli
   altri argomenti, e una riga di collegamenti per cio' che e' pronto da
   prendere. La card larga occupa due righe della griglia a destra. */
.cat-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: minmax(0, auto); gap: 20px; }

.cat-big {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy); border-radius: 14px; padding: 28px 26px; min-height: 230px;
  transition: transform .15s;
}
.cat-big:hover { transform: translateY(-2px); }
.cat-big-tag { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.cat-big-tag i { margin-right: 5px; }
.cat-big h3 { font-size: 24px; font-weight: 800; color: #FFFFFF; margin: 0 0 8px; line-height: 1.2; }
.cat-big p { font-size: 14px; line-height: 1.55; color: #C7D3E0; margin: 0 0 18px; max-width: 42ch; }
.cat-big-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: #8FA3BB; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.cat-big-go { font-weight: 700; color: var(--gold); }

.cat-small {
  display: flex; align-items: center; gap: 14px; background: #FFFFFF;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 16px 18px;
  transition: border-color .15s, transform .15s;
}
.cat-small:hover { border-color: var(--gold); transform: translateY(-2px); }
.cat-small-icon { width: 36px; height: 36px; flex-shrink: 0; background: #F2ECDA; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.cat-small-icon svg { width: 18px; height: 18px; stroke: var(--gold-dark); fill: none; stroke-width: 1.8; }
.cat-small-txt { min-width: 0; }
.cat-small-title { display: block; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.cat-small-count { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.cat-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.cat-strip-label { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-dark); }
.cat-strip a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.cat-strip a:hover { color: var(--gold-dark); }
.cat-strip a i { font-size: 13px; color: var(--gold-dark); }
.cat-strip a b { font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--grey-bg); border-radius: 20px; padding: 1px 8px; }

@media (max-width: 860px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-big { grid-row: auto; min-height: 0; }
}
.category-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, transform .15s;
}
.category-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.category-icon { width: 48px; height: 48px; background: #F2ECDA; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.category-icon svg { width: 24px; height: 24px; stroke: var(--gold-dark); fill: none; stroke-width: 1.8; }
.category-title { font-weight: 700; font-size: 18px; margin-top: 16px; color: var(--navy); }
.category-count { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.category-link { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 700; color: var(--gold-dark); }

/* Promo (S35) */
/* Tre colonne (29/09): presentazione, le tre pagine S35, la demo.
   Fondo beige e non grigio: sopra c'e' gia' .categories su --grey-bg,
   due grigi attaccati si leggono come un blocco solo. */
.promo { display: flex; align-items: stretch; gap: 40px; padding: 64px 48px; background: #FFFFFF; }
.promo-text { flex: 1.1; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.promo-text p { margin: 0; font-size: 15px; line-height: 1.7; color: #40506A; }
.promo-link { font-size: 15px; font-weight: 700; color: var(--navy); }
.promo-link:hover { color: var(--gold-dark); }
.promo-visual {
  flex: 1; min-width: 0; min-height: 300px; background: var(--navy); border-radius: 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 32px;
}
.promo-demo {
  flex: 0.72; min-width: 0; background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.promo-demo svg { width: 64px; height: 64px; stroke: var(--gold-dark); fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.promo-demo-note { font-size: 13px; color: var(--text-muted); }
.promo-cta {
  background: var(--gold); color: var(--navy); border-radius: 6px; padding: 13px 22px;
  font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; transition: background .2s;
}
.promo-cta:hover { background: var(--gold-dark); color: #FFFFFF; }
.promo-item { display: block; padding: 14px 16px; border-radius: 10px; transition: background .15s; }
.promo-item:hover { background: rgba(255,255,255,.06); }
.promo-item-title { display: block; font-size: 15px; font-weight: 700; color: var(--gold); }
.promo-item-desc { display: block; font-size: 13px; line-height: 1.5; color: #B9C6D6; margin-top: 4px; }

/* Articoli in evidenza */
/* Bianca, non ghiaccio: sopra ha la fascia contatti su ghiaccio
   (01/10, alternanza contando anche le fasce). */
.news { background: #FFFFFF; padding: 56px 48px 64px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.news-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.news-tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 999px; background: #F2ECDA; color: var(--gold-dark); }
.news-title { font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--navy); }
.news-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.news-date { font-size: 12px; color: var(--text-light); }

/* Footer */
.site-footer { background: var(--navy-dark); padding: 56px 48px 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 24px; }
.footer-col-title { font-weight: 700; font-size: 14px; color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 18px; }
.footer-cols a { display: block; font-size: 14px; color: #9FB1C6; margin-bottom: 12px; }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1C3550; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom span { font-size: 13px; color: #7E93AC; }
.footer-bottom-right { display: flex; align-items: center; gap: 24px; }
.footer-bottom-right a { font-size: 13px; color: #7E93AC; }
.footer-bottom-right a:hover { color: var(--gold); }

/* Ricerca (cerca.php) */
.search-hero { background: var(--navy); padding: 48px 24px 40px; text-align: center; }
.search-hero h1 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.search-hero p { color: #94a3b8; font-size: .95rem; }
.search-results { max-width: 860px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 16px; }
.result-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 20px; transition: border-color .15s; }
.result-card:hover { border-color: var(--gold); }
.result-tipo { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-dark); }
.result-title { display: block; font-size: 1.05rem; font-weight: 800; color: var(--navy); margin: 4px 0 6px; }
.result-title:hover { color: var(--gold-dark); }
.result-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.no-results { color: var(--text-muted); font-size: .95rem; }

/* ── Pagine di contenuto (chi-sono e simili): blocchi generici comuni ── */
.page-hero { background: var(--navy); padding: 56px 24px 48px; text-align: center; position: relative; overflow: hidden; }
/* Test (10/10): variante con foto, spostata qui da /index.php dopo giudizio
   su dove stia meglio un'immagine AI con dashboard finta - qui il testo e'
   su S35/software, non sulla frase piu' personale della home. */
.page-hero.has-photo { background-size: cover; background-position: center; }
.page-hero.has-photo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at center, rgba(0,33,71,.9) 0%, rgba(0,33,71,.6) 55%, rgba(0,33,71,.25) 100%); }
.page-hero.has-photo .page-hero-tag, .page-hero.has-photo h1, .page-hero.has-photo p,
.page-hero.has-photo a, .page-hero.has-photo div { position: relative; z-index: 1; }
.page-hero-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px;
  border: 4px solid var(--gold); overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-tag { display: inline-block; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.page-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 12px; }
.page-hero p { color: #C7D3E0; font-size: 1rem; max-width: 640px; margin: 0 auto; line-height: 1.6; }
.page-hero p strong { color: var(--gold); }

.content { max-width: 900px; margin: 0 auto; padding: 48px 24px 8px; }

.info-card {
  background: #fff; border-left: 4px solid var(--gold); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,33,71,.07); padding: 26px 28px; margin-bottom: 16px;
}
.info-card p { margin: 0 0 12px; font-size: .98rem; color: var(--text-muted); line-height: 1.6; }
.info-card p:last-child { margin-bottom: 0; }
.info-card strong { color: var(--navy); }
.info-card a { color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--gold); text-decoration: none; }
.info-card a:hover { color: var(--gold-dark); }

.section-title {
  font-size: .8rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy); margin: 40px 0 16px; display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.list-card { background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,33,71,.07); padding: 22px 26px; margin-bottom: 16px; }
.list-card ul { list-style: none; margin: 0; padding: 0; }
.list-card li { font-size: .94rem; color: var(--text-muted); line-height: 1.55; padding: 9px 0 9px 20px; position: relative; border-bottom: 1px solid var(--grey-bg); }
.list-card li:last-child { border-bottom: none; }
.list-card li::before { content: '▸'; position: absolute; left: 0; top: 9px; color: var(--gold); }
.list-card li b { color: var(--navy); }

.cred-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.cred-card { background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,33,71,.07); padding: 22px 24px; }
.cred-card h3 { font-size: .98rem; color: var(--navy); margin-bottom: 10px; }
.cred-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

.timeline-strip { background: var(--navy); padding: 40px 24px; margin-top: 48px; overflow-x: auto; }
.timeline-strip-cap { text-align: center; color: rgba(255,255,255,.5); font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 26px; }
.tl-track { display: flex; justify-content: space-between; gap: 24px; min-width: 640px; max-width: 960px; margin: 0 auto; position: relative; }
.tl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(212,175,55,.3); }
.tl-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid var(--navy); box-shadow: 0 0 0 2px var(--gold); z-index: 1; }
.tl-label { font-size: .68rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-top: 10px; white-space: nowrap; }
.tl-item.is-last .tl-label { color: var(--gold); }
.tl-year { font-size: .64rem; color: rgba(255,255,255,.4); margin-top: 4px; }

.closing-cta { background: var(--navy); padding: 48px 24px; text-align: center; }
.closing-cta h2 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.closing-cta p { color: #94a3b8; font-size: .92rem; margin-bottom: 24px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-primary, .cta-secondary { font-weight: 700; font-size: .92rem; padding: 12px 24px; border-radius: 8px; }
.cta-primary { background: var(--gold); color: var(--navy); }
.cta-secondary { border: 1px solid rgba(255,255,255,.35); color: #fff; }

@media (max-width: 640px) {
  .cred-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.7rem; }
}

/* ── Guide-band: invito soft (guida) + CTA di conversione (contatto) ──
   Stessa fascia, pesi diversi: la CTA vera prende il bottone pieno
   (.strong), l'invito informativo resta un link con freccia. */
/* Fascia a tutta larghezza attorno a una guide-band, per darle uno sfondo
   proprio: il wrap interno resta centrato e stretto. */
.band-strip { background: var(--tint); padding: 8px 0 36px; }

/* Ultimi pubblicati: un elenco, non card. Le card facevano somigliare questa
   sezione alla griglia degli argomenti sopra; qui conta solo far vedere che
   il sito e' aggiornato, quindi data, titolo e categoria su una riga. */
.ultimi { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ultimi li { border-bottom: 1px solid var(--border); }
.ultimi a {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: baseline; gap: 20px;
  padding: 16px 4px; transition: background .15s;
}
.ultimi a:hover { background: var(--tint); }
.ultimi-data { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.ultimi-titolo { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.ultimi a:hover .ultimi-titolo { color: var(--gold-dark); }
.ultimi-tag { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 760px) {
  .ultimi a { grid-template-columns: 1fr; gap: 4px; padding: 14px 4px; }
  .ultimi-tag { order: -1; }
  .ultimi-data { order: 3; }
}
.guide-band-wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; display: flex; flex-direction: column; gap: 12px; }
/* Fascia messa fra due sezioni (29/09): l'aria non arriva piu' dal padding
   delle sezioni vicine, serve qui. */
.guide-band-wrap.is-top { margin: 44px auto; }
.guide-band { display: flex; align-items: center; gap: 18px; border: 1.5px solid rgba(212,175,55,.45); background: linear-gradient(135deg, rgba(212,175,55,.10), transparent 65%); border-radius: 12px; padding: 18px 22px; }
.guide-band-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.guide-band-txt { flex: 1 1 auto; }
.guide-band-txt b { display: block; font-size: .98rem; color: var(--navy); font-weight: 800; margin-bottom: 2px; }
.guide-band-txt span { font-size: .84rem; color: var(--text-muted); line-height: 1.45; }
.guide-band-cta { flex: 0 0 auto; color: var(--navy); text-decoration: none; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.guide-band-cta:hover { color: var(--gold-dark); }
.guide-band-cta.strong { background: var(--gold); color: var(--navy); border-bottom: none; padding: 11px 20px; border-radius: 8px; }
.guide-band-cta.strong:hover { background: var(--navy); color: var(--gold); }
@media (max-width: 680px) { .guide-band { flex-direction: column; align-items: flex-start; } }

/* ── page-hero, variante chiara (carta millimetrata) per pagine di riferimento ── */
.page-hero.light {
  background-color: #fcfdff;
  background-image:
    radial-gradient(ellipse 68% 78% at 50% 50%, rgba(252,253,255,.95) 0%, rgba(252,253,255,.82) 42%, rgba(252,253,255,0) 76%),
    repeating-linear-gradient(to right, rgba(0,33,71,.095) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(to bottom, rgba(0,33,71,.095) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(to right, rgba(0,33,71,.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(to bottom, rgba(0,33,71,.05) 0 1px, transparent 1px 7px);
  border-bottom: 1px solid var(--border);
}
.page-hero.light .page-hero-tag { color: var(--gold-dark); }
.page-hero.light h1 { color: var(--navy); }
.page-hero.light p { color: var(--text-muted); }
.page-hero.light p strong, .page-hero.light p b { color: var(--navy); }
.page-hero-updated { color: rgba(255,255,255,.55); font-size: .82rem; margin-top: 8px; }

.content-wide { max-width: 1100px; }

/* ── Pagine legali (privacy/cookie) ── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; line-height: 1.7; color: var(--text-muted); }
.legal-wrap h2 { color: var(--navy); font-size: 1.25rem; font-weight: 800; margin: 34px 0 12px; }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p { margin-bottom: 14px; }
.legal-wrap ul { margin: 0 0 16px 22px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap strong { color: var(--navy); }
.legal-wrap a { color: var(--gold-dark); font-weight: 600; }
.legal-box { background: var(--grey-bg); border-left: 3px solid var(--gold); border-radius: 6px; padding: 18px 20px; margin: 20px 0; }
.legal-box p { margin: 0; font-size: .95rem; }
table.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: .9rem; }
table.legal-table th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; font-weight: 700; }
table.legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* ── Offer grid (partner, tools): icona + tag + titolo + testo, opzionale link ── */
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-bottom: 22px; }
.offer-card { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 32px 26px 28px; }
a.offer-card { display: block; text-decoration: none; color: inherit; transition: border-color .18s, transform .18s, box-shadow .18s; }
a.offer-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,33,71,.09); }
.offer-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 16px; }
.offer-icon-circle {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 1.7rem; font-weight: 900; margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(212,175,55,.45);
}
.offer-tag { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }
.offer-card h2, .offer-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; line-height: 1.3; }
.offer-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0; }
.offer-more { display: block; margin-top: 14px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-dark); }
a.offer-card:hover .offer-more { text-decoration: underline; }
.offer-card.is-wip { border-style: dashed; opacity: .6; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } }

/* ── CTA box centrata (fondo pagina, invito unico) ── */
.cta-box { max-width: 760px; margin: 26px auto 0; background: var(--grey-bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 36px 32px; text-align: center; }
.cta-box h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.cta-box p { margin-bottom: 22px; font-size: .92rem; color: var(--text-muted); line-height: 1.6; }

/* ── Form (contatti e simili) ── */
.form-wrap { max-width: 600px; margin: 0 auto; padding: 48px 24px 80px; }
.steps { display: flex; gap: 0; margin-bottom: 48px; counter-reset: step; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--border); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; margin-bottom: 10px; flex-shrink: 0; }
.step-text { font-size: .78rem; color: var(--text-muted); line-height: 1.4; padding: 0 6px; }
.quiz-section { background: var(--grey-bg); border-radius: 12px; padding: 24px; margin-bottom: 32px; }
.quiz-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--navy); margin-bottom: 12px; display: block; }
.quiz-optional { font-size: .72rem; font-weight: 400; color: var(--text-light); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.check-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.check-group label { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text-muted); cursor: pointer; }
.check-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); flex-shrink: 0; }
.quiz-select { width: 100%; font-family: inherit; font-size: .92rem; color: var(--text-muted); padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; }
.quiz-select:focus { outline: none; border-color: var(--gold); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; font-family: inherit; font-size: .95rem; color: var(--text-muted); padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; transition: border-color .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 140px; }
.submit-btn { display: inline-block; background: var(--gold); color: var(--navy); border: none; padding: 14px 32px; border-radius: 8px; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background .2s; }
.submit-btn:hover { background: var(--navy); color: var(--gold); }
.privacy-note { font-size: .8rem; color: var(--text-light); line-height: 1.6; margin-bottom: 18px; max-width: 520px; }
.privacy-note a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); }
.privacy-note a:hover { color: var(--gold-dark); }
.alert { border-radius: 8px; padding: 16px 20px; margin-bottom: 24px; font-size: .92rem; font-weight: 600; }
.alert-success { background: rgba(212,175,55,.1); border: 1.5px solid var(--gold); color: var(--navy); }
.alert-error { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
.alt-contact { margin-top: 32px; font-size: .85rem; color: var(--text-light); text-align: center; }
.alt-contact a { color: var(--navy); font-weight: 700; text-decoration: none; }
.alt-contact a:hover { color: var(--gold-dark); }
@media (max-width: 600px) {
  .steps { flex-direction: column; gap: 16px; }
  .step:not(:last-child)::after { display: none; }
  .step { flex-direction: row; text-align: left; gap: 14px; }
  .step-num { margin-bottom: 0; }
}

/* ── Testo lungo con intertitoli (guide di riferimento) ── */
.prose { max-width: none; }
.prose h2 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin: 28px 0 10px; letter-spacing: -.2px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: .96rem; line-height: 1.7; color: var(--text-muted); }
.prose p + p { margin-top: 10px; }
.prose ol { padding-left: 22px; margin: 6px 0 12px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--navy); }
.prose a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.prose a:hover { color: var(--gold-dark); }

/* ── Tabella con ricerca lato client (settori, e in futuro registro download) ── */
.data-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.data-search label { font-size: .8rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; }
.data-search input { flex: 1 1 280px; max-width: 420px; font: inherit; font-size: .95rem; color: var(--navy); padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 20px; background: #fff; }
.data-search input:focus { outline: none; border-color: var(--navy); }
.data-count { font-size: .8rem; color: var(--text-muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; table-layout: fixed; }
.data-table td.h-tit { background: #fff; border: 1.5px solid var(--navy); padding: 12px 18px; text-align: center; }
.data-table td.h-tit h2 { font-size: 1.12rem; font-weight: 900; color: var(--navy); letter-spacing: -.3px; line-height: 1.25; }
.data-table td.h-tit span { display: block; font-size: .76rem; color: #6b7280; margin-top: 4px; }
.data-table th { background: #eef2f7; color: var(--navy); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2px; text-align: left; padding: 8px 10px; border: 1px solid var(--navy); border-bottom-width: 1.5px; }
.data-table td { padding: 7px 10px; border: 1px solid var(--navy); vertical-align: top; color: var(--text-muted); }
.data-table tbody tr:hover td { background: #fafcff; }
.data-table td.cod { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--navy); white-space: nowrap; }
.data-table td.desc { font-weight: 600; color: var(--navy); }
.data-table td.mono { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.data-table tr.sub td.cod { padding-left: 22px; }
.data-table tr.sub td.desc { font-weight: 500; color: var(--text-muted); }
.data-table tr.sub td.mono { color: var(--text-light); }
.data-table td.hit { background: #fbf3d9 !important; }
.data-table tbody tr:target td { background: #fbf3d9; }
.data-table td.nota { border: 1.5px solid var(--navy); background: #f8fafc; padding: 12px 16px; font-size: .8rem; color: #475569; line-height: 1.55; }
.data-table td.nota p + p { margin-top: 6px; }
.data-table td.nota b { color: var(--navy); }
.data-empty { display: none; padding: 14px 16px; border: 1.5px solid var(--navy); border-top: none; font-size: .88rem; color: var(--text-muted); }
@media screen and (max-width: 760px) {
  .data-table { table-layout: auto; }
  .data-table colgroup, .data-table thead tr.intest { display: none; }
  .data-table, .data-table thead, .data-table tbody, .data-table tfoot, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tbody tr { border: 1.5px solid var(--navy); border-top: none; padding: 8px 0; }
  .data-table tbody td { border: none; padding: 4px 16px; display: flex; gap: 10px; }
  .data-table tbody td::before { content: attr(data-label); flex: 0 0 34%; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding-top: 3px; }
  .data-table tr.sub td.cod { padding-left: 16px; }
}

/* ── Offer grid, variante a 2 colonne (highlight cards, es. lavora) ── */
.offer-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin-bottom: 22px; }
.offer-card.is-large { padding: 40px 34px; }
.offer-card.is-large .offer-icon { font-size: 2.2rem; }
@media (max-width: 900px) { .offer-grid-2 { grid-template-columns: 1fr; } }

/* ── Righe elenco (moduli, servizi): icona + corpo + stato/azione a destra ── */
.row-list { display: flex; flex-direction: column; gap: 14px; }
.row-item { display: flex; align-items: center; gap: 24px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 20px 28px; transition: border-color .2s; }
.row-item:hover { border-color: var(--gold); }
.row-icon { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; width: 36px; text-align: center; }
.row-body { flex: 1; }
.row-tag { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 4px; }
.row-body h2, .row-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.row-body p { font-size: .85rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.status-pill { flex-shrink: 0; display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px; border-radius: 20px; background: var(--grey-bg); color: var(--text-light); border: 1px solid var(--border); }
a.status-pill.is-live { background: var(--navy); color: var(--gold); border-color: var(--navy); text-decoration: none; white-space: nowrap; transition: opacity .15s; }
a.status-pill.is-live:hover { opacity: .85; }
@media (max-width: 700px) { .row-item { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ── Step grid (4 colonne, numero centrato) — diverso da .steps (flusso orizzontale con linea) ── */
.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.step-item { text-align: center; }
.step-item .step-num { margin: 0 auto 12px; }
.step-item h3 { font-size: .92rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.step-item p { font-size: .82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .step-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .step-grid { grid-template-columns: 1fr; } }

/* ── Tavolozza colori (esempi stile siti-web) ── */
.palette-swatches { display: flex; gap: 6px; margin-top: auto; }
.swatch { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }

/* ── FAQ ad accordion (guide lunghe tipo certificazione ISO 9001) ── */
.faq-scope { background: var(--grey-bg); padding: 64px 20px; display: flex; justify-content: center; }
.faq-wrap { width: 100%; max-width: 840px; }
.faq-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); font-size: .76rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 16px; }
.faq-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold); }
.faq-title { font-size: clamp(1.9rem,4vw,2.5rem); line-height: 1.15; color: var(--navy); font-weight: 900; letter-spacing: -.5px; margin-bottom: 14px; }
.faq-lead { color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; max-width: 60ch; margin-bottom: 14px; }
.faq-note { font-size: .82rem; color: var(--text-muted); border-left: 2px solid var(--gold); padding-left: 12px; margin-bottom: 40px; }
.faq-group { margin-bottom: 30px; }
.faq-group-label { font-size: .74rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); opacity: .55; margin-bottom: 12px; padding-left: 2px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; scroll-margin-top: 90px; transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: rgba(212,175,55,.5); }
.faq-item.open { border-color: var(--gold); box-shadow: 0 8px 30px -18px rgba(0,0,0,.25); }
.faq-q { width: 100%; text-align: left; cursor: pointer; background: none; border: none; font-family: 'Inter', sans-serif; color: var(--text); display: flex; align-items: center; gap: 18px; padding: 18px 20px; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.faq-ic { flex: 0 0 auto; position: relative; width: 22px; height: 22px; margin-left: auto; }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; background: var(--gold); border-radius: 2px; top: 50%; left: 50%; transition: transform .3s ease; }
.faq-ic::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq-ic::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq-item.open .faq-ic::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-num { flex: 0 0 auto; font-size: .95rem; color: var(--gold-dark); font-weight: 700; min-width: 22px; }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-a { padding: 0 20px 20px 60px; color: var(--text-muted); font-size: .96rem; line-height: 1.65; }
.faq-a p { margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--navy); font-weight: 700; }
.faq-a a { color: var(--gold-dark); text-decoration: none; border-bottom: 1px solid currentColor; }
.faq-a ul { padding-left: 20px; margin-bottom: 12px; }
.faq-a li { margin-bottom: 8px; }
.faq-a .faq-nota-piccola { font-size: .86rem; opacity: .85; border-left: 2px solid var(--gold); padding-left: 12px; }
.faq-table-wrap { overflow-x: auto; margin: 4px 0 14px; }
.faq-table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: .9rem; line-height: 1.4; }
.faq-table th, .faq-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: center; }
.faq-table th { background: var(--grey-bg); color: var(--text); font-weight: 700; }
.faq-table th:first-child, .faq-table td:first-child { text-align: left; }
.faq-table caption { caption-side: bottom; text-align: left; font-size: .8rem; padding-top: 6px; color: var(--text-muted); }
.faq-cta { margin-top: 6px; padding: 26px 24px; border-radius: 14px; background: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; }
.faq-cta p { color: #e8eef7; font-size: 1rem; line-height: 1.55; max-width: 52ch; margin: 0; }
.faq-cta p strong { color: #fff; }
.faq-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.faq-cta a { display: inline-block; text-decoration: none; font-weight: 800; font-size: .86rem; text-transform: uppercase; letter-spacing: .5px; padding: 12px 20px; border-radius: 10px; transition: transform .18s, background .2s, border-color .2s, color .2s; }
.faq-cta a.primary { background: var(--gold); color: var(--navy); }
.faq-cta a.primary:hover { background: #fff; transform: translateY(-2px); }
.faq-cta a.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.faq-cta a.ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
@media (max-width: 560px) { .faq-a { padding-left: 20px; } }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-row { flex-wrap: wrap; height: auto; padding: 8px 20px; display: none; }
  .nav-row.is-open { display: flex; }
  .mega-panel { position: static; box-shadow: none; }
  .navbar { flex-wrap: wrap; height: auto; padding: 16px 20px; gap: 16px; }
  /* Da telefono il menu bianco è chiuso: il filo oro separa la fascia blu dalle bande blu sotto. */
  .navbar { border-bottom: 3px solid var(--gold); }
  .value-props, .category-grid, .news-grid, .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { padding: 0 24px; max-width: 100%; }
  .promo { flex-direction: column; }
  .promo-visual { width: 100%; }
  .promo-demo { width: 100%; }
  .mega-articoli { flex-direction: column; }
  .mega-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .flyout-col { columns: 1; }
  .showcase-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .showcase-card h4 { white-space: normal; }
  .mega-simple-list { columns: 1; }
}

/* ── Portato da _inc/site-nav.css (26/09/2026): la scroll-fade-in della
   pagina reale usa queste classi via IntersectionObserver (footer_new.php).
   Senza queste regole il JS aggiunge le classi ma non si vede nulla. ── */
.scroll-fade {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.scroll-fade.in-view {
    opacity: 1;
    transform: none;
}
.scroll-fade:nth-child(2) { transition-delay: 0.08s; }
.scroll-fade:nth-child(3) { transition-delay: 0.16s; }
.scroll-fade:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .scroll-fade { opacity: 1; transform: none; transition: none; }
}
