/* UniHouse — theme. The same bar, language switch, heading and footer as /candidature/ (copied from candidature/stile.css,
   2026-10-18: change them together), then the sections of the WordPress pages made from the YOOtheme layouts
   (strumenti/converti-yootheme.php). Values come from token.css: every centred container is max-width var(--largo) with
   padding-inline var(--pad), so the content is 1200 px on every page; the bar alone spans the screen, as in the original. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 var(--t-testo)/1.65 var(--testo); -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--titoli); font-weight: 800; line-height: 1.2; text-wrap: balance; color: var(--verde-scuro); margin: 0 0 .5em; }
h1 { font-size: var(--t-h1); letter-spacing: -.01em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; }
h4 { font-size: var(--t-h4); font-weight: 700; }
h5 { font-size: var(--t-h5); font-weight: 700; }
b, strong { font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--verde); text-underline-offset: 3px; }
a:hover { color: var(--verde-scuro); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }
.salta { position: absolute; left: -9999px; background: var(--verde-scuro); color: #fff; padding: .6rem 1rem; }
.salta:focus { left: 8px; top: 8px; z-index: 10; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── la barra UniHouse ────────────────────────────────────────────────── */

.barra { background: #fff; box-shadow: 0 1px 0 var(--riga); position: relative; z-index: 2; }
.barra-dentro {
  max-width: var(--max); margin-inline: auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 1.2rem; min-height: 100px;
}
/* Dal computer la barra è quella dell'intestazione del sito (07/10): larga
   quanto lo schermo, alta 100 px, logo grande, bottone WhatsApp verde. */
.barra-wa {
  display: none; align-items: center; gap: .5rem; padding: 12px 22px; border-radius: 4px;
  background: var(--verde); color: #fff; font: 600 var(--t-testo)/1 var(--testo); text-decoration: none; white-space: nowrap;
}
.barra-wa:hover, .barra-wa:focus-visible { background: var(--verde-scuro); color: #fff; }
.marchio {
  display: flex; align-items: center; gap: 14px; margin-right: auto;
  text-decoration: none; line-height: 1;
}
.marchio img { width: 150px; height: auto; display: block; }
.marchio .sottotitolo {
  padding-left: 14px; border-left: 1px solid var(--riga);
  font: 600 .78rem/1.25 var(--testo); letter-spacing: .12em; text-transform: uppercase;
  color: var(--verde);
}

/* Il ritorno al bando o all'elenco: una riga sottile sotto la barra. */
.briciole { background: var(--crema); border-bottom: 1px solid var(--riga); }
.briciole-dentro { max-width: var(--largo); margin-inline: auto; padding: 8px var(--pad); }
.indietro {
  font-size: var(--t-piccolo); font-weight: 500; text-decoration: none; color: var(--verde);
}
.indietro:hover { text-decoration: underline; }

/* Il selettore di lingua: la stessa pillola con le bandiere dell'intestazione
   della home (plugin unihouse-lingue, lingue.css). Cambiandone una, cambiare
   l'altra. Sta nello stesso punto su tutte le pagine: un selettore che si
   sposta e' un selettore che si cerca. */
.lingue {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; flex-shrink: 0;
  background: var(--crema); border: 1px solid var(--riga);
  font: 600 .8rem/1 var(--testo);
}
.lingue a, .lingue .lingua-attiva {
  display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0;
  padding: .38rem .7rem; border-radius: 999px; text-decoration: none; letter-spacing: .04em;
}
.lingue a { color: var(--muto); }
.lingue a:hover, .lingue a:focus-visible { color: var(--verde-scuro); background: #fff; }
.lingue .lingua-attiva { background: var(--verde); color: #fff; }
/* ⚠️ Le bandiere non si stringono mai: su un Samsung a 360 px il flex le
   schiacciava in orizzontale (23/09). */
.lingue img {
  width: 20px; height: 14px; min-width: 20px; flex-shrink: 0; object-fit: cover;
  border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

/* Sul telefono: una riga sola, come la home. Solo le bandiere, e a cedere
   e' il logo, non il selettore. */
@media (max-width: 560px) {
  .barra-dentro { gap: .6rem; padding: 10px 14px; }
  .marchio { min-width: 0; gap: 10px; }
  .marchio img { width: 150px; min-width: 0; flex-shrink: 1; }
  .marchio .sottotitolo { padding-left: 10px; font-size: .62rem; letter-spacing: .08em; max-width: 8rem; }
  .lingue .sigla { display: none; }
  .lingue a, .lingue .lingua-attiva { padding: .42rem .48rem; gap: 0; }
  .lingue img { width: 22px; height: 15px; min-width: 22px; }
  /* Il bottone del menu: da telefono solo l'icona, la scritta resta per chi legge lo schermo. */
  .uhm-apri { padding: 7px 10px; }
  .uhm-apri span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .briciole-dentro { padding-block: 7px; }
}

/* Sul telefono solo la bandiera dell'altra lingua, come la home (07/10). */
@media (max-width: 959px) {
  .lingue .lingua-attiva { display: none; }
}

/* Dal computer la barra è quella dell'intestazione del sito (07/10). Dopo le
   regole del logo, se no quelle vincono. */
@media (min-width: 960px) {
  .barra-dentro { max-width: none; min-height: 100px; padding: 0 40px; gap: 1rem; }
  .marchio img { width: 210px; }
  .marchio { gap: 30px; }
  .marchio .sottotitolo { padding-left: 16px; font-size: .74rem; }
  .barra-wa { display: inline-flex; margin-left: 1.6rem; }
}

/* ── the heading of inner pages (unihouse-menu) ───────────────────────── */

.eroe {
  background:
    radial-gradient(circle at 88% 0%, rgba(233, 196, 106, .18), transparent 42%),
    linear-gradient(135deg, var(--verde-scuro) 0%, var(--verde) 100%);
  color: #fff;
}
.eroe-dentro { max-width: var(--largo); margin-inline: auto; padding: 3rem var(--pad) 2.6rem; }
.eroe h1 { color: #fff; max-width: 22em; margin: .15em 0 .35em; }
.eroe-sotto { margin: 0; max-width: 42rem; font-size: var(--t-lede); color: rgba(255, 255, 255, .86); }
.occhiello { margin: 0; font-size: var(--t-etichetta); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--oro); }

