/* ==========================================================================
   MEDILIFE - SITO PUBBLICO, direzione «Bento» (dicembre 2026)
   Tessere piene di colori diversi con angoli ampi, testata a pillola, caratteri Sora (titoli), Public Sans (testo) e DM Mono (dati).
   Si carica DOPO sito.css solo nelle pagine pubbliche (aspetto.ts): l'intranet non lo vede mai.
   Caratteri serviti dal sito (nessuna richiesta a servizi esterni).
   ========================================================================== */

@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/sora-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --carta: #E8EFEC;
  --carta-2: #D9E3DF;
  --foglio: #FFFFFF;
  --inchiostro: #10201F;
  --grafite: #44575A;
  --grigio: #6A7D7F;
  --filetto: #C3D1CC;
  --rosso: #D5282E;
  --rosso-testo: #A81C22;
  --retino: #FBDAD7;

  --corallo: #FF6B57;
  --menta: #A8E6CF;
  --ambra: #FFB547;
  --cielo: #9AD5F2;
  --petrolio: #0C5C5A;

  --f-titoli: "Sora", "Helvetica Neue", Arial, sans-serif;
  --f-testo: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-dati: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --larghezza: 1280px;
  --margine: clamp(14px, 2.4vw, 32px);
  --altezza-testata: 92px;
  --ritmo: clamp(40px, 6vw, 88px);
  --raggio: 28px;
  --raggio-grande: 36px;
  --ombra-tessera: 0 1px 2px rgba(16, 32, 31, 0.05);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--altezza-testata) + 16px); }
body { font: 400 1.0625rem/1.62 var(--f-testo); background: var(--carta); color: var(--inchiostro); }
h1, h2, h3, h4 { font-family: var(--f-titoli); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
::selection { background: var(--ambra); color: var(--inchiostro); }
:focus-visible { outline: 3px solid var(--inchiostro); outline-offset: 3px; border-radius: 6px; }
.testata-sito :focus-visible { outline-color: var(--inchiostro); }
.piede :focus-visible { outline-color: var(--ambra); }

/* i segni di taglio dei vecchi «segni di stampa» non servono piu' */
.segni::after { display: none; }

/* ---------- Etichette, pulsanti, link ---------- */
.etichetta { padding: 7px 14px; font: 500 0.78rem/1 var(--f-dati); letter-spacing: 0.06em; background: rgba(16, 32, 31, 0.08); border-radius: 999px; color: var(--inchiostro); }
.registro { width: 9px; height: 9px; vertical-align: 0; background: var(--rosso); border-radius: 50%; }

.pulsante { padding: 0 24px; min-height: 48px; font: 600 0.98rem/1 var(--f-testo); color: #fff; background: var(--rosso); border: 0; border-radius: 999px; transition: background-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out; }
.pulsante:hover { background: var(--rosso-testo); border: 0; }
.pulsante--chiaro { color: var(--inchiostro); background: var(--carta); }
.pulsante--chiaro:hover { color: var(--inchiostro); background: var(--carta-2); border: 0; }
.pulsante--su-scuro { color: var(--inchiostro); background: #fff; }
.pulsante--su-scuro:hover { color: var(--inchiostro); background: var(--ambra); border: 0; }
.link { text-decoration-color: var(--filetto); }
.link:hover { color: var(--rosso-testo); text-decoration-color: var(--rosso); }
.link-freccia { padding: 0; font-weight: 600; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--rosso); }
.link-freccia:hover { border: 0; color: var(--rosso-testo); }

/* ==========================================================================
   TESTATA: una pillola mobile in alto
   ========================================================================== */
.testata-sito { padding-top: 14px; }
.testata-sito .contenitore { width: min(var(--larghezza), 100% - 2 * var(--margine)); }
.testata-sito__riga { justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 10px 8px 14px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(16, 32, 31, 0.08); border-radius: 999px; box-shadow: 0 10px 34px -14px rgba(16, 32, 31, 0.28); }
.marchio { padding: 0; }
.marchio img { height: 38px; }
.menu { gap: 2px; margin-left: auto; }
.menu__voce { padding: 10px 15px; font: 500 0.95rem/1.2 var(--f-testo); border-radius: 999px; transition: background-color 140ms ease-out; }
.menu__voce::after { display: none; }
.menu__voce:hover, .menu__voce[aria-expanded="true"] { background: var(--carta); }
.menu__voce[aria-current="page"] { background: var(--carta); font-weight: 600; }
.menu__voce--riservata { margin-left: 6px; padding: 10px 16px; color: #fff; background: var(--inchiostro); border: 0; }
.menu__voce--riservata:hover { color: #fff; background: #26403E; }
.menu__sotto { top: calc(100% + 12px); left: -10px; min-width: 330px; padding: 10px; background: #fff; border: 0; border-radius: 24px; box-shadow: 0 24px 60px -18px rgba(16, 32, 31, 0.4); }
.menu__sotto::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }   /* ponte invisibile: il mouse non perde il menu nel tratto tra la voce e il pannello */
.menu__sotto a { padding: 12px 16px; border-radius: 16px; }
.menu__sotto a:hover, .menu__sotto a[aria-current="page"] { background: var(--carta); }
.menu__sotto strong { font: 600 0.98rem/1.25 var(--f-titoli); letter-spacing: -0.02em; }
.menu__sotto hr { border-color: var(--filetto); }
.menu-bottone { padding: 0 16px; min-height: 44px; background: var(--inchiostro); color: #fff; border: 0; border-radius: 999px; }

@media (max-width: 900px) {
  /* il filtro sfocato farebbe da riquadro al menu a tutto schermo (position: fixed): sul telefono si toglie */
  .testata-sito__riga { padding: 8px 10px 8px 14px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu { inset: calc(var(--altezza-testata) - 6px) 14px 14px 14px; padding: 16px 22px 28px; background: #fff; border-radius: 28px; box-shadow: 0 30px 70px -20px rgba(16, 32, 31, 0.45); }
  .menu__voce { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--filetto); border-radius: 0; }
  .menu__voce:hover, .menu__voce[aria-expanded="true"] { background: transparent; }
  .menu__voce--riservata { margin: 22px 0 0; border: 0; border-radius: 999px; }
  .menu__sotto { padding: 4px 0 12px 12px; border-left: 3px solid var(--rosso); border-radius: 0; box-shadow: none; background: transparent; }
  .menu__sotto a:hover, .menu__sotto a[aria-current="page"] { background: var(--carta); }
}

/* ==========================================================================
   PIEDE: una tessera scura in fondo alla pagina
   ========================================================================== */
.piede { margin-top: var(--ritmo); padding: 0 0 var(--margine); background: transparent; color: #fff; }
.piede > .contenitore { padding: clamp(32px, 5vw, 64px) clamp(22px, 4vw, 56px) 26px; background: var(--inchiostro); border-radius: var(--raggio-grande); }
.piede h2 { color: #AFC3BE; font: 500 0.78rem/1.3 var(--f-dati); }
.piede p, .piede li { color: #DCE8E4; }
.piede__marchio img { height: 60px; padding: 8px 14px; background: #fff; border-radius: 14px; }
.piede a:hover { text-decoration-color: var(--ambra); }
.piede__social a { border: 0; background: rgba(255, 255, 255, 0.1); border-radius: 50%; }
.piede__social a:hover { background: var(--corallo); color: var(--inchiostro); }
.piede__vai { text-decoration-color: var(--ambra); }
.piede__fondo { border-top-color: rgba(255, 255, 255, 0.14); color: #AFC3BE; }
.barra-colori i { height: 10px; width: 24px; }
.barra-colori i:first-child { border-radius: 99px 0 0 99px; }
.barra-colori i:last-child { border-radius: 0 99px 99px 0; }
.barra-colori i:nth-child(1) { background: var(--corallo); } .barra-colori i:nth-child(2) { background: var(--ambra); } .barra-colori i:nth-child(3) { background: var(--menta); } .barra-colori i:nth-child(4) { background: var(--cielo); }

/* ==========================================================================
   SEZIONI: titolo sopra, contenuto sotto, a tutta larghezza
   ========================================================================== */
.sezione { padding-block: var(--ritmo) 0; }
.sezione--alt { background: transparent; padding-block: 0; margin-top: var(--ritmo); }
.sezione__griglia { grid-template-columns: minmax(0, 1fr); gap: 18px; border-top: 0; padding-top: 0; }
.sezione__testa { position: static; }
.sezione__titolo { margin: 0 0 14px; max-width: 28ch; font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.04em; }
.sezione__lead { max-width: 62ch; margin: 0 0 28px; font-size: 1.15rem; }
.testo-corrente { max-width: 68ch; }
.testo-corrente p:first-child { font-size: 1.15rem; }
.citazione { margin-top: 32px; padding: 24px 28px; max-width: 34ch; background: var(--ambra); border-top: 0; border-radius: var(--raggio); font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

/* ---------- Testata delle pagine interne: una tessera bianca con la scheda «in breve» colorata ---------- */
.testata-pagina { padding: 18px 0 0; border-bottom: 0; }
.testata-pagina__griglia { gap: 28px; align-items: stretch; padding: clamp(26px, 4vw, 56px); background: #fff; border-radius: var(--raggio-grande); }
.testata-pagina__griglia:has(.tavola) { align-items: center; }
.testata-pagina h1 { margin: 20px 0 20px; max-width: 18ch; font-size: clamp(2.1rem, 4.6vw, 3.8rem); letter-spacing: -0.045em; }
.testata-pagina .lead { max-width: 60ch; }
.testata-pagina figure img { border-radius: var(--raggio); }
.nota-scheda { align-self: end; padding: 24px 26px; background: var(--menta); border: 0; border-radius: var(--raggio); }
.nota-scheda dt { color: var(--inchiostro); opacity: 0.75; }
.nota-scheda dd { font: 700 1.2rem/1.3 var(--f-titoli); letter-spacing: -0.02em; }
.meta-riga dl { border-top: 0; padding: 18px 0 0; gap: 12px; }
.meta-riga dl > div { padding: 14px 22px; margin: 0; border: 0; background: var(--carta); border-radius: 20px; }
.meta-riga dl > div:nth-child(1) { background: var(--ambra); } .meta-riga dl > div:nth-child(2) { background: var(--menta); } .meta-riga dl > div:nth-child(3) { background: var(--cielo); } .meta-riga dl > div:nth-child(4) { background: var(--corallo); }
.meta-riga dl > div:last-child { padding-right: 22px; }
.meta-riga dd { font: 700 1.1rem/1.3 var(--f-titoli); letter-spacing: -0.02em; }

/* ==========================================================================
   HOME
   ========================================================================== */
.apertura { padding: 18px 0 0; }
.apertura__griglia { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: stretch; }
.apertura__griglia > div:first-child { padding: clamp(28px, 4.4vw, 60px); background: #fff; border-radius: var(--raggio-grande); }
.apertura h1, .apertura--slogan h1 { margin: 22px 0 22px; max-width: 15ch; font-size: clamp(2.3rem, 4.8vw, 4.5rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.apertura--slogan h1 .h1-filetto { height: 0.12em; margin-top: 0.3em; border-radius: 99px; }
.apertura .lead { max-width: 50ch; color: var(--grafite); }
.apertura__azioni { gap: 12px; }

/* i numeri: quattro tessere colorate nella colonna a destra */
.nota-scheda--numeri { align-self: stretch; padding: 0; background: transparent; border-radius: 0; }
.nota-scheda--numeri dl { height: 100%; grid-template-columns: 1fr 1fr; gap: 16px; }
.nota-scheda--numeri dl > div { justify-content: flex-start; padding: 22px 24px; border: 0; border-radius: var(--raggio); min-height: 150px; }
.nota-scheda--numeri dl > div:nth-child(1) { background: var(--ambra); } .nota-scheda--numeri dl > div:nth-child(2) { background: var(--menta); }
.nota-scheda--numeri dl > div:nth-child(3) { background: var(--cielo); } .nota-scheda--numeri dl > div:nth-child(4) { background: var(--corallo); }
.nota-scheda--numeri dd { font: 800 clamp(2.6rem, 4.6vw, 4.2rem)/1 var(--f-titoli); letter-spacing: -0.05em; }
.nota-scheda--numeri dt { color: var(--inchiostro); opacity: 0.8; margin-top: 10px; }

/* ---------- Le quattro aree: tessere di colore ---------- */
.aree { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; border-top: 0; }
.area { grid-column: span 6; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 260px; padding: clamp(24px, 3vw, 40px); background: #fff; border-bottom: 0; border-radius: var(--raggio-grande); transition: transform 160ms ease-out; }
.area:nth-child(1) { grid-column: span 7; background: var(--corallo); } .area:nth-child(2) { grid-column: span 5; }
.area:nth-child(3) { grid-column: span 5; } .area:nth-child(4) { grid-column: span 7; background: var(--menta); }
.area:hover { padding: clamp(24px, 3vw, 40px); background: #fff; transform: translateY(-4px); }
.area:nth-child(1):hover { background: var(--corallo); } .area:nth-child(4):hover { background: var(--menta); }
.area__num { position: absolute; right: 28px; top: 26px; font: 500 0.85rem/1 var(--f-dati); color: var(--inchiostro); opacity: 0.7; }
.area__nome { margin-top: auto; max-width: 16ch; font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--f-titoli); letter-spacing: -0.035em; }
.area__testo { max-width: 38ch; color: var(--inchiostro); opacity: 0.85; }
.area__freccia { position: absolute; right: 26px; bottom: 26px; display: grid; place-items: center; width: 48px; height: 48px; font-size: 1.3rem; color: #fff; background: var(--inchiostro); border-radius: 50%; }
.area:hover .area__freccia { color: #fff; background: var(--rosso); transform: translateX(4px); }
.area--fermo:hover { background: #fff; transform: none; padding: clamp(24px, 3vw, 40px); }

/* ---------- Programmi: tessere con il tipo come etichetta ---------- */
.schede { gap: 16px; padding-top: 0; }
.scheda { min-height: 250px; padding: 26px 26px 24px; background: #fff; border: 0; border-radius: var(--raggio); transition: transform 160ms ease-out; }
.scheda::before { position: static; align-self: flex-start; margin: 0 0 22px; padding: 7px 13px; border: 0; background: rgba(16, 32, 31, 0.08); border-radius: 999px; font: 500 0.75rem/1 var(--f-dati); }
.scheda:hover { background: #fff; transform: translateY(-4px); }
.scheda:hover::before { background: var(--inchiostro); color: #fff; }
.scheda h3 { font-size: 1.75rem; letter-spacing: -0.04em; }
li:nth-child(5n+1) > .scheda { background: var(--petrolio); color: #fff; } li:nth-child(5n+1) > .scheda h3 { color: #fff; } li:nth-child(5n+1) > .scheda p { color: #DCE8E4; }
li:nth-child(5n+1) > .scheda::before { background: rgba(255, 255, 255, 0.16); } li:nth-child(5n+1) > .scheda .link-freccia { color: #fff; text-decoration-color: var(--ambra); }
li:nth-child(5n+1) > .scheda:hover { background: var(--petrolio); }
li:nth-child(5n+2) > .scheda, li:nth-child(5n+2) > .scheda:hover { background: var(--ambra); } li:nth-child(5n+2) > .scheda p { color: var(--inchiostro); }
li:nth-child(5n+3) > .scheda, li:nth-child(5n+3) > .scheda:hover { background: var(--cielo); } li:nth-child(5n+3) > .scheda p { color: var(--inchiostro); }
li:nth-child(5n+5) > .scheda, li:nth-child(5n+5) > .scheda:hover { background: var(--corallo); } li:nth-child(5n+5) > .scheda p { color: var(--inchiostro); }
html.js .schede--slider { padding: 4px 2px 8px; }
html.js .schede--slider > li { flex: 0 0 min(360px, 82%); }
.slider__pista { height: 6px; background: rgba(16, 32, 31, 0.12); border-radius: 99px; }
.slider__pista i { background: var(--inchiostro); border-radius: 99px; }
.slider__bottoni button { color: var(--inchiostro); background: #fff; border: 0; border-radius: 50%; }
.slider__bottoni button:hover:not(:disabled) { background: var(--inchiostro); color: #fff; }
.slider__bottoni button:disabled { color: var(--grigio); background: rgba(255, 255, 255, 0.55); }

/* ---------- Clienti e loghi ---------- */
.marquee { background: #fff; border: 0; border-radius: var(--raggio); }
.marquee + .marquee { margin-top: 12px; }
.marquee-gruppo { display: grid; gap: 12px; }
.marquee-gruppo .marquee + .marquee { margin-top: 0; }
.muro { gap: 12px; border: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); }
.muro li { border: 0; border-radius: 22px; }
.sottotitolo { font-family: var(--f-titoli); letter-spacing: -0.03em; }

/* ---------- Invito finale: tessera scura ---------- */
.invito { padding: clamp(32px, 5vw, 64px); color: #fff; background: var(--petrolio); border: 0; border-radius: var(--raggio-grande); }
.invito .etichetta { color: #fff; background: rgba(255, 255, 255, 0.14); }
.invito h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.045em; }
.invito p { color: #DCE8E4; }
.invito__contatti a { padding: 18px 22px; border: 0; background: rgba(255, 255, 255, 0.1); border-radius: 22px; font: 600 1.05rem/1.2 var(--f-titoli); letter-spacing: -0.02em; }
.invito__contatti a:hover { background: var(--ambra); color: var(--inchiostro); }
.invito__contatti i { color: var(--ambra); }
.invito__contatti a:hover i { color: var(--inchiostro); }

/* ==========================================================================
   COMPONENTI DELLE PAGINE INTERNE
   ========================================================================== */
/* moduli: tessere numerate */
.moduli { gap: 14px; }
.modulo { padding: 24px 26px 26px; background: #fff; border-top: 0; border-radius: var(--raggio); }
.modulo::before { color: var(--inchiostro); opacity: 0.6; }
.modulo:nth-child(4n+1) { background: var(--menta); } .modulo:nth-child(4n+2) { background: #fff; } .modulo:nth-child(4n+3) { background: var(--cielo); } .modulo:nth-child(4n+4) { background: var(--ambra); }
.modulo h3 { letter-spacing: -0.03em; }
.modulo p { color: var(--inchiostro); opacity: 0.85; }
.moduli--uno .modulo { background: #fff; }

/* fasi: tessere in fila */
.fasi { gap: 14px; }
.fase { padding: 24px 22px 26px; background: #fff; border-top: 0; border-radius: var(--raggio); }
.fase::before { display: none; }
.fase::after { display: inline-block; align-self: flex-start; padding: 6px 12px; margin-bottom: 14px; font: 500 0.75rem/1 var(--f-dati); color: var(--inchiostro); background: var(--c, var(--menta)); border-radius: 999px; }
.fase:nth-child(4n+1) { --c: var(--menta); } .fase:nth-child(4n+2) { --c: var(--ambra); } .fase:nth-child(4n+3) { --c: var(--cielo); } .fase:nth-child(4n+4) { --c: var(--corallo); }
.fase h3 { letter-spacing: -0.03em; }

/* spunte */
.spunte { max-width: 820px; gap: 10px; }
.spunte li { padding: 16px 20px; background: #fff; border: 0; border-radius: 20px; }
.spunte li:last-child { border-bottom: 0; }
.spunte i { color: var(--inchiostro); background: var(--menta); border: 0; border-radius: 50%; }

/* tempi */
.tempi { gap: 14px; border-top: 0; }
.tempo, .tempo + .tempo { padding: 28px 26px 22px; background: #fff; border: 0; border-radius: var(--raggio); }
.tempo:nth-child(1) { background: var(--cielo); } .tempo:nth-child(2) { background: #fff; } .tempo:nth-child(3) { background: var(--ambra); }
.tempo li { border-top-color: rgba(16, 32, 31, 0.14); }
.tempo li::before { border-radius: 50%; background: var(--inchiostro); }
.tempo p, .tempo li { color: var(--inchiostro); }

/* certificazioni */
.certificati { gap: 14px; border-top: 0; }
.certificato { padding: 24px 24px 26px; background: #fff; border-bottom: 0; border-radius: var(--raggio); }
.certificato:nth-child(4n+1) { background: var(--menta); } .certificato:nth-child(4n+2) { background: var(--ambra); } .certificato:nth-child(4n+3) { background: var(--cielo); } .certificato:nth-child(4n+4) { background: #fff; }
.certificato__sigla { letter-spacing: -0.05em; font-weight: 800; }
.certificato p { color: var(--inchiostro); opacity: 0.85; }
.certificato .etichetta { background: rgba(16, 32, 31, 0.1); }

/* schermi e schemi dei programmi */
.schermo, .schema { background: #fff; border: 0; border-radius: var(--raggio); overflow: hidden; box-shadow: var(--ombra-tessera); }
.schermo__barra, .schema__barra { background: var(--petrolio); border-bottom: 0; color: #fff; }
.schermo__barra span, .schema__barra { color: #DCE8E4; }
.schermo__barra i { background: rgba(255, 255, 255, 0.4); border-radius: 50%; }
.schema > figcaption { border-top: 1px solid var(--filetto); }
.schema__albero { background: var(--carta); border-right-color: var(--filetto); }
.schema__albero li { border-radius: 10px; }
.schema__albero li.attivo { background: var(--petrolio); }
.schema__timbro { border-radius: 6px; }
.tavola__foglio { border: 0; border-radius: var(--raggio); }

/* fotografie */
.fotografie { gap: 12px; }
.fotografie figure { border-radius: var(--raggio); }
.fotografie figcaption { left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; }

/* novita' */
.articoli { gap: 14px; }
.articolo { padding: 22px; background: #fff; border-bottom: 0; border-radius: var(--raggio); align-items: center; }
.articolo img { border-radius: 20px; filter: none; }
.articolo h3 { letter-spacing: -0.035em; }
.articolo h3 a { text-decoration-color: var(--filetto); }
.articolo h3 a:hover { text-decoration-color: var(--rosso); }
.testo-articolo img { border-radius: var(--raggio); filter: none; }

/* posizioni aperte */
.posizione { border: 0; background: #fff; border-radius: var(--raggio); overflow: hidden; }
.posizione__testa { border-bottom: 0; background: var(--cielo); }
.posizione:nth-of-type(3n+2) .posizione__testa { background: var(--menta); } .posizione:nth-of-type(3n+3) .posizione__testa { background: var(--ambra); }
.posizione h3 { letter-spacing: -0.035em; }
.posizione li { border-top-color: var(--filetto); }
.posizione li::before { border-radius: 50%; }

/* ripartizione */
.ripartizione__barra { height: 18px; border: 0; border-radius: 99px; overflow: hidden; background: var(--carta-2); }
.ripartizione__barra span:first-child { background: var(--corallo); } .ripartizione__barra span:last-child { background: var(--cielo); }

/* documenti */
.documenti-elenco { display: grid; gap: 10px; }
.documenti-elenco li, .documenti-elenco li:last-child { border: 0; }
.documenti-elenco a { padding: 20px 24px; background: #fff; border-radius: 22px; transition: transform 160ms ease-out, background-color 160ms ease-out; }
.documenti-elenco a:hover { background: #fff; transform: translateX(4px); }
.documenti-elenco i { display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.5rem; color: var(--inchiostro); background: var(--menta); border-radius: 16px; }
.documenti-elenco__titolo { letter-spacing: -0.03em; }

/* capitoli dei video */
.capitoli button { color: var(--inchiostro); background: #fff; border: 0; border-radius: 999px; }
.capitoli__tempo { color: var(--rosso-testo); }
.capitoli button:hover, .capitoli button[aria-current="true"] { color: #fff; background: var(--inchiostro); }
.capitoli button:hover .capitoli__tempo, .capitoli button[aria-current="true"] .capitoli__tempo { color: var(--ambra); }

/* ---------- Modulo di candidatura ---------- */
.candidatura { max-width: 900px; padding: clamp(24px, 3.6vw, 44px); background: #fff; border: 0; border-radius: var(--raggio-grande); }
.campo__etichetta { font: 600 0.98rem/1.3 var(--f-testo); }
.campo__obb { font: 500 0.72rem/1.3 var(--f-dati); }
.controllo { min-height: 52px; padding: 12px 16px; background: var(--carta); border: 1.5px solid transparent; border-radius: 16px; transition: border-color 140ms ease-out, background-color 140ms ease-out; }
.controllo:hover { border-color: var(--grigio); }
.controllo:focus { background: #fff; border-color: var(--inchiostro); outline: 3px solid rgba(213, 40, 46, 0.3); outline-offset: 0; }
.controllo[aria-invalid="true"], .campo--errore .casella { border-color: var(--rosso-testo); }
.controllo--file::file-selector-button { color: #fff; background: var(--inchiostro); border-radius: 999px; }
.casella { border-radius: 8px; border-color: var(--inchiostro); }
.casella:checked { border-color: var(--rosso-testo); }
.consenso { border-top-color: var(--filetto); }
.riepilogo-errori { background: #fff; border: 1.5px solid var(--rosso-testo); border-radius: 20px; }
.esito { background: #fff; border: 0; border-radius: var(--raggio); }
.esito > i { background: var(--menta); border: 0; border-radius: 50%; color: var(--inchiostro); }

/* ---------- Telefono ---------- */
@media (max-width: 900px) {
  .apertura__griglia { grid-template-columns: minmax(0, 1fr); }
  .aree { grid-template-columns: minmax(0, 1fr); }
  .area, .area:nth-child(n) { grid-column: auto; min-height: 220px; }
}
@media (max-width: 560px) {
  .nota-scheda--numeri dl > div { min-height: 124px; padding: 18px; }
  .testata-pagina__griglia, .apertura__griglia > div:first-child { border-radius: 28px; }
}

/* ---------- Pausa dei loghi ---------- */
.marquee__pausa { border: 0; border-radius: 999px; background: #fff; }
.marquee__pausa:hover { background: var(--ambra); border: 0; }

/* ---------- Assistente di prenotazione (in basso a destra) ---------- */
.bot__apri { min-height: 54px; padding: 0 22px; color: #fff; background: var(--rosso); border: 0; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(16, 32, 31, 0.5); }
.bot__apri:hover { background: var(--rosso-testo); border: 0; }
.bot__apri:focus-visible { outline-color: var(--inchiostro); }
.bot__pannello { border: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(16, 32, 31, 0.5); }
.bot__testa { background: var(--petrolio); }
.bot__titolo { letter-spacing: -0.035em; }
.bot__sotto { color: #DCE8E4; }
.bot__chiudi { border: 0; background: rgba(255, 255, 255, 0.14); border-radius: 50%; }
.bot__chiudi:hover { background: var(--corallo); color: var(--inchiostro); border: 0; }
.bot__avanzamento { background: var(--carta); border-bottom: 0; }
.bot__barra span { height: 8px; border: 0; background: var(--carta-2); border-radius: 99px; }
.bot__barra .bot__barra--fatta { background: var(--petrolio); }
.bot__domanda { letter-spacing: -0.035em; }
.bot__avviso, .bot__riepilogo, .bot__campo--consenso { border: 0; border-radius: 16px; }
.bot__avviso--errore { border: 1.5px solid var(--rosso-testo); }
.bot__riepilogo { border-left: 0; }
.bot__opzione { border: 0; border-radius: 20px; background: var(--carta); }
.bot__opzione:hover { background: var(--carta-2); box-shadow: none; }
.bot__opzione:nth-child(3n+1) > i:first-child { color: var(--petrolio); }
.bot__giorno, .bot__orario { border: 0; border-radius: 16px; background: var(--carta); }
.bot__giorno:hover, .bot__orario:hover { background: var(--carta-2); }
.bot__giorno[aria-pressed="true"], .bot__orario[aria-pressed="true"] { background: var(--petrolio); color: #fff; }
.bot__campo input[type="text"], .bot__campo input[type="email"], .bot__campo input[type="tel"], .bot__campo textarea { background: var(--carta); border: 1.5px solid transparent; border-radius: 14px; }
.bot__campo input:focus, .bot__campo textarea:focus { background: #fff; border-color: var(--inchiostro); outline: 3px solid rgba(213, 40, 46, 0.3); outline-offset: 0; }
.bot__ok { border: 0; border-radius: 18px; }
.bot__contatto { border: 0; border-radius: 18px; background: var(--carta); }
.bot__contatto:hover { background: var(--carta-2); }
.bot__secondario { border: 0; border-radius: 999px; background: var(--carta); }
.bot__secondario:hover { background: var(--carta-2); border: 0; }
.bot__piede { border-top: 0; }
.bot__umano { border-top: 0; }

/* immagini dentro le pagine: angoli morbidi come le tessere */
.coppia img, .coppia video, .sezione figure img, .testata-pagina figure img { border-radius: var(--raggio); }

/* ---------- Elenchi a puntini, filtri e caroselli ---------- */
.puntini li { border-top-color: rgba(16, 32, 31, 0.1); }
.puntini li::before, .tempo li::before { border-radius: 50%; }
.filtro { color: var(--inchiostro); background: #fff; border: 0; border-radius: 999px; transition: background-color 140ms ease-out, color 140ms ease-out; }
.filtro:hover { background: var(--ambra); }
.filtro[aria-pressed="true"] { color: #fff; background: var(--inchiostro); }
.filtro__n { padding: 3px 8px; border: 0; border-radius: 99px; background: rgba(16, 32, 31, 0.1); }
.filtro[aria-pressed="true"] .filtro__n { background: rgba(255, 255, 255, 0.2); }
.carosello__pista { scrollbar-color: var(--inchiostro) transparent; }
.posizione__tipo { color: var(--inchiostro); background: rgba(16, 32, 31, 0.08); border: 0; border-radius: 99px; padding: 5px 11px; }
.posizione__dettagli { border-top-color: var(--filetto); }
.freccia-carosello { color: var(--inchiostro); background: #fff; border: 0; border-radius: 50%; transition: background-color 140ms ease-out, color 140ms ease-out; }
.freccia-carosello:hover:not(:disabled) { background: var(--inchiostro); color: #fff; }
.freccia-carosello:disabled { color: var(--grigio); background: rgba(255, 255, 255, 0.55); border: 0; }
.schermo__ingrandisci { border: 0; border-radius: 999px; }
.schermata--solo-testo { border-top-color: var(--filetto); }

/* ---------- Finestre (galleria, video, cassetto della candidatura) ---------- */
.finestra::backdrop { background: rgba(16, 32, 31, 0.7); }
.finestra__pannello { border: 0; border-radius: var(--raggio-grande); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); }
.finestra__barra { padding-left: 24px; border-bottom: 0; background: var(--petrolio); }
.finestra__titolo { color: #DCE8E4; }
.finestra__chiudi { width: 44px; height: 44px; margin: 8px 10px 8px 0; color: #fff; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.finestra__chiudi:hover { background: var(--corallo); color: var(--inchiostro); }
.finestra--cassetto { inset: 12px 12px 12px auto; height: calc(100dvh - 24px); }
.finestra--cassetto .finestra__pannello { border-width: 0; }
.galleria__scena, .video__quadro { background: var(--inchiostro); }
.galleria__nav { border: 0; border-radius: 50%; background: #fff; }
.galleria__nav:hover { background: var(--corallo); color: var(--inchiostro); border: 0; }
.galleria__piede { border-top: 0; background: #fff; }
.fotografie a[data-galleria] i { border: 0; border-radius: 50%; }
.schermo__riproduci span { color: #fff; background: var(--rosso); border: 0; border-radius: 999px; }
.schermo__riproduci:hover span { background: var(--rosso-testo); border: 0; }
.candidatura-richiamo { padding: 26px clamp(20px, 3vw, 34px); background: #fff; border: 0; border-radius: var(--raggio); }
.candidatura-richiamo p { color: var(--inchiostro); }
.cassetto__corpo { background: #fff; }
.cassetto__corpo .candidatura { background: transparent; border-radius: 0; }

/* il cerchio con la freccia non copre mai il testo della tessera */
.area__testo { padding-right: 64px; }
