/* Sito di Lievito. Stessi colori, caratteri e misure della pagina di lavoro «Home Lievito» (versione 18):
   telefono a 390 px, computer a 1280 px. In mezzo le misure crescono da sole: fl(a, b) vale a sul telefono e b sul
   computer, e build.py lo trasforma in un clamp(). Oltre i 1280 px il contenuto resta centrato. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/bricolage-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: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/plexmono-400-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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/plexmono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/plexmono-500-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/plexmono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/plexmono-600-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: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/plexmono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --cream: #FFFCF2; --ink: #15140F; --yellow: #FFC40C;
  --gray: #4A473D; --label: #6B6658; --line: #E4DECB;
  --dim: #8F8A78; --foot: #CFC9B6; --foot-line: #3A382F; --err: #A4281B;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --pad: clamp(20px, 4.225px + 4.045vw, 56px);
  --bar: clamp(68px, 57.483px + 2.697vw, 92px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--display); font-size: clamp(17px, 16.562px + 0.112vw, 18px); line-height: 1.5; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.c { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.todo { background: #FFF1B8; color: var(--ink); padding: 0 .2em; border-radius: 3px; }

/* ---------- barra in alto ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--cream); }
.bar .c { height: var(--bar); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: clamp(9px, 7.685px + 0.337vw, 12px); justify-self: start; }
.logo svg { width: clamp(26px, 22.494px + 0.899vw, 34px); height: auto; }
.wm { font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(23px, 19.933px + 0.787vw, 30px); }
.menu { display: none; justify-self: center; gap: 30px; font-size: 18px; font-weight: 500; }
.menu a { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 3px; background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 100%; transition: background-size .28s ease; }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current] { background-size: 100% 100%; outline: none; }
.right { justify-self: end; display: flex; align-items: center; gap: clamp(12px, 7.618px + 1.124vw, 22px); grid-column: 3; }
.lang { font-family: var(--mono); font-size: clamp(12px, 11.562px + 0.112vw, 13px); letter-spacing: .06em; color: var(--label); white-space: nowrap; }
.lang b { color: var(--ink); font-weight: 500; }
.lang a { padding: 6px 2px; }
.lang a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cta { background: var(--ink); color: var(--cream); font-weight: 600; border-radius: 999px; line-height: 1; white-space: nowrap; font-size: clamp(12px, 9.371px + 0.674vw, 18px); padding: clamp(10px, 8.685px + 0.337vw, 13px) clamp(14px, 10.494px + 0.899vw, 22px); }
.cta:hover { background: #2C2A22; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -9px; }
.burger span { position: relative; width: 26px; height: 18px; }
.burger span::before, .burger span::after, .burger i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger span::before { top: 0; } .burger i { top: 8px; } .burger span::after { bottom: 0; }
.menu-open .burger span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .burger i { opacity: 0; }
.menu-open .burger span::after { transform: translateY(-8px) rotate(-45deg); }
.sheet { position: fixed; z-index: 19; left: 0; right: 0; top: var(--bar); bottom: 0; background: var(--cream); padding: 10px var(--pad) 24px; overflow: auto; }
.sheet[hidden] { display: none; }
.sheet a { display: block; padding: 16px 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; border-bottom: 1.5px solid var(--ink); }
@media (min-width: 1000px) {
  .bar .c { grid-template-columns: 1fr auto 1fr; }
  .menu { display: flex; gap: 16px; font-size: 16px; }
  .burger, .sheet { display: none !important; }
}
@media (min-width: 1240px) { .menu { gap: 30px; font-size: 18px; } }

/* ---------- prima schermata ---------- */
.hero { position: relative; min-height: clamp(520px, calc(100svh - var(--bar)), 860px); padding-top: clamp(46px, 33.73px + 3.146vw, 74px); padding-bottom: clamp(120px, 76.18px + 11.236vw, 220px); }
.h { margin: 0; font-weight: 800; line-height: 1; letter-spacing: -.045em; font-size: clamp(47px, 25.528px + 5.506vw, 96px); }
.ln { display: block; padding: .12em 0 .1em; margin: -.12em 0 -.1em; }
.in { display: inline-block; }
.lines-d { display: none; }
@media (min-width: 1100px) { .lines-d { display: block; } .lines-m { display: none; } }
.hl, .k, .mk, .up { background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat; background-position: 0 0; background-size: 100% 100%; padding: 0 .1em; border-radius: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--ink); }
.up { background-position: 0 100%; }
.hl { margin-left: -.02em; }
.sub { margin: clamp(26px, 21.618px + 1.124vw, 36px) 0 0; color: var(--gray); font-weight: 500; text-wrap: pretty; font-size: clamp(17px, 13.056px + 1.011vw, 26px); line-height: 1.4; max-width: 700px; letter-spacing: -.01em; }
/* freccia in basso al centro della prima schermata, lontana dal pulsante dei cookie (in basso a sinistra) */
.next { position: absolute; left: 50%; bottom: clamp(30px, 23.865px + 1.573vw, 44px); margin-left: -24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); transition: background .2s ease; }
.next svg { width: 12px; height: 14px; transition: transform .2s ease; }
.next:hover, .next:focus-visible { background: var(--yellow); }
.next:hover svg { transform: translateY(2px); }
.big-dots { position: absolute; right: var(--pad); bottom: clamp(30px, 23.865px + 1.573vw, 44px); width: clamp(74px, 40.697px + 8.539vw, 150px); height: auto; }

/* ---------- sezioni ---------- */
.sec { padding-block: clamp(64px, 39.461px + 6.292vw, 120px); }
.lab { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--label); font-size: clamp(12px, 11.562px + 0.112vw, 13px); }
.h2 { margin: clamp(12px, 9.371px + 0.674vw, 18px) 0 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; font-size: clamp(34px, 24.36px + 2.472vw, 56px); max-width: 900px; }
.intro { margin: clamp(12px, 9.371px + 0.674vw, 18px) 0 0; color: var(--gray); font-weight: 500; text-wrap: pretty; font-size: clamp(17px, 16.562px + 0.112vw, 18px); line-height: 1.5; max-width: 600px; }
.serv-in { max-width: none; }
.serv-in span { display: block; }
@media (min-width: 760px) { .serv-in span { display: inline-block; } }

.cards { display: grid; gap: clamp(14px, 11.371px + 0.674vw, 20px); margin-top: clamp(34px, 24.36px + 2.472vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--cream); padding: clamp(22px, 18.494px + 0.899vw, 30px) clamp(22px, 19.371px + 0.674vw, 28px) clamp(24px, 20.494px + 0.899vw, 32px); }
.ico { width: clamp(60px, 52.989px + 1.798vw, 76px); height: auto; }
.h3 { margin: clamp(22px, 15.865px + 1.573vw, 36px) 0 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(22px, 20.247px + 0.449vw, 26px); }
.ph { margin: clamp(10px, 8.247px + 0.449vw, 14px) 0 0; color: var(--gray); font-weight: 500; font-size: clamp(17px, 16.562px + 0.112vw, 18px); line-height: 1.45; }

.frase { background: var(--ink); color: var(--cream); padding-block: clamp(80px, 49.326px + 7.865vw, 150px); }
.big { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.14; text-wrap: balance; font-size: clamp(34px, 24.36px + 2.472vw, 56px); }
.frase .pt { display: block; }
.frase .pt.a { color: var(--dim); }
.frase .w { display: inline-block; transform-origin: 50% 100%; }

.panel { background: var(--yellow); border-radius: clamp(18px, 15.371px + 0.674vw, 24px); margin-top: clamp(34px, 24.36px + 2.472vw, 56px); padding: clamp(22px, 14.112px + 2.022vw, 40px) clamp(20px, 7.73px + 3.146vw, 48px) clamp(26px, 16.36px + 2.472vw, 48px); overflow: hidden; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 17px; display: inline-flex; gap: 10px; align-items: baseline; text-align: left; padding: 11px 16px; width: 100%; transition: background .2s, color .2s; }
@media (min-width: 760px) { .tab { width: auto; padding: 13px 18px; } }
.tab .n { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .06em; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.tab:hover { background: rgba(21, 20, 15, .08); }
.tab[aria-selected="true"]:hover { background: var(--ink); }
.slides { overflow: hidden; }
.track { display: flex; align-items: flex-start; transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.slide { flex: 0 0 100%; min-width: 0; padding-top: clamp(26px, 17.236px + 2.247vw, 46px); }
.js .slide[aria-hidden="true"] { visibility: hidden; transition: visibility 0s .55s; }
.ct { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; font-size: clamp(34px, 24.36px + 2.472vw, 56px); max-width: 1000px; }
.pd-row { display: grid; gap: clamp(18px, 13.618px + 1.124vw, 28px); margin-top: clamp(24px, 14.36px + 2.472vw, 46px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .pd-row { grid-template-columns: 1fr 1fr; } }
.pd { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.pd .lab { color: var(--ink); }
.pd p { margin: 8px 0 0; font-size: clamp(17px, 16.562px + 0.112vw, 18px); line-height: 1.45; }
/* senza JavaScript i casi stanno uno sotto l'altro */
html:not(.js) .tabs { display: none; }
html:not(.js) .track { display: grid; gap: 40px; }

.people { display: grid; gap: 16px; margin-top: clamp(30px, 18.607px + 2.921vw, 56px); grid-template-columns: 1fr; }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 4px 16px; align-items: center; }
.pic { position: relative; width: 96px; grid-row: span 2; }
.face { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; background: #B4B4B4; object-fit: cover; }
.li { position: absolute; display: grid; place-items: center; background: var(--ink); color: var(--cream); border-radius: 5px; width: 26px; height: 26px; right: 0; bottom: 0; transition: background .2s, color .2s; }
.li:hover, .li:focus-visible { background: var(--yellow); color: var(--ink); }
.li svg { width: 62%; height: 62%; }
.who { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(22px, 20.247px + 0.449vw, 26px); align-self: end; }
.role { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); line-height: 1.5; font-size: clamp(12px, 11.562px + 0.112vw, 13px); align-self: start; }
.role .nw { white-space: nowrap; }
.role b { font-weight: 600; }
@media (min-width: 760px) {
  .people { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .person { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; align-content: start; }
  .pic { width: min(220px, 100%); grid-row: auto; }
  .li { width: 36px; height: 36px; right: 6%; bottom: 4%; border-radius: 7px; }
  .who, .role { align-self: auto; }
  .role { margin-top: -8px; }
}

.faq { border-top: 1.5px solid var(--ink); margin-top: clamp(30px, 18.607px + 2.921vw, 56px); max-width: 980px; }
.qa { border-bottom: 1.5px solid var(--ink); }
.qa h3 { margin: 0; font: inherit; }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; font-weight: 800; letter-spacing: -.02em; font-size: clamp(22px, 20.247px + 0.449vw, 26px); line-height: 1.2; padding: clamp(18px, 15.371px + 0.674vw, 24px) 0; }
.pm { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .2s, transform .25s; }
.pm svg { width: 12px; height: 12px; }
.qa.open .pm { background: var(--yellow); transform: rotate(45deg); }
/* la risposta si apre scorrendo; chiusa non si legge e non si raggiunge con il tab */
.ans { display: grid; grid-template-rows: 1fr; color: var(--gray); font-weight: 500; font-size: clamp(17px, 16.562px + 0.112vw, 18px); line-height: 1.5; max-width: 720px; }
.js .ans { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; }
.js .qa.open .ans { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1); }
.ans > p { margin: 0; min-height: 0; overflow: hidden; }
.ans > p::after { content: ''; display: block; height: clamp(20px, 17.371px + 0.674vw, 26px); }

/* in fondo resta spazio per il pulsante dei cookie, che è fisso in basso a sinistra */
.fine { background: var(--ink); color: var(--cream); padding-top: clamp(80px, 49.326px + 7.865vw, 150px); padding-bottom: clamp(96px, 88.989px + 1.798vw, 112px); }
.fine .big { max-width: 1100px; }
.fine .k { color: var(--ink); }
.sup { margin: clamp(18px, 12.742px + 1.348vw, 30px) 0 0; color: #DCD7C6; font-weight: 500; text-wrap: pretty; font-size: clamp(17px, 13.056px + 1.011vw, 26px); line-height: 1.45; max-width: 900px; }
.cta-y { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 999px; line-height: 1; font-size: clamp(17px, 16.562px + 0.112vw, 18px); padding: clamp(15px, 14.124px + 0.225vw, 17px) clamp(22px, 19.371px + 0.674vw, 28px); margin-top: clamp(28px, 20.989px + 1.798vw, 44px); }
.cta-y:hover { background: #FFD24A; }
.fine:not(.solo) .foot { margin-top: clamp(72px, 46.584px + 6.517vw, 130px); }
.solo { padding-top: clamp(40px, 32.989px + 1.798vw, 56px); }

.foot { display: grid; gap: 26px; border-top: 1px solid var(--foot-line); padding-top: clamp(28px, 22.742px + 1.348vw, 40px); color: var(--foot); grid-template-columns: 1fr; font-size: clamp(17px, 16.562px + 0.112vw, 18px); line-height: 1.6; }
.solo .foot { border-top: 0; padding-top: 0; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.4fr 1fr; gap: 32px 40px; } }
/* da 1240 px cinque colonne, con l'indirizzo su una riga sola */
@media (min-width: 1240px) { .foot { grid-template-columns: max-content 1fr 1fr 1fr auto; gap: 40px; } .foot .addr { white-space: nowrap; } }
.foot .lab { color: var(--dim); margin-bottom: 12px; }
.foot p { margin: 0; }
.foot a { display: block; width: fit-content; }
.foot a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.foot .data { color: var(--dim); font-size: clamp(15px, 14.562px + 0.112vw, 16px); margin-top: 6px; }
.foot .todo { background: none; color: var(--dim); padding: 0; }
.foot .logo-c { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; font-size: clamp(22px, 20.247px + 0.449vw, 26px); }
.foot .logo-c svg { width: 26px; height: auto; }
.foot .lang-l a, .foot .lang-l b { display: inline; }
.foot .lang-l b { color: var(--cream); font-weight: 500; }

/* ---------- pulsante dei cookie, fisso in basso a sinistra ---------- */
.ck { position: fixed; z-index: 15; left: clamp(16px, 12.494px + 0.899vw, 24px); bottom: clamp(16px, 12.494px + 0.899vw, 24px); display: inline-flex; align-items: center; height: clamp(44px, 42.247px + 0.449vw, 48px); padding: 0 clamp(8.5px, 7.843px + 0.169vw, 10px); border-radius: 999px; background: var(--cream); border: 1.5px solid var(--ink); color: var(--ink); box-shadow: 0 10px 22px -14px rgba(21, 20, 15, .6); transition: background .2s ease, color .2s ease; }
.ck svg { flex: 0 0 auto; width: 26px; height: 26px; }
.ck-t { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; transition: max-width .3s ease, margin .3s ease; }
.ck:hover, .ck:focus-visible, .ck[aria-expanded="true"] { background: var(--ink); color: var(--cream); outline: none; }
@media (hover: hover) and (min-width: 760px) {
  .ck:hover .ck-t, .ck:focus-visible .ck-t, .ck[aria-expanded="true"] .ck-t { max-width: 90px; margin: 0 6px 0 10px; }
}
.ckp { position: fixed; z-index: 16; left: 16px; right: 16px; bottom: 74px; display: grid; gap: 12px; background: var(--cream); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 0 18px 36px -20px rgba(21, 20, 15, .55); padding: 18px 18px 16px; }
.ckp[hidden] { display: none; }
@media (min-width: 760px) { .ckp { left: 24px; right: auto; bottom: 86px; width: 360px; padding: 20px 22px 18px; } }
.ckp p { margin: 0; padding-right: 30px; color: var(--gray); font-weight: 500; font-size: 17px; line-height: 1.45; }
.ckp .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 17px; }
.ckp .row .lab { color: var(--gray); }
.more { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; display: inline-flex; gap: 8px; align-items: center; font-size: 12px; width: fit-content; padding-block: 4px; }
.more svg { width: 14px; height: 10px; transition: transform .2s ease; }
.more:hover svg { transform: translateX(3px); }
.ckp .x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.ckp .x svg { width: 11px; height: 11px; }

/* ---------- pagina Contatti ---------- */
.contact { padding-top: clamp(40px, 20.719px + 4.944vw, 84px); padding-bottom: clamp(64px, 39.461px + 6.292vw, 120px); display: grid; gap: 28px; }
@media (min-width: 1100px) { .contact { grid-template-columns: 1fr 620px; gap: 64px; align-items: start; } }
.contact .h2 { font-size: clamp(34px, 24.36px + 2.472vw, 56px); }
.c-info { display: grid; gap: 26px; margin-top: clamp(18px, 4.854px + 3.371vw, 48px); }
.c-info .lab { margin-bottom: 6px; }
.c-info p { margin: 0; font-weight: 500; color: var(--gray); font-size: clamp(17px, 16.562px + 0.112vw, 18px); line-height: 1.55; }
.c-mail { font-weight: 700; color: var(--ink); background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 4px; padding-bottom: 1px; font-size: clamp(20px, 17.371px + 0.674vw, 26px); letter-spacing: -.01em; }
.c-where { display: none; }
@media (min-width: 760px) { .c-where { display: block; } }
.form { border: 1.5px solid var(--ink); border-radius: 18px; background: var(--cream); padding: clamp(22px, 16.742px + 1.348vw, 34px) clamp(18px, 10.989px + 1.798vw, 34px) clamp(22px, 18.494px + 0.899vw, 30px); }
.fields { display: grid; gap: clamp(18px, 16.247px + 0.449vw, 22px); }
.two { display: grid; gap: 18px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; gap: 7px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld > label, .fld > legend { font: 700 17px/1.3 var(--display); color: var(--ink); padding: 0; margin: 0; }
.fld > legend { margin-bottom: 7px; }
.opt { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--label); margin-left: 6px; }
.hint { margin: 0; font-size: 15px; line-height: 1.4; color: var(--gray); font-weight: 500; }
.inp { width: 100%; font: 500 17px/1.4 var(--display); color: var(--ink); background: #FFFFFF; border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px 14px; margin: 0; }
textarea.inp { min-height: 150px; resize: vertical; display: block; }
.inp:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.inp[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.err { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--err); }
.err:empty { display: none; }
.chips { display: grid; gap: 8px; }
@media (min-width: 640px) { .chips { display: flex; flex-wrap: wrap; } }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; background: #FFFFFF; }
.chip input:checked + span { background: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--yellow); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin: 0; font-size: 15px; line-height: 1.45; color: var(--gray); font-weight: 500; }
.privacy a, .doc a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.send { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: start; background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 999px; line-height: 1; font-size: clamp(17px, 16.562px + 0.112vw, 18px); padding: clamp(15px, 14.124px + 0.225vw, 17px) clamp(22px, 19.371px + 0.674vw, 28px); width: 100%; }
@media (min-width: 640px) { .send { width: auto; } }
.send:hover, .send:focus-visible { background: var(--ink); color: var(--cream); outline: none; }
.send[disabled] { opacity: .6; cursor: progress; }
.done { display: grid; gap: 14px; }
.done[hidden] { display: none; }
.done h2 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(30px, 25.618px + 1.124vw, 40px); }
.done h2:focus { outline: none; }
.done p { margin: 0; color: var(--gray); font-weight: 500; font-size: 17px; line-height: 1.5; }
.done .dot { width: 46px; height: auto; }

/* ---------- pagine legali e 404 ---------- */
.doc { padding-top: clamp(40px, 20.719px + 4.944vw, 84px); padding-bottom: clamp(64px, 39.461px + 6.292vw, 120px); }
.doc .in-doc { max-width: 820px; }
.doc h1 { margin: clamp(12px, 9.371px + 0.674vw, 18px) 0 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(34px, 24.36px + 2.472vw, 56px); }
.doc .meta { margin: 14px 0 0; color: var(--label); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.doc h2 { margin: clamp(34px, 27.865px + 1.573vw, 48px) 0 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(22px, 20.247px + 0.449vw, 26px); }
.doc p, .doc li { color: var(--gray); font-weight: 500; font-size: clamp(17px, 16.562px + 0.112vw, 18px); line-height: 1.55; }
.doc p { margin: 12px 0 0; }
.doc strong { color: var(--ink); }
.t { margin-top: 18px; }
.t table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.t th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--label); padding: 0 12px 10px 0; border-bottom: 1.5px solid var(--ink); vertical-align: bottom; }
.t td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--gray); font-weight: 500; }
.t td:first-child { color: var(--ink); font-weight: 600; }
@media (max-width: 759px) {
  .t table, .t tbody, .t tr, .t td { display: block; }
  .t thead { display: none; }
  .t tr { border-top: 1.5px solid var(--ink); padding: 10px 0 14px; }
  .t td { border: 0; padding: 4px 0; }
  .t td + td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--label); margin-top: 6px; }
}
.nf { min-height: 60svh; }

/* ---------- animazioni: solo con JavaScript e solo se chi guarda non ha chiesto meno movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* barra animata solo in home; nelle altre pagine c'è subito */
  .js body:has(.hero) .bar { animation: fadeDown .45s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero .in { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero .ln:nth-child(1) .in { animation-delay: .1s; }
  .js .hero .ln:nth-child(2) .in { animation-delay: .18s; }
  .js .hero .ln:nth-child(3) .in { animation-delay: .26s; }
  .js .hero .ln:nth-child(4) .in { animation-delay: .34s; }
  .js .hero .ln:nth-child(5) .in { animation-delay: .42s; }
  .js .hero .hl { animation: sweep .5s cubic-bezier(.65, 0, .35, 1) both; animation-delay: .8s; }
  .js .hero .sub { animation: fadeUp .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .9s; }
  .js .hero .big-dots { animation: fade .6s ease both; animation-delay: 1s; }
  .js .hero .next { animation: fade .5s ease both; animation-delay: 1.1s; }
  .js body:has(.hero) .ck { animation: fade .5s ease both; animation-delay: 1.3s; }
  /* frase grande, «Lievitazione»: le parole salgono dal basso, la prima metà si alleggerisce, il giallo sale e scopre la parola */
  .js .frase .w { animation: leaven .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 50ms + var(--d0, 0ms)); }
  .js .frase .pt.b { --d0: 450ms; }
  .js .frase .pt.a { animation: lighten .6s ease both; animation-delay: .75s; }
  .js .frase .up { animation: fillUp .5s cubic-bezier(.65, 0, .35, 1) both; animation-delay: 1.2s; }
  .js .fine .big { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .js .fine .sup { animation: fadeUp .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .35s; }
  .js .fine .k { animation: sweep .5s cubic-bezier(.65, 0, .35, 1) both; animation-delay: .8s; }
  .js .card, .js .panel, .js .slide:first-child .pd { animation: fadeUp .4s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--rd, 0ms); }
  .js .slide:first-child .pd + .pd { animation-delay: calc(var(--rd, 0ms) + 120ms); }
  /* in attesa: animazione ferma al primo fotogramma finché il pezzo non arriva sullo schermo */
  .io .hold, .io .hold * { animation-play-state: paused !important; }
}
@media (prefers-reduced-motion: reduce) {
  .menu a, .more svg, .next, .next svg, .track, .ck, .ck-t, .js .ans, .pm, .tab, .burger span::before, .burger span::after, .burger i { transition: none !important; }
}
.frase .w:nth-child(1) { --i: 0; } .frase .w:nth-child(2) { --i: 1; } .frase .w:nth-child(3) { --i: 2; }
.frase .w:nth-child(4) { --i: 3; } .frase .w:nth-child(5) { --i: 4; } .frase .w:nth-child(6) { --i: 5; }
.frase .w:nth-child(7) { --i: 6; } .frase .w:nth-child(8) { --i: 7; } .frase .w:nth-child(9) { --i: 8; }
.frase .w:nth-child(10) { --i: 9; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(.32em); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes leaven { 0% { opacity: 0; transform: translateY(.6em) scaleY(.55); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes lighten { from { color: var(--cream); } to { color: var(--dim); } }
@keyframes fillUp { from { background-size: 100% 0%; } to { background-size: 100% 100%; } }

@media print {
  .bar, .ck, .ckp, .sheet, .big-dots { display: none !important; }
  .fine, .frase { background: none; color: var(--ink); }
}
