/* ==========================================================================
   Fidus v2 — home
   One day over Rome, and two thousand years of it: alba, mattino, tramonto, notte, prima luce.
   ========================================================================== */

.intro-mark {
  --h: 0;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 calc(var(--h) * 150%), transparent calc(var(--h) * 150% + 14%));
          mask-image: radial-gradient(circle closest-side, #000 calc(var(--h) * 150%), transparent calc(var(--h) * 150% + 14%));
  -webkit-mask-size: 6px 6px; mask-size: 6px 6px;
}
.intro-mark.is-full { -webkit-mask-image: none; mask-image: none; }
.intro-mark .mark-dot { fill: var(--amber); }

/* ---- 1 · alba ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: clamp(92px, 12.5vh, 118px) var(--gut) clamp(150px, 27vh, 280px);
}
/* sizes follow the height too, so on a short laptop screen the text never reaches the skyline */
.hero-in { display: grid; justify-items: center; gap: clamp(14px, min(2.3vw, 2.9vh), 30px); max-width: 1240px; }
.hero .d-xl { font-size: clamp(3.1rem, min(9.4vw, 14vh), 9.6rem); }
.hero h1 em { display: block; }
.hero .lede { max-width: 31em; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.micro { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; font-size: .9rem; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.micro .who { display: inline-flex; align-items: center; gap: 11px; }
.micro .dot { width: 3px; height: 3px; background: currentColor; opacity: .55; }
.scroll-cue {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); translate: -50% 0;
  display: grid; justify-items: center; gap: 10px; text-decoration: none;
  font: 500 .66rem/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
}
.scroll-cue i { width: 1px; height: 34px; background: currentColor; transform-origin: 50% 0; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 35% { transform: scaleY(1); opacity: 1; } 100% { transform: translateY(34px) scaleY(0); opacity: 0; } }
@media (max-width: 700px) {
  .hero { padding-top: 104px; padding-bottom: clamp(130px, 22vh, 200px); }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
  .micro { flex-direction: column; gap: 8px; }
  .micro .dot { display: none; }
}

/* ---- 2 · il punto -------------------------------------------------------------- */
.punto { padding: clamp(110px, 20vh, 240px) 0 clamp(90px, 16vh, 200px); }
.punto .wrap { display: grid; gap: clamp(22px, 3vw, 38px); }
.statement { font-size: clamp(1.95rem, 4.5vw, 4.5rem); line-height: 1.07; max-width: 19.5em; text-wrap: pretty; }

/* ---- 3 · lavori ------------------------------------------------------------------ */
.lavori { padding: clamp(70px, 12vh, 150px) 0 clamp(30px, 5vh, 70px); }
.stage { display: grid; justify-items: center; gap: clamp(22px, 3vw, 34px); perspective: 1700px; }
.browser {
  --p: 1;
  position: relative; width: min(100%, 1120px); border-radius: 20px; background: var(--ink); padding: 0 7px 7px;
  box-shadow: 0 70px 130px -60px rgb(14 17 22 / .7), 0 30px 60px -40px rgb(14 17 22 / .5), 0 0 0 1px rgb(250 247 241 / .06) inset;
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.88 + var(--p) * .12));
  will-change: transform;
}
.browser-bar { height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 10px; color: rgb(250 247 241 / .55); font: 500 .7rem/1 var(--mono); letter-spacing: .04em; }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: rgb(250 247 241 / .16); }
.url { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 14px; border-radius: 999px; background: rgb(250 247 241 / .07); color: rgb(250 247 241 / .82); }
.url svg { width: 12px; height: 12px; opacity: .6; }
.url b { font-weight: 500; }
.live { justify-self: end; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .18em; font-size: .62rem; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-bright); animation: live 2.2s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgb(233 165 98 / .5); } 50% { box-shadow: 0 0 0 6px rgb(233 165 98 / 0); } }
.browser-view { position: relative; aspect-ratio: 16 / 9.3; overflow: hidden; border-radius: 13px; background: #15171c; }
.shot {
  --m: 0; --s: 0;
  position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; opacity: 0;
  transform: translate3d(0, calc(var(--s) * -1px), 0); will-change: transform;
}
.shot.is-on { opacity: 1; }
/* The work on show loads with the section. The other four are not drawn (so the browser does not fetch them)
   until home.js calls them in, one at a time, when the section is near: `is-ready`. */
.js .shot:not(.is-on):not(.is-in):not(.is-ready), .js .pshot:not(.is-on):not(.is-ready) { display: none; }
.shot.is-in {
  opacity: 1; z-index: 2;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 calc(var(--m) * 150%), transparent calc(var(--m) * 150% + 14%));
          mask-image: radial-gradient(circle closest-side, #000 calc(var(--m) * 150%), transparent calc(var(--m) * 150% + 14%));
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
}
.phone {
  position: absolute; right: -3.2%; bottom: -9%; width: 18.5%; aspect-ratio: 390 / 800; z-index: 3;
  border-radius: clamp(14px, 2.4vw, 30px); background: var(--ink); padding: clamp(3px, .5vw, 6px);
  box-shadow: 0 40px 70px -30px rgb(14 17 22 / .75), 0 0 0 1px rgb(250 247 241 / .1) inset;
  transform: translate3d(0, calc((1 - var(--p)) * 90px), 0);
}
.phone-view { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: clamp(11px, 2vw, 25px); background: #15171c; }
.pshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s; }
.pshot.is-on { opacity: 1; }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); margin-top: clamp(26px, 5vw, 58px); }
.tabs button { position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px; border-radius: 999px; font-size: .95rem; color: var(--fg-soft); transition: color .3s, background-color .4s; }
.tabs button.is-on { background: var(--fg); color: var(--bg-flat); }
.tabs { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; }
.tabs .ring { --t: 0; width: 12px; height: 12px; border-radius: 50%; display: none; background: conic-gradient(currentColor calc(var(--t) * 360deg), color-mix(in srgb, currentColor 22%, transparent) 0); -webkit-mask: radial-gradient(circle, transparent 3.4px, #000 3.9px); mask: radial-gradient(circle, transparent 3.4px, #000 3.9px); }
.tabs button.is-on .ring { display: block; }
@media (hover: hover) { .tabs button:not(.is-on):hover { color: var(--fg); } }

.cases { display: grid; width: min(100%, 1120px); margin-top: clamp(8px, 1.6vw, 20px); }
.case {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(250px, .9fr) 2.5fr; gap: clamp(20px, 4vw, 64px); align-items: start;
  opacity: 0; visibility: hidden; transform: translate3d(0, 12px, 0);
  transition: opacity .45s, transform .6s var(--ease-out), visibility 0s .45s;
}
.case.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .14s, .14s, 0s; }
.case { align-content: start; }
.case-lead { display: grid; gap: 18px; grid-row: 1 / span 2; align-content: start; }
.case-lead .eyebrow { flex-wrap: wrap; row-gap: 7px; line-height: 1.3; }
.metric.metric-long b { font-size: clamp(2.3rem, 3.9vw, 3.6rem); white-space: nowrap; }
.metric b { display: block; font: 400 clamp(3.1rem, 6.2vw, 5.6rem)/.92 var(--serif); letter-spacing: -0.03em; }
.metric span { display: block; margin-top: .7em; color: var(--fg-soft); max-width: 17em; font-size: 1rem; line-height: 1.4; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px); border-top: 1px solid var(--hair-strong); padding-top: 20px; margin-top: 6px; }
.facts li { font-size: .92rem; line-height: 1.45; color: var(--fg-soft); }
.facts b { display: block; margin-bottom: 7px; font-weight: 500; color: var(--fg); }
.sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair-strong); margin-top: 6px; }
.site { position: relative; display: grid; align-content: start; gap: 6px; text-align: start; padding: 20px clamp(12px, 1.7vw, 24px) 16px; border-inline-start: 1px solid var(--hair); color: var(--fg-soft); transition: color .35s; -webkit-tap-highlight-color: transparent; }
.site:first-child { border-inline-start: 0; padding-inline-start: 0; }
/* the amber line over the site on show fills while its turn lasts (home.js sets --t), then the next one takes over */
.site::before { content: ''; position: absolute; inset-inline: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); pointer-events: none; }
[dir="rtl"] .site::before { transform-origin: 100% 50%; }
.site.is-on { color: var(--fg); }
.site.is-on::before { transform: scaleX(var(--t, 1)); transition: none; }
.site-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
/* the name picks the site; its click area is the whole column, the address beside it stays a link of its own */
.site-pick { text-align: start; color: inherit; -webkit-tap-highlight-color: transparent; }
.site-pick::after { content: ''; position: absolute; inset: 0; }
.site-url { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-decoration: none; color: var(--fg); padding: 7px 0 6px; border-bottom: 1px solid var(--hair-strong); transition: border-color .3s, gap .4s var(--ease-out), color .3s; overflow-wrap: anywhere; }
.site-url svg { flex: none; width: 12px; height: 12px; }
.site:not(.is-on) .site-url { color: var(--fg-soft); }
@media (hover: hover) { .site-url:hover { border-color: var(--accent); gap: 10px; color: var(--fg); } }
.site-n { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--serif); letter-spacing: -0.015em; color: var(--fg); }
.site-k { font: 500 .66rem/1.35 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.site-d { font-size: .92rem; line-height: 1.45; margin-top: 4px; }
.site:not(.is-on) .site-n { color: var(--fg-soft); }
@media (hover: hover) { .site:not(.is-on):hover, .site:not(.is-on):hover .site-n { color: var(--fg); } }
.all-work { display: grid; justify-items: center; gap: 16px; text-align: center; margin-top: clamp(34px, 5vw, 70px); }
.all-work p { color: var(--fg-soft); max-width: 30em; text-wrap: balance; }
.case-link { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-decoration: none; color: var(--fg); padding: 10px 0; border-bottom: 1px solid var(--hair-strong); transition: border-color .3s, gap .4s var(--ease-out); }
.case-link svg { width: 13px; height: 13px; }
@media (hover: hover) { .case-link:hover { border-color: var(--accent); gap: 12px; } }
@media (max-width: 980px) {
  .case { grid-template-columns: 1fr; }
  .case-lead { grid-row: auto; }
  .case-link { grid-column: 1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sites { grid-template-columns: 1fr; }
  .site, .site:first-child { border-inline-start: 0; padding: 16px 0 14px; border-top: 1px solid var(--hair); }
  .site:first-child { border-top: 0; }
  .site::before { inset-inline: 0 auto; width: 56px; }
  .site-url { padding: 10px 0 9px; }
}
@media (max-width: 700px) {
  .browser { border-radius: 14px; padding: 0 4px 4px; }
  .browser-bar { height: 36px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .browser-view { border-radius: 10px; aspect-ratio: 16 / 11; }
  .live { display: none; }
  .url { justify-self: center; }
  .phone { width: 25%; right: -1.5%; bottom: -7%; }
  .tabs { margin-top: 44px; max-width: 100%; }
  .tabs button { padding: 0 13px; height: 40px; font-size: .9rem; gap: 8px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .tabs { gap: 2px; padding: 4px; }
  .tabs button { padding: 0 10px; font-size: .84rem; gap: 6px; }
  .phone { right: 0; }
}

/* ---- 4 · tramonto ------------------------------------------------------------------ */
.tramonto { position: relative; height: 235vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: clip; }
.tramonto-in { display: grid; justify-items: center; gap: clamp(22px, 3vw, 40px); text-align: center; padding: 0 var(--gut); max-width: 1300px; }
.tramonto .ln { display: block; }
.tramonto .lede { max-width: 33em; opacity: var(--o, 0); transform: translate3d(0, calc((1 - var(--o, 0)) * 16px), 0); }

/* ---- 5 · cosa costruiamo --------------------------------------------------------------- */
.cosa { padding: clamp(110px, 18vh, 220px) 0 clamp(80px, 13vh, 170px); }
.sec-head.split { grid-template-columns: 1fr minmax(0, 27em); align-items: end; gap: clamp(20px, 4vw, 60px); }
.index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 46px) clamp(18px, 2.4vw, 34px); }
.index h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--hair-strong); font: 500 1.02rem/1.2 var(--sans); letter-spacing: -0.012em; }
.index h3 i { font: 500 .68rem/1 var(--mono); font-style: normal; letter-spacing: .1em; color: var(--accent); }
/* a service with a page of its own: the name is the link, a small arrow says so */
.index a.svc { color: inherit; text-decoration: none; }
.index h3 a.svc { display: inline-flex; align-items: baseline; gap: 7px; margin-inline-end: auto; }
.index h3 a.svc .arr { flex: none; width: 11px; height: 11px; align-self: center; opacity: .5; transition: opacity .3s, transform .4s var(--ease-out); }
.index li a.svc { text-decoration: underline; text-decoration-color: var(--hair-strong); text-decoration-thickness: 1px; text-underline-offset: .28em; transition: text-decoration-color .3s; }
@media (hover: hover) {
  .index h3 a.svc:hover .arr { opacity: 1; transform: translate(2px, -2px); }
  .index li a.svc:hover { text-decoration-color: var(--accent); }
}
.index li { position: relative; padding: 7px 0 7px 0; font-size: .95rem; line-height: 1.4; color: var(--fg-soft); transition: color .3s, padding-inline-start .45s var(--ease-out); }
.index li::before { content: ''; position: absolute; inset-inline-start: 0; top: 1.02em; width: 4px; height: 4px; background: var(--accent); transform: scale(0); transition: transform .35s var(--ease-out); }
@media (hover: hover) {
  .index li:hover { color: var(--fg); padding-inline-start: 14px; }
  .index li:hover::before { transform: scale(1); }
}
@media (max-width: 1100px) { .index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sec-head.split { grid-template-columns: 1fr; }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) { .index { grid-template-columns: 1fr; } }

/* ---- 6 · metodo --------------------------------------------------------------------------- */
.metodo { position: relative; height: 430vh; }
.metodo-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 90px); align-items: center; }
.metodo-copy { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.steps { display: grid; margin-top: clamp(4px, 1vw, 14px); }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 6px; padding: 16px 0; border-top: 1px solid var(--hair); color: var(--fg-faint); transition: color .5s; }
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps .n { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; padding-top: .62em; transition: color .5s; }
.steps h3 { font: 400 clamp(1.5rem, 2.3vw, 2.1rem)/1.1 var(--serif); letter-spacing: -0.015em; }
.steps p { display: grid; grid-template-rows: 0fr; font-size: .98rem; line-height: 1.5; color: var(--fg-soft); max-width: 31em; opacity: 0; transition: grid-template-rows .6s var(--ease-out), opacity .5s, margin-top .6s var(--ease-out); margin-top: 0; }
.steps p > span { overflow: hidden; }
.steps li.is-on { color: var(--fg); }
.steps li.is-on .n { color: var(--accent); }
.steps li.is-on p { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; }
.metodo-art { position: relative; display: grid; justify-items: center; gap: 16px; }
#dots { width: min(100%, 560px); aspect-ratio: 1 / 1; height: auto; }
.art-cap { font: 500 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); min-height: 1em; transition: opacity .3s; }
@media (max-width: 900px) {
  .metodo-in { grid-template-columns: 1fr; gap: 14px; align-content: center; }
  .metodo-art { order: -1; gap: 8px; }
  #dots { width: min(64vw, 36vh); }
  .metodo-copy { gap: 10px; }
  .metodo-copy .d-m { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .steps li { padding: 10px 0; }
  .steps h3 { font-size: 1.3rem; }
  .steps p { font-size: .92rem; }
}

/* ---- 7 · parola ------------------------------------------------------------------------------ */
.parola { padding: clamp(110px, 18vh, 220px) 0; }
.parola .d-l { max-width: 13em; margin: 0 auto; }
.vow { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(22px, 4vw, 64px); max-width: 940px; margin: clamp(46px, 7vw, 92px) auto 0; }
.vow-col h3 { font: 500 .72rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.vow-col:first-child { text-align: end; }
.vow-col li { padding: 13px 0; border-top: 1px solid var(--hair); font-size: 1.04rem; line-height: 1.4; }
.vow-col.no li { color: var(--fg-faint); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.vow-col.no h3 { color: var(--fg-faint); }
.vow-axis { position: relative; width: 1px; background: var(--hair-strong); }
.vow-axis i { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; background: var(--amber-bright); border-radius: 50%; box-shadow: 0 0 18px 2px rgb(233 165 98 / .6); transform: translateY(calc(var(--y, 0) * 1px)); }
@media (max-width: 700px) {
  .vow { grid-template-columns: 1fr; gap: 34px; }
  .vow-col:first-child { text-align: start; }
  .vow-axis { display: none; }
}

/* ---- 8 · domande -------------------------------------------------------------------------------- */
.domande { padding: clamp(80px, 13vh, 170px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.faq-head { position: sticky; top: 120px; display: grid; gap: 18px; }
.faq details { border-top: 1px solid var(--hair-strong); }
.faq details:last-child { border-bottom: 1px solid var(--hair-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 2px; cursor: pointer; list-style: none; font: 400 clamp(1.3rem, 2vw, 1.75rem)/1.2 var(--serif); letter-spacing: -0.012em; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair-strong); transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin: -.5px 0 0 -5px; background: currentColor; transition: transform .5s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--fg); border-color: var(--fg); color: var(--bg-flat); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq .a { overflow: hidden; }
.faq .a p { padding: 0 2px 26px; padding-inline-end: 60px; color: var(--fg-soft); max-width: 40em; }
@media (hover: hover) { .faq summary:hover i { border-color: var(--fg); } }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq .a p { padding-inline-end: 10px; }
}

/* ---- 9 · prenoti ----------------------------------------------------------------------------------- */
.prenoti { padding: clamp(120px, 20vh, 240px) 0 clamp(90px, 14vh, 180px); }
.prenoti .wrap { display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 30px); }
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 820px); margin-top: clamp(12px, 2vw, 26px); }
.needs a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 22px; border-radius: 18px; text-decoration: none; text-align: start;
  background: var(--veil); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 1.02rem; font-weight: 500; letter-spacing: -0.012em;
  transition: border-color .3s, transform .6s var(--ease-out), color .3s;
}
.needs a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--amber-bright); transform: translate3d(0, 101%, 0); transition: transform .55s var(--ease-out); }
.needs a { line-height: 1.16; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.needs svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); transition: color .3s; }
@media (hover: hover) {
  .needs a:hover { color: var(--ink); border-color: var(--amber-bright); transform: translate3d(0, -3px, 0); }
  .needs a:hover::before { transform: none; }
  .needs a:hover svg { color: var(--ink); }
}
.founder { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 20px; margin-top: clamp(18px, 3vw, 36px); padding: 14px 14px 14px 18px; border-radius: 999px; background: var(--veil); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.founder p { display: grid; gap: 3px; text-align: start; margin-inline-end: 10px; }
.founder b { font-weight: 500; }
.founder p span { font-size: .9rem; color: var(--fg-soft); }
@media (max-width: 700px) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .needs a { height: 60px; padding: 0 14px; gap: 10px; font-size: .95rem; }
  .needs svg { width: 20px; height: 20px; }
  .founder { border-radius: 28px; padding: 18px; }
  .founder p { margin-inline-end: 0; }
  .founder .btn { width: 100%; }
}

/* ---- 10 · prima luce --------------------------------------------------------------------------------- */
.foot { position: relative; padding-top: clamp(110px, 15vh, 180px); min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.foot-tag { font: 400 clamp(1.7rem, 2.9vw, 2.75rem)/1.08 var(--serif); letter-spacing: -0.018em; }
.foot-tag span { font-style: italic; color: var(--accent); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.foot-cols h4 { font: 500 .68rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px; }
.foot-cols a { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; padding: 5px 0; font-size: .95rem; text-decoration: none; color: var(--fg-soft); transition: color .3s, transform .45s var(--ease-out); }
@media (hover: hover) { .foot-cols a:hover { color: var(--fg); transform: translateX(4px); } }
.foot-scene { position: relative; display: grid; place-items: end center; min-height: clamp(260px, 46vh, 560px); padding-bottom: clamp(120px, 25vh, 250px); overflow: clip; }
.foot-word { font-family: var(--serif); font-size: clamp(7rem, 27vw, 27rem); line-height: .78; letter-spacing: -0.045em; color: var(--paper); user-select: none; }
.foot-word i { font-style: italic; }
.foot-word .w { -webkit-mask-size: 6px 6px; mask-size: 6px 6px; }
.foot-base { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 26px; padding-top: 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); font: 500 .68rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(250 247 241 / .72); }
.foot-base b { color: var(--paper); font-weight: 500; }
.foot-base .lang summary { height: 34px; color: rgb(250 247 241 / .8); border: 1px solid rgb(250 247 241 / .22); }
.foot .lang-menu { top: auto; bottom: calc(100% + 10px); text-transform: none; letter-spacing: 0; }
.foot-base .totop { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--paper); }
.foot-base .totop svg { width: 13px; height: 13px; transition: transform .45s var(--ease-out); }
@media (hover: hover) { .foot-base .totop:hover svg { transform: translateY(-4px); } }
.foot ~ .chip-clock, .at-foot .chip-clock { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (max-width: 700px) { .at-cta .chip-clock { opacity: 0; transform: translateY(10px); pointer-events: none; } }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-base { justify-content: flex-start; }
  .foot-base .lang { position: static; }
  .foot .lang-menu { inset-inline: var(--gut); width: auto; }
}

/* ---- other languages: long words wrap instead of pushing the page sideways -------------------------------- */
.d-xl, .d-l, .d-m, .statement, .metric b, .site-n, .steps h3, .faq summary span, .foot-tag { overflow-wrap: break-word; }
html:not([lang="it"]) .metric span { max-width: 19em; }
html:is([lang="de"], [lang="ru"], [lang="uk"], [lang="pl"], [lang="nl"], [lang="sv"], [lang="tr"], [lang="id"], [lang="vi"], [lang="ro"]) .hero .d-xl { font-size: clamp(2.5rem, min(7.6vw, 12.5vh), 8rem); }
html:is([lang="de"], [lang="ru"], [lang="uk"], [lang="pl"], [lang="nl"], [lang="sv"], [lang="tr"], [lang="id"], [lang="vi"], [lang="ro"]) .tramonto .d-xl,
html:is([lang="de"], [lang="ru"], [lang="uk"], [lang="pl"], [lang="nl"], [lang="sv"], [lang="tr"], [lang="id"], [lang="vi"], [lang="ro"]) .prenoti .d-xl { font-size: clamp(2.4rem, 7.4vw, 7.6rem); }
/* the longest headlines: a size that keeps them on two or three lines above the skyline */
html:is([lang="ru"], [lang="uk"], [lang="vi"]) .hero .d-xl { font-size: clamp(2.2rem, min(5.7vw, 9.8vh), 6rem); }
html[lang="ja"] .hero h1.d-xl { font-size: clamp(2.1rem, min(5vw, 9.4vh), 5.3rem); }
html:is([lang="ru"], [lang="uk"], [lang="vi"], [lang="ja"]) .hero-in { max-width: 1400px; }
@media (max-width: 350px) { .hero .d-xl { font-size: 2.3rem !important; } }
html:is([lang="hi"], [lang="th"], [lang="ar"]) :is(.hero, .tramonto, .prenoti) .d-xl { font-size: clamp(2.4rem, min(7vw, 12vh), 7.2rem); line-height: 1.22; }
html:is([lang="zh"], [lang="ja"], [lang="ko"]) :is(.hero, .tramonto, .prenoti) .d-xl { font-size: clamp(2.5rem, min(7.4vw, 12.5vh), 7.6rem); line-height: 1.14; }
