/* ==========================================================================
   TrAIce — sito istituzionale, v2
   Carta crema, inchiostro e blu del marchio. La "striscia" blu attraversa il
   sito a tratti: hero, servizi, numeri, footer.
   Un solo carattere: Archivo variabile, condensato e maiuscolo per i titoli.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cream: #FAF6EE;
  --sand: #F1EADF;
  --sand-2: #EADFCC;
  --ink: #0A0B0B;
  --blue: #0046FD;
  --blue-deep: #00238A;
  --blue-pale: #C9D7FF;
  --blue-mist: #B9CBFF;
  --muted: #5E5B54;
  --line: rgba(250, 246, 238, .14);
  --bg: #0A0B0B;
  --bg-2: #141517;
  --bg-3: #1E1F22;
  --blue-hi: #3D6BFF;
  --soft: rgba(250, 246, 238, .72);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --pad: clamp(16px, 2.4vw, 40px);
  --nav-h: 76px;
  --ribbon: clamp(16px, 1.7vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--bg); color: var(--cream);
  font-family: "Archivo", system-ui, sans-serif; font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--cream); }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 300; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; transform: translateY(-180%); transition: transform .2s var(--ease-out); }
.skip:focus { transform: none; }

/* ---------- Tipografia ---------- */

.display {
  font-weight: 850; font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 1.6rem + 7vw, 9rem);
  line-height: .86; letter-spacing: -.005em;
  text-wrap: balance;
}
.display--blue { color: var(--blue-hi); }
.label { font-size: .95rem; font-weight: 600; color: var(--soft); }
.line-mask { overflow: clip; padding-bottom: .04em; margin-bottom: -.04em; }
/* le righe dei titoli animati hanno spazio sopra per gli accenti delle maiuscole (È) */
[data-reveal-lines] > div { padding-top: .18em; margin-top: -.18em; padding-bottom: .05em; margin-bottom: -.05em; }

/* ---------- Bottoni ---------- */

.btn {
  --wdth: 100;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--blue); color: var(--cream);
  font-weight: 650; font-size: 1rem; cursor: pointer;
  transition: transform .16s var(--ease-out), color .3s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn__label { display: inline-block; white-space: nowrap; font-variation-settings: "wdth" var(--wdth); }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover::before { transform: translateY(0); } .btn:hover { color: var(--ink); } }
/* il bottone blu si riempie di crema: sul fondo nero resta sempre ben visibile */
.btn::before { background: var(--cream); }
.btn--dark { background: var(--cream); color: var(--ink); min-height: 46px; padding: 0 22px; font-size: .95rem; }
.btn--dark::before { background: var(--blue); }
@media (hover: hover) { .btn--dark:hover { color: var(--cream); } }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn--ghost::before { background: var(--cream); }
@media (hover: hover) { .btn--ghost:hover { color: var(--ink); } }
.btn--cream { background: var(--cream); color: var(--blue); }
.btn--cream::before { background: var(--ink); }
@media (hover: hover) { .btn--cream:hover { color: var(--cream); } }
.btn--wide { width: 100%; }

/* ---------- Etichette adesive ---------- */

.sticker {
  position: absolute; z-index: 3;
  display: inline-block; white-space: nowrap;
  background: var(--cream); color: var(--ink);
  font-weight: 600; font-size: clamp(.78rem, .7rem + .3vw, 1rem);
  padding: .55em 1.15em; border-radius: 999px;
  transform: rotate(var(--r, -6deg));
  pointer-events: none;
}

/* ---------- Striscia ---------- */

.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ribbon path { fill: none; stroke: var(--blue); stroke-width: var(--ribbon); stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Navigazione ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-inline: var(--pad);
  transition: transform .5s var(--ease-out), background-color .3s ease;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.nav.is-blue { color: var(--cream); }
.nav.is-blue.is-solid { background: color-mix(in srgb, var(--blue) 94%, transparent); }
.nav__left { display: flex; gap: 6px; }
.chip {
  padding: 9px 16px; border-radius: 999px; background: var(--bg-3);
  font-weight: 550; font-size: .92rem;
  transition: background-color .25s ease, color .25s ease;
}
.nav.is-blue .chip { background: rgba(250, 246, 238, .14); }
@media (hover: hover) { .chip:hover { background: var(--blue); color: var(--cream); } .nav.is-blue .chip:hover { background: var(--cream); color: var(--blue); } }
.nav__logo { font-weight: 800; font-stretch: 108%; font-size: 1.75rem; letter-spacing: -.045em; line-height: 1; }
.nav__logo span { color: var(--blue-hi); transition: color .3s ease; }
.nav.is-blue .nav__logo span { color: var(--ink); }
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.nav__hours { font-size: .82rem; line-height: 1.25; font-weight: 500; }
.nav.is-blue .btn--dark { background: var(--cream); color: var(--blue); }
.nav__toggle { display: none; }
.nav__toggle path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease-out); }
.nav__toggle[aria-expanded="true"] .l1 { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .l2 { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--blue); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: var(--nav-h) var(--pad) 32px;
}
.menu[hidden] { display: none; }
/* voci centrate al centro dello schermo */
.menu nav { display: grid; gap: 6px; justify-items: center; text-align: center; }
.menu a { font-weight: 850; font-stretch: 62%; text-transform: uppercase; font-size: clamp(3.4rem, 17vw, 6rem); line-height: .95; }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--nav-h) + clamp(16px, 4vh, 48px));
  overflow: clip;
}
.ribbon--hero { z-index: 0; }
/* il titolo con le AI che cambiano sta al centro dello schermo, staccato dal resto */
.hero__inner { position: relative; z-index: 2; text-align: center; padding-inline: var(--pad); margin-block: auto; padding-top: clamp(24px, 4vh, 48px); }
.hero__title {
  font-weight: 850; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(4rem, 1.5rem + 9.6vw, 12rem);
  line-height: .86; letter-spacing: -.005em; color: var(--blue-hi);
}
.hero__line { display: block; overflow: clip; padding-bottom: .05em; }
.hero__line > span { display: inline-flex; align-items: center; gap: .14em; }
.hero__su { display: inline-block; }

/* Rotatore: logo ufficiale + nome dell'assistente */
.rot { position: relative; display: inline-block; height: .92em; vertical-align: middle; overflow: clip; text-align: left; }
.rot__item { display: inline-flex; align-items: center; gap: .1em; white-space: nowrap; height: .92em; }
.rot__item img { width: .7em; height: .7em; flex: none; }
.js .rot__item { position: absolute; left: 0; top: 0; visibility: hidden; }
.js .rot__item.is-active { visibility: visible; }
html:not(.js) .rot__item:not(.is-active) { display: none; }

.sticker--a { --r: -9deg; left: 15%; top: -3%; }
.sticker--b { --r: 7deg; right: 12%; top: 50%; }
.sticker--c { --r: -5deg; left: 9%; top: 58%; background: var(--blue); }

.hero__lead { color: var(--soft); margin: clamp(40px, 7vh, 80px) auto 0; max-width: 46ch; font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); line-height: 1.45; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.logos { position: relative; z-index: 2; padding: clamp(28px, 5vh, 56px) 0 clamp(20px, 3vh, 36px); }
.logos__label { text-align: center; font-size: .9rem; color: rgba(250, 246, 238, .55); margin-bottom: 18px; }
.logos__track { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__list { display: flex; flex-shrink: 0; gap: clamp(36px, 4.5vw, 72px); padding-right: clamp(36px, 4.5vw, 72px); }
.logos__list li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 700; font-size: clamp(1.1rem, .9rem + .6vw, 1.5rem); letter-spacing: -.02em; }
.logos__list img { width: 1.35em; height: 1.35em; }

/* ---------- Fascia curva ---------- */

.band { position: relative; z-index: 2; margin-top: clamp(-40px, -3vw, -10px); }
.band__svg { width: 100%; height: clamp(180px, 25vw, 380px); overflow: visible; }
.band__stroke { fill: none; stroke: var(--blue); stroke-width: 104; stroke-linecap: butt; }
.band__text { fill: var(--cream); font-family: "Archivo", sans-serif; font-weight: 850; font-stretch: 70%; font-size: 64px; letter-spacing: .01em; }

/* ---------- Chi siamo ---------- */

.about { position: relative; padding: clamp(80px, 14vh, 160px) var(--pad) clamp(100px, 16vh, 180px); text-align: center; }
.about__wrap { position: relative; max-width: 1180px; margin: clamp(64px, 9vh, 96px) auto clamp(64px, 9vh, 96px); }
.about__text {
  font-weight: 750; font-stretch: 88%;
  font-size: clamp(2rem, 1rem + 3.6vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.03em;
  color: var(--cream);
}
.about__text .word { display: inline-block; }
.about__text .char { display: inline-block; will-change: transform; }
@media (min-width: 861px) {
  .about { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h) + 24px) 48px; }
}
/* le etichette stanno sopra e sotto il testo, mai sulle parole */
.sticker--d { --r: -7deg; left: 6%; top: -58px; background: var(--blue); }
.sticker--e { --r: 6deg; right: 6%; top: -52px; background: var(--blue); }
.sticker--f { --r: -4deg; left: 42%; bottom: -62px; background: var(--blue); }

/* ---------- Servizi ---------- */

.services { position: relative; padding: 0 var(--pad) clamp(100px, 16vh, 180px); }
.services__head { display: grid; grid-template-columns: 1fr 3fr; gap: 16px; align-items: start; margin-bottom: clamp(60px, 10vh, 120px); }
.services__head .display { max-width: 9ch; }
.snake { position: relative; display: flex; flex-direction: column; gap: clamp(110px, 17vh, 200px); padding: clamp(120px, 16vh, 200px) 0 clamp(200px, 24vh, 260px); }
.ribbon--snake { z-index: 0; }
/* ogni voce ha la sua posizione orizzontale (--x), così il filo cambia strada */
.svc {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  width: fit-content; margin-left: var(--x, 0); max-width: calc(100% - var(--x, 0));
}
.svc__title {
  display: flex; flex-wrap: wrap; align-items: center; gap: .16em;
  font-weight: 850; font-stretch: 62%; text-transform: uppercase; color: var(--cream);
  font-size: clamp(2.6rem, 1rem + 4.9vw, 6.2rem); line-height: .9;
}
.svc__icon {
  display: inline-grid; place-items: center; flex: none;
  width: .86em; height: .86em; border-radius: .16em;
  background: var(--blue); transform: rotate(-7deg);
  box-shadow: .05em .05em 0 var(--cream);
}
.svc:nth-child(odd) .svc__icon { transform: rotate(6deg); }
/* più spazio sopra le voci precedute da un ricciolo */
.svc[data-far] { margin-top: clamp(120px, 20vh, 220px); }
.svc__icon svg { width: 62%; height: 62%; }
.svc__icon path, .svc__icon circle { fill: none; stroke: var(--cream); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.pill {
  align-self: flex-end; margin: 10px -1rem 0 0;
  max-width: 38ch; text-align: left;
  background: var(--bg-2); color: var(--cream);
  border: 1.5px solid var(--blue-hi); border-radius: 22px;
  padding: 12px 20px; font-size: .95rem; line-height: 1.4;
  transform: rotate(-2.5deg);
}
.svc:nth-child(even) .pill { transform: rotate(2deg); }

/* ---------- Settori ---------- */

.sectors { padding: 0 var(--pad) clamp(100px, 16vh, 180px); }
.sectors__head { display: grid; grid-template-columns: 1fr 3fr; gap: 16px; align-items: start; margin-bottom: clamp(48px, 8vh, 96px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.card { display: grid; gap: 14px; }
.cards-nav { display: none; }
.card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 4.3; border-radius: 14px;
  padding: clamp(18px, 2vw, 30px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
}
.card__media--blue { background: var(--blue); }
.card__media--ink { background: var(--bg-3); }
.card__media--pale { background: var(--blue-pale); }
.card__media--sand { background: var(--sand-2); }
.card__media--deep { background: var(--blue-deep); }
.card__media--cream { background: var(--sand); }
.bubble { max-width: 88%; font-size: clamp(.95rem, .85rem + .35vw, 1.15rem); line-height: 1.35; padding: 14px 18px; transition: transform .6s var(--ease-out); }
.bubble--q { align-self: flex-end; background: var(--cream); color: var(--ink); border-radius: 20px 20px 4px 20px; box-shadow: 0 1px 0 rgba(10, 11, 11, .08); }
.bubble--a { position: relative; align-self: flex-start; background: #fff; color: var(--ink); border-radius: 20px 20px 20px 4px; padding-left: 48px; }
.bubble--a img { position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; }
.bubble--a b { background: var(--blue); color: var(--cream); padding: 0 .3em; border-radius: 4px; font-weight: 650; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.card__logo { position: absolute; top: clamp(20px, 2.4vw, 34px); left: clamp(20px, 2.4vw, 34px); width: clamp(64px, 7vw, 112px); height: auto; filter: drop-shadow(0 10px 18px rgba(10, 11, 11, .18)); }
img[src*="openai"], img[src*="grok"] { filter: invert(1); }
.bubble--a img[src*="openai"], .bubble--a img[src*="grok"] { filter: none; }
@media (hover: hover) {
  .card:hover .bubble--q { transform: translateY(-8px) rotate(-2deg); }
  .card:hover .bubble--a { transform: translateY(-4px) rotate(1.5deg); }
}
.card__meta { display: flex; gap: 16px; align-items: center; padding-left: 2px; }
.card__meta h3 { font-weight: 850; font-stretch: 62%; text-transform: uppercase; font-size: 1.45rem; line-height: 1; }
.card__meta p { font-size: .88rem; color: var(--blue-hi); font-weight: 550; margin-top: 3px; }
/* icone disegnate su misura, una per settore, stile tessera come nei servizi */
.card__ico {
  width: 50px; height: 50px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--blue); box-shadow: 3px 3px 0 var(--cream);
  transform: rotate(-6deg); transition: transform .5s var(--ease-out);
}
.card:nth-child(even) .card__ico { transform: rotate(5deg); }
@media (hover: hover) { .card:hover .card__ico { transform: rotate(0deg) scale(1.08); } }
.card__ico svg { width: 74%; height: 74%; overflow: visible; }
.card__ico .s { fill: none; stroke: var(--cream); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card__ico .f { fill: var(--cream); stroke: var(--cream); stroke-width: 1.9; stroke-linejoin: round; }
.card__ico .k { fill: var(--ink); }
.card__ico .ks { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }

/* ---------- Numeri ---------- */

.numbers { position: relative; padding: clamp(170px, 24vh, 260px) var(--pad) clamp(60px, 10vh, 120px); overflow: clip; }
.ribbon--swoosh { z-index: 0; }
.numbers__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--pad); }
.num { padding: 20px 0; }
.num__v { font-weight: 850; font-stretch: 62%; font-size: clamp(5rem, 2rem + 8vw, 11rem); line-height: .85; color: var(--blue-hi); font-variant-numeric: tabular-nums; }
.num__t { margin-top: 14px; max-width: 24ch; font-size: 1.05rem; color: var(--soft); }

/* ---------- Frase ponte ---------- */

.bridge { position: relative; padding: clamp(60px, 10vh, 120px) var(--pad) clamp(100px, 16vh, 180px); text-align: center; }
.bridge__text { max-width: 14ch; margin-inline: auto; font-size: clamp(3.4rem, 1.4rem + 7.5vw, 10rem); }
.sticker--g { --r: -8deg; left: 15%; top: 16%; }
.sticker--h { --r: 5deg; right: 11%; top: 42%; }
.sticker--i { --r: -4deg; right: 24%; bottom: 13%; }

/* ---------- FAQ chat ---------- */

.faq { padding: 0 var(--pad) clamp(100px, 16vh, 180px); display: grid; grid-template-columns: 5fr 7fr; gap: 40px var(--pad); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq__head .display { margin-top: 16px; font-size: clamp(3rem, 1.4rem + 4.6vw, 6.8rem); }
.faq__chat { display: grid; gap: 10px; }
.q__btn {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--bg-3); border: 1.5px solid transparent; border-radius: 999px;
  padding: 14px 24px; font-size: 1.02rem; font-weight: 550;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
@media (hover: hover) { .q__btn:hover { background: #2A2B2F; } }
.q.is-open .q__btn { background: var(--bg); border-color: var(--blue-hi); color: var(--blue-hi); width: fit-content; max-width: 100%; }
.q__ans { overflow: hidden; }
.answer {
  position: relative; margin: 12px 56px 10px auto; max-width: 560px;
  background: var(--cream); color: var(--ink); border: 0; border-radius: 22px 22px 6px 22px;
  padding: 18px 22px; font-size: 1rem; line-height: 1.5;
}
.answer__av {
  position: absolute; right: -56px; bottom: -6px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--cream);
  font-weight: 800; font-stretch: 108%; font-size: .95rem; letter-spacing: -.03em;
}

/* ---------- Footer ---------- */

.footer { position: relative; overflow: clip; background: var(--blue); color: var(--cream); padding: calc(var(--nav-h) + 40px) var(--pad) 0; }
.footer__loops { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footer__loops path { fill: none; stroke: rgba(250, 246, 238, .13); stroke-width: clamp(20px, 2.2vw, 34px); stroke-linecap: round; }
.footer__top, .footer__mid, .footer__mark { position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: 6fr 5fr; gap: 48px var(--pad); align-items: start; }
.footer__title { font-weight: 800; font-stretch: 92%; font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5rem); line-height: .98; letter-spacing: -.04em; }
.footer__lead { margin-top: 24px; max-width: 42ch; font-size: 1.1rem; color: rgba(250, 246, 238, .88); }
.footer__contact { margin-top: 36px; }
.footer__contact a { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); font-weight: 700; letter-spacing: -.02em; transition: color .25s ease; }
@media (hover: hover) { .footer__contact a:hover { color: var(--ink); } }
.footer__small { font-size: .88rem; color: rgba(250, 246, 238, .75); }

.form { display: grid; gap: 16px; background: rgba(10, 11, 11, .16); border-radius: 22px; padding: clamp(20px, 2.6vw, 36px); }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input {
  width: 100%; min-height: 52px; padding: 0 18px; font-size: 1rem;
  background: rgba(250, 246, 238, .08); color: var(--cream);
  border: 1.5px solid rgba(250, 246, 238, .3); border-radius: 999px;
  transition: border-color .25s ease, background-color .25s ease;
}
.field input::placeholder { color: rgba(250, 246, 238, .5); }
.field input:focus { outline: none; border-color: var(--cream); background: rgba(250, 246, 238, .14); }
.field input[aria-invalid="true"] { border-color: #FFB4A8; }
.form__msg { min-height: 1.3em; font-size: .92rem; }
.form__note { font-size: .82rem; color: rgba(250, 246, 238, .7); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .7; cursor: wait; }

.footer__mid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; margin-top: clamp(64px, 10vh, 120px); }
.footer__mid .footer__small:last-child { text-align: right; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.footer__nav a { padding: 8px 14px; border-radius: 999px; background: rgba(250, 246, 238, .12); font-weight: 550; font-size: .9rem; transition: background-color .25s ease, color .25s ease; }
@media (hover: hover) { .footer__nav a:hover { background: var(--cream); color: var(--blue); } }
.footer__mark {
  display: flex; justify-content: center; overflow: clip;
  font-weight: 800; font-stretch: 108%;
  font-size: clamp(5rem, 26vw, 28rem); letter-spacing: -.06em; line-height: .76;
  padding-top: .08em; margin-top: 20px;
  user-select: none;
}
.footer__mark span { display: inline-block; }
.footer__mark .is-ai { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Settori su telefono: carosello orizzontale da scorrere col dito */
  .cards {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 8px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards:focus-visible { outline-offset: -2px; }
  .card { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
  .cards-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
  .cards-nav__btn {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: transparent; color: var(--cream); border: 1.5px solid rgba(250, 246, 238, .4); cursor: pointer;
    transition: opacity .2s ease;
  }
  .cards-nav__btn:active { transform: scale(.95); }
  .cards-nav__btn[disabled] { opacity: .3; cursor: default; }
  .cards-nav__btn svg { width: 22px; height: 22px; }
  .cards-nav__btn path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .cards-nav__count { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--soft); }
  .cards-nav__count [data-cur] { color: var(--cream); }
  .svc__title { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__left, .nav__hours, .nav__right .btn { display: none; }
  .nav__logo { grid-column: 1; grid-row: 1; }
  .nav__toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--cream); color: var(--ink); cursor: pointer;
  }
  .nav.is-blue .nav__toggle, .nav.menu-open .nav__toggle { background: var(--cream); color: var(--blue); }
  .nav.menu-open { color: var(--cream); }
  .nav.menu-open .nav__logo span { color: var(--ink); }
  .services__head, .sectors__head { grid-template-columns: 1fr; }
  .svc { margin-left: calc(var(--x, 0) * .5); max-width: 100%; }
  .svc[data-far] { margin-top: 70px; }
  .pill { margin-right: 0; }
  .numbers__grid { grid-template-columns: 1fr; }
  .footer__mid { grid-template-columns: 1fr; justify-items: start; }
  .footer__mid .footer__small:last-child { text-align: left; }
  .footer__nav { justify-content: flex-start; }
  .sticker--a { left: 4%; top: -26px; }
  .sticker--b { right: 4%; top: calc(2 * .86 * clamp(4rem, 1.5rem + 9.6vw, 12rem) + 34px); }
  .sticker--c { display: none; }
  .logos { padding-top: 104px; }
  .logos__label { margin-bottom: 14px; }
  :root { --ribbon: 12px; }
  .sticker--d { left: 0; top: -48px; }
  .sticker--e { right: 0; top: auto; bottom: -50px; }
  .sticker--f { display: none; }
  .sticker--g { left: 4%; top: 6%; }
  .sticker--h { right: 4%; top: auto; bottom: 14%; }
  .sticker--i { display: none; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .answer { margin-right: 48px; }
  .answer__av { right: -50px; width: 40px; height: 40px; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
