/* codicefiscalerapido.com — foglio di stile unico, mobile-first.
   Nessun font esterno, nessuna dipendenza: tutto in un solo file. */

/* ============ 1. Design tokens ============ */
:root {
  color-scheme: light dark;

  /* superfici */
  --bg:        #f4f6f5;
  --bg-alt:    #eceff0;
  --surface:   #ffffff;
  --surface-2: #f7f9f9;
  --line:      #e2e7e7;
  --line-soft: #edf1f1;

  /* testo */
  --ink:       #101a18;
  --ink-2:     #47575a;
  --ink-3:     #6d7d80;

  /* accento */
  --brand:     #0b7a63;
  --brand-700: #056049;
  --brand-300: #7fc9b6;
  --brand-50:  #e9f5f1;

  /* stati */
  --ok:        #16724a;
  --ok-bg:     #e7f5ed;
  --ok-line:   #b7dfc9;
  --ko:        #b3261e;
  --ko-bg:     #fdedeb;
  --ko-line:   #f3c6c1;
  --warn:      #7a5c05;
  --warn-bg:   #fdf6e3;
  --warn-line: #ecd9a3;

  /* segmenti del codice */
  --seg-1: #3b6ef0;  /* cognome */
  --seg-2: #7d4bd6;  /* nome    */
  --seg-3: #b8562f;  /* anno    */
  --seg-4: #a8431f;  /* mese    */
  --seg-5: #8a5a00;  /* giorno  */
  --seg-6: #0b7a63;  /* luogo   */
  --seg-7: #5a6b70;  /* check   */

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(16,26,24,.05), 0 1px 1px rgba(16,26,24,.03);
  --shadow:    0 2px 4px rgba(16,26,24,.04), 0 8px 24px -12px rgba(16,26,24,.14);
  --shadow-lg: 0 4px 8px rgba(16,26,24,.05), 0 24px 48px -20px rgba(16,26,24,.22);

  --wrap: 45rem;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0d1413;
    --bg-alt:    #111a19;
    --surface:   #16201f;
    --surface-2: #1c2726;
    --line:      #26312f;
    --line-soft: #202b29;

    --ink:       #eaf0ee;
    --ink-2:     #a8b8b6;
    --ink-3:     #7f908e;

    --brand:     #3fbfa0;
    --brand-700: #63d4b6;
    --brand-300: #1f6d5a;
    --brand-50:  #11312a;

    --ok:        #63d49a;  --ok-bg:   #11291d;  --ok-line: #1e4d36;
    --ko:        #ff8b80;  --ko-bg:   #2c1512;  --ko-line: #5c2822;
    --warn:      #e8c265;  --warn-bg: #241d0c;  --warn-line: #4a3c15;

    --seg-1: #7ba3ff; --seg-2: #b795f5; --seg-3: #f0a279;
    --seg-4: #f09a75; --seg-5: #e2b85c; --seg-6: #3fbfa0; --seg-7: #9aacb0;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 2px 4px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 4px 8px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.7);
  }
}

/* ============ 2. Base ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(70rem 26rem at 50% -14rem, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.15rem; }

h1, h2, h3 { line-height: 1.22; letter-spacing: -.021em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 5.4vw, 2.2rem); font-weight: 750; }
h2 { font-size: clamp(1.17rem, 3.4vw, 1.4rem); font-weight: 700; margin: 2.6rem 0 .75rem; }
h3 { font-size: 1.02rem; font-weight: 650; margin: 1.7rem 0 .35rem; }
p  { margin: 0 0 .9rem; }

a { color: var(--brand-700); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

strong, b { font-weight: 650; }

code, .mono {
  font-family: var(--mono); font-size: .9em;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: .1em .36em; border-radius: 5px; white-space: nowrap;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ 3. Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.site-header .wrap {
  display: flex; align-items: center; gap: .3rem .75rem;
  padding-block: .6rem; min-height: 3.4rem;
  flex-wrap: wrap;
}
@media (max-width: 33rem) {
  .site-header .wrap { padding-block: .5rem .4rem; }
  .site-nav {
    margin-left: 0; width: 100%;
    border-top: 1px solid var(--line-soft); padding-top: .35rem;
  }
  .site-nav a { padding-inline: .5rem; }
}

.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 700; letter-spacing: -.025em;
  color: var(--ink); text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.logo::before {
  content: "CF";
  display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 7px;
  background: linear-gradient(145deg, var(--brand), var(--brand-700));
  color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.logo span { color: var(--brand); }

.site-nav { display: flex; gap: .15rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: .83rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
  padding: .4rem .6rem; border-radius: var(--r-sm); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] {
  background: var(--brand-50); color: var(--brand-700); font-weight: 650;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* ============ 4. Hero ============ */
main { padding-block: 1.6rem 3rem; }

.hero { margin-bottom: 1.35rem; }
.hero h1 { margin-bottom: .5rem; }
.sottotitolo {
  color: var(--ink-2); font-size: 1.045rem; line-height: 1.55;
  margin: 0 0 1.05rem; max-width: 38rem; text-wrap: pretty;
}

.badge-riga { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge {
  display: inline-flex; align-items: center; gap: .34rem;
  font-size: .755rem; font-weight: 600; letter-spacing: .002em;
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .3rem .62rem .3rem .5rem;
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 13px; height: 13px; flex: none; color: var(--brand); }

/* ============ 5. Card + privacy ============ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: var(--shadow);
}
@media (min-width: 36rem) { .card { padding: 1.6rem 1.5rem; } }

.privacy {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--brand-50);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: var(--r);
  padding: .65rem .8rem;
  font-size: .825rem; line-height: 1.5;
  color: var(--brand-700);
  margin: 0 0 1.2rem;
}
.privacy svg { flex: none; margin-top: .2rem; opacity: .9; }
.privacy strong { font-weight: 650; }

/* ============ 6. Form ============ */
form { margin: 0; }

.griglia { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .griglia.due { grid-template-columns: 1fr 1fr; } }
.griglia + .griglia, .griglia + .campo, .griglia + .card, .campo + .griglia { margin-top: 1rem; }

.campo { display: flex; flex-direction: column; gap: .38rem; min-width: 0; }

label, .etichetta {
  font-size: .78rem; font-weight: 650; letter-spacing: .012em;
  color: var(--ink-2);
}
.aiuto { font-size: .775rem; line-height: 1.45; color: var(--ink-3); }

input, select {
  font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .68rem .8rem;
  width: 100%; min-width: 0; min-height: 2.9rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .14s ease, box-shadow .14s ease;
  appearance: none;
}
input::placeholder { color: var(--ink-3); opacity: .75; }
input:hover, select:hover { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--brand) 17%, transparent);
}
:where(button, a, summary):focus-visible {
  outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm);
}
input[aria-invalid="true"] { border-color: var(--ko); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236d7d80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
  padding-right: 2rem;
}

.radio-gruppo { display: flex; gap: .45rem; }
.radio-gruppo label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.9rem; padding: .5rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow-sm);
  cursor: pointer; font-size: .93rem; font-weight: 550; color: var(--ink-2);
  transition: all .14s ease;
}
.radio-gruppo label:hover { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); color: var(--ink); }
.radio-gruppo input { width: auto; min-height: 0; margin: 0; accent-color: var(--brand); box-shadow: none; }
.radio-gruppo label:has(input:checked) {
  border-color: var(--brand); background: var(--brand-50);
  color: var(--brand-700); font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.radio-gruppo label:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }

.data-nascita { display: grid; grid-template-columns: 4.4rem 1fr 5.4rem; gap: .45rem; }

button.primario {
  font: inherit; font-size: 1rem; font-weight: 650; letter-spacing: -.005em;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; margin-top: 1.25rem; padding: .85rem 1.2rem; min-height: 3.1rem;
  color: #fff; border: 0; border-radius: var(--r);
  background: linear-gradient(180deg, var(--brand), var(--brand-700));
  box-shadow: 0 1px 2px rgba(16,26,24,.18), 0 6px 16px -8px color-mix(in srgb, var(--brand) 60%, transparent);
  cursor: pointer;
  transition: filter .14s ease, transform .1s ease, box-shadow .14s ease;
}
button.primario:hover { filter: brightness(1.07); box-shadow: 0 2px 4px rgba(16,26,24,.2), 0 10px 22px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
button.primario:active { transform: translateY(1px); }

button.secondario {
  font: inherit; font-size: .82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .45rem .75rem; min-height: 2.25rem; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .14s ease;
}
button.secondario:hover { background: var(--surface-2); color: var(--ink); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
button.secondario svg { width: 14px; height: 14px; flex: none; }

/* ============ 7. Autocomplete ============ */
.ac { position: relative; }
.ac-lista {
  position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  max-height: 16.5rem; overflow-y: auto; overscroll-behavior: contain;
  list-style: none; margin: 0; padding: .3rem;
}
.ac-lista[hidden] { display: none; }
.ac-lista li {
  display: flex; justify-content: space-between; gap: .7rem; align-items: baseline;
  padding: .5rem .58rem; border-radius: var(--r-sm);
  font-size: .94rem; cursor: pointer; scroll-margin: .3rem;
}
.ac-lista li[aria-selected="true"] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.ac-lista li:hover { background: var(--surface-2); }
.ac-lista li[aria-selected="true"]:hover { background: var(--brand-50); }
.ac-lista .meta {
  font-family: var(--mono); font-size: .715rem; color: var(--ink-3);
  white-space: nowrap; font-weight: 500;
}
.ac-lista .storico { color: var(--ink-2); }
.ac-vuoto { padding: .65rem .58rem; font-size: .875rem; color: var(--ink-3); }

/* ============ 8. Risultato ============ */
.risultato { margin-top: 1.3rem; }
.risultato[hidden] { display: none; }
.risultato:not([hidden]) { animation: sali .3s cubic-bezier(.2,.7,.3,1) both; }
@keyframes sali { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.codice-box {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.codice {
  font-family: var(--mono);
  font-size: clamp(1.02rem, 5.2vw, 1.85rem);
  font-weight: 700; letter-spacing: .02em; line-height: 1.34;
  margin: 0; color: var(--ink);
  display: flex; gap: .1em; white-space: nowrap;
}
.codice .seg { border-bottom: 3px solid var(--c, var(--line)); padding-bottom: .06em; }
.codice .seg:nth-child(1) { --c: var(--seg-1); }
.codice .seg:nth-child(2) { --c: var(--seg-2); }
.codice .seg:nth-child(3) { --c: var(--seg-3); }
.codice .seg:nth-child(4) { --c: var(--seg-4); }
.codice .seg:nth-child(5) { --c: var(--seg-5); }
.codice .seg:nth-child(6) { --c: var(--seg-6); }
.codice .seg:nth-child(7) { --c: var(--seg-7); }

#riepilogo { margin: .7rem 0 0; font-size: .83rem; color: var(--ink-2); line-height: 1.5; }

.codice-azioni { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; margin-top: .9rem; }
.codice-azioni button { flex: 1 1 auto; justify-content: center; }
.codice-azioni .copiato { flex: 0 0 auto; }
.copiato { font-size: .8rem; font-weight: 650; color: var(--ok); }

/* chip della scomposizione */
.scomposizione {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr));
  gap: .4rem; margin-top: 1.05rem;
}
.pezzo {
  border: 1px solid var(--line); border-top: 2.5px solid var(--c, var(--line));
  border-radius: var(--r-sm); padding: .42rem .5rem;
  background: var(--surface); min-width: 0;
}
.pezzo:nth-child(1) { --c: var(--seg-1); }
.pezzo:nth-child(2) { --c: var(--seg-2); }
.pezzo:nth-child(3) { --c: var(--seg-3); }
.pezzo:nth-child(4) { --c: var(--seg-4); }
.pezzo:nth-child(5) { --c: var(--seg-5); }
.pezzo:nth-child(6) { --c: var(--seg-6); }
.pezzo:nth-child(7) { --c: var(--seg-7); }
.pezzo b {
  display: block; font-family: var(--mono); font-size: .97rem;
  font-weight: 700; letter-spacing: .02em; color: var(--ink);
}
.pezzo span {
  display: block; font-size: .685rem; font-weight: 600; line-height: 1.25;
  letter-spacing: .004em; color: var(--ink-3); margin-top: .1rem;
}

/* esito valido / non valido */
.esito {
  display: flex; gap: .65rem; align-items: flex-start;
  border-radius: var(--r); padding: .9rem 1rem;
  font-weight: 650; font-size: 1rem; line-height: 1.4;
}
.esito::before {
  content: ""; flex: none; width: 1.35rem; height: 1.35rem; margin-top: .05rem;
  border-radius: 50%; background: currentColor;
  -webkit-mask: center/0.85rem no-repeat var(--icona); mask: center/0.85rem no-repeat var(--icona);
}
.esito.valido {
  background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line);
  --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5 6 12.5 14 4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.esito.non-valido {
  background: var(--ko-bg); color: var(--ko); border: 1px solid var(--ko-line);
  --icona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.esito .motivo {
  display: block; font-weight: 400; font-size: .858rem; line-height: 1.5;
  color: var(--ink-2); margin-top: .22rem;
}

.errori {
  list-style: none; margin: 1rem 0 0; padding: .8rem 1rem;
  background: var(--ko-bg); border: 1px solid var(--ko-line);
  border-radius: var(--r); color: var(--ko); font-size: .875rem;
}
.errori[hidden] { display: none; }
.errori li { display: flex; gap: .45rem; margin: .18rem 0; }
.errori li::before { content: "—"; flex: none; opacity: .6; }

/* tabella dei dati letti */
.dati { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: .93rem; }
.dati th, .dati td { text-align: left; padding: .62rem .1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.dati th { font-weight: 600; font-size: .79rem; color: var(--ink-3); width: 40%; letter-spacing: .01em; }
.dati td { font-weight: 550; color: var(--ink); }
.dati tr:last-child th, .dati tr:last-child td { border-bottom: 0; }

.nota {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: var(--r); padding: .8rem .95rem;
  font-size: .82rem; line-height: 1.55; color: var(--warn); margin-top: .9rem;
}
.nota[hidden] { display: none; }
.nota p:last-child { margin-bottom: 0; }
.nota a { color: inherit; }
.nota .mono { background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: transparent; }

/* ============ 9. Contenuti ============ */
.contenuto { margin-top: 3rem; }
.contenuto > p, .contenuto > ul, .contenuto > ol { color: var(--ink-2); }
.contenuto > p { max-width: 40rem; text-wrap: pretty; }
.contenuto ul, .contenuto ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.contenuto li { margin: .34rem 0; }
.contenuto li::marker { color: var(--brand); }

.contenuto table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: .6rem 0 1.1rem; }
.contenuto th, .contenuto td {
  border: 1px solid var(--line); padding: .5rem .6rem; text-align: left;
}
.contenuto th { background: var(--surface-2); font-weight: 650; color: var(--ink); }
.contenuto td { background: var(--surface); color: var(--ink-2); }
.tabella-scroll {
  overflow-x: auto; border-radius: var(--r);
  -webkit-overflow-scrolling: touch;
}
.tabella-scroll table { margin-bottom: 0; }

details.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: .5rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
details.faq[open] { border-color: color-mix(in srgb, var(--brand) 26%, var(--line)); box-shadow: var(--shadow-sm); }
details.faq summary {
  display: flex; align-items: center; gap: .7rem;
  padding: .82rem .95rem; cursor: pointer;
  font-weight: 600; font-size: .955rem; line-height: 1.4; color: var(--ink);
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; flex: none; margin-left: auto;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230b7a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/9px no-repeat;
  transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(180deg); }
details.faq > *:not(summary) {
  padding-inline: .95rem; font-size: .9rem; color: var(--ink-2); line-height: 1.6;
}
details.faq > p:last-child { padding-bottom: .95rem; margin-bottom: 0; }

.fonte { font-size: .805rem; color: var(--ink-3); line-height: 1.55; }

/* ============ 10. Footer ============ */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 1.8rem 2.2rem;
  font-size: .83rem; line-height: 1.6; color: var(--ink-3);
}
.site-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.site-footer nav a { color: var(--ink-2); font-weight: 550; text-decoration: none; }
.site-footer nav a:hover { color: var(--brand-700); text-decoration: underline; }
.site-footer p { margin: 0 0 .45rem; max-width: 38rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* ============ 11. Dettagli specifici ============ */

/* campo di incolla del codice fiscale (pagina di verifica) */
.campo-codice {
  font-family: var(--mono);
  font-size: clamp(1rem, 4.6vw, 1.18rem);
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding-block: .78rem;
}
.campo-codice::placeholder { letter-spacing: .09em; font-weight: 400; text-transform: none; }

/* nota sulla trascrizione dei nomi (pagina estero) */
.nota-nomi { display: block; margin-top: .45rem; }


/* ============ 12. Banner di consenso cookie ============ */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding-block: .95rem 1.05rem;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ink-2);
  padding-bottom: calc(1.05rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .28s ease;
}
.cookie-banner.is-visibile { transform: none; }

.cookie-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.4rem;
}
.cookie-banner p { margin: 0; flex: 1 1 18rem; }
.cookie-banner strong { color: var(--ink); font-weight: 650; }
.cookie-banner a { color: var(--brand-700); font-weight: 550; }

.cookie-azioni { display: flex; gap: .55rem; flex: 0 0 auto; }
.cookie-azioni button {
  font: inherit;
  font-weight: 600;
  padding: .55rem 1.15rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
}
.cookie-azioni .btn-rifiuta {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.cookie-azioni .btn-rifiuta:hover { border-color: var(--ink-3); color: var(--ink); }
.cookie-azioni .btn-accetta {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
}
.cookie-azioni .btn-accetta:hover { background: var(--brand-700); border-color: var(--brand-700); }
.cookie-azioni button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 30rem) {
  .cookie-azioni { width: 100%; }
  .cookie-azioni button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
