﻿  /* VARIABILI PER CORPORATE */
:root {
  /* COLORI PRINCIPALI */
  --colore-primario: #003c8f;      /* Blu corporate deciso */
  --colore-secondario: #002b66;    /* Blu istituzionale profondo */
  --colore-accento: #1976d2;       /* Blu acceso per evidenziare */
  --colore-evidenza: #ffca28;      /* Giallo oro elegante */

  /* COLORI DI SFONDO */
  --bg-chiaro: #f2f7ff;            /* Azzurro chiarissimo */
  --bg-scuro: #e1ecff;             /* Azzurro tenue */
  --bg-bianco: #ffffff;

  /* TIPOGRAFIA */
  --font-base: "Segoe UI", Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-h1: 1.7rem;
  --font-size-h2: 1.45rem;
  --font-size-h3: 1.2rem;

  /* LAYOUT */
  --max-width-contenuto: 760px;
  --max-width-header: 820px;
  --max-width-iconbar: 700px;

  /* BORDI E RAGGI */
  --radius-base: 12px;
  --radius-iconbar: 20px;

  /* SPAZIATURE */
  --spazio-sezione: 1.2rem;
  --spazio-contenuto: 1.4rem;
}
/* --------------------------------------------------
   RESET & BASE
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: var(--font-base);
  background: #fff;
  line-height: 1.6;
  color: #000;
  font-size: var(--font-size-base);
}

/* --------------------------------------------------
   LAYOUT GENERALE
-------------------------------------------------- */
#pagina { margin: 0 auto; background: #fff }
.sezione { padding: var(--spazio-sezione) 0 }
.contenuto {
  width: 90%;
  max-width: var(--max-width-contenuto);
  margin: 0 auto;
}
.bg-chiaro { background: var(--bg-chiaro) }
.bg-scuro { background: var(--bg-scuro) }
.bg-bianco { background: var(--bg-bianco) }

/* --------------------------------------------------
   ACCESSIBILITÀ
-------------------------------------------------- */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.visually-hidden:focus,
.visually-hidden:active {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  overflow: visible;
  padding: .5rem 1rem;
  background: #fff;
  border: 2px solid #000;
  z-index: 1000;
}

/* --------------------------------------------------
   TIPOGRAFIA
-------------------------------------------------- */
h1, h2, h3 {
  line-height: 1.2;
  margin: 1.2rem 0 .5rem;
  font-weight: 400;
}
h1 {
  font-size: var(--font-size-h1);
  color: var(--colore-primario);
  text-align: center;
  border-bottom: 1px solid var(--colore-secondario);
  padding-bottom: .5rem;
  font-weight: 300;
}
h2 {
  font-size: var(--font-size-h2);
  color: var(--colore-primario);
}
h3 {
  font-size: var(--font-size-h3);
  color: var(--colore-accento);
}
.highlight { color: var(--colore-accento) }
p.centra { text-align: center }
p.nota { font-size: .95rem; color: #555 }

/* --------------------------------------------------
   HEADER VIASETTI
-------------------------------------------------- */
header.header-viasetti { padding-top: 1.25rem }
.header-wrap {
  max-width: var(--max-width-header);
  margin: 0 auto;
  padding: .5rem var(--spazio-contenuto);
  display: flex;
  gap: .75rem;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-base);
}
.header-text { flex: 1 }
.titolo-header {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--colore-primario);
  margin: 0;
}
.sottotitolo-header {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}
.header-wrap img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer-viasetti-min {
  background: var(--colore-secondario);
  color: #fff;
  padding: 1.5rem 0 1rem;
  margin-top: 2rem;
  font-size: .9rem;
}
.footer-viasetti-min .contenuto {
  max-width: var(--max-width-header);
  margin: 0 auto;
  text-align: center;
}
.footer-viasetti-min a {
  color: var(--colore-evidenza);
  text-decoration: underline;
  font-weight: bold;
}
.footer-viasetti-min a:hover { font-weight: normal }
.footer-min-copy {
  margin-top: .8rem;
  font-size: .8rem;
  opacity: .9;
}

/* --------------------------------------------------
   ELENCHI PERSONALIZZATI
-------------------------------------------------- */
ul[class^="elenco-"] {
  list-style: none;
  margin: 1.8rem 0 1rem;
  padding: 0;
}
ul[class^="elenco-"] li {
  position: relative;
  padding-left: 1.8em;
  margin: .4em 0;
  padding-bottom: .25rem;
}
ul[class^="elenco-"] li::before {
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
}
ul.elenco-check li::before { content: "✔️" }
ul.elenco-rombo li::before { content: "🔹" }
ul.elenco-dito li::before { content: "👉" }
ul.elenco-desideri li::before { content: "★" }
ul.elenco-no li::before { content: "❌" }
ul.elenco-citta li::before { content: "📍" }

/* --------------------------------------------------
   CTA
-------------------------------------------------- */
.cta-gruppo {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.cta-bottone {
  display: inline-block;
  padding: .625rem 1.125rem;
  background: var(--colore-primario);
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  border-radius: .6rem;
  transition: .25s;
}
.cta-bottone:hover {
  background: var(--colore-secondario);
  transform: translateY(-2px);
}

/* --------------------------------------------------
   RIQUADRO BIANCO
-------------------------------------------------- */
.highlight-box {
  background: #fff;
  color: var(--colore-secondario);
  padding: 0px 10px;
  border-radius: var(--radius-base);
  border: 1px solid #ccc;
  text-align: left;
}

/* --------------------------------------------------
   BOX INFO
-------------------------------------------------- */
.box-info {
  border: 1px solid var(--colore-accento);
  border-left-width: 6px;
  border-radius: var(--radius-base);
  padding: .9rem 1.2rem;
  margin: 1.5rem 0;
  background: #FFF7C4;
}
.box-info h3 {
  margin: 0 0 .4rem;
  font-size: var(--font-size-h3);
  font-weight: bold;
  color: #1B5E20;
}
.box-info p { margin: 0; line-height: 1.5 }

/* --------------------------------------------------
   ICON BAR
-------------------------------------------------- */
.icon-bar {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .3rem;
  padding: .625rem 1.25rem;
  width: 80%;
  max-width: var(--max-width-iconbar);
  background: rgba(255,255,255,.7);
  border: 1px solid #6ba3f6;
  border-radius: var(--radius-iconbar);
  z-index: 999999;
}
.icon-bar img {
  width: 52px;
  height: 52px;
  transition: opacity .2s;
}
.icon-bar a:hover img { opacity: .6 }

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media(max-width:700px){
  .header-wrap img { width: 90px; height: 90px }
  .cta-gruppo { flex-direction: column; gap: .625rem }
  .cta-bottone {
    text-align: center;
    padding: .75rem;
    font-size: 1.3rem;
  }
}
