/* Lagom Consulting: sistema visivo dichiarato in CLAUDE.md */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: fallback;
  src: url(/statico/caratteri/cormorant-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: fallback;
  src: url(/statico/caratteri/cormorant-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: fallback;
  src: url(/statico/caratteri/cormorant-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: fallback;
  src: url(/statico/caratteri/karla-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: fallback;
  src: url(/statico/caratteri/karla-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --carta: #FAF8F5;
  --carta-2: #F2EDE6;
  --carta-3: #E9E2D8;
  --inchiostro: #1F1D1B;
  --grigio: #5B554F;
  --tortora: #C2AB92;
  --accento: #6E5A47;
  --linea: #DCD2C5;
  --ombra: 0 1px 2px rgba(31, 29, 27, .06), 0 10px 30px -12px rgba(31, 29, 27, .18);
  /* il piede ha un fondo fissato: colori fissati, uguali nei due temi */
  --piede-fondo: #1F1D1B;
  --piede-testo: #ECE6DE;
  --piede-grigio: #B3AA9F;
  --piede-accento: #D2BEA6;
  --piede-linea: #3A3530;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --testata: 72px;
  --largo: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --raggio: 4px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --carta: #151413;
    --carta-2: #1D1B19;
    --carta-3: #27241F;
    --inchiostro: #ECE6DE;
    --grigio: #AFA69B;
    --tortora: #C2AB92;
    --accento: #D2BEA6;
    --linea: #36322D;
    --ombra: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -12px rgba(0, 0, 0, .6);
  }
}

html[lang^="zh"] { --serif: "Cormorant Garamond", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "Karla", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html[lang="ko"] { --serif: "Cormorant Garamond", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", serif;
  --sans: "Karla", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
html[lang="ja"] { --serif: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Karla", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; }
html[lang="ko"] body { word-break: keep-all; }
html[lang^="zh"] body, html[lang="ja"] body { line-break: strict; }
html[lang="ja"] :is(h1, h2, h3, .pannello-t) { word-break: auto-phrase; }
h1, h2, h3, .pannello-t { text-wrap: balance; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--testata) + 16px); }
html[data-sede="extra"] { scroll-padding-top: calc(var(--testata) + 60px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; hyphens: manual; background: var(--carta); color: var(--inchiostro);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--tortora); text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; border-radius: 2px; }
.visivamente-nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.salta { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--inchiostro); color: var(--carta); padding: 12px 16px; min-height: 44px; }
.salta:focus { top: 12px; }

.occhiello {
  font: 500 14px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accento);
  margin-bottom: 18px;
}
html[lang^="zh"] .occhiello, html[lang="ko"] .occhiello, html[lang="ja"] .occhiello { letter-spacing: .08em; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 12px 22px; border: 1px solid var(--inchiostro); border-radius: 2px;
  background: var(--inchiostro); color: var(--carta);
  font: 500 14px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-align: left;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-chiaro { background: var(--piede-testo); color: var(--piede-fondo); border-color: var(--piede-testo); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--ombra); }
  .btn:hover .ico { transform: translateX(3px); }
  .btn .ico { transition: transform .2s ease; }
}

/* ---------- testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--carta) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--linea);
}
.testata-dentro {
  max-width: var(--largo); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--testata); display: flex; align-items: center; gap: 20px;
}
.marchio { display: block; padding: 10px 0; margin-right: auto; }
.marchio img { height: 30px; width: auto; }
@media (prefers-color-scheme: dark) { .marchio img, .carta-logo { filter: invert(1) brightness(.92); } }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: 15px; text-decoration: none; color: var(--grigio); border-radius: 2px; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1px; background: var(--inchiostro); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a[aria-current="true"] { color: var(--inchiostro); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
html[data-sede="extra"] .nav a[data-voce="mandatario"] { color: var(--inchiostro); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--inchiostro); }
  .nav a:hover::after { transform: scaleX(1); }
}

.lingue { position: relative; }
.lingue summary {
  list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px;
  cursor: pointer; font-size: 14px; letter-spacing: .08em; border: 1px solid var(--linea); border-radius: 2px;
}
.lingue summary::-webkit-details-marker { display: none; }
.lingue ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
  background: var(--carta); border: 1px solid var(--linea); border-radius: var(--raggio); box-shadow: var(--ombra);
}
.lingue a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: 2px; }
.lingue a[aria-current="true"] { background: var(--carta-2); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .lingue a:hover { background: var(--carta-2); } }

.menu-btn { display: none; }

.banda-extra {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px var(--gutter);
  background: var(--inchiostro); color: var(--carta); font-size: 15px; font-weight: 500; text-decoration: none;
  transform-origin: top; animation: banda .5s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes banda { from { transform: scaleY(0); opacity: 0; } }

@media (max-width: 1080px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
    background: none; border: 1px solid var(--linea); border-radius: 2px; cursor: pointer; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  }
  .menu-righe, .menu-righe::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease; }
  .menu-righe { transform: translateY(-3px); }
  .menu-righe::before { content: ""; position: absolute; top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-righe { transform: translateY(0) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-righe::before { transform: translateY(-6px) rotate(-90deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
    background: var(--carta); border-bottom: 1px solid var(--linea); box-shadow: var(--ombra);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.aperto { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 18px; min-height: 52px; border-bottom: 1px solid var(--linea); padding: 0 4px; }
  .nav a::after { display: none; }
}
@media (max-width: 420px) {
  .marchio img { height: 24px; }
  .menu-testo { display: none; }
  .testata-dentro { gap: 10px; }
}

/* ---------- sezioni ---------- */
.sezione, .hero { max-width: var(--largo); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter); }
.sez-testa { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sez-testa h2, .piede h2, .testo-lungo h1, .nf h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.005em;
}
.sez-intro { margin-top: 20px; font-size: 19px; color: var(--grigio); max-width: 680px; }
html[lang^="zh"] .sez-testa h2, html[lang="ko"] .sez-testa h2, html[lang="ja"] .sez-testa h2,
html[lang^="zh"] .piede h2, html[lang="ko"] .piede h2, html[lang="ja"] .piede h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; font-weight: 600; }

/* la barra obliqua del logo che taglia la riga */
.obliqua { max-width: var(--largo); margin: 0 auto; padding: 0 var(--gutter); }
.obliqua span { display: block; position: relative; height: 34px; }
.obliqua span::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--linea); transform-origin: left; }
.obliqua span::after { content: ""; position: absolute; left: 38%; top: 0; width: 1px; height: 34px; background: var(--tortora); transform: rotate(-24deg); transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .js .obliqua span::before { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
  .js .obliqua span::after { opacity: 0; transform: rotate(-24deg) translateY(-10px); transition: opacity .5s ease .5s, transform .6s cubic-bezier(.2, .7, .2, 1) .5s; }
  .js .obliqua.visto span::before { transform: scaleX(1); }
  .js .obliqua.visto span::after { opacity: 1; transform: rotate(-24deg); }
  .js .compare { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--ritardo, 0s); }
  .js .compare.visto { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start;
  padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -.01em;
}
.hero h1 em { display: block; font-style: italic; color: var(--accento); }
html[lang^="zh"] .hero h1, html[lang="ko"] .hero h1, html[lang="ja"] .hero h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.25; font-weight: 600; }
html[lang^="zh"] .hero h1 em, html[lang="ko"] .hero h1 em, html[lang="ja"] .hero h1 em { font-style: normal; }
.hero-sotto { margin-top: 24px; font-size: 19px; color: var(--grigio); max-width: 560px; }

/* la messa a fuoco: il titolo arriva sfocato e si mette a fuoco */
@media (prefers-reduced-motion: no-preference) {
  .js .fuoco { animation: fuoco 1.6s cubic-bezier(.3, .6, .2, 1) .35s both; }
}
@keyframes fuoco { from { filter: blur(9px); opacity: .25; letter-spacing: .02em; } to { filter: blur(0); opacity: 1; } }

/* i due pannelli stanno nella stessa cella: l'altezza è quella del più alto, niente salti */
.hero-destra { display: grid; align-content: start; }
.lente { display: grid; position: relative; z-index: 1; margin: -150px 0 0 -56px; }
.pannello { grid-area: 1 / 1; padding: 26px 28px; border-left: 2px solid var(--tortora); background: var(--carta); border-radius: 0 var(--raggio) var(--raggio) 0; box-shadow: var(--ombra); }
.pannello { visibility: hidden; }
.lente[data-attivo="neutro"] [data-pannello="neutro"], .lente[data-attivo="extra"] [data-pannello="extra"] { visibility: visible; }
.pannello-t { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 600; margin-bottom: 10px; }
html[lang^="zh"] .pannello-t, html[lang="ko"] .pannello-t, html[lang="ja"] .pannello-t { font-size: 21px; line-height: 1.45; }
.pannello p + p { color: var(--grigio); }
.pannello .btn { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .lente[data-attivo="extra"] [data-pannello="extra"] { animation: pannello .6s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes pannello { from { opacity: 0; filter: blur(4px); } }

.hero-foto { margin: 0; position: relative; border-radius: var(--raggio); overflow: hidden; background: #191817; aspect-ratio: 1 / 1; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-foto img { animation: foto 2.4s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes foto { from { transform: scale(1.06); filter: blur(6px); } }

@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-destra { display: contents; }
  .hero-foto { order: 2; aspect-ratio: 16 / 9; margin: 8px calc(var(--gutter) * -1) 0; border-radius: 0; }
  .lente { margin: 0; }
  .pannello { background: var(--carta-2); box-shadow: none; }
}
@media (max-width: 560px) {
  .hero-sotto { font-size: 17px; margin-top: 18px; }
  .pannello { padding: 20px; }
  .pannello-t { font-size: 24px; }
}

/* ---------- la ricetta ---------- */
/* subito dopo l'apertura: la domanda della sede arriva senza un vuoto in mezzo */
.hero + .percorso { padding-top: clamp(24px, 4vw, 48px); }
.percorso-griglia { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.domande { display: grid; gap: 28px; }
.domande fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.domande legend { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-weight: 700; font-size: 18px; margin-bottom: 12px; padding: 0; }
.passo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--tortora); font: 600 18px/1 var(--serif); color: var(--accento); flex: none; }
.legenda-nota { font-weight: 400; font-size: 14px; color: var(--grigio); }
.opzioni { display: flex; flex-wrap: wrap; gap: 8px; }
.opzione { position: relative; display: inline-flex; }
.opzione input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opzione span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--linea); border-radius: 999px;
  font-size: 15px; line-height: 1.3; background: var(--carta); overflow-wrap: anywhere; hyphens: auto; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.opzione input:checked + span { background: var(--inchiostro); color: var(--carta); border-color: var(--inchiostro); }
.opzione input:focus-visible + span { outline: 2px solid var(--accento); outline-offset: 3px; }
.opzione input:active + span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .opzione input:hover + span { border-color: var(--grigio); } }

/* la nota va a capo intera quando non ci sta, invece di stringere il testo in colonna */
.opzione span:has(small) { flex-wrap: wrap; column-gap: 6px; }
.opzione small { font-size: 14px; opacity: .75; }
/* il paese rilevato, sotto la sede già scelta: si può sempre correggere con un tocco */
.rilevato { min-height: 1.5em; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--grigio); }
.carta-ricetta {
  position: sticky; top: calc(var(--testata) + 20px);
  background: var(--carta); border: 1px solid var(--linea); border-radius: var(--raggio); box-shadow: var(--ombra);
  padding: clamp(20px, 3vw, 32px); overflow: clip;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--linea) 45%, transparent) 31px 32px);
}
html[data-sede="extra"] .carta-ricetta { top: calc(var(--testata) + 64px); }
.carta-testa { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 2px solid var(--inchiostro); }
.rx { font: 600 40px/1 var(--serif); color: var(--accento); }
.carta-testa h3 { font: italic 500 28px/1.1 var(--serif); margin-right: auto; }
html[lang^="zh"] .carta-testa h3, html[lang="ko"] .carta-testa h3, html[lang="ja"] .carta-testa h3 { font-style: normal; font-size: 22px; font-weight: 600; }
.carta-logo { height: 16px; width: auto; opacity: .8; }
.carta-righe { margin: 0; }
.carta-righe div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--linea); }
.carta-righe dt { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); padding-top: 2px; }
.carta-righe dd { margin: 0; font-weight: 500; }
.carta-sotto { margin: 22px 0 6px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accento); font-weight: 700; }
.carta-vuota { font-size: 15px; color: var(--grigio); padding: 10px 0 4px; }

/* il check-up gratuito: compare quando la persona chiede un controllo della documentazione */
.checkup { display: none; margin-top: 18px; padding: 16px 18px; border: 1px dashed var(--accento); border-radius: var(--raggio); background: var(--carta-2); }
.checkup-t { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.checkup p + p { color: var(--grigio); font-size: 15px; }
.carta-ricetta.con-checkup .checkup { display: block; }

/* gli obblighi: senza JS c'è tutto l'elenco; con JS si scrivono riga per riga quando valgono */
.obblighi { counter-reset: ob; display: grid; }
.obbligo { counter-increment: ob; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--linea); }
.obbligo::before { content: counter(ob, decimal-leading-zero); grid-row: 1 / 3; font: 600 18px/1.4 var(--serif); color: var(--accento); }
.obbligo-t { font-weight: 700; line-height: 1.35; }
.obbligo-rif { grid-column: 2; font-size: 14px; color: var(--grigio); line-height: 1.45; }
.obbligo-segno, .obbligo-fatto { display: none; }
.js .carta-vuota { display: block; }
.js .carta-ricetta.composta .carta-vuota, .js .carta-ricetta.con-checkup .carta-vuota { display: none; }
.carta-vuota { display: none; }
.js .obbligo { display: none; }
.js .obbligo.dentro { display: grid; }
@media (prefers-reduced-motion: no-preference) {
  .js .obbligo.nuovo { animation: scrivi .55s cubic-bezier(.3, .6, .2, 1) both; animation-delay: calc(var(--n, 0) * 90ms); }
}
@keyframes scrivi { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

/* «Ce ne occupiamo noi»: ogni riga si spunta, poi cade il timbro */
.obbligo-segno { position: absolute; right: 0; top: 10px; width: 28px; height: 28px; }
.obbligo-segno svg { width: 28px; height: 28px; fill: none; stroke: var(--accento); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obbligo-segno circle, .obbligo-segno path { stroke-dasharray: 100; stroke-dashoffset: 100; }
.obbligo.presa { padding-right: 40px; }
.obbligo.presa .obbligo-segno { display: block; }
.obbligo.presa .obbligo-segno circle, .obbligo.presa .obbligo-segno path { stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease; }
.obbligo.presa .obbligo-segno path { transition-delay: .2s; }
.obbligo.presa .obbligo-fatto { display: block; grid-column: 2; font-size: 14px; font-weight: 700; color: var(--accento); }
.obbligo.presa .obbligo-rif { display: none; }

.carta-piede { display: grid; margin-top: 22px; gap: 12px; }
.btn-grande { min-height: 60px; font-size: 15px; justify-content: space-between; padding: 14px 22px; }
.per-checkup { display: none; }
.con-checkup .per-normale { display: none; }
.con-checkup .per-checkup { display: inline; }
.js .carta-ricetta:not(.composta):not(.con-checkup) [data-affida] { opacity: .4; pointer-events: none; }
.carta-ricetta.timbrata [data-affida] { opacity: .4; pointer-events: none; }
.carta-nota { font-size: 14px; color: var(--grigio); }

.timbro { display: none; position: absolute; right: 22px; bottom: 6px; width: 168px; height: 168px; color: #9E3B22; pointer-events: none; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .timbro { color: #E2896F; mix-blend-mode: screen; } }
.timbro circle { fill: none; stroke: currentColor; stroke-width: 4; }
.timbro circle.sottile { stroke-width: 1.5; }
.timbro text { fill: currentColor; font-family: var(--sans); font-weight: 700; text-anchor: middle; }
.timbro .giro { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-anchor: start; }
.timbro .marchio-timbro { font-size: 26px; letter-spacing: .12em; }
.timbro .data-timbro { font-size: 12px; letter-spacing: .06em; }
.timbro .barra { stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.carta-ricetta.timbrata:not(.con-checkup) [data-timbro="normale"], .carta-ricetta.timbrata.con-checkup [data-timbro="checkup"] { display: block; transform: rotate(-14deg); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .carta-ricetta.timbrata .timbro { animation: timbra .5s cubic-bezier(.2, 1.4, .4, 1) both; }
}
@keyframes timbra { 0% { transform: rotate(-4deg) scale(1.9); opacity: 0; } 70% { opacity: .95; } 100% { transform: rotate(-14deg) scale(1); opacity: .9; } }

/* il modulo di valutazione: si apre sotto la ricetta, scuro come il piede (colori fissati) */
.valutazione { margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 4vw, 48px); border-radius: var(--raggio); background: var(--piede-fondo); color: var(--piede-testo); scroll-margin-top: calc(var(--testata) + 16px); }
html[data-sede="extra"] .valutazione { scroll-margin-top: calc(var(--testata) + 60px); }
@media (prefers-reduced-motion: no-preference) { .valutazione:not([hidden]) { animation: pannello .7s cubic-bezier(.2, .7, .2, 1) both; } }
.valutazione-testa { max-width: 720px; margin-bottom: 8px; }
.valutazione-testa h3 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; font-weight: 500; margin-bottom: 10px; }
html[lang^="zh"] .valutazione-testa h3, html[lang="ko"] .valutazione-testa h3, html[lang="ja"] .valutazione-testa h3 { font-size: 26px; font-weight: 600; line-height: 1.4; }
.valutazione-testa p { color: var(--piede-grigio); }
.valutazione .per-checkup { display: none; }
.valutazione.con-checkup .per-normale { display: none; }
.valutazione.con-checkup .per-checkup { display: block; }
.valutazione :focus-visible { outline-color: var(--piede-accento); }
.valutazione a { text-decoration-color: var(--piede-accento); }
.scelte-modulo { border: 0; padding: 0; margin: 0; min-width: 0; }
.scelte-modulo legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.scelte-modulo .legenda-nota, .valutazione .legenda-nota { color: var(--piede-grigio); }
.valutazione .opzione span { background: #2A2724; border-color: var(--piede-linea); color: var(--piede-testo); }
.valutazione .opzione input:checked + span { background: var(--piede-testo); border-color: var(--piede-testo); color: var(--piede-fondo); }
.valutazione .opzione input:focus-visible + span { outline-color: var(--piede-accento); }
@media (hover: hover) and (pointer: fine) { .valutazione .opzione input:hover + span { border-color: var(--piede-grigio); } }
.obbligatori { font-size: 14px; color: var(--piede-grigio); }
.modulo .campi { grid-column: 1 / -1; }

@media (max-width: 959px) {
  .percorso-griglia { grid-template-columns: minmax(0, 1fr); }
  .carta-ricetta { position: relative; top: 0; }
}
@media (max-width: 420px) { .carta-righe div { grid-template-columns: 1fr; gap: 2px; } .carta-logo { display: none; } .timbro { width: 136px; height: 136px; right: 8px; } }

/* ---------- mandatario ---------- */
.punti-numerati { counter-reset: p; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid var(--linea); }
.punti-numerati li { counter-increment: p; padding: 28px 0; border-bottom: 1px solid var(--linea); }
.punti-numerati li::before { content: counter(p, decimal-leading-zero); display: block; font: 500 40px/1 var(--serif); color: var(--tortora); margin-bottom: 14px; }
.punti-numerati h3, .perche h3, .caso h3, .persona h3 { font-family: var(--serif); font-size: 25px; line-height: 1.2; font-weight: 600; margin-bottom: 8px; }
html[lang^="zh"] :is(.punti-numerati, .perche, .caso, .persona) h3,
html[lang="ko"] :is(.punti-numerati, .perche, .caso, .persona) h3,
html[lang="ja"] :is(.punti-numerati, .perche, .caso, .persona) h3 { font-size: 20px; line-height: 1.45; }
.punti-numerati p, .caso p, .persona p { color: var(--grigio); }
.mandatario-giu { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.perche { background: var(--inchiostro); color: var(--carta); padding: clamp(24px, 3.4vw, 40px); border-radius: var(--raggio); }
.perche ul { display: grid; gap: 14px; margin: 18px 0 28px; }
.perche li { display: flex; gap: 12px; align-items: flex-start; }
.perche li .ico { margin-top: 3px; color: var(--tortora); }
.perche .btn { background: var(--carta); color: var(--inchiostro); border-color: var(--carta); }
.casi { display: grid; gap: 14px; align-content: start; }
.caso { padding: 22px 24px; border: 1px solid var(--linea); border-radius: var(--raggio); transition: border-color .3s ease, background-color .3s ease; }
.caso-etichetta { display: none; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accento); font-weight: 700; margin-bottom: 6px; }
.caso.tuo { border-color: var(--inchiostro); background: var(--carta-2); box-shadow: inset 3px 0 0 var(--tortora); }
.caso.tuo .caso-etichetta { display: block; }
@media (max-width: 859px) { .mandatario-giu, .punti-numerati { grid-template-columns: minmax(0, 1fr); } }

/* ---------- testimonianze: fascia scura (fondo fissato, colori fissati) ---------- */
.fascia-clienti { background: var(--piede-fondo); color: var(--piede-testo); }
.fascia-dentro { max-width: var(--largo); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.fascia-clienti .occhiello { color: var(--piede-accento); }
.fascia-clienti h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; max-width: 520px; }
html[lang^="zh"] .fascia-clienti h2, html[lang="ko"] .fascia-clienti h2, html[lang="ja"] .fascia-clienti h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.35; font-weight: 600; }
.fascia-testa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.numeri { display: grid; grid-template-columns: repeat(3, auto); gap: 12px clamp(20px, 4vw, 56px); margin: 0; }
.numeri div { display: flex; flex-direction: column-reverse; gap: 4px; padding-top: 12px; border-top: 1px solid var(--piede-accento); }
.numeri dd { margin: 0; font: 500 clamp(40px, 5.4vw, 64px)/1 var(--serif); color: var(--piede-testo); }
.numeri dt { font-size: 14px; color: var(--piede-grigio); }
.citazioni { position: relative; outline-offset: 8px; }
.citazioni:focus-visible { outline: 2px solid var(--piede-accento); }
/* tutte le citazioni nella stessa cella: l'altezza è quella della più lunga */
.citazioni-palco { display: grid; }
.citazione { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility 0s linear .5s; }
.citazione.attiva { visibility: visible; opacity: 1; transition: opacity .6s ease .1s, visibility 0s; }
.citazione blockquote { margin: 0; }
.citazione blockquote p { font: italic 500 clamp(24px, 3.1vw, 38px)/1.3 var(--serif); max-width: 980px; text-wrap: pretty; }
.citazione blockquote p::before { content: "“"; display: block; font: 600 clamp(64px, 8vw, 96px)/.55 var(--serif); color: var(--piede-accento); font-style: normal; margin-bottom: 12px; }
.citazione figcaption { margin-top: 24px; font-size: 16px; color: var(--piede-grigio); }
.citazione figcaption strong { color: var(--piede-testo); letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
html:not(.js) .citazione { visibility: visible; opacity: 1; grid-area: auto; margin-bottom: 40px; }
html:not(.js) .citazioni-comandi .tondo, html:not(.js) .citazioni-pos { display: none; }
.citazioni-comandi { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.citazioni-pos { font-size: 15px; color: var(--piede-grigio); min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.citazioni-nota { font-size: 14px; color: var(--piede-grigio); margin-left: auto; }
.tondo { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--linea); background: var(--carta); color: inherit; cursor: pointer; transition: transform .15s ease, border-color .2s ease; }
.tondo:active { transform: scale(.92); }
.fascia-clienti .tondo { background: transparent; border-color: var(--piede-linea); color: var(--piede-testo); }
.fascia-clienti .tondo:focus-visible { outline-color: var(--piede-accento); }
@media (hover: hover) and (pointer: fine) { .fascia-clienti .tondo:hover { border-color: var(--piede-testo); } }
@media (max-width: 600px) { .numeri { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; } .citazioni-nota { margin-left: 0; width: 100%; } }

/* ---------- chi siamo ---------- */
.lagom { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--inchiostro); }
html[lang^="zh"] .lagom, html[lang="ko"] .lagom, html[lang="ja"] .lagom { font-style: normal; font-size: 19px; line-height: 1.7; }
.persone { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.persona { display: flex; gap: 22px; align-items: flex-start; padding: 28px; border: 1px solid var(--linea); border-radius: var(--raggio); }
.persona-foto { position: relative; flex: none; display: grid; place-items: center; width: 120px; aspect-ratio: 4 / 5; border-radius: var(--raggio); overflow: hidden; background: var(--carta-2); border: 1px solid var(--linea); }
.persona-foto img { width: 100%; height: 100%; object-fit: cover; }
.persona-iniziali { font: italic 500 40px/1 var(--serif); color: var(--accento); }
.persona-ruolo { color: var(--accento) !important; font-weight: 500; margin-bottom: 4px; }
@media (max-width: 759px) { .persone { grid-template-columns: 1fr; } .persona { padding: 22px; gap: 16px; } .persona-foto { width: 92px; } .persona-iniziali { font-size: 30px; } }

/* ---------- domande ---------- */
.domande-frequenti { border-top: 1px solid var(--linea); max-width: 860px; }
.domande-frequenti details { border-bottom: 1px solid var(--linea); }
.domande-frequenti summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0;
  cursor: pointer; font-weight: 700; font-size: 18px; line-height: 1.4;
}
.domande-frequenti summary::-webkit-details-marker { display: none; }
.domande-frequenti summary .ico { transition: transform .3s ease; color: var(--accento); }
.domande-frequenti details[open] summary .ico { transform: rotate(45deg); }
.domande-frequenti details p { padding: 0 48px 22px 0; color: var(--grigio); }
@media (prefers-reduced-motion: no-preference) { .domande-frequenti details[open] p { animation: pannello .45s ease both; } }

/* ---------- piede e modulo (fondo fissato, colori fissati) ---------- */
.piede { background: var(--piede-fondo); color: var(--piede-testo); margin-top: clamp(40px, 6vw, 80px); }
.piede-dentro { max-width: var(--largo); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter) 48px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); }
.piede .occhiello { color: var(--piede-accento); }
.piede-intro { margin-top: 16px; color: var(--piede-grigio); font-size: 18px; }
.piede a { text-decoration-color: var(--piede-accento); }
.piede :focus-visible { outline-color: var(--piede-accento); }
.recapiti { margin: 36px 0 0; display: grid; gap: 18px; }
.recapiti dt { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--piede-accento); margin-bottom: 4px; }
.recapiti dd { margin: 0; color: var(--piede-testo); }
.recapiti ul { display: grid; gap: 0; }
.recapiti li { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.recapiti a { display: inline-flex; align-items: center; min-height: 44px; }
.tel-nome { color: var(--piede-grigio); min-width: 72px; }

.modulo { display: grid; gap: 18px; align-content: start; }
.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: grid; gap: 6px; font-size: 14px; letter-spacing: .06em; color: var(--piede-grigio); }
.campo-largo { grid-column: 1 / -1; }
.campo input, .campo textarea {
  font-size: 17px; letter-spacing: 0; color: var(--piede-testo); background: #2A2724; border: 1px solid var(--piede-linea); border-radius: 2px;
  min-height: 48px; padding: 12px 14px; transition: border-color .2s ease, background-color .2s ease;
}
.campo textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.campo input:focus, .campo textarea:focus { border-color: var(--piede-accento); outline: none; background: #312D29; }
.campo input:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--piede-accento); outline-offset: 1px; }
.campo-trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ricetta-allegata { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px dashed var(--piede-accento); border-radius: 2px; color: var(--piede-testo); font-size: 15px; }
.ricetta-allegata .ico { color: var(--piede-accento); }
.spunta { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-size: 16px; }
.spunta input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.casella { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--piede-grigio); border-radius: 2px; }
.casella .ico { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .15s ease, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.spunta input:checked + .casella { background: var(--piede-testo); border-color: var(--piede-testo); color: var(--piede-fondo); }
.spunta input:checked + .casella .ico { opacity: 1; transform: none; }
.spunta input:focus-visible + .casella { outline: 2px solid var(--piede-accento); outline-offset: 3px; }
.link-privacy a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--piede-grigio); }
.link-privacy .ico { width: 16px; height: 16px; }
.invio { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.esito { font-size: 15px; color: var(--piede-testo); max-width: 460px; }
.esito[data-tipo="errore"] { color: #F2B8A8; }
.btn.fatto { background: #CFE3C8; border-color: #CFE3C8; color: #1F1D1B; }
.btn.prova { background: var(--piede-accento); border-color: var(--piede-accento); color: #1F1D1B; }
.btn.errore { background: #F2B8A8; border-color: #F2B8A8; color: #1F1D1B; }
.btn.attesa { opacity: .8; cursor: progress; }
.btn.attesa::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: spia 1s ease-in-out infinite; }
@keyframes spia { 50% { opacity: .2; } }

.piede-fondo { max-width: var(--largo); margin: 0 auto; padding: 24px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; border-top: 1px solid var(--piede-linea); font-size: 14px; color: var(--piede-grigio); }
.piede-fondo a { display: inline-flex; align-items: center; min-height: 44px; }
.piede-logo { height: 22px; width: auto; filter: invert(1) brightness(.9); }
@media (max-width: 859px) { .piede-dentro { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .campi { grid-template-columns: 1fr; } }

/* ---------- indice sotto il pollice ---------- */
.indice { position: fixed; right: 16px; bottom: 16px; z-index: 30; }
.indice-btn {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--inchiostro); color: var(--carta); cursor: pointer; box-shadow: var(--ombra); transition: transform .15s ease;
}
.indice-btn:active { transform: scale(.92); }
.indice-btn .anello { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); fill: none; }
.indice-btn .anello circle { stroke: color-mix(in srgb, var(--carta) 25%, transparent); stroke-width: 2; }
.indice-btn .anello .anello-pieno { stroke: var(--tortora); stroke-dasharray: 100; stroke-dashoffset: var(--avanzamento, 100); transition: stroke-dashoffset .3s ease; }
.indice-voci {
  position: absolute; right: 0; bottom: 60px; min-width: 230px; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; background: var(--carta); border: 1px solid var(--linea); border-radius: var(--raggio); box-shadow: var(--ombra);
}
.indice-voci a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: 2px; }
.indice-voci a[aria-current="true"] { background: var(--carta-2); font-weight: 700; }
.indice-su { border-top: 1px solid var(--linea); margin-top: 6px; color: var(--grigio); }
@media (hover: hover) and (pointer: fine) { .indice-voci a:hover { background: var(--carta-2); } }

/* ---------- pagine di testo e 404 ---------- */
.testo-lungo { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.testo-lungo h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 40px 0 10px; }
html[lang^="zh"] .testo-lungo h2, html[lang="ko"] .testo-lungo h2, html[lang="ja"] .testo-lungo h2 { font-size: 22px; }
.testo-lungo p { color: var(--grigio); }
.aggiornata { margin-top: 12px; font-size: 15px; }
.fede { margin-top: 48px; font-size: 15px; font-style: italic; }
.nf { max-width: 760px; margin: 0 auto; padding: clamp(56px, 10vw, 120px) var(--gutter); text-align: center; display: grid; gap: 22px; justify-items: center; }
.nf p { color: var(--grigio); font-size: 19px; }
.nf-lenti { display: flex; gap: 14px; margin-bottom: 8px; }
.nf-lenti span { width: 84px; height: 84px; border: 2px solid var(--inchiostro); border-radius: 50%; filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) { .nf-lenti span { animation: cerca 3.2s ease-in-out infinite alternate; } .nf-lenti span + span { animation-delay: .4s; } }
@keyframes cerca { to { filter: blur(.5px); } }
.nf-lingue { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.nf-lingue a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.nf-forse a { font-weight: 700; }

@media print {
  .testata, .indice, .piede, .hero-foto, .obliqua { display: none !important; }
}

/* ---------- i nomi delle immagini (FOTO1, LOGO…): solo dove si lavora, mai per i visitatori ---------- */
.etichetta-foto { display: none; }
.mostra-foto .etichetta-foto {
  display: inline-block; position: absolute; z-index: 4; top: 8px; left: 8px; padding: 3px 8px; border-radius: 3px;
  background: #FFE14D; color: #1F1D1B; font: 700 14px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .04em; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35); pointer-events: none; filter: none;
}
.marchio, .carta-testa, .piede-marchio { position: relative; }
.piede-marchio { display: inline-block; }
.mostra-foto .marchio .etichetta-foto { top: 50%; left: auto; right: -64px; transform: translateY(-50%); }
.mostra-foto .carta-testa .etichetta-foto { top: -4px; left: auto; right: 0; }
.mostra-foto .persona-foto .etichetta-foto { top: 6px; left: 6px; }
.mostra-foto .piede-marchio .etichetta-foto { top: -14px; left: -6px; }
@media (max-width: 600px) { .mostra-foto .marchio .etichetta-foto { top: calc(100% - 8px); right: auto; left: 0; transform: none; } }
