/* =========================================================================
   AlbaSoftware - foglio di stile unico
   Layout: barra utility + testata scura con menu orizzontale a tendina,
   fascia hero, contenuto a due colonne con barra news laterale, footer scuro.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #f2f5f7;
  --dark: #061524;
  --dark-2: #0c243d;
  --dark-3: #1b3d61;
  --ink: #2b323a;
  --ink-2: #5d6873;
  --ink-3: #8b959f;
  --rule: #e3e8ec;
  --rule-strong: #cfd6dd;
  /* Palette azzurro/blu ripresa dall'interfaccia di Geod XP.
     --accent      colore pieno dei pulsanti e dei fondi
     --accent-hover  variante scura per i testi-collegamento su fondo chiaro
     --accent-light  variante chiara per gli elementi su fondo scuro */
  --accent: #1a78cc;
  --accent-hover: #145fa3;
  --accent-light: #5fb0f5;
  --accent-soft: #e9f3fc;
  --on-accent: #ffffff;
  --warn: #d97b2f;

  /* fasce scure (testata, hero, footer): sfumatura dal blu al blu notte */
  --dark-gradient: linear-gradient(160deg, #0e2c4b 0%, #08192b 72%, #050f1b 100%);

  /* colore del marchio Alb@Software: azzurro/blu coordinato a Geod XP */
  --logo: #4da3ff;
  --logo-hover: #85c3ff;

  --wrap: 1240px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 40, 0.06);
  --shadow: 0 6px 24px rgba(20, 30, 40, 0.09);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.9rem;
  --text-3xl: 2.4rem;

  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg-alt);
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0; font-weight: 600; }
h1 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-md); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15rem; }
li { margin-bottom: var(--space-2); }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Barra utility ------------------------------------------------------- */
.utility {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.utility__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5);
  min-height: 40px; display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
}
.utility__spacer { flex: 1 1 auto; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--accent); text-decoration: none; }
.utility strong { color: #fff; font-weight: 600; }
.utility__item { display: inline-flex; align-items: center; gap: 6px; }
.utility svg { width: 14px; height: 14px; flex: none; }
/* Etichette alternative: la variante breve compare solo sui piccoli schermi */
.utility__only-sm { display: none; }

/* --- Testata con menu orizzontale --------------------------------------- */
.site-header {
  /* Il prefisso -webkit- serve a Safari su iOS 12 e precedenti (e ad alcuni
     browser dentro le app): senza di esso position:sticky viene ignorata e la
     testata scorre via con la pagina invece di restare in alto. */
  position: -webkit-sticky; position: sticky; top: 0; z-index: 60;
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5);
  display: flex; align-items: center; gap: var(--space-5); min-height: 74px;
}
/* Marchio Alb@Software: SVG ricavato dall'originale, colorato via currentColor */
.wordmark {
  display: inline-flex; align-items: center; text-decoration: none; flex: none;
  color: var(--logo); transition: color 0.18s ease;
}
.wordmark:hover { text-decoration: none; opacity: 0.82; }
.wordmark img, .wordmark svg { display: block; height: 33px; width: auto; }
.wordmark--footer img, .wordmark--footer svg { height: 38px; }

.mainnav { margin-left: auto; }
.mainnav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav__list > li { position: relative; margin: 0; display: flex; align-items: center; }
.mainnav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 26px 13px; color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-head); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0;
  cursor: pointer; font-family: var(--font-head);
}
.mainnav__link:hover,
.mainnav__link:focus-visible { color: #fff; text-decoration: none; }
.mainnav__list > li:hover > .mainnav__link,
.mainnav__list > li.is-attiva > .mainnav__link,
.mainnav__link[aria-current='page'],
.mainnav__link[aria-expanded='true'] { color: #fff; }

/* Indicatore verde: una sola barra continua sotto tutta la voce di menu.
   Sta sull'<li> e non sui singoli elementi (link + freccia), cosi' la linea
   resta unica e allineata al bordo superiore del pannello a tendina. */
.mainnav__list > li::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.18s ease; pointer-events: none;
}
.mainnav__list > li:hover::after,
.mainnav__list > li:focus-within::after,
.mainnav__list > li.is-attiva::after { transform: scaleX(1); }
.mainnav__caret { width: 10px; height: 10px; opacity: 0.7; }
.mainnav__link--toggle { padding-left: 0; padding-right: 12px; margin-left: -10px; }

.mainnav__panel {
  position: absolute; top: 100%; left: 0; min-width: 262px;
  white-space: nowrap;
  background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--accent);
  box-shadow: var(--shadow); padding: var(--space-3) 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.mainnav__list > li:hover > .mainnav__panel,
.mainnav__list > li:focus-within > .mainnav__panel { opacity: 1; visibility: visible; transform: none; }
.mainnav__panel p {
  margin: var(--space-2) 0 4px; padding: 0 var(--space-5);
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.mainnav__panel a {
  display: block; padding: 7px var(--space-5); color: var(--ink); font-size: var(--text-sm);
}
.mainnav__panel a:hover { background: var(--surface-2); color: var(--accent-hover); text-decoration: none; }
.mainnav__panel a[aria-current='page'] { color: var(--accent-hover); font-weight: 600; }

.header-cta {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px var(--space-5); border: 1px solid var(--accent); background: var(--accent);
  color: var(--on-accent); border-radius: var(--radius);
  font-family: var(--font-head); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.header-cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); text-decoration: none; }

.icon-btn {
  flex: none; width: 38px; height: 38px; display: none; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff;
  border-radius: var(--radius); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--dark-2);
  color: #fff;
  border-bottom: 3px solid var(--accent);
  background-image:
    radial-gradient(circle at 82% 18%, rgba(47, 146, 230, 0.32), transparent 58%),
    var(--dark-gradient);
}
.hero__inner { padding: var(--space-8) var(--space-5); max-width: var(--wrap); margin: 0 auto; }
/* Titolo della fascia: una sola misura per tutte le pagine, fluida.

   clamp() prende il valore centrale e lo tiene fra i due estremi. Il centrale
   cresce con la larghezza della finestra (1vw = un centesimo di essa), quindi
   il titolo si adatta senza gradini: 38,4 px da 1200 px di finestra in su,
   34,6 px a 900, 31 px a 620, 28 px sul telefono, dove si ferma.

   Due conti per capire i numeri: a 1200 px di finestra 23,04 + 1,28 % di 1200
   fa esattamente 38,4 px, cioe' la misura che le pagine principali hanno
   sempre avuto; a 390 px fa 28 px, cioe' il minimo. In mezzo la crescita e'
   continua.

   Questa regola governa da sola tutti i titoli delle fasce: le regole
   generali su h1 dentro le media query hanno specificita' piu' bassa e
   riguardano quindi soltanto i titoli nel corpo delle pagine. */
.hero h1 {
  color: #fff;
  max-width: 20ch;
  font-size: clamp(1.75rem, 1.44rem + 1.28vw, 2.4rem);
}
.hero .lead { color: rgba(255, 255, 255, 0.82); font-size: var(--text-md); max-width: 60ch; margin-top: var(--space-4); }
.hero .eyebrow { color: var(--accent); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); align-items: center; }
.hero__shot {
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); padding: var(--space-3); box-shadow: var(--shadow);
}
.hero__shot img { width: 100%; border-radius: 2px; }
.hero__checks { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.hero__checks li {
  display: flex; gap: 10px; align-items: flex-start;
  color: rgba(255, 255, 255, 0.86); padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}
.hero__checks svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 4px; }
.hero--compact .hero__inner { padding: var(--space-7) var(--space-5); }
/* La fascia compatta conserva la spaziatura ridotta e la riga piu' lunga, ma
   non piu' un corpo del titolo proprio: la misura e' quella di tutte le altre
   pagine. La larghezza massima resta 26ch perche' con lo stesso corpo una riga
   piu' corta spezzerebbe questi titoli su tre righe. */
.hero--compact h1 { max-width: 26ch; }

.eyebrow {
  font-family: var(--font-head); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hover);
  margin: 0 0 var(--space-3);
}
.breadcrumb { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.6); margin: 0 0 var(--space-3); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.page-head__logo {
  background: #eef3f9; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 10px 16px;
  box-shadow: 0 10px 24px rgba(3, 14, 26, 0.28);
  margin-bottom: var(--space-4); max-height: 58px; width: auto;
}

/* --- Struttura a due colonne -------------------------------------------- */
.layout {
  max-width: var(--wrap); margin: 0 auto; padding: var(--space-7) var(--space-5) var(--space-8);
  display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: var(--space-7); align-items: start;
}
.content {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--space-7); box-shadow: var(--shadow-sm);
}
.rail {
  display: flex; flex-direction: column; gap: var(--space-5);
  position: -webkit-sticky; position: sticky; top: 96px;
}

/* --- Barra news laterale ------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.card__title {
  font-family: var(--font-head); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--rule);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--accent { border-left: 3px solid var(--accent); }
.card--dark { background: var(--dark-2); border-color: var(--dark-3); color: rgba(255, 255, 255, 0.82); }
.card--dark .card__title { color: var(--accent); border-bottom-color: rgba(255, 255, 255, 0.14); }
.card--dark a { color: #fff; }
.card--dark strong { color: #fff; }

.rail-news { list-style: none; margin: 0; padding: 0; }
.rail-news li { margin: 0; padding: var(--space-4) 0; border-bottom: 1px dashed var(--rule); }
.rail-news li:first-child { padding-top: 0; }
.rail-news li:last-child { border-bottom: 0; padding-bottom: 0; }
.rail-news time {
  display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hover); font-weight: 700; margin-bottom: 3px;
}
.rail-news h3 { font-size: var(--text-sm); line-height: 1.4; margin-bottom: 5px; }
.rail-news p { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }
.rail-news a { color: inherit; }

.vcard { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.7; }
.vcard strong { display: block; color: var(--ink); font-family: var(--font-head); margin-bottom: 4px; }
.vcard dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); margin: var(--space-3) 0 0; }
.vcard dt { color: var(--ink-3); }
.vcard dd { margin: 0; }

/* --- Contenuto ----------------------------------------------------------- */
.section { margin-bottom: var(--space-7); }
.section:last-child { margin-bottom: 0; }
.section > h2 {
  padding-bottom: var(--space-3); margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.section > h2::after {
  content: ''; display: block; width: 46px; height: 2px; background: var(--accent);
  margin-top: var(--space-3); margin-bottom: -13px;
}
.lead { font-size: var(--text-md); color: var(--ink-2); }
.note { font-size: var(--text-sm); color: var(--ink-3); }
.content > .page-intro { margin-bottom: var(--space-6); }

.list-2 { columns: 2; column-gap: var(--space-7); }
.list-2 li { break-inside: avoid; }

.spec { font-size: var(--text-sm); margin-bottom: var(--space-4); }
.spec caption { text-align: left; color: var(--ink-3); font-size: var(--text-xs); padding-bottom: var(--space-2); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 11px var(--space-4) 11px 0; border-bottom: 1px solid var(--rule); }
.spec th { width: 32%; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.spec td { color: var(--ink-2); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }

.tile {
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--space-5);
}
.tile h3 { margin-bottom: var(--space-2); }
.tile p:last-child { margin-bottom: 0; }
.tile p { font-size: var(--text-sm); color: var(--ink-2); }
.tile__tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-hover); margin-bottom: var(--space-2);
}

/* elenco news nelle pagine di contenuto */
.news-item { padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
.news-item:first-of-type { padding-top: 0; }
.news-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.news-item h2 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.news-item p { font-size: var(--text-sm); }
.news-item p:last-child { margin-bottom: 0; }
.news-item__meta {
  font-family: var(--font-head); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-hover);
  margin: 0 0 var(--space-2);
}
/* Notizia con icona (pagina News): riquadro grigio a sinistra, testo a destra.
   Stessa colonna di 132px usata nel paragrafo "Novita' e notizie" della home,
   cosi' le due pagine restano allineate. */
.news-item--icona {
  display: grid; grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--space-5); align-items: start;
}
.news-item--icona .news__figure { margin-top: 4px; }

/* blocchi descrittivi con titolo di terzo livello */
.feature { padding: var(--space-5) 0; border-bottom: 1px dashed var(--rule); }
.feature:last-child { border-bottom: 0; padding-bottom: 0; }
.feature h3 { margin-bottom: var(--space-2); }
.feature p { font-size: var(--text-sm); }
.feature p:last-child { margin-bottom: 0; }
.feature ul { font-size: var(--text-sm); }

.product__meta { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-2); }
.news__figure {
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: var(--space-4); height: fit-content;
}
.news__figure img { max-width: 100%; height: auto; }
/* Marchi dei sistemi operativi supportati */
.news__figure--loghi { flex-direction: column; gap: var(--space-4); }
.marchio-os { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.marchio-os img { width: 34px; height: 34px; }
/* le icone disegnate restano in scala con i loghi dei prodotti */
.news__figure img[src*="icona-"] { width: 52px; height: 52px; }
/* i marchi dei sistemi operativi sono pieni, quindi "pesano" piu' delle icone
   disegnate: alla stessa misura sembrerebbero piu' grandi (vedi .marchio-os) */
.news__figure img[src*="windows"] { width: 34px; height: 34px; }
/* logo Privacy XP: sfrutta anche il margine interno del riquadro */
.news__figure img[src*="logoPrivacyXP"] { width: 112%; max-width: 112%; }
/* logo Geod Image: leggermente piu' grande negli elenchi prodotti */
.product__logo img[src*="logoGeodImage"] { width: 108%; max-width: 108%; }
.marchio-os figcaption {
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; white-space: nowrap;
}

.news__item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--space-5); margin-bottom: var(--space-6); }
.news__item:last-child { margin-bottom: 0; }
.news__thumb {
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: var(--space-4); height: fit-content;
}
.news__item h3 { margin-bottom: var(--space-2); }
.news__item p { font-size: var(--text-sm); }

.product { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--space-5); padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
.product:last-of-type { border-bottom: 0; }
.product__logo {
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: var(--space-4); height: fit-content;
}
.product h3 { margin-bottom: 2px; }
.product .kicker { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-2); }
.product p { font-size: var(--text-sm); }

/* Galleria "Schermate del programma": due colonne dalla rev. 8.11 (prima
   tre), cosi' ogni schermata passa da circa 240 a circa 370 px; sotto 480 px
   una colonna sola. Il clic apre la schermata a tutto schermo
   (js/ingrandimento.js). */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.shots figure { margin: 0; }
.shots img { width: 100%; border: 1px solid var(--rule); border-radius: 2px; background: var(--surface-2); }
.shots figcaption { font-size: var(--text-xs); color: var(--ink-3); margin-top: 6px; }
@media (max-width: 480px) {
  .shots { grid-template-columns: minmax(0, 1fr); }
}

.band {
  background: var(--dark-2); color: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius); padding: var(--space-6); margin: var(--space-7) 0 0;
  border-left: 3px solid var(--accent);
}
.band h2 { color: #fff; margin-bottom: var(--space-3); }
.band a { color: #fff; }
.band p:last-child { margin-bottom: 0; }
.band + .section { margin-top: var(--space-7); }

.arrow-link { font-weight: 600; font-size: var(--text-sm); }
.arrow-link::after { content: ' \2192'; }

.page-head { margin-bottom: var(--space-6); }

/* --- Bottoni ------------------------------------------------------------- */
.btn {
  /* justify-content centra il contenuto quando il bottone viene allargato
     (banner dei cookie sul telefono, dove i due bottoni si dividono la riga):
     essendo un contenitore flex, text-align da solo non basta */
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 12px var(--space-5); border-radius: var(--radius);
  font-family: var(--font-head); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.03em;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.btn__icon { width: 15px; height: 15px; flex: none; }
.btn-note { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--ink-2); }

/* --- Modulo -------------------------------------------------------------- */
.form { margin-top: var(--space-5); }
.form--stretta { max-width: 460px; }
.field { margin-bottom: var(--space-4); }
.field-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field label, .field > span, .form label {
  display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.form input[type='text'], .form input[type='email'], .form input[type='tel'],
.form input[type='password'], .form select, .form textarea {
  width: 100%; padding: 11px var(--space-4);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: inherit;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: var(--space-4) 0 var(--space-5); }
.check span, .check label {
  font-size: var(--text-sm); text-transform: none; letter-spacing: 0; font-weight: 400;
  color: var(--ink-2); margin: 0;
}
.check input[type='checkbox'] { margin-top: 4px; }
.form .label-normale, .field label.label-normale, .field-desideri legend.label-normale {
  display: block; font-family: inherit; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
/* interlinea prima della nota finale del modulo */
.form > .note { margin-top: var(--space-5); }
.field-desideri { border: 0; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
.field-desideri legend, .field-desideri > .label-normale { padding: 0; margin-bottom: 8px; display: block; }
.check--lista { margin: 0 0 6px; }
.check-list label {
  display: inline; font-size: var(--text-sm); font-weight: 400; text-transform: none;
  letter-spacing: 0; color: var(--ink-2); margin: 0 0 0 8px;
}
.check-list input[type='checkbox'] { margin: 0; }
.check-list > span { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 6px; }

.field-error { display: block; color: #c0392b; font-size: var(--text-sm); margin-top: 4px; }
.form-status {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-size: var(--text-sm);
}
.form-status--errore { border-left-color: #c0392b; background: rgba(192, 57, 43, 0.09); color: var(--ink); }
.form-status--errore ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); color: #c0392b; }
.form-status--errore ul li { margin: 0; }
.form-status--ok { border-left-color: #1f7a3f; background: rgba(31, 122, 63, 0.08); }
/* Il riquadro di convalida compare solo quando ha davvero degli errori. */
.form-status:empty { display: none; }
.form-status + .btn-row { margin-top: var(--space-4); }

/* --- Area riservata: elenchi compatti di Clienti e licenze --------------- */
/* Una riga per Cliente e una riga per licenza: testo piu' piccolo, celle
   strette, colonne con larghezza fissa e troncamento con i puntini. */
/* Le note di servizio (accesso eseguito, esito dell'operazione) stanno una
   subito dopo l'altra; lo spazio si lascia solo prima del titolo, grazie alla
   classe .blocco-gestione applicata ai riquadri che iniziano con un titolo. */
.barra-utente { margin-bottom: var(--space-2); }
.blocco-gestione { margin-top: var(--space-6); }

.spec--compatta { width: 100%; table-layout: fixed; font-size: 0.78rem; }
.spec--compatta th, .spec--compatta td {
  padding: 7px var(--space-3) 7px 0; vertical-align: middle; white-space: nowrap;
}
.spec--compatta th { width: auto; font-size: 0.72rem; letter-spacing: 0.02em; }
.spec--compatta tr:last-child td { border-bottom: 1px solid var(--rule); }
.spec--compatta .tronca { overflow: hidden; text-overflow: ellipsis; }
.spec--compatta .scaduto { color: #c0392b; }

.tabella-clienti .col-ragsoc { width: 25%; }
.tabella-clienti .col-utente { width: 15%; }
.tabella-clienti .col-gruppo { width: 12%; }
.tabella-clienti .col-help { width: 13%; }
.tabella-clienti .col-scadenza { width: 13%; }
.tabella-clienti .col-numero { width: 9%; text-align: right; }
.tabella-clienti .col-oper { width: 62px; text-align: right; padding-right: 0; }

/* Programma, pacchetto e tipo stanno in una sola colonna "Licenza": quando la
   descrizione non ci sta viene accorciata con i puntini (classe "tronca") e
   resta leggibile per intero nel suggerimento del mouse. */
.tabella-licenze .col-licenza { width: 20%; }
/* Anche versione e postazione si accorciano con i puntini se non ci stanno. */
.tabella-licenze .col-versione { width: 10%; overflow: hidden; text-overflow: ellipsis; }
/* Il numero di serie va mostrato per intero: e' il dato che si ricopia. */
.tabella-licenze .col-serie { width: 15%; }
.tabella-licenze .col-scadenza { width: 10%; }
/* "Postazione" ha bisogno di 14%: sotto questa misura la sua stessa intestazione
   (65 px di testo piu' 12 px di spazio a destra) sborda sotto "AddInPack". */
.tabella-licenze .col-pc { width: 14%; }
/* Colonna dell'AddInPack: una licenza puo' avere fino a sette servizi attivi, ma
   la larghezza resta contenuta per non invadere la colonna "Postazione" che la
   precede. Se non ci stanno su una riga le pastiglie vanno a capo dentro la
   cella, cosi' non se ne perde nessuna. */
.tabella-licenze .col-addin { width: 20%; white-space: normal; line-height: 1.7; }
.tabella-licenze .col-oper { width: 62px; text-align: right; padding-right: 0; }

/* Icone delle operazioni al posto delle etichette Modifica/Elimina. */
.azione {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-left: 2px; border-radius: var(--radius);
  color: var(--ink-2); text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.azione:hover, .azione:focus-visible { background: var(--accent-soft); color: var(--accent-hover); }
.azione--elimina:hover, .azione--elimina:focus-visible { background: rgba(192, 57, 43, 0.1); color: #c0392b; }
.azione .icona { display: block; }

/* Testo riservato agli screen reader. */
.solo-lettori {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Pastiglie dei servizi AddInPack (SMS, WhatsApp, XML). */
.pastiglia {
  display: inline-block; margin: 0 2px 2px 0; padding: 1px 5px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface-2);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2);
}
.pastiglia--scaduta { border-color: rgba(192, 57, 43, 0.5); color: #c0392b; }
.pastiglia--vuoto { border: 0; background: none; color: var(--ink-3); font-weight: 400; }

/* Titolo di una sezione dentro una scheda (per esempio AddInPack). */
.titolo-sezione {
  margin: var(--space-6) 0 var(--space-2); padding-top: var(--space-4);
  border-top: 1px solid var(--rule); font-size: var(--text-sm);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}

/* Contenitore degli elenchi compatti: su schermo stretto scorre in orizzontale
   invece di schiacciare le colonne o mandarle a capo. */
/* Lo scorrimento orizzontale resta dentro il riquadro e non viene passato alla
   pagina: su Chrome per Android il trascinamento laterale propagato faceva
   scomparire la testata incollata in alto (rev. 8). */
.tabella-scorrevole {
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
@media (max-width: 860px) {
  .tabella-scorrevole .spec--compatta { white-space: nowrap; }
  .tabella-scorrevole .tabella-clienti { min-width: 660px; }
  .tabella-scorrevole .tabella-licenze { min-width: 980px; }
}

/* --- Footer -------------------------------------------------------------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.66); font-size: var(--text-sm); }
.footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: var(--space-8) var(--space-5) var(--space-6);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--space-6);
}
.footer h2 {
  color: #fff; font-size: var(--text-xs); letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--space-2); }
.footer a { color: rgba(255, 255, 255, 0.78); }
.footer a:hover { color: var(--accent); text-decoration: none; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: var(--wrap); margin: 0 auto; padding: var(--space-4) var(--space-5) var(--space-6);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--text-xs); color: rgba(255, 255, 255, 0.45);
}

/* --- Comparsa graduale --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .mainnav__link { padding: 26px 9px; letter-spacing: 0.06em; }
  .layout { grid-template-columns: minmax(0, 1fr) 268px; gap: var(--space-5); }
}

@media (max-width: 1024px) {
  .icon-btn { display: inline-flex; }
  .header-cta { display: none; }
  .site-header__inner { min-height: 64px; gap: var(--space-3); }
  .mainnav { margin-left: auto; }
  .mainnav__list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark-2); border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 64px); overflow-y: auto; padding: var(--space-3) 0;
  }
  .mainnav.is-open .mainnav__list { display: flex; }
  .mainnav__list > li { flex-wrap: wrap; }
  .mainnav__link { padding: 12px var(--space-5); flex: 1 1 auto; border-bottom: 0; }
  .mainnav__link--toggle { flex: 0 0 auto; margin-left: 0; padding: 12px var(--space-5); }
  .mainnav__panel { flex: 1 0 100%; }
  .mainnav__list > li::after { display: none; }
  .mainnav__link[aria-current='page'],
  .mainnav__list > li.is-attiva > .mainnav__link { color: var(--accent); }
  .mainnav__panel {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    white-space: normal; min-width: 0;
    box-shadow: none; border: 0; border-left: 2px solid var(--accent); border-radius: 0;
    background: rgba(255, 255, 255, 0.04); margin: 0 var(--space-5) var(--space-3);
  }
  .mainnav__panel a { color: rgba(255, 255, 255, 0.82); }
  .mainnav__panel a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
  .mainnav__panel p { color: rgba(255, 255, 255, 0.5); }
  .mainnav__link[aria-expanded='true'] + .mainnav__panel { display: block; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}

@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  .content { padding: var(--space-5); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utility__inner { gap: var(--space-3); }
  .utility__hide-sm { display: none; }
  .utility__only-sm { display: inline-flex; }
}

/* Barra utility sui telefoni: le tre voci restano su una sola riga
   (icona del telefono + numero, Assistenza, Informazioni) */
@media (max-width: 560px) {
  .utility { letter-spacing: 0.02em; }
  .utility__inner {
    flex-wrap: nowrap; gap: 10px;
    padding-left: var(--space-4); padding-right: var(--space-4);
  }
  .utility__item { white-space: nowrap; }
}

@media (max-width: 620px) {
  h1 { font-size: 1.7rem; }
  .hero__inner, .hero--compact .hero__inner { padding: var(--space-6) var(--space-5); }
  .layout { padding: var(--space-5) var(--space-4) var(--space-7); }
  .list-2 { columns: 1; }
  .grid-2, .grid-3, .field-2 { grid-template-columns: minmax(0, 1fr); }
  .news__item, .product { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .news-item--icona { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .canali { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* su schermi stretti il riquadro e' largo: i due marchi stanno affiancati */
  .news__figure--loghi { flex-direction: row; gap: var(--space-7); }
  /* su mobile il riquadro e' largo: icone e marchi tornano alla misura piena */
  .marchio-os img { width: 44px; height: 44px; }
  .news__figure img[src*="icona-"] { width: 64px; height: 64px; }
  .news__figure img[src*="windows"] { width: 42px; height: 42px; }
  .news__figure img[src*="logoPrivacyXP"] { width: auto; max-width: 100%; }
  .news__thumb, .product__logo { max-width: 150px; }
  /* Le schede tecniche (due colonne) vanno a capo; gli elenchi compatti no:
     quelli scorrono in orizzontale dentro .tabella-scorrevole. */
  .spec:not(.spec--compatta) th, .spec:not(.spec--compatta) td { display: block; width: 100%; padding-right: 0; }
  .spec:not(.spec--compatta) th { border-bottom: 0; padding-bottom: 2px; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .wordmark img, .wordmark svg { height: 23px; }
}

/* =========================================================================
   Palette azzurro/blu — varianti chiare sui fondi scuri
   Sui fondi scuri (testata, hero, fascia, footer, riquadri scuri) l'azzurro
   pieno risulterebbe spento: qui si usa la variante --accent-light.
   ========================================================================= */
.utility a:hover { color: var(--accent-light); }
.icon-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }
.mainnav__list > li::after { background: var(--accent-light); }
.hero { border-bottom-color: var(--accent-light); }
.hero .eyebrow { color: var(--accent-light); }
.hero__checks svg { color: var(--accent-light); }
.card--dark .card__title { color: var(--accent-light); }
.card--dark a { color: var(--accent-light); }
.band a { color: var(--accent-light); }
.footer a:hover { color: var(--accent-light); }

/* La fascia scura e il footer riprendono la sfumatura blu del fondo pagina */
.band { background-image: linear-gradient(135deg, #10314f 0%, #0a1c2e 65%); }
.footer {
  background-image: linear-gradient(180deg, #06182b 0%, #000000 100%);
  border-top: 1px solid rgba(125, 190, 255, 0.18);
}

/* Schermata di Geod XP nell'hero: cornice piu' contenuta e ombra piu' netta */
.hero__shot {
  border-color: rgba(125, 190, 255, 0.28);
  background: rgba(10, 40, 70, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* Logo Geod Sync su fondo trasparente: nessun riquadro bianco attorno */
.product__logo img[src*="GeodSync"],
.news__figure img[src*="GeodSync"] { background: transparent; mix-blend-mode: normal; }

/* --- Carosello delle schermate (home page) ------------------------------- */
.carousel { position: relative; }
.carousel__viewport {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px;
  background: rgba(0, 0, 0, 0.25);
}
.carousel__slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity 600ms ease, visibility 600ms;
}
.carousel__slide.is-active { opacity: 1; visibility: visible; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.carousel__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  font-family: var(--font-head); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.02em; color: #fff;
  background: linear-gradient(180deg, rgba(4, 16, 29, 0) 0%, rgba(4, 16, 29, 0.86) 100%);
}
.carousel__dots {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-top: 12px; min-height: 10px;
}
/* Barra sotto la schermata (rev. 8.11): la didascalia esce dall'immagine e si
   allinea ai pallini, cosi' la schermata resta tutta visibile, senza la
   sfumatura scura sul bordo inferiore. La barra la crea main.js; senza
   JavaScript la didascalia resta sopra l'immagine come prima.
   Tre colonne: didascalia a sinistra, pallini al centro, a destra lo spazio
   del riquadro con il marchio (.hero-slider__marchio) nella home. */
.carousel__barra {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: var(--space-3); margin-top: 10px; min-height: 22px;
}
.carousel__barra .carousel__dots { margin-top: 0; }
.carousel__didascalia {
  margin: 0; font-family: var(--font-head); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.02em; line-height: 1.3; color: #fff;
  transition: opacity 300ms ease;
}
.carousel__didascalia.is-cambio { opacity: 0; }
.carousel.has-barra .carousel__slide figcaption {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; background: none;
}
.carousel__dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.55); background: transparent;
  transition: background-color 200ms ease, transform 200ms ease;
}
.carousel__dot:hover { background: rgba(255, 255, 255, 0.45); }
.carousel__dot.is-active { background: var(--accent-light); border-color: var(--accent-light); transform: scale(1.25); }
.carousel__dot:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: none; }
}

/* --- Elenco dei documenti scaricabili ------------------------------------ */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list li { margin: 0; }
.doc-list a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.doc-list a:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.doc-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.doc-list strong { display: block; font-family: var(--font-head); font-size: var(--text-sm); }
.doc-list span { display: block; color: var(--ink-3); font-size: var(--text-xs); }

/* --- Cronologia degli aggiornamenti -------------------------------------- */
.rel-year {
  font-family: var(--font-head); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  margin: var(--space-6) 0 var(--space-3); padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.rel-year:first-child { margin-top: 0; }
.rel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rel-item {
  display: grid; grid-template-columns: 128px 1fr auto; gap: var(--space-4); align-items: start;
  padding: 14px 16px; border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
}
.rel-item__meta { font-size: var(--text-xs); color: var(--ink-3); }
.rel-item__meta time { display: block; font-weight: 600; color: var(--ink-2); }
.rel-item h3 { font-size: var(--text-md); margin: 0 0 4px; }
.rel-item h3 .rel-ver {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-hover);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em;
}
.rel-item p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }
.rel-item__dl { white-space: nowrap; }
.rel-item__dl .btn { padding: 8px 14px; font-size: var(--text-xs); }
.rel-item__dl .note { margin: 0; font-size: var(--text-xs); }
@media (max-width: 760px) {
  .rel-item { grid-template-columns: 1fr; gap: 8px; }
}

/* Collegamenti legali nel footer */
.footer__legal-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer__legal-links a { color: rgba(255, 255, 255, 0.62); }
.footer__legal-links a:hover { color: var(--accent-light); }
.doc-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .doc-list--2 { grid-template-columns: 1fr; } }

/* --- Mappa della sede (pagina Contatti) --------------------------------- */
.mappa { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.mappa { margin-top: var(--space-5); position: relative; }
.mappa iframe { display: block; width: 100%; height: 320px; border: 0; }
/* Etichetta della mappa scritta da noi: la mappa gratuita di Google mostra il
   segnaposto alle coordinate richieste (Via Pio X, 5 = plus code H8MM+P4) ma
   non permette di scegliere il testo del fumetto, che riporterebbe il codice.
   Il riquadro qui sotto e' quindi HTML nostro, sovrapposto in alto a sinistra. */
.mappa__etichetta {
  position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px);
  margin: 0; padding: 10px 14px; background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 2px 8px rgba(6, 21, 36, 0.28);
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-sm);
  line-height: 1.3; pointer-events: none;
}
.mappa__etichetta span {
  display: block; margin-top: 3px; font-family: var(--font-body);
  font-weight: 400; font-size: var(--text-xs); color: var(--ink-2);
}
@media (max-width: 620px) {
  .mappa iframe { height: 240px; }
  .mappa__etichetta { top: 8px; left: 8px; padding: 8px 10px; }
}

/* Riquadro mostrato al posto della mappa finche' il visitatore non la chiede:
   stessa altezza dell'iframe, cosi' il caricamento non fa saltare la pagina.
   Il testo spiega che il contenuto arriva da Google (linee guida cookie). */
.mappa--attesa { background: var(--surface-2); }
.mappa__invito {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: var(--space-2);
  min-height: 320px; padding: var(--space-5) var(--space-5);
}
.mappa__invito p { margin: 0; max-width: 62ch; font-size: var(--text-sm); color: var(--ink-2); }
.mappa__invito-titolo {
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-md);
  color: var(--ink) !important;
}
.mappa__invito .btn { margin-top: var(--space-2); }
@media (max-width: 620px) {
  .mappa__invito { min-height: 240px; padding: var(--space-4); }
}

/* --- Banner del consenso ai cookie statistici ----------------------------
   Compare in basso, sopra al contenuto, solo nelle pagine che hanno qualcosa
   da consentire (Google Analytics o la mappa) e solo alla prima visita. */
.consenso {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface); border-top: 1px solid var(--rule);
  box-shadow: 0 -6px 24px rgba(6, 21, 36, 0.14);
}
.consenso__inner {
  max-width: var(--wrap); margin: 0 auto; padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-5);
}
.consenso__testo p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.consenso__titolo {
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-md);
  color: var(--ink) !important; margin-bottom: 4px !important;
}
.consenso__azioni { display: flex; flex: none; gap: var(--space-3); }
@media (max-width: 860px) {
  .consenso__inner { flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .consenso__azioni { flex-wrap: wrap; }
  .consenso__azioni .btn { flex: 1 1 auto; }
}

/* --- Canali di messaggistica (Soluzioni: invio SMS e WhatsApp) -----------
   Stessa impaginazione del blocco .product: riquadri a sinistra, testo a destra. */
.canali { display: grid; gap: var(--space-3); align-content: start; }
.canale {
  display: flex; align-items: center; gap: 10px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--radius);
}
.canale img { width: 30px; height: 30px; flex: none; }
/* Il fumetto dell'icona SMS e' piu' largo che alto: dentro un riquadro di 30 px
   il disegno arriva a 27,8 px di altezza, contro i 30 px pieni dell'icona
   WhatsApp, e sembra piu' piccolo. Con 32 px le due icone risultano alte uguale
   (32 x 0,925 = 29,6 px). */
.canale img[src$="icona-sms.svg"] { width: 32px; height: 32px; }
.canale strong {
  font-family: var(--font-head); font-weight: 600;
  font-size: var(--text-sm); color: var(--ink); line-height: 1.3;
}

/* Sotto-titolo interno a un blocco .feature (es. requisiti del servizio) */
.feature h4, .section h4 {
  font-size: var(--text-base); font-weight: 600;
  margin: var(--space-5) 0 var(--space-2);
}

/* Icona in linea nel testo e nelle tabelle (WhatsApp, SMS) */
.ico {
  display: inline-block; width: 17px; height: 17px;
  vertical-align: -3px; margin-right: 7px;
}
.link-whatsapp { font-weight: 600; }

/* Campo che il server ha trovato vuoto o errato: bordo rosso. */
.form .campo-errato { border-color: #c0392b; }

/* --- Scheda manifesto della barra laterale -------------------------------
   Frase di posizionamento: licenza di proprieta', dati nello studio, nessun
   canone obbligatorio. Riprende la sfumatura blu di .band e del footer, con
   un filetto d'accento a sinistra per staccarla dalle altre schede. */
.card--claim {
  background-image: linear-gradient(135deg, #10314f 0%, #0a1c2e 65%);
  border-color: var(--dark-3);
  border-left: 3px solid var(--accent-light);
  color: rgba(255, 255, 255, 0.82);
}
.card--claim .card__title { color: var(--accent-light); border-bottom-color: rgba(255, 255, 255, 0.14); }
.card__claim {
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-lg);
  line-height: 1.32; letter-spacing: -0.01em; color: #fff;
  margin: 0 0 var(--space-3);
}
.card__claim em { font-style: normal; color: var(--accent-light); }
.card--claim p:last-child { font-size: var(--text-sm); margin-bottom: 0; }

/* --- Bottone dentro la fascia scura --------------------------------------
   Nella fascia .band tutti i collegamenti sono schiariti (--accent-light):
   la regola colpiva anche il bottone pieno, che si leggeva male. Il bottone
   torna con la stessa etichetta bianca degli altri bottoni del sito. */
.band a.btn,
.band a.btn:hover,
.band a.btn:focus { color: var(--on-accent); }
