/* Ctrl Studio, footer di tutte le pagine (componente Footer 2 di Webflow).
   1. Toglie l'altezza fissa e i pezzi in posizione assoluta: su mobile il contenuto finiva sotto la scritta
      Stop.Relax.Ctrl. e le colonne da Navigazione in giu' venivano tagliate.
   2. Lo porta nello stile del resto del sito: filetti, etichette numerate in Geist Mono, link a righe,
      scritta finale a righe orizzontali con Ctrl. in blu.
   Riga in alto, ora di Ancona, torna su, accensione e glitch della scritta li aggiunge footer/footer.js. */

.footer.footer-2 {
  --ft-bg: #0b0b0c;
  --ft-text: #f4f4f4;
  --ft-soft: #c9cbd6;
  --ft-muted: #8d90a0;
  --ft-rule: rgba(244, 244, 244, .13);
  --ft-rule-strong: rgba(244, 244, 244, .72);
  --ft-blue: #2e50ff;
  --ft-blue-2: #7d92ff;
  --ft-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ft-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ft-ease: cubic-bezier(.165, .84, .44, 1);
  --ft-gut: clamp(16px, 4vw, 56px);
  display: block;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0 max(var(--ft-gut), env(safe-area-inset-right, 0px)) 0 max(var(--ft-gut), env(safe-area-inset-left, 0px));
  outline: 0;
  background-color: var(--ft-bg);
  background-image: repeating-linear-gradient(180deg, rgba(244, 244, 244, .022) 0 1px, transparent 1px 5px);
  color: var(--ft-text);
  font-family: var(--ft-sans);
}
.footer.footer-2 *, .footer.footer-2 *::before, .footer.footer-2 *::after { box-sizing: border-box; }
.footer.footer-2 :where(p) { margin: 0; }
.footer.footer-2 :focus-visible { outline: 2px solid var(--ft-blue-2); outline-offset: 3px; }
/* pezzi vuoti del vecchio footer */
.footer.footer-2 > .footer__get, .footer.footer-2 > .footer__line, .footer.footer-2 > .content-2.logo { display: none; }

/* ---------- indice ---------- */
.footer.footer-2 .ctrl-f2 { width: 100%; max-width: none; margin: 0; padding: clamp(4.5rem, 9vw, 7rem) 0 0; color: var(--ft-text); }
.footer.footer-2 .ft-eyebrow { display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--ft-rule-strong); font: 500 .75rem/1 var(--ft-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ft-muted); }
.footer.footer-2 .ft-eyebrow b { font-weight: 500; color: var(--ft-text); }
.footer.footer-2 .ctrl-f2-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: clamp(2.6rem, 4.5vw, 3.6rem) clamp(1.4rem, 3vw, 3rem); counter-reset: ft; }
.footer.footer-2 .ft-eyebrow + .ctrl-f2-grid { margin-top: clamp(2.6rem, 5vw, 4rem); }
.footer.footer-2 .ctrl-f2-grid > div { min-width: 0; }
.footer.footer-2 .ctrl-f2-grid > div:first-child { grid-row: span 2; display: flex; flex-direction: column; align-items: flex-start; }

/* marchio, frase, mail */
.footer.footer-2 .ctrl-f2-brand-name { margin: 0 0 1.3rem; font: 600 clamp(2.1rem, 3.6vw, 3.4rem)/.95 var(--ft-sans); letter-spacing: -.05em; color: var(--ft-text); }
.footer.footer-2 .ctrl-f2-brand-name::after { content: "_"; margin-left: .03em; color: var(--ft-blue-2); animation: ft-blink 1.05s steps(1) infinite; }
.footer.footer-2 .ctrl-f2-brand-text { max-width: 32ch; margin: 0 0 2rem; font: 400 1rem/1.55 var(--ft-sans); letter-spacing: -.012em; color: #a9acb9; }
.footer.footer-2 .ctrl-f2-mail { display: inline-flex; align-items: center; gap: .55em; padding: .95rem 1.4rem; border: 0; border-radius: 100vw; background: var(--ft-text); color: #121212 !important; font: 500 .8rem/1 var(--ft-sans); text-transform: uppercase; letter-spacing: -.0238em; text-decoration: none; transition: letter-spacing .2s var(--ft-ease), background-color .2s var(--ft-ease), color .2s var(--ft-ease); }
.footer.footer-2 .ctrl-f2-mail::after { content: "\2192"; }
.footer.footer-2 .ctrl-f2-mail:hover { background: var(--ft-blue); color: #fff !important; letter-spacing: .03em; }

/* gruppi di link: etichetta numerata + righe */
.footer.footer-2 .ctrl-f2-eyebrow { display: flex; align-items: baseline; gap: .7em; margin: 0 0 .85rem; font: 500 .72rem/1 var(--ft-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ft-muted); counter-increment: ft; }
.footer.footer-2 .ctrl-f2-eyebrow::before { content: counter(ft, decimal-leading-zero); font-family: var(--ft-mono); color: var(--ft-blue-2); }
.footer.footer-2 .ctrl-f2-link { display: flex; align-items: center; gap: .55em; margin: 0; padding: .72rem 0; border-top: 1px solid var(--ft-rule); color: var(--ft-soft); font: 500 1rem/1.25 var(--ft-sans); letter-spacing: -.015em; text-transform: none; text-decoration: none; transition: color .2s var(--ft-ease), padding-left .3s var(--ft-ease); }
.footer.footer-2 .ctrl-f2-link:last-child { border-bottom: 1px solid var(--ft-rule); }
.footer.footer-2 .ctrl-f2-link::after { content: "\2192"; margin-left: auto; color: var(--ft-blue-2); opacity: 0; transform: translateX(-.45rem); transition: opacity .2s var(--ft-ease), transform .3s var(--ft-ease); }
.footer.footer-2 .ctrl-f2-link:hover { color: var(--ft-text); padding-left: .4rem; }
.footer.footer-2 .ctrl-f2-link:hover::after { opacity: 1; transform: none; }
/* pagina corrente: il prompt del terminale */
.footer.footer-2 .ctrl-f2-link.w--current { color: var(--ft-text); }
.footer.footer-2 .ctrl-f2-link.w--current::before { content: ">"; font-family: var(--ft-mono); font-size: .85em; color: var(--ft-blue-2); }

/* cella con l'ora di Ancona (la aggiunge footer.js) */
.footer.footer-2 .ft-time { padding: .72rem 0 .6rem; border-top: 1px solid var(--ft-rule); font: 500 clamp(1.6rem, 2.3vw, 2.2rem)/1 var(--ft-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ft-text); }
.footer.footer-2 .ft-coords { padding: .72rem 0; border-top: 1px solid var(--ft-rule); border-bottom: 1px solid var(--ft-rule); font: 500 .68rem/1.3 var(--ft-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ft-muted); }

/* ---------- footer vecchio (template articoli e progetti): stessa veste, stessi filetti ---------- */
.footer.footer-2 > .content-2:not(.logo) { position: static; inset: auto; width: 100%; max-width: none; margin: 0; padding: clamp(4.5rem, 9vw, 7rem) 0 0; color: var(--ft-text); }
.footer.footer-2 .footer__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.6rem, 4.5vw, 3.6rem) clamp(1.4rem, 3vw, 3rem); align-items: start; justify-items: stretch; margin: 0; padding: 0; counter-reset: ft; }
.footer.footer-2 .ft-eyebrow + .footer__columns { margin-top: clamp(2.6rem, 5vw, 4rem); }
.footer.footer-2 .footer__col { display: block; width: auto; min-width: 0; margin: 0; padding: 0; border: 0; text-align: left; align-self: start; }
.footer.footer-2 .footer__title { display: flex; align-items: baseline; gap: .7em; margin: 0 0 .85rem; font: 500 .72rem/1 var(--ft-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ft-muted); counter-increment: ft; }
.footer.footer-2 .footer__title::before { content: counter(ft, decimal-leading-zero); font-family: var(--ft-mono); color: var(--ft-blue-2); }
.footer.footer-2 .footer__nav, .footer.footer-2 .footer__list { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; height: auto; margin: 0; padding: 0; list-style: none; text-align: left; }
.footer.footer-2 .footer__list-item { width: auto; margin: 0; padding: 0; order: 0; }
.footer.footer-2 .footer__nav-link, .footer.footer-2 .footer__link { display: flex; align-self: stretch; align-items: center; justify-content: flex-start; gap: .55em; width: auto; margin: 0; padding: .72rem 0; border: 0; border-top: 1px solid var(--ft-rule); color: var(--ft-soft); font: 500 .9rem/1.25 var(--ft-sans); letter-spacing: .01em; text-transform: uppercase; text-align: left; text-decoration: none; transition: color .2s var(--ft-ease), padding-left .3s var(--ft-ease); }
.footer.footer-2 .footer__link { text-transform: none; letter-spacing: -.01em; font-size: 1rem; }
.footer.footer-2 .footer__nav-link:last-child, .footer.footer-2 .footer__list-item:last-child .footer__link { border-bottom: 1px solid var(--ft-rule); }
.footer.footer-2 .footer__nav-link::after, .footer.footer-2 .footer__link::after { content: "\2192"; margin-left: auto; color: var(--ft-blue-2); opacity: 0; transform: translateX(-.45rem); transition: opacity .2s var(--ft-ease), transform .3s var(--ft-ease); }
.footer.footer-2 .footer__nav-link:hover, .footer.footer-2 .footer__link:hover { color: var(--ft-text); padding-left: .4rem; }
.footer.footer-2 .footer__nav-link:hover::after, .footer.footer-2 .footer__link:hover::after { opacity: 1; transform: none; }
.footer.footer-2 .footer__nav-link.w--current { color: var(--ft-text); }
.footer.footer-2 .footer__nav-link.w--current::before { content: ">"; font-family: var(--ft-mono); color: var(--ft-blue-2); }
.footer.footer-2 .footer__social { display: flex; justify-content: flex-start; align-items: center; height: auto; margin: 1rem 0; padding: 0; }
.footer.footer-2 .footer__soc-link { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: 0; padding: 0; border: 1px solid var(--ft-rule-strong); border-radius: 10px; background: transparent; transition: border-color .2s var(--ft-ease), background-color .2s var(--ft-ease); }
.footer.footer-2 .footer__soc-link:hover { border-color: var(--ft-blue-2); background: rgba(125, 146, 255, .14); }
.footer.footer-2 .footer__soc-img { width: 1.05rem; height: 1.05rem; margin: 0; padding: 0; }

/* ---------- Stop.Relax.Ctrl. ---------- */
.footer.footer-2 .section-34 { position: static; inset: auto; height: auto; margin: clamp(4rem, 9vw, 7rem) 0 0; padding: 0; overflow: visible; }
.footer.footer-2 .text-block-89 { display: inline-block; vertical-align: top; width: auto; max-width: none; margin: 0; padding: 0 0 .06em; font: 600 12.4vw/.86 var(--ft-sans); letter-spacing: -.06em; text-align: left; white-space: nowrap; color: var(--ft-text); cursor: crosshair; }
.footer.footer-2 .text-block-89 span { position: relative; display: inline-block; color: var(--ft-text); background-image: repeating-linear-gradient(180deg, currentColor 0 max(2px, .017em), transparent max(2px, .017em) max(3.5px, .029em)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: opacity .6s var(--ft-ease); }
.footer.footer-2 .text-block-89 span:last-child { color: var(--ft-blue); }
.footer.footer-2 .text-block-89:hover span { animation: ft-scan 1.4s linear infinite; }
/* copie per il glitch */
.footer.footer-2 .ft-word::before, .footer.footer-2 .ft-word::after { content: attr(data-t); position: absolute; inset: 0; background-image: inherit; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; pointer-events: none; }
.footer.footer-2 .ft-word::before { color: var(--ft-blue-2); }
.footer.footer-2 .ft-word::after { color: var(--ft-text); }
.footer.footer-2 .ft-word.is-glitch::before { animation: ft-g1 .46s steps(1) 1; }
.footer.footer-2 .ft-word.is-glitch::after { animation: ft-g2 .46s steps(1) 1; }
.footer.footer-2.ft-dim .ft-word { opacity: .12; }
.footer.footer-2.ft-dim .ft-word.is-on { opacity: 1; }

/* ---------- barra finale ---------- */
.footer.footer-2 .footer__copyright { position: static; inset: auto; display: flex; flex-flow: row wrap; justify-content: space-between; align-items: center; gap: .6rem 1.6rem; height: auto; margin: 0; padding: 1rem 0 max(1.4rem, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ft-rule); font: 500 .68rem/1.3 var(--ft-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ft-muted); text-align: left; }
.footer.footer-2 .footer__copyright-link { display: inline-flex; flex-flow: row; align-items: center; color: inherit; font: inherit; letter-spacing: inherit; text-decoration: none; transition: color .2s var(--ft-ease); }
.footer.footer-2 a.footer__copyright-link:hover { color: var(--ft-text); }
.footer.footer-2 .text-block-31 { padding: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.footer.footer-2 .ft-top { appearance: none; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ft-text); font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color .2s var(--ft-ease); }
.footer.footer-2 .ft-top:hover { color: var(--ft-blue-2); }

@keyframes ft-blink { 50% { opacity: 0; } }
@keyframes ft-scan { to { background-position: 0 max(3.5px, .029em); } }
@keyframes ft-g1 {
  0% { opacity: 1; clip-path: inset(8% 0 64% 0); transform: translateX(-.035em); }
  25% { clip-path: inset(46% 0 30% 0); transform: translateX(.05em); }
  50% { clip-path: inset(70% 0 6% 0); transform: translateX(-.02em); }
  75% { clip-path: inset(22% 0 58% 0); transform: translateX(.03em); }
  100% { opacity: 0; }
}
@keyframes ft-g2 {
  0% { opacity: 1; clip-path: inset(58% 0 22% 0); transform: translateX(.04em); }
  25% { clip-path: inset(12% 0 70% 0); transform: translateX(-.03em); }
  50% { clip-path: inset(34% 0 44% 0); transform: translateX(.02em); }
  75% { clip-path: inset(80% 0 4% 0); transform: translateX(-.05em); }
  100% { opacity: 0; }
}

@media (max-width: 991px) {
  .footer.footer-2 .ctrl-f2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer.footer-2 .ctrl-f2-grid > div:first-child { grid-column: 1 / -1; grid-row: auto; }
}
/* ora di Ancona nella riga in alto: solo su mobile (la mette footer.js) */
.footer.footer-2 .ft-eb-time { display: none; }
/* Blog copiato in Navigazione da footer.js: serve solo su mobile, dove In evidenza non c'e' */
.footer.footer-2 .ft-m-only { display: none; }

@media (max-width: 767px) {
  /* mobile compatto: niente frase sotto il marchio, niente colonna In evidenza (Blog passa in Navigazione),
     ora di Ancona nella riga in alto invece che in una cella, righe piu' basse */
  .footer.footer-2 .ctrl-f2 { padding-top: 3rem; }
  .footer.footer-2 .ft-eyebrow + .ctrl-f2-grid { margin-top: 1.6rem; }
  .footer.footer-2 .ctrl-f2-grid, .footer.footer-2 .footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.9rem 1rem; }
  .footer.footer-2 .ctrl-f2-brand-name { margin-bottom: 1rem; font-size: 2.1rem; }
  .footer.footer-2 .ctrl-f2-brand-text { display: none; }
  .footer.footer-2 .ctrl-f2-mail { padding: .85rem 1.2rem; }
  .footer.footer-2 .ctrl-f2-grid > div:nth-child(2), .footer.footer-2 .ft-clock { display: none; }
  .footer.footer-2 .ft-m-only { display: flex; }
  .footer.footer-2 .ft-eyebrow > span:not(.ft-eb-time) { display: none; }
  .footer.footer-2 .ft-eb-time { display: inline; color: var(--ft-soft); font-variant-numeric: tabular-nums; }
  .footer.footer-2 .ctrl-f2-eyebrow { margin-bottom: .55rem; }
  .footer.footer-2 > .content-2:not(.logo) { padding-top: 3rem; }
  .footer.footer-2 .ctrl-f2-link, .footer.footer-2 .footer__link { padding: .5rem 0; font-size: .92rem; }
  .footer.footer-2 .footer__nav-link { padding: .5rem 0; font-size: .82rem; }
  .footer.footer-2 .ctrl-f2-link::after, .footer.footer-2 .footer__nav-link::after, .footer.footer-2 .footer__link::after { display: none; }
  .footer.footer-2 .footer__title, .footer.footer-2 .footer__title::before { font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace !important; }
  .footer.footer-2 .ft-coords { letter-spacing: .02em; }
  /* su mobile la scritta va su tre righe, cosi' resta grande */
  .footer.footer-2 .section-34 { margin-top: 2.6rem; }
  .footer.footer-2 .text-block-89 { white-space: normal; line-height: .84; }
  .footer.footer-2 .text-block-89 span { display: block; }
  /* barra finale: partita IVA leggibile e spazio sotto per la barra di Safari, che altrimenti la copre */
  .footer.footer-2 .footer__copyright { flex-direction: column; align-items: flex-start; gap: .55rem; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .footer.footer-2 .footer__copyright-link:first-child { color: var(--ft-soft); }
  /* il sito forza Geist su mobile: qui le parti mono restano mono */
  .footer.footer-2 .ft-eyebrow, .footer.footer-2 .ft-eyebrow *, .footer.footer-2 .ctrl-f2-eyebrow, .footer.footer-2 .ft-time, .footer.footer-2 .ft-coords,
  .footer.footer-2 .footer__copyright, .footer.footer-2 .footer__copyright *, .footer.footer-2 .ft-top { font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace !important; }
}
@media (hover: none) {
  .footer.footer-2 .text-block-89:hover span { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .footer.footer-2 .ctrl-f2-brand-name::after, .footer.footer-2 .text-block-89:hover span, .footer.footer-2 .ft-word::before, .footer.footer-2 .ft-word::after { animation: none !important; }
  .footer.footer-2.ft-dim .ft-word { opacity: 1; }
}
