/* The public site (templates/sito/). Hand-written, outside the two families
   of strumenti/genera_css.py. The colours are the spira palette of the
   generator (DESIGN.md §2) and the fonts those of static/font/: Instrument
   Sans for the text, Newsreader for the titles, as in the application.

   The layout follows the professional software sites Andrés pointed to on
   18/10/2026 («prendi spunto da qualche software professionale, magari per
   avvocati»): a fixed header, sections on alternating bands, a small label
   above each title, screens inside a thin browser frame, a numbered
   «how it works» strip, feature cards, a dark closing band with the call.
   One accent, 1px rules, a 4px radius, no shadow: the same rules as the
   pages it photographs. */
:root {
  --spira-50: #F9FAFC;
  --spira-100: #DFE7F0;
  --spira-200: #BFCEDF;
  --spira-500: #2C5480;
  --spira-600: #1E3A5F;
  --spira-700: #172E4B;
  --spira-900: #0B1828;
  /* The site is dark (Andrés, 18/10/2026: the photographs of the application
     are white, and on white they do not stand out). Ground and band are two
     blues of the palette; the text is light; the boxes (feature cards, the
     closing band) stay white, with the dark text of the application. */
  --fondo: #0F2238;
  --fascia: #15304D;
  --testo: #C9D5E2;
  --testo-forte: #FFFFFF;
  --tenue: #8FA3BA;
  --linea: #274768;
  --linea-forte: #35587C;
  --collegamento: #9DBBDD;
  --scatola: #FFFFFF;
  --scatola-testo: #404040;
  --scatola-testo-forte: #171717;
  --riga: 1120px;
  --testo-largo: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--testo);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--collegamento); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--collegamento); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 16px; }

.riga { max-width: var(--riga); margin: 0 auto; padding: 0 32px; }

h1, h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--testo-forte);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: 60px; line-height: 1.06; max-width: 860px; margin-bottom: 24px; }
h2 { font-size: 36px; line-height: 1.18; margin-bottom: 18px; max-width: 720px; }
h3 { font-size: 17px; font-weight: 600; color: var(--testo-forte); margin: 0 0 6px; line-height: 1.4; }

/* Header, fixed at the top */
.testata {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--linea);
  background: rgba(15, 34, 56, 0.94);
  backdrop-filter: blur(8px);
}
.testata .riga { display: flex; align-items: center; gap: 32px; height: 64px; }
.marchio { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--testo-forte); }
.marchio img { filter: brightness(0) invert(1); }
.marchio span { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.menu { display: flex; gap: 24px; }
.menu a, .accedi { font-size: 15px; font-weight: 500; color: var(--testo-forte); text-decoration: none; }
.menu a:hover, .accedi:hover { color: var(--testo-forte); text-decoration: underline; }
.menu a[aria-current="page"] { color: var(--testo-forte); box-shadow: inset 0 -2px 0 var(--collegamento); padding-bottom: 2px; }
.accesso { margin-left: auto; display: flex; align-items: center; gap: 20px; }

/* Buttons */
.bottone {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--spira-700);
  font-size: 15px; font-weight: 500; text-decoration: none;
  padding: 0 22px; min-height: 46px; border-radius: 4px;
  border: 1px solid #fff;
}
.bottone:hover { background: var(--spira-100); border-color: var(--spira-100); color: var(--spira-900); }
.bottone-secondario { background: transparent; color: #fff; border-color: var(--linea-forte); }
.bottone-secondario:hover { background: var(--fascia); color: #fff; border-color: var(--collegamento); }
.bottone-testata { min-height: 36px; padding: 0 14px; font-size: 14px; }
.bottone-chiaro { background: var(--spira-600); color: #fff; border-color: var(--spira-600); }
.bottone-chiaro:hover { background: var(--spira-700); border-color: var(--spira-700); color: #fff; }
.azione { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.rimando { font-weight: 500; }

/* Opening */
.apertura { padding: 88px 0 0; }
.apertura-pagina { padding-bottom: 32px; border-bottom: 1px solid var(--linea); }
.apertura-pagina h1 { font-size: 50px; }
.sotto { font-size: 20px; line-height: 1.5; max-width: 720px; margin: 0 0 28px; color: var(--testo); }
.apertura .schermo { margin-top: 64px; }

/* The three steps */
.passi { padding: 56px 0 8px; }
.passi ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.passi li { border-top: 1px solid var(--linea-forte); padding-top: 18px; }
.passi .numero {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: var(--spira-700); font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.passi p { margin: 0; font-size: 16px; }

/* Sections and bands */
.sezione { padding: 96px 0; }
.fascia { background: var(--fascia); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.fascia + .fascia { border-top: 0; }
.sezione .testo { max-width: var(--testo-largo); margin-bottom: 40px; }
.sezione .testo p:last-child { margin-bottom: 0; }
.due { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.due .testo { margin-bottom: 0; }
.due-telefono { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; }
.confine { font-size: 15px; color: var(--tenue); border-left: 2px solid var(--linea-forte); padding-left: 16px; }

/* Photographs of the application */
.foto, .schermo { margin: 0; }
.foto img { width: 100%; border: 1px solid var(--linea-forte); border-radius: 4px; background: #fff; }
.schermo .cornice {
  display: flex; gap: 6px; align-items: center;
  height: 28px; padding: 0 12px;
  border: 1px solid var(--linea-forte); border-bottom: 0; border-radius: 6px 6px 0 0;
  background: var(--spira-600);
}
.schermo .cornice span { width: 8px; height: 8px; border-radius: 50%; background: var(--collegamento); }
.schermo img { width: 100%; border: 1px solid var(--linea-forte); border-radius: 0 0 6px 6px; background: #fff; }
.foto figcaption, .schermo figcaption, .telefono figcaption { margin-top: 12px; font-size: 14px; color: var(--tenue); }
.foto-stretta { max-width: 460px; justify-self: end; }
.telefono { margin: 0; justify-self: center; width: 100%; max-width: 300px; }
.telefono img {
  border: 1px solid var(--linea-forte); border-radius: 30px; padding: 8px; background: var(--fascia);
}
.coppia-foto { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 8px; }
.coppia-foto-pari { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

/* Columns («Per chi») */
.colonne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; margin-top: 8px; }
.colonne article { border-top: 1px solid var(--linea-forte); padding-top: 20px; max-width: 520px; }
.colonne p { margin: 0; }

/* Data */
.sezione-dati ul { margin: 0; padding-left: 20px; max-width: 760px; }
.sezione-dati li { margin-bottom: 10px; }

/* Closing band */
.chiusura { background: var(--scatola); color: var(--scatola-testo); padding: 88px 0 96px; border-top: 1px solid var(--linea); }
.chiusura h2 { color: var(--scatola-testo-forte); }
.chiusura p { max-width: 640px; font-size: 18px; }
.chiusura a { color: var(--spira-600); }
.chiusura .bottone-chiaro { color: #fff; }

/* Funzioni */
.indice { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.indice a { font-size: 15px; font-weight: 500; text-decoration: none; }
.indice a:hover { text-decoration: underline; }
.gruppo h2 { margin-bottom: 32px; }
.schede { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 48px; }
.schede article { border: 1px solid var(--scatola); border-radius: 4px; background: var(--scatola); color: var(--scatola-testo); padding: 22px 22px 24px; }
.schede article h3 { color: var(--scatola-testo-forte); }
.schede article p { margin: 0; font-size: 15.5px; }
.schede article strong { color: var(--scatola-testo-forte); }
.elenco-questionari { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.elenco-questionari li { margin-bottom: 3px; }
.elenco { margin: 0; padding-left: 20px; }
.elenco li { margin-bottom: 10px; }

/* Footer */
.piede { padding: 28px 0 44px; font-size: 14px; color: var(--tenue); border-top: 1px solid var(--linea); background: var(--fondo); }
.piede .riga { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.piede p { margin: 0; }
.piede nav { display: flex; flex-wrap: wrap; gap: 20px; }
.piede a { color: var(--tenue); text-decoration: none; }
.piede a:hover { color: var(--testo-forte); text-decoration: underline; }

@media (max-width: 900px) {
  .due, .due-telefono, .coppia-foto, .coppia-foto-pari, .colonne { grid-template-columns: 1fr; }
  .passi ol, .schede { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foto-stretta { justify-self: start; }
  .telefono { justify-self: start; }
  .coppia-foto { gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .riga { padding: 0 16px; }
  h1 { font-size: 38px; }
  .apertura-pagina h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .sotto { font-size: 17px; }
  .apertura { padding-top: 48px; }
  .apertura .schermo { margin-top: 40px; }
  .passi { padding-top: 40px; }
  .passi ol, .schede { grid-template-columns: 1fr; }
  .sezione { padding: 56px 0; }
  .sezione .testo { margin-bottom: 24px; }
  .chiusura { padding: 56px 0 64px; }
  .testata { position: static; }
  .testata .riga { gap: 16px; height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .menu { order: 3; width: 100%; gap: 18px; overflow-x: auto; }
  .bottone-testata { display: none; }
}
