/* ==========================================================================
   Beweb Studio — Restyling 2026 · v2
   Stile: editoriale chiaro, griglia a vista, angoli netti, accento giallo fluo.
   --------------------------------------------------------------------------
   1. Token          6. Hero 3D         11. Portfolio (lista + anteprima)
   2. Base           7. Ticker          12. Journal
   3. Componenti     8. About sticky    13. CTA
   4. Loader/cursor  9. Bento servizi   14. Footer
   5. Header/menu   10. Metodo pinnato  15. Stati animazioni / responsive / reduced motion
   ========================================================================== */

/* 1. TOKEN ---------------------------------------------------------------- */
:root {
  /* Palette brand (dal sito attuale) */
  --navy-950: #010F18;
  --navy-900: #021A29;
  --navy:     #03334F;   /* primario */
  --navy-700: #0A4566;
  --blue-600: #006C9A;
  --blue-500: #1781AB;
  --blue:     #1D98C6;   /* secondario */
  --cyan:     #2CC4F4;
  --ice:      #CEEFFF;
  --ice-50:   #EAF6FD;
  --ice-25:   #F3FAFE;
  --white:    #FFFFFF;

  /* Accento giallo fluo */
  --yellow:     #E4FF1A;
  --yellow-300: #F1FF7A;
  --yellow-600: #C8E600;

  /* Ruoli */
  --bg: var(--ice-25);
  --paper: var(--white);
  --ink: var(--navy-900);
  --muted: rgba(3, 51, 79, .64);
  --line: rgba(3, 51, 79, .14);
  --line-strong: rgba(3, 51, 79, .9);

  /* Tipografia */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.8rem, 1.2rem + 6.6vw, 8.6rem);
  --fs-h2: clamp(2.2rem, 1.3rem + 3.6vw, 5rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .7vw, 1.9rem);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);

  --wrap: 1480px;
  --pad: clamp(16px, 3.4vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: niente scorrimento laterale se un elemento decorativo (es. il ticker inclinato) sborda */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
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(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
mark { color: inherit; background: none; }
::selection { background: var(--yellow); color: var(--navy-900); }

/* Barra di scorrimento del browser: binario chiaro, cursore navy, blu al passaggio, giallo mentre la trascini.
   Chrome, Edge e Safari usano ::-webkit-scrollbar; Firefox scrollbar-color. */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--ice-25); border-left: 1px solid rgba(3, 51, 79, .12); }
::-webkit-scrollbar-thumb { background: var(--navy-900); border: 4px solid var(--ice-25); border-radius: 8px; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
::-webkit-scrollbar-thumb:active { background: var(--yellow); border-width: 3px; box-shadow: inset 0 0 0 1.5px var(--navy-900); }
::-webkit-scrollbar-corner { background: var(--ice-25); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--navy-900) var(--ice-25); }
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

main { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.h2 { font-size: var(--fs-h2); max-width: 14ch; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--yellow); }
.skip-link:focus { top: 16px; }

/* Linee verticali della griglia editoriale */
.grid-lines {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 0; pointer-events: none;
  width: min(100% - 2 * var(--pad), var(--wrap) - 2 * var(--pad)); translate: -50% 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-right: 1px solid rgba(3, 51, 79, .06);
}
.grid-lines i { border-left: 1px solid rgba(3, 51, 79, .06); }
.grid-lines i:nth-child(5) { display: none; }

/* 3. COMPONENTI ----------------------------------------------------------- */
.label {
  font-family: var(--f-display); font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem;
}
.label--light { color: rgba(206, 239, 255, .7); }

/* Bottone: pannello che sale dal basso + freccia che scorre */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  padding: 1em 1.5em; border-radius: var(--r);
  font-family: var(--f-display); font-weight: 700; line-height: 1;
  border: 1.5px solid var(--navy-900);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy-900);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--yellow { background: var(--yellow); color: var(--navy-900); }
.btn--yellow:hover { color: var(--yellow); }
.btn--yellow:active { background: var(--yellow-600); }
.btn--sm { padding: .72em 1.15em; font-size: .9rem; }
.btn--lg { padding: 1.15em 1.8em; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: space-between; }
.btn__label { position: relative; display: inline-block; }
.btn__arrow { display: inline-block; transition: transform .55s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }

.ulink { position: relative; font-family: var(--f-display); font-weight: 500; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 0 40%; transition: background-size .5s var(--ease); padding: 0 .1em; }
.ulink:hover { background-size: 100% 40%; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li { font-size: .78rem; padding: .3em .7em; border: 1px solid currentColor; border-radius: 99px; opacity: .75; }

/* Evidenziatore giallo (animato via --mark) */
mark { --mark: 100%; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / var(--mark) 42%; padding-inline: .05em; }

/* 4. LOADER, CURSORE, PREVIEW, CURTAIN ------------------------------------ */
.loader { display: none; }
.has-motion .loader { display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.loader__panel { position: absolute; inset: 0; background: var(--yellow); }
.loader__count { position: absolute; left: var(--pad); bottom: 2vh; font-family: var(--f-display); font-weight: 700; font-size: clamp(6rem, 22vw, 20rem); line-height: .8; letter-spacing: -.06em; color: var(--navy-900); }
.loader__label { position: absolute; right: var(--pad); top: 32px; font-family: var(--f-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-900); }

.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: 99999; pointer-events: none; /* sopra anche al banner cookie (9000-9100) */
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--white); mix-blend-mode: difference;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s;
}
.cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.has-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--yellow); }
.cursor__label { font-family: var(--f-display); font-weight: 700; font-size: .82rem; color: var(--navy-900); opacity: 0; transition: opacity .2s; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

.work-preview { display: none; }
.has-cursor .work-preview {
  display: block; position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 360px; aspect-ratio: 4 / 3; margin: -135px 0 0 -180px;
  overflow: hidden; border-radius: var(--r);
  transform: scale(0); opacity: 0;
}
.work-preview__inner { height: 100%; transition: transform .7s var(--ease); }
.work-preview__img { height: 100%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; }
.work-preview__img--1 { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--white); font-size: 1rem; }
.work-preview__img--1 span { padding: .5em 1em; background: var(--white); color: var(--navy); border-radius: 99px; }
.work-preview__img--2 { background: var(--navy); color: var(--ice); font-size: 6rem; letter-spacing: -.06em; }
.work-preview__img--3 { background: var(--yellow); color: var(--navy-900); font-size: 7rem; }

.curtain { position: fixed; inset: 0; z-index: 990; background: var(--yellow); transform: translateY(100%); pointer-events: none; }
/* Arrivo da una transizione: sipario chiuso finché GSAP non lo apre */
.has-motion.is-entering .curtain { transform: none; }

/* 5. HEADER --------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--pad);
  transition: transform .5s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }

.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.04em; }
.logo__mark { width: 26px; height: 26px; border-radius: 50%; border: 6px solid var(--blue); border-right-color: var(--navy); transform: rotate(-30deg); }
.logo__word em { font-style: normal; font-weight: 400; color: var(--blue); }
.logo, .logo__mark { transition: color .35s, border-color .35s; }
/* sopra le sezioni scure (Metodo, Preventivo, footer...) il logo diventa chiaro: lo decide js/main.js */
.header.is-on-dark .logo { color: var(--white); }
.header.is-on-dark .logo__mark { border-right-color: var(--white); }
.header.is-on-dark .logo__word em { color: var(--cyan); }

.pill-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; padding: 5px; gap: 2px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 99px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pill-nav a { position: relative; z-index: 1; padding: .55em 1.05em; font-size: .92rem; font-weight: 500; border-radius: 99px; transition: color .3s; }
.pill-nav__blob { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: var(--yellow); opacity: 0; transition: left .45s var(--ease), width .45s var(--ease), opacity .3s; }

.menu-btn { display: none; padding: .7em 1.2em; border: 1.5px solid var(--navy-900); border-radius: 99px; background: var(--white); font-family: var(--f-display); font-weight: 700; font-size: .9rem; }
.menu-open .menu-btn { background: var(--navy-900); color: var(--yellow); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--yellow);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--pad) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: .8rem; padding-block: .3rem; border-bottom: 1.5px solid var(--navy-900); font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 11vw, 4rem); letter-spacing: -.04em; }
.menu nav small { font-size: .8rem; font-weight: 500; letter-spacing: 0; }
.menu p { font-family: var(--f-display); font-size: .9rem; }

/* 5b. GLOBO (prima della hero) -------------------------------------------- */
.globe {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background:
    radial-gradient(55% 60% at 70% 50%, var(--white) 0%, rgba(255, 255, 255, 0) 70%),
    var(--ice-25);
  border-bottom: 1.5px solid var(--navy-900);
  --gx: 70%; --gy: 50%; --gr: 34vh; --gfade: 1;
}
.globe__canvas { position: absolute; inset: 0; z-index: 1; }
.globe__canvas canvas { width: 100% !important; height: 100% !important; display: block; }
/* ombra gialla piena + contorno netto, agganciati al globo dal JS (--gx --gy --gr) */
.globe__shadow {
  position: absolute; z-index: 0; left: var(--gx); top: var(--gy); width: calc(var(--gr) * 2); aspect-ratio: 1;
  translate: calc(-50% + var(--goff, 14px)) calc(-50% + var(--goff, 14px)); border-radius: 50%;
  background: var(--yellow); border: 1.5px solid var(--navy-900); opacity: var(--gfade);
}
.globe__ring {
  position: absolute; z-index: 2; left: var(--gx); top: var(--gy); width: calc(var(--gr) * 2 + 2px); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; border: 1.5px solid var(--navy-900); opacity: var(--gfade); pointer-events: none;
}
.globe:not(.is-gl) .globe__shadow, .globe:not(.is-gl) .globe__ring { display: none; }
/* senza WebGL: sfera a puntini statica in CSS */
.globe__fallback {
  position: absolute; right: 8%; top: 50%; width: min(44vw, 78vh); aspect-ratio: 1; margin-top: calc(min(44vw, 78vh) / -2);
  border-radius: 50%; border: 1.5px solid var(--navy-900); box-shadow: 18px 18px 0 var(--yellow);
  background: radial-gradient(circle, var(--navy) 1.1px, transparent 1.6px) 0 0 / 11px 11px, radial-gradient(circle at 35% 30%, #fff, var(--ice) 75%);
}
.globe.is-gl .globe__fallback { display: none; }

.globe__layout {
  position: relative; z-index: 2; height: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: calc(var(--header-h) + 24px) var(--pad) clamp(40px, 9vh, 96px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.4rem;
  pointer-events: none;
}
.globe__layout a { pointer-events: auto; }
.globe__label { margin: 0; color: var(--navy-900); }
.globe__title {
  margin: 0; max-width: 9.5ch; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.8rem, 1rem + 5.4vw, 7.4rem); line-height: .9; letter-spacing: -.055em; color: var(--navy-900);
}
.globe__title .line { display: block; }
.globe__sub { max-width: 34ch; margin: 0; color: var(--muted); font-size: 1.1rem; }
.globe__areas { display: flex; flex-wrap: wrap; gap: 8px; }
.globe__areas a {
  padding: .45em .8em; font-family: var(--f-display); font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: var(--navy-900); background: var(--paper); border: 1.5px solid var(--navy-900); border-radius: var(--r);
  transition: background-color .25s, transform .25s;
}
.globe__areas a:hover { background: var(--yellow); transform: translateY(-2px); }
/* etichetta che segue Teramo sul globo */
.globe__pin {
  position: absolute; z-index: 3; left: 0; top: 0; margin: 0; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: .55em; white-space: nowrap;
  padding: .45em .75em .45em .55em; translate: 0 calc(-100% - 14px);
  font-family: var(--f-display); font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--navy-900);
  background: var(--paper); border: 1.5px solid var(--navy-900); border-radius: var(--r); box-shadow: 4px 4px 0 var(--yellow);
}
.globe__pin small { font-weight: 500; color: var(--muted); }
.globe__pin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--navy-900); animation: pin-blink 1.6s ease-in-out infinite; }
@keyframes pin-blink { 50% { opacity: .35; } }
.globe__hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; translate: -50% 0; margin: 0; color: var(--navy-900); }
@media (max-width: 900px) {
  .globe__layout { justify-content: flex-end; padding-bottom: 56px; gap: 1rem; }
  .globe__title { font-size: clamp(2.4rem, 11vw, 3.6rem); max-width: none; }
  .globe__sub { font-size: 1rem; }
  .globe__fallback { right: auto; left: 50%; top: 32%; width: 76vw; margin: calc(76vw / -2) 0 0 calc(76vw / -2); }
  .globe__pin small { display: none; }
  .globe { --goff: 9px; }
  .globe__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .globe__pin-dot { animation: none; } }

/* 6. HERO ----------------------------------------------------------------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden;
  background:
    radial-gradient(60% 60% at 65% 45%, var(--white) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(80% 70% at 100% 100%, var(--ice) 0%, rgba(206, 239, 255, 0) 60%),
    var(--ice-25);
}
.hero__canvas { position: absolute; inset: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }

/* Fallback: wireframe di pagina in CSS */
.hero__fallback {
  /* centrato con margini (non con translate: GSAP anima x/scale/rotate) */
  --fb-w: min(46vw, 640px);
  position: absolute; right: 8%; top: 50%; margin-top: calc(var(--fb-w) * -0.3143);
  width: var(--fb-w); aspect-ratio: 7 / 4.4;
  padding: 2.4%; gap: 3%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1.4fr 1fr;
  background: var(--white); border: 1.5px solid var(--navy); border-radius: 10px;
  box-shadow: 18px 18px 0 var(--yellow);
}
.hero__fallback i { border-radius: 4px; background: var(--ice); }
.hero__fallback .fb-bar { grid-column: 1 / -1; height: 18px; background: var(--navy); }
.hero__fallback .fb-hero { grid-column: 1 / 3; background: var(--blue); }
.hero__fallback .fb-side { background: var(--navy-700); }
.webgl-on .hero__fallback { display: none; }

.hero__layout {
  position: relative; z-index: 2; height: 100%;
  max-width: var(--wrap); margin-inline: auto; padding: calc(var(--header-h) + 8px) var(--pad) clamp(28px, 5vh, 56px);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; column-gap: 2rem;
  pointer-events: none;
}
.hero__layout a { pointer-events: auto; }
.hero__top { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1.5px solid var(--navy-900); padding-top: .8rem; }
.hero__label { margin: 0; color: var(--navy-900); }
.hero__title { grid-column: 1; grid-row: 3; align-self: end; font-size: var(--fs-hero); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.hero__title .line { display: block; }
.hero__aside { grid-column: 2; grid-row: 3; align-self: end; max-width: 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; padding-bottom: .4rem; }
.hero__sub { color: var(--muted); font-size: 1.05rem; }

.hero__steps { position: absolute; z-index: 2; right: var(--pad); top: 50%; translate: 0 -50%; display: grid; gap: .5rem; font-family: var(--f-display); font-size: .85rem; }
.hero__steps li { display: flex; align-items: center; gap: .6rem; color: var(--muted); transition: color .4s; }
.hero__steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; font-size: .72rem; transition: background-color .4s, border-color .4s; }
.hero__steps li.is-active { color: var(--navy-900); }
.hero__steps li.is-active span { background: var(--yellow); border-color: var(--navy-900); }

/* Didascalie su "cartellino" bianco: leggibili anche sopra le forme 3D */
.hero__caption {
  position: absolute; z-index: 2; left: var(--pad); bottom: clamp(40px, 7vh, 80px);
  padding: .25em .4em .3em; background: var(--paper); border: 1.5px solid var(--navy-900); border-radius: var(--r);
  box-shadow: 8px 8px 0 var(--yellow);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, .9rem + 2.4vw, 3.4rem); line-height: .98; letter-spacing: -.045em;
  opacity: 0; pointer-events: none;
}
.hero__progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line); }
.hero__progress i { display: block; height: 100%; background: var(--yellow); border-right: 2px solid var(--navy-900); transform: scaleX(0); transform-origin: left; }
.hero__hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; translate: -50% 0; margin: 0; color: var(--navy-900); }

/* 7. TICKER --------------------------------------------------------------- */
.ticker { position: relative; z-index: 2; overflow: hidden; background: var(--yellow); border-block: 1.5px solid var(--navy-900); padding-block: clamp(14px, 2vw, 22px); transform: rotate(-1.6deg) scale(1.04); margin-block: 24px; }
.ticker__track { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); width: max-content; white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.6vw, 3.6rem); letter-spacing: -.04em; color: var(--navy-900); }
.ticker__track b { font-size: .7em; }

/* 8. ABOUT (split sticky) ------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: start; }
.about__sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.about__lead { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); line-height: 1.18; letter-spacing: -.025em; }
.values { margin-top: clamp(48px, 6vw, 96px); border-top: 1.5px solid var(--navy-900); }
.value { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 1rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.value__n { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: var(--yellow); font-family: var(--f-display); font-weight: 700; transition: transform .6s var(--ease); }
.value:hover .value__n { transform: rotate(-20deg) scale(1.1); }
.value h3 { font-size: var(--fs-h3); margin-bottom: .3rem; }
.value p { color: var(--muted); }
.value strong { color: var(--ink); text-transform: uppercase; }

/* 9. BENTO SERVIZI -------------------------------------------------------- */
.sec-head { margin-bottom: clamp(40px, 5vw, 80px); }
.sec-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }

.bento {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-template-areas:
    "web web app shop"
    "web web app social"
    "print print cta cta";
}
.tile--web { grid-area: web; }
.tile--app { grid-area: app; }
.tile--shop { grid-area: shop; }
.tile--social { grid-area: social; }
.tile--print { grid-area: print; }
.tile--cta { grid-area: cta; }

/* Tile: cerchio che si espande dall'angolo in hover (posizione da JS: --x/--y) */
.tile {
  --x: 100%; --y: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem;
  padding: clamp(20px, 2.2vw, 32px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .4s, color .4s;
}
.tile::before {
  content: ""; position: absolute; z-index: -1; left: var(--x); top: var(--y);
  width: 280%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; scale: 0;
  background: var(--yellow); transition: scale .8s var(--ease);
}
.tile:hover::before { scale: 1; }
.tile:hover { border-color: var(--navy-900); }
.tile__n { position: absolute; top: clamp(20px, 2.2vw, 32px); left: clamp(20px, 2.2vw, 32px); font-family: var(--f-display); font-size: .8rem; }
.tile h3 { font-size: var(--fs-h3); }
.tile p { color: var(--muted); max-width: 42ch; font-size: .98rem; transition: color .4s; }
.tile__go { position: absolute; top: clamp(16px, 1.8vw, 26px); right: clamp(16px, 1.8vw, 26px); width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; transition: transform .6s var(--ease), background-color .4s, color .4s; }
.tile:hover .tile__go { transform: rotate(45deg); background: var(--navy-900); color: var(--yellow); }

.tile--web { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.tile--web p { color: rgba(206, 239, 255, .72); }
.tile--web::before { background: var(--blue); }
.tile--web:hover p { color: var(--white); }
.tile--web h3 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.4rem); }
.tile--app { background: var(--ice); }
.tile--cta { background: var(--yellow); border-color: var(--navy-900); }
.tile--cta::before { background: var(--navy-900); }
.tile--cta:hover { color: var(--yellow); }
.tile--cta:hover p { color: var(--ice); }
.tile--cta h3 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); }
.tile--cta:hover .tile__go { background: var(--yellow); color: var(--navy-900); }

/* Illustrazioni CSS nelle tile */
.tile__art { position: absolute; transition: transform .8s var(--ease); }
.tile__art--web { top: 18%; right: 8%; width: 46%; display: grid; gap: 10px; }
.tile__art--web i { height: 14px; border-radius: 3px; background: rgba(206, 239, 255, .18); transition: width .8s var(--ease), background-color .4s; }
.tile__art--web i:nth-child(1) { width: 100%; height: 70px; background: var(--blue); }
.tile__art--web i:nth-child(2) { width: 70%; }
.tile__art--web i:nth-child(3) { width: 85%; }
.tile__art--web i:nth-child(4) { width: 40%; background: var(--yellow); }
.tile--web:hover .tile__art--web i:nth-child(2) { width: 95%; }
.tile--web:hover .tile__art--web i:nth-child(3) { width: 55%; }
.tile--web:hover .tile__art--web i:nth-child(4) { width: 70%; }
.tile__art--app { top: 16%; left: 50%; translate: -50% 0; width: 90px; height: 170px; border: 2px solid var(--navy-900); border-radius: 18px; background: var(--white); }
.tile__art--app i { position: absolute; inset: 22px 10px 40px; border-radius: 6px; background: linear-gradient(160deg, var(--blue), var(--cyan)); }
.tile--app:hover .tile__art--app { transform: rotate(-10deg) translateY(-8px); }
.tile__art--print { top: 50%; right: 8%; translate: 0 -50%; width: 180px; height: 110px; }
.tile__art--print i { position: absolute; top: 0; width: 110px; height: 110px; border-radius: 50%; border: 1.5px solid var(--navy-900); transition: transform .8s var(--ease); }
.tile__art--print i:nth-child(1) { left: 0; background: var(--ice); }
.tile__art--print i:nth-child(2) { left: 35px; background: var(--blue); }
.tile__art--print i:nth-child(3) { left: 70px; background: var(--yellow); }
.tile--print:hover .tile__art--print i:nth-child(1) { transform: translateX(-16px); }
.tile--print:hover .tile__art--print i:nth-child(3) { transform: translateX(16px); }

/* 10. METODO (pinnato) ---------------------------------------------------- */
.process { position: relative; background: var(--navy-900); color: var(--white); }
.process .label { color: rgba(206, 239, 255, .7); }
.process__pin { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: center; padding-block: clamp(80px, 10vw, 120px); }
.process__num { height: clamp(9rem, 4rem + 14vw, 18rem); overflow: hidden; font-family: var(--f-display); font-weight: 700; font-size: clamp(9rem, 4rem + 14vw, 18rem); line-height: 1; letter-spacing: -.07em; color: var(--yellow); }
.process__num-track { display: flex; flex-direction: column; }
.process__num-track b { height: clamp(9rem, 4rem + 14vw, 18rem); }
.process__bar { margin-top: 2rem; height: 2px; background: rgba(206, 239, 255, .15); max-width: 420px; }
.process__bar i { display: block; height: 100%; background: var(--yellow); transform: scaleX(.25); transform-origin: left; }
.process__steps { display: grid; gap: 0; border-top: 1px solid rgba(206, 239, 255, .2); counter-reset: s; }
.pstep { padding-block: clamp(20px, 2.6vw, 36px); border-bottom: 1px solid rgba(206, 239, 255, .2); opacity: .32; transition: opacity .5s; }
.pstep.is-active { opacity: 1; }
.pstep h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.pstep h3::before { counter-increment: s; content: "0" counter(s) "  "; font-size: .55em; color: var(--yellow); vertical-align: middle; white-space: pre; }
.pstep p { color: rgba(206, 239, 255, .75); max-width: 44ch; }

/* 11. PORTFOLIO ----------------------------------------------------------- */
.work-list { border-top: 1.5px solid var(--navy-900); }
.work-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 70px 1fr auto 60px; align-items: center; gap: 1.5rem;
  padding-block: clamp(22px, 3vw, 44px); border-bottom: 1.5px solid var(--navy-900);
}
.work-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.work-row:hover::before { transform: scaleY(1); }
.work-row__n { font-family: var(--f-display); font-size: .85rem; padding-left: .6rem; }
.work-row__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 1rem + 3.4vw, 4.6rem); letter-spacing: -.05em; line-height: 1; transition: transform .7s var(--ease); }
.work-row:hover .work-row__title { transform: translateX(18px); }
.work-row__type { color: var(--muted); font-size: .95rem; }
.work-row__arrow { justify-self: end; margin-right: .6rem; font-size: 1.6rem; transition: transform .6s var(--ease); }
.work-row:hover .work-row__arrow { transform: rotate(45deg); }
.work-row--next .work-row__title { color: transparent; -webkit-text-stroke: 1.5px var(--navy-900); }
.work-row__thumb { display: none; }

/* 12. JOURNAL ------------------------------------------------------------- */
.journal { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.article { display: grid; grid-template-columns: 180px 1fr; gap: 1.2rem; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .4s, transform .6s var(--ease); }
.article:hover { border-color: var(--navy-900); transform: translateY(-4px); }
.article--featured { grid-row: 1 / 3; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.article__media { position: relative; overflow: hidden; border-radius: 4px; min-height: 150px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; letter-spacing: -.05em; }
.article__media span { transition: transform .9s var(--ease); }
.article:hover .article__media span { transform: scale(1.12) rotate(-3deg); }
.article__media--a { min-height: 340px; background: var(--navy); color: var(--yellow); font-size: clamp(4rem, 2rem + 6vw, 8rem); line-height: .85; text-align: center; }
.article__media--b { background: var(--ice); color: var(--navy); font-size: 3.4rem; }
.article__media--c { background: var(--yellow); color: var(--navy-900); font-size: 3.4rem; }
.article__body { display: flex; flex-direction: column; gap: .5rem; padding: .4rem .3rem; }
.article__cat { font-family: var(--f-display); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); }
.article h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); letter-spacing: -.03em; line-height: 1.1; }
.article--featured h3 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.6rem); }
.article p { color: var(--muted); font-size: .95rem; }

/* 13. CTA ----------------------------------------------------------------- */
.cta { position: relative; background: var(--navy-900); color: var(--white); padding-bottom: var(--section); overflow: hidden; }
.cta__marquee { overflow: hidden; padding-block: clamp(32px, 5vw, 72px); border-bottom: 1px solid rgba(206, 239, 255, .15); margin-bottom: clamp(48px, 6vw, 96px); }
.cta__marquee-track { display: flex; align-items: center; gap: 3vw; width: max-content; white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: clamp(3.4rem, 1rem + 9vw, 11rem); letter-spacing: -.06em; line-height: 1; }
.cta__marquee-track span { color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }
.cta__marquee-track span:nth-of-type(2) { color: var(--yellow); }
.cta__marquee-track b { color: var(--yellow); font-size: .5em; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.cta__title { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.8rem); letter-spacing: -.05em; }
.cta__contacts { margin-top: 2.6rem; display: grid; border-top: 1px solid rgba(206, 239, 255, .2); }
.cta__contacts div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding-block: .9rem; border-bottom: 1px solid rgba(206, 239, 255, .2); }
.cta__contacts dt { font-family: var(--f-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(206, 239, 255, .6); padding-top: .2em; }
.cta__contacts a { background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 0 2px; transition: background-size .5s var(--ease); }
.cta__contacts a:hover { background-size: 100% 2px; }

.form { display: grid; gap: 1.2rem; padding: clamp(22px, 3vw, 40px); background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: 14px 14px 0 var(--yellow); }
.form__chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.form__chips legend { padding: 0; margin-bottom: .8rem; font-family: var(--f-display); font-weight: 700; }
.tick input { position: absolute; opacity: 0; pointer-events: none; }
.tick span { display: inline-block; padding: .5em .95em; border: 1.5px solid var(--navy-900); border-radius: 99px; font-size: .9rem; cursor: pointer; transition: background-color .3s, transform .3s var(--ease); }
.tick span:hover { background: var(--ice-50); }
.tick input:checked + span { background: var(--yellow); }
.tick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.tick span:active { transform: scale(.94); }
.input { display: grid; gap: .3rem; }
.input span { font-family: var(--f-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.input input, .input textarea { width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink); background: var(--ice-25); border: 1.5px solid var(--line); border-radius: var(--r); resize: vertical; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.input input:focus, .input textarea:focus { outline: none; border-color: var(--navy-900); background: var(--white); box-shadow: 4px 4px 0 var(--yellow); }
.form__status { min-height: 1.4em; font-size: .92rem; color: var(--blue-600); }
.form__status.is-error { color: #B3261E; }
.form-note--home { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.form-note--home a { text-decoration: underline; text-underline-offset: 3px; }

/* 14. FOOTER -------------------------------------------------------------- */
.footer { position: relative; z-index: 1; padding-block: clamp(56px, 7vw, 100px) 28px; background: var(--ice-25); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer__grid .label { margin-bottom: 1rem; color: var(--navy-900); }
.footer__grid p:not(.label), .footer__grid a { display: block; color: var(--muted); line-height: 1.9; }
.footer__grid a:hover { color: var(--ink); }
.footer__word { margin-top: clamp(40px, 6vw, 80px); font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 1rem + 22vw, 24rem); line-height: .78; letter-spacing: -.08em; color: var(--navy-900); white-space: nowrap; overflow: hidden; }
.footer__word span { font-size: .2em; vertical-align: top; color: var(--blue); }
.footer__bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1.5px solid var(--navy-900); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; color: var(--muted); font-size: .9rem; }

/* 15. STATI ANIMAZIONI ---------------------------------------------------- */
.has-motion .hero__layout { visibility: hidden; }
.has-motion [data-reveal] { opacity: 0; transform: translateY(56px); }
.has-motion [data-split] { visibility: hidden; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .pill-nav a { padding: .55em .8em; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "web web" "app shop" "app social" "print print" "cta cta"; }
  .tile--web { min-height: 420px; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .pill-nav, .header > .btn { display: none; }
  .menu-btn { display: block; }

  .hero__layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; row-gap: 1.4rem; }
  .hero__title { grid-row: 3; }
  .hero__aside { grid-column: 1; grid-row: 4; max-width: none; }
  .hero__label--right { display: none; }
  .hero__steps { top: auto; bottom: 70px; right: var(--pad); translate: none; font-size: 0; }
  .hero__steps span { width: 10px; height: 10px; font-size: 0; }
  .hero__fallback { --fb-w: 78vw; right: auto; left: 11vw; top: 36%; }
  .hero__hint { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__sticky { position: static; }

  .process__pin { grid-template-columns: 1fr; min-height: 0; }
  .process__num, .process__bar { display: none; }
  .pstep { opacity: 1; }

  .work-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: .6rem 1rem; }
  .work-row__n { grid-column: 1; padding-left: 0; }
  .work-row__title { grid-column: 1 / -1; }
  .work-row__type { grid-column: 1; }
  .work-row__arrow { grid-column: 2; grid-row: 1; }
  .work-row__thumb { display: block; grid-column: 1 / -1; height: 180px; border-radius: var(--r); }

  .journal { grid-template-columns: 1fr; }
  .article--featured { grid-row: auto; }
  .cta__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .grid-lines { grid-template-columns: repeat(2, 1fr); }
  .grid-lines i:nth-child(n+3) { display: none; }
}
@media (max-width: 600px) {
  :root { --fs-hero: clamp(2rem, 8.6vw, 2.8rem); }
  .bento { grid-template-columns: 1fr; grid-template-areas: "web" "app" "shop" "social" "print" "cta"; }
  .tile { min-height: 240px; }
  /* le illustrazioni stanno in alto, il testo in basso: serve più altezza */
  .tile--web { min-height: 440px; }
  .tile__art--web { top: 76px; left: clamp(20px, 2.2vw, 32px); right: auto; width: 62%; }
  .tile--app { min-height: 430px; }
  .tile__art--app { top: 60px; }
  .tile__art--print { opacity: .5; }
  .article { grid-template-columns: 1fr; }
  .cta__contacts div { grid-template-columns: 1fr; gap: .2rem; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker { transform: none; }
}

/* ---------- Menu a tendina "Servizi" (markup da tools/build.js, logica in js/main.js) ---------- */
.has-dd { display: inline-flex; align-items: center; gap: .35em; }
.has-dd__chev { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.has-dd[aria-expanded="true"] .has-dd__chev { transform: rotate(180deg); }
.navdd {
  position: absolute; z-index: 20; top: calc(100% + 14px); left: 50%; width: min(680px, 86vw); padding: 8px;
  border: 1.5px solid var(--navy-900); border-radius: 14px; background: var(--white); box-shadow: 10px 10px 0 var(--yellow);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px);
  transition: opacity .25s, transform .4s var(--ease), visibility 0s .4s;
}
.navdd::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* ponte per il mouse */
.navdd.is-open, .navdd:focus-within { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .4s var(--ease); }
.navdd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pill-nav .navdd__item { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 8px; color: var(--ink); font-size: 1rem; transition: background-color .25s; }
.pill-nav .navdd__item:hover, .pill-nav .navdd__item:focus-visible { background: var(--ice-50); }
.navdd__icon { flex: none; width: 36px; height: 36px; padding: 7px; border: 1.5px solid var(--navy-900); border-radius: 8px; background: var(--yellow); fill: none; stroke: var(--navy-900); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.navdd__item b { display: block; font-family: var(--f-display); font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.navdd__item small { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.pill-nav .navdd__all { align-items: center; justify-content: space-between; background: var(--navy-900); color: var(--white); }
.pill-nav .navdd__all:hover, .pill-nav .navdd__all:focus-visible { background: var(--navy); }
.navdd__all small { color: rgba(255, 255, 255, .7); }
.navdd__all i { color: var(--yellow); font-size: 1.3rem; font-style: normal; }
.mm-sub { display: grid; padding: .3rem 0 .8rem 2.2rem; border-bottom: 1.5px solid var(--navy-900); }
.menu nav .mm-sub a { padding-block: .2rem; border-bottom: 0; font-family: var(--f-body); font-size: 1.15rem; font-weight: 500; letter-spacing: 0; }

.footer__zones { margin: 2rem 0 0; color: var(--muted); font-family: var(--f-display); font-size: .92rem; }
.footer__zones a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ==========================================================================
   v4-fable — aggiunte rispetto alla v2
   ========================================================================== */
/* Bottone secondario (contorno) */
.btn--ghost { background: var(--paper); color: var(--navy-900); }
.btn--ghost:hover { color: var(--yellow); }

/* Prima schermata: titolo principale, inviti all'azione e prove di fiducia accanto al globo */
.globe__title { max-width: none; font-size: clamp(2.6rem, .6rem + 4.9vw, 6rem); line-height: .92; }
.globe__sub { max-width: 40ch; }
.globe__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.globe__cta .btn { pointer-events: auto; }
.globe__proof { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.globe__proof strong { font-family: var(--f-display); color: var(--navy-900); }
.globe__layout { gap: 1.2rem; }
@media (max-width: 900px) {
  /* su telefono la sezione cresce con il contenuto: niente testo tagliato */
  .globe { height: auto; min-height: 100svh; }
  .globe__canvas { inset: 0 0 auto 0; height: 100svh; min-height: 640px; }
  .globe__layout { height: auto; min-height: 100svh; justify-content: flex-start; padding-top: calc(var(--header-h) + 39svh); padding-bottom: 28px; gap: .8rem; }
  .globe__fallback { top: 27%; width: 58vw; margin: calc(58vw / -2) 0 0 calc(58vw / -2); }
  .work-row__thumb--next { display: none; }
  /* la barra contatti non copre i testi della sequenza */
  .hero__layout { padding-bottom: 84px; }
  .globe__title { font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  .globe__cta { width: 100%; }
  .globe__cta .btn { flex: 1 1 100%; justify-content: space-between; }
  .globe__cta .btn--ghost { justify-content: center; }
  .globe__proof { font-size: .84rem; gap: .25rem 1.1rem; }
  .globe__areas { display: none; }
}

/* Per chi lavoriamo */
.sectors__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sector {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem;
  padding: clamp(20px, 2.2vw, 32px); min-height: 260px;
  background: var(--paper); border: 1.5px solid var(--navy-900); border-radius: var(--r);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sector:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--yellow); }
.sector__n { font-family: var(--f-display); font-size: .85rem; color: var(--muted); }
.sector h3 { font-size: var(--fs-h3); margin-top: auto; }
.sector p { color: var(--muted); }
.sector .ulink { font-size: .9rem; }
@media (max-width: 1100px) { .sectors__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sectors__grid { grid-template-columns: 1fr; } .sector { min-height: 0; } .sector h3 { margin-top: .4rem; } }

/* Lavori: immagini reali nelle righe (telefono) e nell'anteprima che segue il cursore (desktop) */
.work-row__thumb { overflow: hidden; border: 1.5px solid var(--navy-900); border-radius: var(--r); background: var(--yellow); }
@media (min-width: 901px) {
  .work-row { grid-template-columns: 70px 1fr auto 150px 60px; }
  .work-row__thumb { display: block; width: 150px; height: 96px; transition: transform .6s var(--ease); }
  .work-row:hover .work-row__thumb { transform: scale(1.06) rotate(-2deg); }
}
.work-row__thumb img, .work-preview__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.has-cursor .work-preview { border: 1.5px solid var(--navy-900); background: var(--paper); }
.work-preview__img { overflow: hidden; }

/* Invito finale e modulo */
.cta__promise { margin-top: 1.2rem; max-width: 34ch; color: rgba(206, 239, 255, .85); font-size: 1.05rem; }
.cta__promise strong { color: var(--yellow); font-weight: 500; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; gap: 1.2rem; } }

/* Contatti nel footer */
.footer__contacts { margin-top: .6rem; }
.footer__grid .footer__contacts a { display: inline; color: var(--navy-900); text-decoration: underline; text-underline-offset: 3px; }
.menu p a { text-decoration: underline; text-underline-offset: 3px; }

/* Barra contatti fissa su telefono (Chiama · WhatsApp · Preventivo) */
.dock { display: none; }
@media (max-width: 900px) {
  .dock {
    position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.5fr;
    background: var(--paper); border-top: 1.5px solid var(--navy-900);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock__btn { display: flex; align-items: center; justify-content: center; gap: .4em; min-height: 54px; padding: 0 .4rem; font-family: var(--f-display); font-weight: 700; font-size: .86rem; color: var(--navy-900); border-right: 1.5px solid var(--navy-900); }
  .dock__btn--main { background: var(--yellow); border-right: 0; }
  .menu-open .dock { transform: translateY(110%); }
  /* la bolla "preferenze cookie" e il fondo pagina lasciano spazio alla barra */
  .has-dock .cc-bubble { bottom: 68px; }
  .has-dock .footer { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
/* desktop e tablet orizzontale: i testi della prima schermata non finiscono mai sopra il globo */
@media (min-width: 901px) {
  .globe__sub, .globe__cta, .globe__proof, .globe__areas { max-width: calc(45vw - var(--pad) - 8px); }
}

/* v4-fable — fascia "Intelligenza artificiale" sotto la griglia dei servizi */
.ai-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(20px, 3vw, 56px); align-items: center; margin-top: 12px; padding: clamp(22px, 2.6vw, 38px); padding-right: calc(clamp(16px, 1.8vw, 26px) + 62px); background: var(--navy-900); color: var(--white); border: 1.5px solid var(--navy-900); border-radius: var(--r); transition: transform .6s var(--ease); }
.ai-band:hover { transform: translateY(-3px); }
.ai-band:hover .tile__go { transform: rotate(45deg); background: var(--yellow); color: var(--navy-900); }
.ai-band__tag { display: inline-block; margin-bottom: .9rem; padding: .25em .8em; border-radius: 99px; background: var(--yellow); color: var(--navy-900); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ai-band h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em; }
.ai-band__head p { margin-top: .7rem; color: rgba(255, 255, 255, .75); max-width: 44ch; }
.ai-band__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); }
.ai-band__list li { padding-top: .9rem; border-top: 1.5px solid var(--yellow); font-size: .93rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.ai-band__list b { display: block; margin-bottom: .3rem; color: var(--white); font-family: var(--f-display); font-size: 1.02rem; }
@media (max-width: 1000px) { .ai-band { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ai-band { padding-right: clamp(22px, 2.6vw, 38px); } .ai-band__head { padding-right: 52px; } .ai-band__list { grid-template-columns: 1fr; } }

/* ---------- Recensioni Google (home, landing, pagine zona, contatti, casi studio) ---------- */
.lp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .lp-reviews { grid-template-columns: repeat(2, 1fr); } .lp-reviews > .lp-review:nth-child(odd):last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .lp-reviews { grid-template-columns: 1fr; } }
.lp-review { display: flex; flex-direction: column; margin: 0; padding: clamp(22px, 2.6vw, 34px); background: var(--white); border: 1.5px solid var(--navy-900); border-radius: var(--r); }
.lp-review p { font-size: 1.1rem; }
.lp-review footer { margin-top: auto; padding-top: 1rem; color: var(--muted); font-size: .9rem; }
.lp-stars { display: flex; gap: 3px; margin: 0 0 .8rem; color: #F5A623; line-height: 0; }
.lp-stars svg { width: 18px; height: 18px; fill: currentColor; }
.lp-reviews__more { margin-top: 1.5rem; }
.lp-reviews__more .lp-stars, .rv-badge .lp-stars { display: inline-flex; gap: 2px; margin: 0; vertical-align: -3px; }
.lp-reviews__more .lp-stars { margin-right: .3rem; }
.lp-reviews__more a { font-weight: 600; color: var(--navy-900); text-decoration: underline; text-underline-offset: .2em; }
.rv-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: .4rem 0 1.4rem; padding: .55rem .9rem; border: 1.5px solid var(--navy-900); border-radius: 99px; background: var(--white); color: var(--navy-900); font-size: .92rem; transition: background-color .3s; }
.rv-badge:hover { background: var(--yellow); }
.rv-badge .lp-stars svg { width: 16px; height: 16px; }
.cs-quote .lp-stars { margin-bottom: 1.2rem; }
.cs-quote .lp-stars svg { width: 26px; height: 26px; }
.reviews .lp-reviews { margin-top: clamp(28px, 4vw, 56px); }

/* ---------- Sezioni a contrasto (blu) per dare ritmo alla pagina ----------
   Numeri, recensioni e "perché sceglierci"; mai due di fila (sulle pagine zona i numeri
   restano chiari perché subito dopo vengono le recensioni). */
:root { --tone-bg: #0A4566; --tone-ink: #FFFFFF; --tone-muted: rgba(206, 239, 255, .78); --tone-line: rgba(206, 239, 255, .18); }
:is(.psec--stats:not(:has(+ .psec--lp-reviews)), .psec--lp-reviews, .psec--benefits, .reviews) { background: var(--tone-bg); color: var(--tone-ink); }
:is(.psec--stats:not(:has(+ .psec--lp-reviews)), .psec--lp-reviews, .psec--benefits, .reviews) :is(.label) { color: var(--tone-muted); }
:is(.psec--stats:not(:has(+ .psec--lp-reviews)), .psec--lp-reviews, .psec--benefits, .reviews) :is(.psec__title, .h2, h2, h3) { color: var(--tone-ink); }
:is(.psec--stats:not(:has(+ .psec--lp-reviews)), .psec--lp-reviews, .psec--benefits, .reviews) .psec__intro { color: var(--tone-muted); }
/* numeri */
.psec--stats:not(:has(+ .psec--lp-reviews)) .stats { border-top-color: var(--yellow); border-left-color: var(--tone-line); }
.psec--stats:not(:has(+ .psec--lp-reviews)) .stat { background: transparent; border-color: var(--tone-line); }
.psec--stats:not(:has(+ .psec--lp-reviews)) .stat__n small { color: var(--yellow); }
.psec--stats:not(:has(+ .psec--lp-reviews)) .stat__l { color: var(--tone-muted); }
.psec--stats:not(:has(+ .psec--lp-reviews)) .stat:hover { color: var(--navy-900); }
.psec--stats:not(:has(+ .psec--lp-reviews)) .stat:hover :is(.stat__l, .stat__n small) { color: var(--navy-900); }
/* perché sceglierci */
.psec--benefits .vrow { border-top-color: var(--yellow); }
.psec--benefits .vrow__item { border-color: var(--tone-line); }
.psec--benefits .vrow__item p { color: var(--tone-muted); }
.psec--benefits .vrow__n { background: var(--yellow); color: var(--navy-900); }
/* recensioni: card bianche, link chiaro */
:is(.psec--lp-reviews, .reviews) .lp-review { border-color: transparent; color: var(--navy-900); }
:is(.psec--lp-reviews, .reviews) .lp-review footer { color: var(--muted); }
:is(.psec--lp-reviews, .reviews) .lp-reviews__more a { color: var(--tone-ink); }
