/* Portfolio responsive corrections, 2026-11-05.
   Layers over the original stylesheet; no historical seasonal assets removed. */
:root { --vfa-mobile-nav-h: 76px; }
html, body { max-width:100%; }
main, main > .schermo { min-width:0; }
.schermo { box-sizing:border-box; }

/* High-density GPU scenes cover their complete responsive container. */
.s-agency .hero { isolation:isolate; background:var(--brand-deep); }
.s-agency .hero .onda-bg {
  position:absolute; inset:0; width:100%; height:100%; display:block; z-index:-2;
}
.s-agency .hero:after {
  background:linear-gradient(180deg,rgba(7,11,26,.14),rgba(7,11,26,.02) 36%,rgba(7,11,26,.24) 75%,rgba(7,11,26,.64) 100%);
}
.s-lun, .s-esp, .s-mazzo { isolation:isolate; }
.s-lun .nastri-bg, .s-esp .nastri-bg, .s-mazzo .nastri-bg {
  image-rendering:auto;
  pointer-events:none;
}

/* Footer takes the space needed by real content, rather than a full empty viewport. */
.s-sent {
  min-height:0 !important;
  height:auto;
  justify-content:flex-start !important;
  gap:clamp(28px,4vw,50px);
  padding-top:clamp(54px,7vw,92px);
  padding-bottom:clamp(40px,5vw,68px);
}
.s-sent .colonne { margin-top:clamp(28px,4vw,48px); }
.s-sent .fondo {
  margin-top:clamp(16px,2vw,30px);
  padding-bottom:0 !important;
}

/* Main header never lets labels force the logo or actions outside the bar. */
@media (min-width:761px) {
  .nav .testa-top {
    grid-template-columns:minmax(66px,1fr) minmax(0,auto) minmax(48px,1fr);
    column-gap:clamp(6px,1vw,16px);
    min-width:0;
  }
  .nav .testa-top .mark-top, .nav .testa-top .soc { min-width:0; }
  .nav .testa-top .mark-top { max-width:100%; }
  .link-top {
    min-width:0;
    max-width:100%;
    gap:clamp(2px,.7vw,12px);
    justify-content:center;
    flex-wrap:nowrap;
  }
  .link-top a {
    white-space:nowrap;
    letter-spacing:.035em;
    font-size:clamp(10.5px,.86vw,12.5px);
    padding:10px clamp(2px,.4vw,7px);
  }
}
@media (min-width:761px) and (max-width:1100px) {
  .nav .testa-top {
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:clamp(6px,1.3vw,14px);
    padding-inline:clamp(14px,2.2vw,26px);
  }
  .link-top { gap:2px; }
  .link-top a { font-size:clamp(10px,1vw,11.5px); letter-spacing:0; padding-inline:3px; }
  .nav .testa-top .soc a { display:none; }
}

/* The projects wordmark was literally overflowing the viewport. */
.s-rayder .gig {
  width:100%;
  height:auto !important;
  box-sizing:border-box;
  padding:0 0 .12em !important;
  margin:0 !important;
  overflow:visible;
  white-space:nowrap;
  text-align:center;
  font-size:clamp(42px,13vw,200px) !important;
  line-height:1.04 !important;
  font-stretch:var(--w78);
  letter-spacing:-.04em;
}
.s-rayder { min-width:0; }
.s-rayder .tre { min-width:0; }

@media (max-width:760px) {
  /* Fixed bottom navigation: five equal columns, including long Italian labels. */
  .nav .barra {
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    grid-auto-flow:row;
    width:auto;
    max-width:none;
    left:10px;
    right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    gap:2px;
    padding:6px;
    box-sizing:border-box;
  }
  .nav .barra .voce, .nav.su-chiaro .barra .voce {
    min-width:0 !important;
    width:100%;
    padding:0 1px;
    overflow:hidden;
    box-sizing:border-box;
  }
  .nav .barra .voce span,
  .nav .barra .voce.on span,
  .nav .barra .voce:hover span {
    display:block;
    width:100%;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:clip;
    font-size:clamp(8px,2.2vw,10px) !important;
    letter-spacing:-.025em;
    text-align:center;
    margin:0;
  }
  .nav .barra .voce svg { flex:none; width:21px; height:21px; }
  .nav .barra .menu-btn { min-width:0; }

  /* Lavori intro stays full-height: no abrupt unpainted lower third. */
  .s-agency .hero.hero-titolo {
    min-height:calc(100svh - 2 * var(--g)) !important;
    padding-block:clamp(98px,13svh,135px);
    background:linear-gradient(180deg,var(--brand-deep),var(--ink));
  }
  .s-agency .hero.hero-titolo .onda-bg { height:100%; }
  .s-agency .hero-titolo h1 { font-size:clamp(52px,18vw,110px); max-width:100%; }
  .s-rayder {
    gap:clamp(22px,5vw,40px);
    padding-bottom:clamp(40px,8vw,76px) !important;
  }
  .s-rayder .gig {
    font-size:clamp(40px,12.8vw,86px) !important;
    font-stretch:var(--w70);
    padding-bottom:.15em !important;
    margin-top:8px !important;
  }
  .s-rayder .tre a { min-width:0; }
  .s-rayder .alto { gap:12px; }
  .s-rayder .alto .glow { flex:none; }

  /* Home: cards follow each other with deliberate spacing. */
  .s-forma { justify-content:flex-start !important; }
  .s-forma .mezzo {
    margin-bottom:0;
    padding-bottom:clamp(16px,3svh,26px);
  }
  .s-forma .basso {
    margin-top:0;
    gap:12px;
    align-items:stretch;
    grid-auto-rows:auto;
  }
  .s-forma .basso > * { min-width:0; width:100%; box-sizing:border-box; }
  .s-forma .c-vetro, .s-forma .c-progresso { padding:16px 17px; }
  .s-forma .c-progresso .t { gap:12px; }
  .s-forma .c-progresso .t > span { min-width:0; flex:1; }
  .s-forma .c-persona { grid-template-columns:60px minmax(0,1fr); }
  .s-forma .c-persona img { width:60px; height:60px; }
  .s-forma .c-persona > div { min-width:0; }

  /* Footer and page endings are compact but clear the floating nav. */
  main { padding-bottom:0; }
  .s-sent {
    padding-top:clamp(48px,9svh,76px);
    padding-bottom:calc(var(--vfa-mobile-nav-h) + 14px + env(safe-area-inset-bottom));
    gap:22px;
  }
  .s-sent .colonne {
    gap:clamp(20px,5vw,28px);
    margin-top:clamp(24px,5svh,40px);
  }
  .s-sent .marca { overflow-wrap:anywhere; }
  .s-sent .fondo { margin-top:18px; padding-top:18px; padding-bottom:0 !important; }
  .s-sent .fondo span { max-width:100%; }
  /* If a page has no footer, retain the safe touch clearance. */
  main:not(:has(> .s-sent)) { padding-bottom:calc(75px + env(safe-area-inset-bottom)); }
}
@media (max-width:350px) {
  .nav .barra { left:6px;right:6px;padding:5px;gap:0; }
  .nav .barra .voce span { font-size:7.8px !important;letter-spacing:-.04em; }
  .s-rayder .alto .glow { padding-inline:12px;font-size:11px; }
}
@media (prefers-reduced-motion:reduce) {
  .nastri-bg .nb { animation:none; }
}

/* Deployment marker: mobile layout fixes enabled on all portfolio pages. */


/* Follow-up mobile corrections 2026-11-05: screenshots IMG_5372-5376. */
@media (max-width:760px) {
  /* Icon-only mobile tab bar; keep the labels accessible to screen readers. */
  .nav .barra .voce,
  .nav.su-chiaro .barra .voce {
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:0;
    height:54px;
  }
  .nav .barra .voce svg {
    width:26px;
    height:26px;
    flex:none;
  }
  .nav .barra .voce span,
  .nav .barra .voce.on span,
  .nav .barra .voce:hover span,
  .nav .barra .voce:focus-visible span {
    position:absolute !important;
    width:1px !important;
    min-width:1px !important;
    max-width:1px !important;
    height:1px !important;
    max-height:1px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    opacity:1 !important;
    white-space:nowrap !important;
    clip:rect(0,0,0,0) !important;
    clip-path:inset(50%) !important;
  }
  .nav .barra .cursore { border-radius:18px; }
  .nav .testa-top {
    top:10px;
    left:12px;
    right:12px;
    border-radius:18px;
    overflow:hidden;
  }

  /* Each experience section fits its actual content, not an empty viewport. */
  body[data-pagina="esperienze"] .s-esp {
    min-height:0 !important;
    height:auto;
    align-content:start;
    align-items:start;
    row-gap:clamp(18px,4vw,28px);
    padding-top:clamp(52px,8svh,72px);
    padding-bottom:clamp(30px,5svh,48px) !important;
  }
  body[data-pagina="esperienze"] .s-esp .centro,
  body[data-pagina="esperienze"] .s-esp .dati {
    min-width:0;
    width:100%;
  }

  /* Remove the sharp blue rectangular seam before the 2 aziende card. */
  body[data-pagina="home"] .s-forma .mezzo {
    background:linear-gradient(180deg,transparent 0%,#040c3047 38%,#040c3022 72%,transparent 100%) !important;
    padding-bottom:24px;
  }
  body[data-pagina="home"] .s-forma .basso {
    margin-top:clamp(18px,3svh,30px) !important;
  }

  /* The animated Lavori scene ends intentionally without an empty black tail. */
  body[data-pagina="lavori"] .s-agency .hero.hero-titolo {
    min-height:clamp(510px,79svh,690px) !important;
    background:var(--brand-deep);
  }
  body[data-pagina="lavori"] .s-agency .hero.hero-titolo:after {
    background:linear-gradient(180deg,#070b1a19 0%,transparent 42%,#070b1a0b 70%,#070b1a26 100%);
  }

  /* Let the profile portrait reach the lower edge of its card. */
  body[data-pagina="home"] .s-make {
    padding-bottom:0 !important;
  }
  body[data-pagina="home"] .s-make .persona {
    height:min(90svh,900px);
    margin-bottom:0 !important;
    align-self:end;
  }
  /* The Italian post-it adds clutter on the narrow version of this page. */
  html[lang="it"] body[data-pagina="home"] .s-make .post-it {
    display:none !important;
  }
}

/* The shared .schermo 96px bottom padding caused the artificial dark strips. */
@media (max-width:760px) {
  body[data-pagina="lavori"] .s-agency {
    min-height:0 !important;
    padding:0 !important;
  }
  body[data-pagina="home"] .s-forma {
    min-height:0 !important;
    padding-bottom:clamp(28px,4svh,42px) !important;
  }
}


/* Fine-tuning 2026-11-05: menu, socials, contact badge, project wordmark, portrait. */

/* Remove the logo card from the overlay menu; keep the actual VFA brand assets. */
.menu .m-top .mark { display:none !important; }

/* Give the oversized project wordmark its complete glyph box and a real lower margin. */
.s-rayder .vetrina-r { padding-bottom:clamp(22px,3.6vw,46px); }
.s-rayder .gig {
  display:block;
  box-sizing:border-box;
  line-height:1.15 !important;
  padding:.06em 0 .16em !important;
  height:auto !important;
  overflow:visible !important;
  margin:0 !important;
}
@media (max-width:760px) {
  /* Responsive menu content follows the navigation list, not the viewport corners. */
  .menu {
    display:flex !important;
    flex-direction:column;
    gap:clamp(12px,2.4svh,24px);
    padding:clamp(16px,3svh,26px) clamp(15px,4vw,26px)
            calc(24px + env(safe-area-inset-bottom)) !important;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .menu .m-top {
    flex:0 0 auto;
    display:flex;
    justify-content:flex-end;
    min-height:54px;
  }
  .menu .m-top .m-eti { display:none; }
  .menu .m-top .chiudi-menu { margin-left:auto; }
  .menu .m-corpo {
    flex:0 0 auto;
    display:block !important;
    align-self:stretch;
    min-height:0;
    margin-top:auto;
    width:100%;
  }
  .menu .m-corpo ol {
    width:100%;
    max-width:640px;
    margin-inline:auto;
    text-align:center;
  }
  .menu ol a {
    display:block !important;
    padding:clamp(5px,1.05svh,11px) 2px;
  }
  .menu ol a span {
    font-size:clamp(28px,min(7.4svh,9.5vw),58px);
    line-height:1.04;
    white-space:normal;
    overflow-wrap:break-word;
  }
  .menu .m-piede {
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    align-self:stretch;
    width:100%;
    margin:0 auto;
    padding-top:clamp(10px,2svh,20px);
    gap:14px;
  }
  .menu .m-soc {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;
    justify-items:stretch;
    gap:clamp(6px,1.8vw,10px);
    width:min(100%,520px);
    margin-inline:auto;
  }
  .menu .m-soc > a.pill {
    display:flex;
    min-width:0;
    min-height:48px;
    height:auto;
    padding:8px 6px;
    justify-content:center;
    align-items:center;
    font-size:clamp(10.5px,3vw,13px);
    line-height:1.1;
    gap:6px;
    text-align:center;
  }
  .menu .m-soc > a.pill svg {
    width:clamp(14px,4vw,17px);
    height:clamp(14px,4vw,17px);
    flex:none;
  }
  .menu .m-soc .menu-lingue {
    grid-column:1/-1;
    margin:10px auto 0;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
  }
  .menu .menu-lingue .pill {
    min-width:52px;
    min-height:44px;
    height:44px;
    padding:0 13px;
    justify-content:center;
    font-size:13px;
  }

  /* Keep the animated badge and its blue surroundings visually continuous. */
  body[data-pagina="contatti"] .s-badge {
    min-width:0;
    grid-template-columns:minmax(0,1fr);
    background:
      radial-gradient(105% 56% at 56% 26%,
        color-mix(in oklab,var(--brand) 35%,var(--ink)),
        color-mix(in oklab,var(--brand-deep) 34%,var(--ink)) 55%,
        var(--ink) 100%);
  }
  body[data-pagina="contatti"] .s-badge .sx,
  body[data-pagina="contatti"] .s-badge .az,
  body[data-pagina="contatti"] .s-badge .email-pill {
    width:100%;
    min-width:0;
    max-width:100%;
  }
  body[data-pagina="contatti"] .s-badge .email-pill {
    box-sizing:border-box;
    padding-left:clamp(12px,3vw,22px);
    gap:8px;
  }
  body[data-pagina="contatti"] .s-badge .email-pill span {
    flex:1 1 auto;
    min-width:0;
    overflow-wrap:anywhere;
    text-overflow:ellipsis;
    font-size:clamp(12px,3.2vw,17px);
  }
  body[data-pagina="contatti"] .s-badge .email-pill button {
    flex:none;
    min-height:44px;
  }
  body[data-pagina="contatti"] .s-badge .az .btn {
    min-width:0;
    box-sizing:border-box;
    max-width:100%;
  }

  /* Make the complete portrait fit inside the mobile profile card. */
  body[data-pagina="home"] .s-make .persona {
    width:min(100%,390px);
    max-width:100%;
    height:min(69svh,620px);
    margin-inline:auto;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    overflow:visible;
  }
  body[data-pagina="home"] .s-make .persona img {
    display:block;
    width:100%;
    max-width:100%;
    height:100%;
    object-fit:contain;
    object-position:center bottom;
  }
}
@media (max-width:360px) {
  .menu ol a span { font-size:clamp(26px,8.2vw,43px); }
  .menu .m-soc > a.pill { font-size:10px; gap:4px; }
  .menu .m-soc > a.pill svg { width:14px;height:14px; }
}


/* Finish: continuous project panel and minimum social tap targets. */
body[data-pagina="lavori"] .s-rayder .vetrina-r {
  background:linear-gradient(180deg,
    var(--brand) 0%,
    var(--brand-deep) 56%,
    color-mix(in oklab,var(--brand-deep) 55%,var(--ink)) 79%,
    color-mix(in oklab,var(--ink) 85%,#000) 100%);
}
@media (max-width:760px) {
  body[data-pagina="home"] .c-persona .ico a {
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
  }
  body[data-pagina="home"] .c-persona .ico {gap:10px;}
  body[data-pagina="home"] .c-persona .ico a svg {
    width:19px;
    height:19px;
  }
  body[data-pagina="contatti"] .s-badge {
    padding-top:calc(var(--cv) + clamp(30px,4svh,46px));
  }
}


/* Mobile footer compact + contact pass proportions, 2026-11-05. */
@media (max-width:760px) {
  /* A footer, not another full-page hero. The regular menu already exposes Pages. */
  .s-sent {
    min-height:0 !important;
    height:auto !important;
    display:block !important;
    padding:clamp(22px,4svh,36px) clamp(18px,5vw,28px)
      calc(92px + env(safe-area-inset-bottom)) !important;
    gap:0 !important;
  }
  .s-sent > div:first-child {
    display:none !important;
  }
  .s-sent > div:nth-child(2) {
    display:block;
    min-width:0;
  }
  .s-sent .colonne {
    margin:0 !important;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:clamp(14px,3.5vw,24px) 18px;
    align-items:start;
  }
  .s-sent .colonne > .marca {
    grid-column:1/-1;
    gap:5px;
    margin:0;
    font-size:13px;
    line-height:1.35;
    min-width:0;
  }
  .s-sent .colonne .marca .logo {
    font-size:18px;
    gap:8px;
  }
  .s-sent .colonne .marca .logo svg {
    width:28px;
    height:28px;
    flex:none;
  }
  .s-sent .colonne .marca a {
    overflow-wrap:anywhere;
  }
  .s-sent .colonne > nav:nth-child(2) {
    display:none !important; /* Duplicate of site/menu navigation */
  }
  .s-sent .colonne > nav:nth-child(3),
  .s-sent .colonne > nav:nth-child(4) {
    grid-column:auto;
    min-width:0;
  }
  .s-sent .colonne h4 {
    font-size:12px;
    margin:0 0 7px;
  }
  .s-sent .colonne ul {
    gap:4px;
    font-size:12.5px;
    line-height:1.28;
  }
  .s-sent .colonne ul a {
    display:inline-flex;
    align-items:center;
    min-height:30px;
    max-width:100%;
    overflow-wrap:anywhere;
  }
  .s-sent .colonne > div:last-child {
    grid-column:1/-1;
    margin:0;
  }
  .s-sent .colonne > div:last-child h4 {
    margin-bottom:6px;
  }
  .s-sent .lingue-piede {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px 14px;
  }
  .s-sent .lingue-piede li a {
    min-height:34px;
  }
  .s-sent .fondo {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px 14px;
    margin-top:clamp(12px,2.5svh,18px);
    padding:12px 0 0 !important;
    font-size:11px;
    line-height:1.35;
  }
  .s-sent .fondo > span {
    flex:1 1 185px;
    min-width:0;
  }
  .s-sent .fondo nav {
    flex:none;
    display:flex;
    gap:8px;
  }
  .s-sent .fondo nav a {
    display:grid;
    width:44px;
    height:44px;
    flex:none;
  }

  /* Contact identity pass: leave a generous safe area around the 3D card. */
  body[data-pagina="contatti"] .s-badge {
    --cv:clamp(300px,47svh,470px);
    padding-top:calc(var(--cv) + clamp(30px,4svh,46px));
    padding-bottom:clamp(34px,6svh,55px) !important;
    min-height:0 !important;
    row-gap:0;
  }
  body[data-pagina="contatti"] .s-badge #c-badge {
    top:62px;
    height:calc(var(--cv) - 4px);
    width:100%;
    left:0;
    right:0;
  }
  body[data-pagina="contatti"] .s-badge .sx {
    padding-top:0;
    margin-top:0;
    gap:clamp(14px,3.5vw,20px);
  }
}


/* Footer node correction: canvas/lighting nodes precede the content. */
@media (max-width:760px) {
  .s-sent > div:has(> h2) {
    display:none !important;
  }
  .s-sent > div:has(> .colonne) {
    display:block !important;
  }
  .s-sent .fondo nav a {
    width:48px !important;
    height:48px !important;
    min-width:48px;
    min-height:48px;
    flex:0 0 48px;
  }
}


/* Final compact footer rows; disable legacy translated theme selector. */
.s-sent #sel-tema,
.s-sent label[for="sel-tema"],
.s-sent h4:has(+ label[for="sel-tema"]) {
  display:none !important;
}
@media (max-width:760px) {
  .s-sent .colonne {
    grid-template-columns:minmax(0,1fr);
    row-gap:10px;
  }
  .s-sent .colonne > nav:nth-child(3),
  .s-sent .colonne > nav:nth-child(4),
  .s-sent .colonne > div:last-child {
    grid-column:1/-1;
  }
  /* These groups remain accessible via nav aria-labels; the mobile footer is compact. */
  .s-sent .colonne > nav:nth-child(3) h4,
  .s-sent .colonne > nav:nth-child(4) h4 {
    display:none;
  }
  .s-sent .colonne > nav:nth-child(3) ul,
  .s-sent .colonne > nav:nth-child(4) ul {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:0 14px;
  }
  .s-sent .colonne > nav:nth-child(3) a,
  .s-sent .colonne > nav:nth-child(4) a {
    min-height:34px;
    display:inline-flex;
    align-items:center;
  }
  .s-sent .colonne .marca {
    gap:3px;
  }
  .s-sent .colonne > div:last-child h4 {
    display:none;
  }
  .s-sent .lingue-piede {
    gap:4px 14px;
  }
  .s-sent .fondo {
    margin-top:10px;
    padding-top:10px !important;
  }
}


/* Deck art direction: clean editorial cards, crisp images, touch-first navigation. */
.s-mazzo {
  background:linear-gradient(154deg,#142d66 0%,#112755 43%,#0a1531 100%);
  color:#f9fbff;
}
.s-mazzo h2 {
  color:#f8faff;
  letter-spacing:-.055em;
  line-height:.98;
}
.s-mazzo .lede {
  color:#cbd6eb;
  max-width:37ch;
}
.s-mazzo .carta {
  background:#f4f6f9;
  color:#101a31;
  border:1px solid #edf0f6;
  border-radius:22px;
  box-shadow:0 23px 65px -28px #020b22a8,0 1px 0 #ffffffb5 inset;
  grid-template-rows:minmax(0,1fr) auto auto;
  padding:13px 13px 23px;
  gap:8px;
}
.s-mazzo .carta:before,
.s-mazzo .carta:after {
  content:none !important;
  display:none !important;
}
.s-mazzo .carta img {
  filter:none !important;
  width:100%;
  height:100%;
  min-height:0;
  display:block;
  border-radius:13px;
  object-fit:cover;
  object-position:center;
  background:#e8edf4;
  image-rendering:auto;
}
.s-mazzo .carta img.mz-site-shot {
  object-fit:cover;
  object-position:100% center;
  background:#e9eef5;
}
.s-mazzo .carta img.mz-portrait {
  object-fit:contain;
  object-position:center bottom;
  background:linear-gradient(150deg,#a9c5f5 0%,#3466b8 72%,#122954 100%);
}
.s-mazzo .carta b,
.s-mazzo .carta small,
.s-mazzo .carta .cn {
  text-shadow:none !important;
}
.s-mazzo .carta b {
  color:#14213b;
  font-size:clamp(25px,2.4vw,32px);
  letter-spacing:-.025em;
  padding-top:8px;
}
.s-mazzo .carta small {
  color:#52607a;
  font-size:13px;
  line-height:1.35;
}
.s-mazzo .carta .cn {
  color:#254d90;
  background:#f5f7fced;
  border:1px solid #dfe6f1;
  font-size:11px;
  font-weight:650;
  box-shadow:0 2px 12px #172d5133;
}
.s-mazzo .carta[data-p="1"],
.s-mazzo .carta[data-p="2"],
.s-mazzo .carta[data-p="3"],
.s-mazzo .carta[data-p="4"] {
  filter:none;
}
.s-mazzo .mz-n { color:#bdc9df; }
.s-mazzo .mz-comandi button {
  color:#ecf2ff;
  border-color:#a4bbde6b;
}
@media (max-width:760px), (hover:none) and (pointer:coarse) {
  .s-mazzo .mz-comandi {
    margin-top:16px;
    min-height:20px;
    justify-content:flex-start;
  }
  .s-mazzo .mz-comandi button {
    display:none !important; /* Swipe replaces touch controls. */
  }
}
@media (max-width:760px) {
  .s-mazzo {
    min-height:0 !important;
    padding-top:clamp(55px,8svh,85px);
    padding-bottom:clamp(55px,8svh,75px) !important;
    gap:clamp(24px,5vw,38px);
  }
  .s-mazzo h2 {font-size:clamp(42px,12vw,64px);}
  .s-mazzo .lede {font-size:15px;margin-top:12px;}
  .s-mazzo .mazzo {width:min(330px,79vw);aspect-ratio:3/4.05;}
  .s-mazzo .carta {padding:11px 11px 19px;}
  .s-mazzo .carta b {font-size:25px;}
  .s-mazzo .carta small {font-size:12.5px;}
}


/* Prevent single-character email wrapping on narrow phones. */
@media (max-width:360px) {
  body[data-pagina="contatti"] .s-badge .email-pill span {
    white-space:nowrap;
    overflow:hidden;
    overflow-wrap:normal;
    text-overflow:ellipsis;
    font-size:11px;
    letter-spacing:-.025em;
  }
  body[data-pagina="contatti"] .s-badge .email-pill button {
    padding-inline:14px;
  }
}


/* Screenshot refinements 2026-11-05: menu, header, card captions, contacts, footer. */
@media (max-width:760px) {
  /* The menu must not leave an empty half-screen above its links. */
  .menu {
    box-sizing:border-box;
    height:100dvh;
    min-height:0;
    justify-content:flex-start !important;
    align-content:start;
    gap:clamp(12px,2.3svh,20px) !important;
    padding:calc(16px + env(safe-area-inset-top))
            clamp(18px,4.5vw,28px)
            calc(18px + env(safe-area-inset-bottom)) !important;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .menu .m-top {
    min-height:50px;
    height:50px;
    width:100%;
    flex:0 0 50px;
  }
  .menu .chiudi-menu {
    width:48px;
    height:48px;
    position:relative;
    top:auto;
    right:auto;
    margin:0 0 0 auto;
    flex:0 0 48px;
  }
  .menu .m-corpo {
    margin:clamp(4px,2svh,18px) 0 0 !important;
    flex:0 0 auto;
    width:100%;
    align-self:stretch;
  }
  .menu .m-corpo ol {
    margin:0 auto;
    width:100%;
    max-width:510px;
  }
  .menu ol a {
    min-height:44px;
    padding:clamp(5px,1.15svh,10px) 3px;
    text-align:center !important;
    box-sizing:border-box;
  }
  .menu ol a span {
    font-size:clamp(27px,8.4vw,44px) !important;
    line-height:1.08;
    letter-spacing:-.015em;
    word-break:normal;
    overflow-wrap:normal;
  }
  .menu .m-piede {
    flex:0 0 auto;
    margin:clamp(4px,1svh,10px) 0 0 !important;
    padding:0 !important;
    gap:8px;
  }
  .menu .m-soc { width:min(100%,510px); gap:8px; }
  .menu .m-soc > a.pill {
    min-height:48px;
    padding:8px 5px;
    box-sizing:border-box;
    touch-action:manipulation;
  }
  .menu .m-soc .menu-lingue {
    grid-column:1/-1;
    margin:6px auto 0;
    gap:10px;
  }
  .menu .menu-lingue .pill {
    min-width:48px;
    min-height:44px;
    height:44px;
    box-sizing:border-box;
  }

  /* Consistent, balanced top header: visible logo and a proper touch target. */
  .nav .testa-top {
    min-height:62px;
    padding:7px 9px 7px 16px;
    background:rgba(5,12,39,.90);
    border:1px solid rgba(255,255,255,.15);
    border-radius:19px;
    align-items:center;
    box-sizing:border-box;
  }
  .nav .testa-top .mark-top {
    display:inline-flex;
    align-items:center;
    flex:0 0 auto;
    min-height:44px;
  }
  .nav .testa-top .mark-top .logo-anim,
  .nav .testa-top .mark-top svg {
    display:block;
    height:39px !important;
    width:auto !important;
    max-width:100%;
  }
  .nav .testa-top .menu-btn2 {
    display:grid;
    place-items:center;
    width:46px !important;
    height:46px !important;
    min-width:46px;
    min-height:46px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:14px;
    background:rgba(255,255,255,.10) !important;
    color:#fff !important;
    touch-action:manipulation;
  }

  /* Language switcher already lives in the menu; do not repeat it in the footer. */
  .s-sent .colonne > div:last-child {
    display:none !important;
  }
  .s-sent .colonne {
    row-gap:8px;
  }
  .s-sent .fondo {
    margin-top:8px;
    padding-top:10px !important;
  }

  /* Contact poster should end after its information, not after a blank viewport. */
  body[data-pagina="contatti"] .s-club {
    min-height:0 !important;
    height:auto !important;
    padding:clamp(36px,6svh,64px) clamp(20px,5vw,32px)
            clamp(34px,5svh,55px) !important;
    justify-content:flex-start;
    align-items:center;
  }
  body[data-pagina="contatti"] .s-club .in {
    width:100%;
    align-content:start;
    gap:clamp(12px,3vw,18px);
  }
  body[data-pagina="contatti"] .s-club .righe {
    gap:clamp(7px,1.5svh,14px);
  }
  body[data-pagina="contatti"] .s-club .indirizzo {
    width:100%;
    box-sizing:border-box;
    margin-top:4px;
  }

  /* Taller card viewport leaves the title and two-line description room to breathe. */
  .s-mazzo .mazzo {
    width:min(330px,82vw);
    aspect-ratio:3/4.5;
    max-width:100%;
  }
  .s-mazzo .carta {
    grid-template-rows:minmax(0,1fr) auto auto !important;
    row-gap:0 !important;
    padding:11px 11px 17px !important;
    overflow:hidden;
    box-sizing:border-box;
  }
  .s-mazzo .carta img {
    grid-row:1;
    min-height:0;
    height:100%;
    width:100%;
    border-radius:12px;
    object-fit:cover;
  }
  .s-mazzo .carta b {
    grid-row:2;
    display:block;
    box-sizing:border-box;
    width:100%;
    padding:14px 7px 4px;
    margin:0;
    line-height:1.1;
    font-size:clamp(22px,6.3vw,27px);
    color:#14213b;
    background:#f4f6f9;
  }
  .s-mazzo .carta small {
    grid-row:3;
    display:block;
    box-sizing:border-box;
    width:100%;
    min-height:2.7em;
    padding:3px 7px 2px;
    margin:0;
    font-size:clamp(12px,3.25vw,13px);
    line-height:1.35;
    color:#52607a;
    background:#f4f6f9;
  }
}
@media (max-width:360px) {
  .menu ol a span {font-size:clamp(25px,8.1vw,30px) !important;}
  .menu .m-soc > a.pill {font-size:10px;}
  .s-mazzo .mazzo {width:min(285px,82vw);}
}


/* Palette-aware Silk shader behind the full-screen menu, all language routes. */
.menu { isolation:isolate; }
.menu .vfa-silk {
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.96;
}
.menu .vfa-silk[hidden] {display:none;}
.menu::before {z-index:1;opacity:.12;}
.menu .m-top,.menu .m-corpo,.menu .m-piede {position:relative;z-index:2;}
.menu .m-ante {box-shadow:0 28px 75px -30px rgba(0,0,0,.7);}
@media (prefers-reduced-motion:reduce) {
  .menu .vfa-silk {opacity:.82;}
}


/* Silk seasonal palette selector. Compact and readable on mobile. */
.menu .vfa-theme-control {
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:auto;
  font:600 12px/1.2 Montserrat, sans-serif;
  color:rgba(255,255,255,.85);
}
.menu .vfa-theme-select {
  appearance:auto;
  min-height:44px;
  max-width:175px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.38);
  border-radius:12px;
  background:#101b3a;
  color:#fff;
  font:600 13px/1.3 Montserrat,sans-serif;
  cursor:pointer;
}
.menu .vfa-theme-select:focus-visible {outline:2px solid var(--accent);outline-offset:3px;}
@media(max-width:760px){
  .menu .vfa-theme-control {
    justify-content:center;
    width:100%;
    margin:4px auto 0;
  }
  .menu .vfa-theme-select {min-width:145px;}
}

/* CLEAN MENU: typography only, no routes, arrows, markers or graphic motion. */
#menu .vfa-route-map,#menu .vfa-route-pin,#menu .vfa-route-here,
#menu .m-deco,#menu .m-ante,#menu .m-luogo,
#menu .vfa-theme-control,#menu .tema-controllo,#menu .tema-chip {display:none!important}
#menu .m-corpo {
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-width:0;min-height:0;flex:1 1 auto!important;margin:0!important
}
#menu .m-corpo ol {
 display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;
 width:min(100%,1050px)!important;max-width:1050px!important;margin:0 auto!important;padding:0!important;
 gap:clamp(2px,.65vh,10px)!important;border:0!important;list-style:none!important
}
#menu .m-corpo ol>li {
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 width:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;list-style:none!important
}
#menu .m-corpo ol>li:nth-child(2),#menu .m-corpo ol>li:nth-child(4) {justify-content:center!important}
#menu .m-corpo ol>li:nth-child(3),#menu .m-corpo ol>li:nth-child(6) {justify-content:flex-end!important}
#menu .m-corpo ol>li>a {
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
 position:relative!important;box-sizing:border-box!important;
 width:auto!important;min-width:0!important;max-width:100%!important;
 min-height:clamp(58px,10.2vh,110px)!important;
 gap:0!important;padding:clamp(2px,.5vh,7px) clamp(2px,.4vw,8px)!important;margin:0!important;
 border:0!important;background:transparent!important;text-align:left!important;text-decoration:none!important;
 transform:none!important;transition:opacity .32s ease!important
}
#menu .m-corpo ol>li>a::before,#menu .m-corpo ol>li>a::after {content:none!important;display:none!important}
#menu .m-corpo ol>li>a>small,#menu .m-corpo ol>li>a>svg {display:none!important}
#menu .m-corpo ol>li>a>span:not(.vfa-route-pin) {
 display:block!important;position:relative!important;flex:0 1 auto!important;min-width:0!important;max-width:100%!important;
 font:900 clamp(35px,6.3vw,98px)/1 Archivo,sans-serif!important;font-stretch:var(--w62);
 letter-spacing:-.035em!important;text-transform:uppercase!important;white-space:nowrap!important;
 color:#f7faff!important;text-shadow:none!important;text-decoration:none!important;
 transform:none!important;clip-path:none!important;filter:none!important;animation:none!important;
 transition:color .22s ease!important
}
#menu .m-corpo ol>li>a.vfa-nav-active>span:not(.vfa-route-pin),
#menu .m-corpo ol>li>a[aria-current="page"]>span:not(.vfa-route-pin) {color:#91bdff!important}
#menu .m-corpo ol>li>a:is(:hover,:focus-visible)>span:not(.vfa-route-pin) {
 color:#c7dfff!important;transform:none!important
}
#menu .m-corpo ol>li>a:focus-visible {
 outline:2px solid #d3e8ff!important;outline-offset:5px!important;border-radius:4px!important
}
@media(max-width:760px){
 #menu {gap:clamp(8px,1.7svh,15px)!important}
 #menu .m-corpo ol {width:100%!important;max-width:none!important;gap:clamp(2px,.6svh,9px)!important}
 #menu .m-corpo ol>li>a {min-height:clamp(43px,7.65svh,66px)!important;padding:2px 0!important}
 #menu .m-corpo ol>li>a>span:not(.vfa-route-pin) {
  font-size:clamp(25px,8.1vw,51px)!important;line-height:1.03!important;letter-spacing:-.044em!important
 }
 #menu .m-piede {margin:0!important;flex:0 0 auto}
}
@media(max-width:380px){
 #menu .m-corpo ol>li>a>span:not(.vfa-route-pin) {font-size:clamp(24px,7.65vw,33px)!important}
}
@media(max-width:760px) and (max-height:700px){
 #menu .m-corpo ol {gap:1px!important}
 #menu .m-corpo ol>li>a {min-height:38px!important;padding:1px 0!important}
 #menu .m-corpo ol>li>a>span:not(.vfa-route-pin) {font-size:clamp(22px,7.1vw,33px)!important}
}
@media(prefers-reduced-motion:reduce){
 #menu .m-corpo ol>li>a,#menu .m-corpo ol>li>a>span:not(.vfa-route-pin) {transition:none!important}
}

/* Mobile brush and staggered grid retired: desktop text menu used at every breakpoint. */

/* Desktop and tablet: restore the plain, single-column textual navigation.
   This intentionally overrides the old staggered alignments and any PNG-ready state. */
@media (min-width:761px) {
  #menu .m-corpo {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:visible !important;
  }
  #menu .m-corpo ol {
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    grid-template-rows:none !important;
    align-items:center !important;
    justify-content:center !important;
    width:min(86vw,980px) !important;
    max-width:980px !important;
    height:auto !important;
    max-height:calc(100svh - 180px) !important;
    gap:clamp(3px,.55svh,9px) !important;
    margin:0 auto !important;
    padding:0 !important;
  }
  #menu .m-corpo ol > li,
  #menu .m-corpo ol > li:nth-child(n) {
    display:flex !important;
    flex:none !important;
    justify-content:center !important;
    align-items:center !important;
    width:100% !important;
    min-height:0 !important;
    height:auto !important;
    transform:none !important;
  }
  #menu .m-corpo ol > li > a {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    height:auto !important;
    text-align:center !important;
    min-height:clamp(50px,8svh,86px) !important;
    max-height:none !important;
    padding:0 8px !important;
    margin:0 !important;
    background:none !important;
    transform:none !important;
    animation:none !important;
  }
  #menu .m-corpo ol > li > a::before,
  #menu .m-corpo ol > li > a::after {
    content:none !important;
    display:none !important;
    background:none !important;
    animation:none !important;
  }
  #menu .m-corpo ol > li > a > span:not(.vfa-route-pin) {
    display:block !important;
    position:static !important;
    overflow:visible !important;
    clip-path:none !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    font:900 clamp(33px,5.3vw,78px)/1 Archivo,sans-serif !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
    color:#f7faff !important;
    transform:none !important;
  }
  #menu .m-corpo ol > li > a:is(.vfa-nav-active,[aria-current="page"]) > span:not(.vfa-route-pin) {
    color:#91bdff !important;
  }
  #menu .m-corpo ol > li > a:is(:hover,:focus-visible) > span:not(.vfa-route-pin) {
    color:#c7dfff !important;
  }
}

/* Contacts: email address replaces the clipboard action with a mailto link. */
body[data-pagina="contatti"] .s-badge .email-pill {
  justify-content:center;
  padding:13px 22px;
  text-align:center;
}
body[data-pagina="contatti"] .s-badge .email-pill > span {
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
body[data-pagina="contatti"] .s-badge .email-pill:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}


/* 2026-11-06 | VFA homepage card deck: Safari/iPad-safe image and caption separation.
   The photograph is a flexible pane; the title and description always own real space. */
.s-mazzo .carta {
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box !important;
  min-width:0 !important;
  min-height:0 !important;
  gap:0 !important;
  padding:clamp(10px,1.25vw,14px) clamp(10px,1.25vw,14px) clamp(15px,1.7vw,22px) !important;
  overflow:hidden !important;
  isolation:isolate;
}
.s-mazzo .carta > img {
  display:block !important;
  flex:1 1 0% !important;
  align-self:stretch !important;
  width:100% !important;
  height:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 0 clamp(9px,1.1vw,14px) !important;
  object-fit:cover !important;
  object-position:center !important;
  position:relative !important;
  z-index:0 !important;
}
.s-mazzo .carta > img.mz-site-shot {
  object-position:100% center !important;
}
.s-mazzo .carta > img.mz-portrait {
  object-fit:contain !important;
  object-position:center bottom !important;
}
.s-mazzo .carta > b,
.s-mazzo .carta > small {
  display:block !important;
  flex:0 0 auto !important;
  align-self:stretch !important;
  position:relative !important;
  box-sizing:border-box !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  background:#f4f6f9 !important;
  text-shadow:none !important;
  overflow:visible !important;
  z-index:2 !important;
}
.s-mazzo .carta > b {
  padding:2px 8px 3px !important;
  color:#14213b !important;
  line-height:1.15 !important;
  font-size:clamp(22px,2.6vw,32px) !important;
}
.s-mazzo .carta > small {
  padding:2px 8px 5px !important;
  color:#44526b !important;
  line-height:1.4 !important;
  font-size:clamp(12px,1.15vw,14px) !important;
  overflow-wrap:break-word !important;
}
.s-mazzo .carta > .cn {
  position:absolute !important;
  top:clamp(20px,2vw,28px) !important;
  left:clamp(20px,2vw,28px) !important;
  z-index:3 !important;
}
/* iPad landscape and smaller laptops: keep the deck fully inside its column. */
@media (min-width:981px) and (max-width:1280px) {
  .s-mazzo {
    grid-template-columns:minmax(0,1fr) minmax(0,.95fr) !important;
    gap:clamp(20px,2.8vw,42px) !important;
  }
  .s-mazzo .mazzo {
    width:min(100%,clamp(275px,31vw,345px)) !important;
    aspect-ratio:3 / 4.35 !important;
  }
  .s-mazzo h2 {
    font-size:clamp(45px,5.6vw,76px) !important;
    overflow-wrap:normal;
  }
}
/* Tablet portrait: intentional vertical composition with enough caption space. */
@media (min-width:761px) and (max-width:980px) {
  .s-mazzo {
    gap:clamp(28px,4vw,48px) !important;
    padding-top:clamp(78px,9svh,110px) !important;
    padding-bottom:clamp(74px,8svh,110px) !important;
  }
  .s-mazzo .mazzo {
    width:min(345px,75vw) !important;
    aspect-ratio:3 / 4.38 !important;
  }
}
/* Small phones retain the same card treatment, with readable two-line labels. */
@media (max-width:760px) {
  .s-mazzo .carta > b {
    font-size:clamp(21px,6.2vw,27px) !important;
  }
  .s-mazzo .carta > small {
    font-size:clamp(11.5px,3.2vw,13px) !important;
    line-height:1.35 !important;
  }
}

/* Mobile: header diviso in due cornici separate (logo e menu hamburger) */
@media (max-width:760px){
  .nav .testa-top,.nav.scorre .testa-top{background:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important;height:auto!important;border-radius:0!important}
  .nav .testa-top::before,.nav .testa-top::after{display:none!important}
  .nav .testa-top .mark-top,.nav .testa-top .menu-btn2{box-sizing:border-box;height:48px;border-radius:16px;border:1px solid #ffffff2e!important;background:color-mix(in oklab,var(--ink) 80%,transparent)!important;-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);box-shadow:0 12px 28px -14px #030828b3}
  .nav .testa-top .mark-top{display:inline-flex;align-items:center;padding:0 16px}
  .nav .testa-top .menu-btn2{width:48px;min-width:48px;display:inline-grid;place-items:center;padding:0;color:#fff!important}
}


/* Photographic VFA deck — real photography instead of drawn vector scenes.
   The photo is always its own pane; the text remains a separate readable footer. */
.s-mazzo .carta > img.mz-photo {
  border-radius:13px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  background-color:#0b204b;
  image-rendering:auto;
}
.s-mazzo .carta > img.mz-code {
  object-fit:cover !important;
  object-position:49% center !important;
  filter:saturate(.78) contrast(1.09) brightness(1.06) !important;
  background:#101826;
}
.s-mazzo .carta > img.mz-field {
  object-fit:cover !important;
  object-position:42% center !important;
  filter:saturate(.85) contrast(1.03) !important;
  background:#345b78;
}
.s-mazzo .carta > img.mz-certificate {
  object-fit:contain !important;
  object-position:center center !important;
  filter:contrast(1.06) !important;
  background:radial-gradient(ellipse at 50% 37%,#345383 0%,#112a55 62%,#07152d 100%);
}
.s-mazzo .carta > img.mz-person {
  object-fit:contain !important;
  object-position:center bottom !important;
  filter:none !important;
  background:radial-gradient(ellipse at 50% 33%,#86b4ec 0%,#3c71b8 57%,#112d64 100%);
}
.s-mazzo .carta > img.mz-phone {
  object-fit:contain !important;
  object-position:center center !important;
  filter:none !important;
  background:radial-gradient(ellipse at 60% 43%,#3d68bb 0%,#17376e 61%,#081a3e 100%);
}
@media (max-width:760px) {
 .s-mazzo .carta > img.mz-person { object-position:center bottom !important; }
}

/* Blue editorial photographs share one crop across the three home locales. */
.s-mazzo .carta > img.mz-editorial {
  object-fit:cover !important;
  object-position:center !important;
  filter:none !important;
  background:#123065;
}


/* VFA mobile header: logo-free, textured white menu with three blue bars (2026-11-06). */
@media (max-width:760px) {
  /* Leave the VFA mark in desktop navigation and other site locations. */
  .nav .testa-top .mark-top {
    display:none !important;
  }

  /* Keep the only mobile header control aligned to the right. */
  .nav .testa-top,
  .nav.scorre .testa-top {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
  }
  .nav .testa-top .soc,
  .nav.su-chiaro .testa-top .soc {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    margin-left:auto;
    color:#0b2a8c !important;
  }

  /* Same paper grain used by .nav .barra, lightened to a white finish. */
  .nav .testa-top .menu-btn2,
  .nav.scorre .testa-top .menu-btn2,
  .nav.su-chiaro .testa-top .menu-btn2 {
    display:inline-grid !important;
    place-items:center;
    box-sizing:border-box;
    width:48px !important;
    min-width:48px !important;
    height:48px !important;
    min-height:48px !important;
    margin:0 !important;
    padding:0 !important;
    color:#0b2a8c !important;
    background:
      linear-gradient(rgba(255,255,255,.87),rgba(255,255,255,.87)),
      url("/v3/img/carta-grigia.webp") 0 0 / 256px repeat !important;
    border:1px solid rgba(11,42,140,.14) !important;
    border-radius:16px !important;
    box-shadow:inset 0 1px 0 #fff,0 12px 28px -14px rgba(3,8,40,.42);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    touch-action:manipulation;
  }

  /* Keep all three bars visible, including the existing :after bar. */
  .nav .testa-top .menu-btn2 i,
  .nav .testa-top .menu-btn2 i::before,
  .nav .testa-top .menu-btn2 i::after {
    display:block;
    width:20px;
    height:2px;
    border-radius:2px;
    background:#0b2a8c !important;
  }
  .nav .testa-top .menu-btn2 i { position:relative; }
  .nav .testa-top .menu-btn2 i::before,
  .nav .testa-top .menu-btn2 i::after {
    content:"";
    position:absolute;
    left:0;
  }
  .nav .testa-top .menu-btn2 i::before { top:-6px; }
  .nav .testa-top .menu-btn2 i::after { top:6px; }
  .nav .testa-top .menu-btn2:focus-visible {
    outline:3px solid #0b2a8c;
    outline-offset:3px;
  }
}

/* Active section stays highlighted by the brush image, without a "you are here" badge.
   All viewport widths and site locales. */
#menu .m-corpo ol > li > a:is(.vfa-nav-active,[aria-current="page"])::after {
  content:none !important;
  display:none !important;
}


/* VFA contact · editorial visiting card + real animated street map (2026-11-06).
   The section retains the standard .schermo border radius and site typography. */
body[data-pagina="contatti"] .vfa-location-panel {
  --vfa-loc-blue:#0B2A8C;
  --vfa-loc-navy:#071D63;
  --vfa-loc-paper:#F6F8FD;
  position:relative;
  min-height:0;
  padding:clamp(66px,9vh,110px) var(--pad);
  color:var(--vfa-loc-navy);
  border-radius:var(--r);
  overflow:hidden;
  isolation:isolate;
  background-color:#F2F6FF;
  background-image:linear-gradient(90deg,rgba(252,253,255,.98) 0%,rgba(247,250,255,.93) 47%,rgba(241,247,255,.12) 100%),url('/_assets/vfa-contatti-banner-20261106.svg');
  background-position:center,center;
  background-size:cover,cover;
}
body[data-pagina="contatti"] .vfa-location-panel::after {
  content:"";
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(130deg,rgba(255,255,255,.52),transparent 55%);
}
body[data-pagina="contatti"] canvas.vfa-contact-gradflow {
  position:absolute;inset:0;z-index:0;
  width:100%;height:100%;
  opacity:.19;
  pointer-events:none;
  mix-blend-mode:soft-light;
  -webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 98%);
  mask-image:linear-gradient(90deg,transparent 30%,#000 98%);
}
body[data-pagina="contatti"] .vfa-business-layout {
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);
  align-items:center;
  width:min(1200px,100%);
  gap:clamp(24px,4vw,78px);
  margin:0 auto;
}
body[data-pagina="contatti"] .vfa-business-intro {
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:clamp(17px,2.1vw,26px);
}
body[data-pagina="contatti"] .vfa-location-eyebrow {
  display:inline-block;
  border-bottom:2px solid var(--vfa-loc-blue);
  padding:0 0 10px;
  font:780 11px/1.3 Montserrat,sans-serif;
  letter-spacing:.13em;
  color:var(--vfa-loc-blue);
}
body[data-pagina="contatti"] .vfa-business-intro h2 {
  margin:0;
  max-width:11ch;
  color:var(--vfa-loc-navy);
  font:500 clamp(47px,5.1vw,88px)/.95 "Inter Tight",sans-serif;
  letter-spacing:-.055em;
}
body[data-pagina="contatti"] .vfa-intro-period {color:var(--vfa-loc-blue)}
body[data-pagina="contatti"] .vfa-business-intro > p {
  margin:0;
  max-width:37ch;
  color:#40516D;
  font:450 clamp(16px,1.45vw,19px)/1.52 "Inter Tight",sans-serif;
}
body[data-pagina="contatti"] .vfa-place-tag {
  display:inline-flex;
  align-items:center;
  gap:11px;
  padding:11px 16px;
  border:1px solid rgba(11,42,140,.19);
  border-radius:999px;
  background:rgba(255,255,255,.9);
  box-shadow:0 9px 26px -24px rgba(7,29,99,.5);
  color:var(--vfa-loc-navy);
  font:740 11px/1.2 Montserrat,sans-serif;
  letter-spacing:.06em;
}
body[data-pagina="contatti"] .vfa-place-pulse {
  width:8px;height:8px;border-radius:50%;
  flex:none;background:#1853EE;
  box-shadow:0 0 0 4px rgba(24,83,238,.12);
}
body[data-pagina="contatti"] .vfa-business-coordinate {
  color:#566A8D;
  font:700 12px/1.4 "JetBrains Mono",monospace;
  letter-spacing:.04em;
}
body[data-pagina="contatti"] .vfa-business-stage {
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:13px;
  width:100%;min-width:0;
  min-height:540px;
  perspective:1300px;
}
body[data-pagina="contatti"] .vfa-business-edition {
  display:block;
  align-self:center;
  color:#627AA4;
  letter-spacing:.13em;
  font:750 10px/1 Montserrat,sans-serif;
}
body[data-pagina="contatti"] .vfa-business-card {
  --vfa-map-rx:0deg;--vfa-map-ry:0deg;
  position:relative;
  display:block;
  box-sizing:border-box;
  flex:none;
  width:min(100%,455px);
  height:270px;
  min-width:0;min-height:0;
  padding:0;
  border:1px solid rgba(28,62,147,.19);
  border-radius:19px;
  overflow:hidden;
  isolation:isolate;
  text-align:left;
  cursor:pointer;
  color:var(--vfa-loc-navy);
  background:var(--vfa-loc-paper) url('/v3/img/carta-grigia.webp') left top/256px repeat;
  box-shadow:0 30px 64px -32px rgba(5,28,87,.42),inset 0 1px rgba(255,255,255,.96);
  transform:perspective(1000px) rotateX(var(--vfa-map-rx)) rotateY(var(--vfa-map-ry));
  transform-style:preserve-3d;
  transition:width .64s cubic-bezier(.2,.91,.2,1),
    height .64s cubic-bezier(.2,.91,.2,1),
    box-shadow .3s ease;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
body[data-pagina="contatti"] .vfa-business-card:focus-visible {
  outline:3px solid #164EEC;
  outline-offset:5px;
}
body[data-pagina="contatti"] .vfa-business-card:is(:hover,:focus-visible) {
  box-shadow:0 36px 70px -32px rgba(5,28,87,.52),inset 0 1px #fff;
}
body[data-pagina="contatti"] .vfa-business-visual {
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(126deg,#1E5CF8 0%,#1138C8 59%,#0A218A 100%);
  clip-path:polygon(77% 0%,100% 0%,100% 100%,65% 100%);
  transition:opacity .3s ease;
}
body[data-pagina="contatti"] .vfa-business-visual::before {
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse at 80% 9%,rgba(255,255,255,.17),transparent 45%),
    repeating-linear-gradient(160deg,transparent 0 17px,rgba(255,255,255,.04) 18px 20px);
}
body[data-pagina="contatti"] .vfa-business-top,
body[data-pagina="contatti"] .vfa-business-name,
body[data-pagina="contatti"] .vfa-business-bottom {
  position:absolute;z-index:2;
  transition:opacity .26s ease,transform .36s ease,visibility .3s;
}
body[data-pagina="contatti"] .vfa-business-top {
  top:24px;left:26px;right:21px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:8px;
}
body[data-pagina="contatti"] .vfa-business-logo {
  color:var(--vfa-loc-blue);
  font:900 31px/.85 Archivo,sans-serif;
  font-stretch:79%;
  text-transform:lowercase;
  letter-spacing:-.085em;
}
body[data-pagina="contatti"] .vfa-business-logo sup {
  display:inline-block;position:relative;top:-.45em;
  margin-left:5px;
  font:800 10px/1 Montserrat,sans-serif;
  letter-spacing:0;
}
body[data-pagina="contatti"] .vfa-business-area {
  display:inline-flex;align-items:center;justify-content:center;
  flex:none;min-height:27px;
  max-width:52%;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(11,42,140,.12);
  background:#fff;
  color:#071D63;
  text-align:right;
  white-space:nowrap;
  font:760 clamp(8px,.8vw,10px)/1.2 Montserrat,sans-serif;
  letter-spacing:.06em;
  box-shadow:0 3px 12px rgba(9,33,95,.12);
}
body[data-pagina="contatti"] .vfa-business-name {
  left:26px;top:96px;
  color:#082B97;
  white-space:nowrap;
  font:900 clamp(37px,3.55vw,49px)/.85 Archivo,sans-serif;
  font-stretch:78%;
  letter-spacing:-.069em;
}
body[data-pagina="contatti"] .vfa-business-period {color:#1751EB}
body[data-pagina="contatti"] .vfa-business-bottom {
  left:26px;right:20px;bottom:22px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  font:750 10px/1.2 Montserrat,sans-serif;
  letter-spacing:.085em;
}
body[data-pagina="contatti"] .vfa-business-bottom > span:first-child {color:var(--vfa-loc-blue)}
body[data-pagina="contatti"] .vfa-business-bottom i {
  display:inline-block;width:4px;height:4px;
  border-radius:50%;margin:0 4px 2px;
  background:#1751EB;
}
body[data-pagina="contatti"] .vfa-business-bottom > span:last-child {
  padding:6px 9px;border-radius:100px;
  color:#082B97;background:#FFFFFF;
  white-space:nowrap;
}
body[data-pagina="contatti"] .vfa-business-action {
  position:absolute;right:17px;bottom:17px;z-index:6;
  display:grid;place-items:center;
  width:30px;height:30px;
  border:1px solid rgba(12,46,143,.19);
  border-radius:50%;background:#FFF;color:var(--vfa-loc-blue);
  box-shadow:0 2px 12px rgba(15,44,100,.14);
  font:500 22px/1 "Inter Tight",sans-serif;
  opacity:0;transform:scale(.85);
  transition:opacity .27s ease,transform .35s ease;
  pointer-events:none;
}
body[data-pagina="contatti"] .vfa-business-card:is(:hover,:focus-visible) .vfa-business-action,
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] .vfa-business-action {
  opacity:1;transform:scale(1);
}
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] {
  width:min(100%,650px);
  height:438px;
  transform:none !important;
  background:#FAFBFF;
}
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] .vfa-business-visual,
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] .vfa-business-top,
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] .vfa-business-name,
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] .vfa-business-bottom {
  opacity:0;visibility:hidden;pointer-events:none;
}
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] .vfa-business-action {
  transform:rotate(45deg);
}
body[data-pagina="contatti"] .vfa-map-geography {
  position:absolute;z-index:3;inset:17px;
  display:grid;grid-template-rows:32px minmax(0,1fr) 26px;
  gap:10px;
  min-width:0;
  opacity:0;visibility:hidden;
  transform:translateY(12px) scale(.98);
  pointer-events:none;
  transition:opacity .35s ease,transform .48s cubic-bezier(.15,1,.3,1),visibility .35s;
}
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] .vfa-map-geography {
  opacity:1;visibility:visible;transform:none;
}
body[data-pagina="contatti"] .vfa-map-geography-head,
body[data-pagina="contatti"] .vfa-map-geography-foot {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-width:0;
  color:#0B2A8C;
  font:780 11px/1.3 Montserrat,sans-serif;
  letter-spacing:.08em;
}
body[data-pagina="contatti"] .vfa-map-geography-head > span {
  color:#4866A1;font-weight:750;
  font-size:10px;
  letter-spacing:.04em;
}
body[data-pagina="contatti"] .vfa-map-geography-foot > span {
  color:#526787;
  font:550 10px/1.3 Montserrat,sans-serif;
  letter-spacing:0;
  text-align:right;
  padding-right:41px;
}
body[data-pagina="contatti"] .vfa-map-live {
  display:block;position:relative;
  min-width:0;min-height:0;
  border:1px solid rgba(17,66,167,.13);
  border-radius:12px;
  background-color:#E7EFFD;
  background-image:linear-gradient(rgba(15,64,150,.045) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(15,64,150,.045) 1px,transparent 1px);
  background-size:22px 22px;
  overflow:hidden;
}
body[data-pagina="contatti"] .vfa-map-tiles {
  position:absolute;inset:0;overflow:hidden;
  opacity:0;
  clip-path:inset(0 100% 0 0);
  transition:opacity .35s ease,clip-path 1.3s cubic-bezier(.2,.7,.2,1);
}
body[data-pagina="contatti"] .vfa-map-live.vfa-map-ready .vfa-map-tiles {
  opacity:1;clip-path:inset(0 0 0 0);
}
body[data-pagina="contatti"] .vfa-map-tiles > img {
  position:absolute;display:block;
  width:256px;height:256px;
  max-width:none;
  image-rendering:auto;
  filter:saturate(.63) contrast(1.025);
  user-select:none;pointer-events:none;
}
body[data-pagina="contatti"] .vfa-map-overlay {
  position:absolute;inset:0;z-index:2;width:100%;height:100%;
  overflow:hidden;pointer-events:none;
}
body[data-pagina="contatti"] .vfa-map-outline-halo,
body[data-pagina="contatti"] .vfa-map-outline,
body[data-pagina="contatti"] .vfa-map-route-halo,
body[data-pagina="contatti"] .vfa-map-route {
  fill:none;vector-effect:non-scaling-stroke;
  stroke-linejoin:round;stroke-linecap:round;
}
body[data-pagina="contatti"] .vfa-map-outline-halo {stroke:#FFFFFF;stroke-opacity:.95;stroke-width:4.5}
body[data-pagina="contatti"] .vfa-map-outline {stroke:#124ADD;stroke-opacity:.8;stroke-width:1.9;stroke-dasharray:7 5}
body[data-pagina="contatti"] .vfa-map-route-halo {stroke:#FFFFFF;stroke-width:8;stroke-opacity:.94}
body[data-pagina="contatti"] .vfa-map-route {stroke:#1051F6;stroke-width:4}
body[data-pagina="contatti"] .vfa-map-pin {
  position:absolute;left:50%;top:49%;z-index:4;
  width:17px;height:17px;display:grid;place-items:center;
  border-radius:50%;
  background:#124FF0;border:4px solid white;
  box-shadow:0 1px 15px rgba(9,36,138,.55);
  transform:translate(-50%,-50%);
  pointer-events:none;
}
body[data-pagina="contatti"] .vfa-map-pin::after {
  content:"";position:absolute;inset:-13px;border:2px solid #1552F0;border-radius:50%;
  animation:vfa-street-pulse 2.4s ease-out infinite;
}
@keyframes vfa-street-pulse {
  0%{transform:scale(.38);opacity:.8}
  90%,100%{transform:scale(1.16);opacity:0}
}
body[data-pagina="contatti"] .vfa-map-loading {
  position:absolute;z-index:5;inset:0;
  display:flex;align-items:center;justify-content:center;
  padding:12px;
  background:rgba(244,248,255,.9);
  color:#0B2A8C;
  font:740 12px/1.4 Montserrat,sans-serif;
  transition:opacity .28s ease,visibility .28s ease;
}
body[data-pagina="contatti"] .vfa-map-live.vfa-map-ready .vfa-map-loading {
  opacity:0;visibility:hidden;
}
body[data-pagina="contatti"] .vfa-map-osm-credit {
  position:absolute;z-index:6;right:7px;bottom:6px;
  background:rgba(255,255,255,.94);
  color:#18345C;
  padding:3px 5px;border-radius:4px;
  font:650 9px/1.3 Arial,sans-serif;
  pointer-events:none;
}
body[data-pagina="contatti"] .vfa-map-hint {
  color:#405879;text-align:center;
  font:600 11px/1.4 Montserrat,sans-serif;
}
body[data-pagina="contatti"] .vfa-business-map-link {
  display:inline-flex;align-items:center;gap:14px;
  color:#0B2A8C;
  font:750 12px/1.3 Montserrat,sans-serif;
  text-decoration:none;
  border-bottom:1px solid rgba(11,42,140,.35);
  padding:5px 0;
}
body[data-pagina="contatti"] .vfa-business-map-link:hover {border-bottom-color:#0B2A8C}
body[data-pagina="contatti"] .vfa-map-credit {
  color:#506483;
  font:500 10px/1.4 Montserrat,sans-serif;
}
@media(max-width:970px) {
  body[data-pagina="contatti"] .vfa-business-layout {
    grid-template-columns:minmax(0,1fr);
    gap:30px;
    max-width:700px;
  }
  body[data-pagina="contatti"] .vfa-business-intro {gap:17px}
  body[data-pagina="contatti"] .vfa-business-intro h2 {font-size:clamp(51px,8vw,80px)}
  body[data-pagina="contatti"] .vfa-business-stage {min-height:520px}
}
@media(max-width:760px) {
  body[data-pagina="contatti"] .vfa-location-panel {
    padding:clamp(58px,9svh,82px) clamp(17px,5vw,25px) 55px;
    border-radius:var(--r);
    background-position:20% center,65% center;
  }
  body[data-pagina="contatti"] .vfa-business-layout {gap:24px}
  body[data-pagina="contatti"] .vfa-business-intro h2 {font-size:clamp(47px,10.7vw,75px)}
  body[data-pagina="contatti"] .vfa-business-stage {min-height:480px}
  body[data-pagina="contatti"] .vfa-business-card {
    width:min(100%,455px);
    height:auto;aspect-ratio:455/270;
    border-radius:16px;
  }
  body[data-pagina="contatti"] .vfa-business-name {
    font-size:clamp(32px,9vw,48px);
    top:35%;
  }
  body[data-pagina="contatti"] .vfa-business-top {top:18px;left:19px;right:16px}
  body[data-pagina="contatti"] .vfa-business-bottom {left:19px;right:16px;bottom:17px}
  body[data-pagina="contatti"] .vfa-business-name {left:19px}
  body[data-pagina="contatti"] .vfa-business-logo {font-size:clamp(25px,6.5vw,31px)}
  body[data-pagina="contatti"] .vfa-business-area {font-size:8px;padding:6px 8px}
  body[data-pagina="contatti"] .vfa-business-bottom {font-size:9px}
  body[data-pagina="contatti"] .vfa-business-bottom > span:last-child {font-size:8px;padding:5px 6px}
  body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] {
    width:100%;height:clamp(345px,108vw,438px);
    aspect-ratio:auto;
  }
  body[data-pagina="contatti"] .vfa-map-geography {inset:12px;grid-template-rows:31px minmax(0,1fr) 28px;gap:8px}
  body[data-pagina="contatti"] .vfa-map-geography-head strong {font-size:9px}
  body[data-pagina="contatti"] .vfa-map-geography-head>span {font-size:9px}
  body[data-pagina="contatti"] .vfa-map-geography-foot>span {font-size:9px}
}
@media(max-width:360px) {
  body[data-pagina="contatti"] .vfa-business-name {font-size:clamp(29px,8.3vw,37px)}
  body[data-pagina="contatti"] .vfa-business-area {max-width:53%;font-size:7.5px}
}
@media(hover:none) {
  body[data-pagina="contatti"] .vfa-business-action {opacity:1;transform:scale(1)}
}
@media(prefers-reduced-motion:reduce) {
  body[data-pagina="contatti"] .vfa-business-card,
  body[data-pagina="contatti"] .vfa-business-top,
  body[data-pagina="contatti"] .vfa-business-name,
  body[data-pagina="contatti"] .vfa-business-bottom,
  body[data-pagina="contatti"] .vfa-map-geography,
  body[data-pagina="contatti"] .vfa-map-tiles {
    transition:none!important;
  }
  body[data-pagina="contatti"] .vfa-map-pin::after {animation:none!important}
}

body[data-pagina="lavori"] .s-agency .hero {
  isolation:isolate;
  background:linear-gradient(130deg,var(--brand-deep),var(--brand),var(--ink));
}
body[data-pagina="lavori"] .s-agency .hero > canvas.vfa-work-stripe {
  position:absolute;
  inset:0;
  display:block;
  width:100%;height:100%;
  z-index:-2;
  pointer-events:none;
}
body[data-pagina="lavori"] .s-agency .hero:after {
  background:linear-gradient(180deg,rgba(4,11,34,.36),rgba(3,13,45,.13) 44%,rgba(3,10,31,.78) 100%);
}
@media (prefers-reduced-motion:reduce) {
  body[data-pagina="contatti"] .vfa-location-link {transition:none;}
}


/* Retired Work: responsive header + desktop navbar + overlay navigation + footer. */
header .link-top a[data-voce="lavori"],
header .barra a[data-voce="lavori"],
#menu .m-corpo ol > li:has(> a[data-voce="lavori"]),
.s-sent nav[aria-label="Pagine"] a[href$="/lavori"],
.s-sent nav[aria-label="Pages"] a[href$="/lavori"],
.s-sent nav[aria-label="Strony"] a[href$="/lavori"] {
 display:none !important;
}
@media(max-width:760px) {
 html:is(:lang(it),:lang(en),:lang(pl)) #menu.vfa-six-brush-ready .m-corpo ol {
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:repeat(5,minmax(0,1fr)) !important;
  height:min(69svh,585px) !important;
 }
}
@media(max-width:760px) and (max-height:560px) and (min-width:560px) {
 html:is(:lang(it),:lang(en),:lang(pl)) #menu.vfa-six-brush-ready .m-corpo ol {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-template-rows:repeat(3,minmax(0,1fr)) !important;
  height:min(62svh,390px) !important;
 }
 html:is(:lang(it),:lang(en),:lang(pl)) #menu.vfa-six-brush-ready .m-corpo ol > li:nth-child(5) {
  grid-column:1 / -1 !important;justify-content:center !important;
 }
}
/* Original homepage numeric typography restored; historic overrides intentionally removed. */
/* VFA assets · 2026-11-06 · digit graphics and requested contact artwork */
/* Retired contact raster/glass styling moved to the single contact stylesheet. */
body[data-pagina="contatti"] .vfa-business-stage {
  position:relative;
  isolation:isolate;
  padding-top:110px;
  min-height:620px;
}
body[data-pagina="contatti"] .vfa-business-card-frame {
  display:flex;
  position:relative;
  flex:none;
  justify-content:center;
  width:min(100%,455px);
  max-width:100%;
  transition:width .64s cubic-bezier(.2,.91,.2,1);
}
body[data-pagina="contatti"] .vfa-business-card-frame:has(.vfa-business-card[aria-expanded="true"]) {
  width:min(100%,650px);
}
body[data-pagina="contatti"] .vfa-business-lanyard {
  position:absolute;
  z-index:5;
  top:-163px;
  left:50%;
  width:650px;
  height:240px;
  max-width:none;
  transform:translateX(-50%);
  pointer-events:none;
  user-select:none;
  filter:drop-shadow(0 8px 9px rgba(9,26,89,.20));
  transition:opacity .32s ease;
}
body[data-pagina="contatti"] .vfa-business-card-frame:has(.vfa-business-card[aria-expanded="true"]) .vfa-business-lanyard {
  opacity:0;
}
body[data-pagina="contatti"] .vfa-business-card {
  z-index:3;
  position:relative;
}
body[data-pagina="contatti"] .vfa-card-eyelet {
  position:absolute;
  top:10px;
  right:23px;
  z-index:4;
  width:23px;
  height:23px;
  border:5px solid #8494AB;
  border-radius:50%;
  box-sizing:border-box;
  background:#E8EEF9;
  box-shadow:inset 0 1px 4px rgba(3,12,41,.48),0 1px 2px #fff,0 0 0 1.5px rgba(17,30,58,.45);
  pointer-events:none;
  transition:opacity .2s ease;
}
body[data-pagina="contatti"] .vfa-business-card[aria-expanded="true"] .vfa-card-eyelet {opacity:0}
body[data-pagina="contatti"] .vfa-business-area {
  border:1px solid rgba(10,39,132,.21);
  background:#FFFFFF !important;
  color:#071D63 !important;
  font-weight:800 !important;
  font-size:clamp(9px,.9vw,11px) !important;
}
@media(max-width:970px) {
  body[data-pagina="contatti"] .vfa-business-stage {
    padding-top:140px;min-height:610px;
  }
}
@media(max-width:760px) {
  body[data-pagina="contatti"] .vfa-business-stage {
    padding-top:115px;min-height:560px;
  }
  body[data-pagina="contatti"] .vfa-business-card-frame {
    width:min(100%,455px);
  }
  body[data-pagina="contatti"] .vfa-business-lanyard {
    top:-158px;
    width:650px;
    left:calc(50% + min(0px, (100vw - 455px)/8));
  }
  body[data-pagina="contatti"] .vfa-card-eyelet {top:8px;right:18px}
}
@media(prefers-reduced-motion:reduce) {
  body[data-pagina="contatti"] .vfa-business-lanyard {transition:none !important;}
}


/* VFA universal mobile menu + six-control dock | 2026-11-06 */
@media (max-width:760px) {
  /* Overlay menu is now shared between desktop, tablet and mobile. */
  /* Five destinations + the Menu button = six columns, not five. */
  .nav .barra {
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    grid-template-rows:1fr !important;
    grid-auto-flow:row !important;
    align-items:stretch !important;
    justify-content:center !important;
    gap:1px !important;
    box-sizing:border-box !important;
    width:auto !important;
    max-width:none !important;
    left:clamp(6px,2vw,12px) !important;
    right:clamp(6px,2vw,12px) !important;
    bottom:calc(8px + env(safe-area-inset-bottom)) !important;
    padding:6px !important;
  }
  .nav .barra > .voce {
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    align-self:stretch !important;
    min-width:0 !important;
    width:100% !important;
    height:60px !important;
    gap:4px !important;
    padding:5px 1px !important;
    box-sizing:border-box !important;
    text-align:center !important;
  }
  .nav .barra > .voce svg {
    width:20px !important;
    height:20px !important;
    flex:0 0 20px !important;
  }
  .nav .barra > .voce span {
    display:block !important;
    flex:none !important;
    min-width:0 !important;
    max-width:100% !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    text-align:center !important;
    font:700 clamp(8px,1.85vw,10px)/1.06 Montserrat,sans-serif !important;
    letter-spacing:-.035em !important;
    opacity:1 !important;
  }
  .nav .barra > .voce.on,
  .nav .barra > .voce[aria-current="page"] {
    min-width:0 !important;
    color:#fff !important;
  }
  .nav .barra .cursore {
    top:6px !important;
    height:calc(100% - 12px) !important;
    border-radius:15px !important;
  }
}
/* Keep the six-column dock anchored to both screen edges, never centered twice. */
@media(max-width:760px) {
  .nav .barra, .nav:not(.scorre) .barra {
    transform:translateY(calc(100% + 40px)) !important;
  }
  .nav.scorre .barra {
    transform:translateY(0) !important;
  }
}


/* Contact concept layout is defined only in vfa-contact-immersive-20261106.css. */
/* Unify overlay navigation on every device, including active state and
   layout after retiring the Work destination. */
@media (max-width:760px) {
  #menu .m-corpo ol,
  #menu .m-corpo ol > li,
  #menu .m-corpo ol > li > a {
    transform:none !important;
    animation:none !important;
  }
  #menu .m-corpo ol > li > a > span:not(.vfa-route-pin) {
    font-family:Archivo,sans-serif !important;
    font-weight:900 !important;
    color:#f7faff !important;
    text-transform:uppercase !important;
  }
  #menu .m-corpo ol > li > a[aria-current="page"] > span:not(.vfa-route-pin) {
    color:#91bdff !important;
  }
}


/* VFA 2026-11-06 | equal insets for the six-item mobile dock */
@media (max-width:760px) {
  /* Match the inset edges of the rounded content panels rather than
     stretching the dock into the outer page gutter. */
  .nav .barra,
  .nav.scorre .barra,
  .nav.su-chiaro .barra {
    position:fixed!important;
    left:calc(var(--g) + 16px)!important;
    right:calc(var(--g) + 16px)!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    bottom:calc(var(--g) + env(safe-area-inset-bottom))!important;
    padding:6px!important;
    box-sizing:border-box!important;
    border-radius:var(--r)!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    column-gap:0!important;
    align-items:stretch!important;
    justify-items:stretch!important;
  }
  .nav .barra > .voce,
  .nav.su-chiaro .barra > .voce {
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    justify-self:stretch!important;
    margin:0!important;
  }
  .nav .barra .cursore {border-radius:calc(var(--r) - 9px)!important;}
}
@media(max-width:355px) {
  .nav .barra,
  .nav.scorre .barra,
  .nav.su-chiaro .barra {
    left:calc(var(--g) + 10px)!important;
    right:calc(var(--g) + 10px)!important;
  }
}


/* Unified card-to-navbar shell, 2026-11-06.
   Exact var(--g) gutters across sections, top navigation and scroll dock. */
@media(min-width:761px){
 .nav .testa-top,.nav.scorre .testa-top{
   position:fixed!important;top:var(--g)!important;left:var(--g)!important;
   right:auto!important;width:calc(100vw - 2 * var(--g))!important;
   max-width:none!important;box-sizing:border-box!important;
   transform:none!important;padding-inline:clamp(18px,2.5vw,46px)!important;
   border-radius:var(--r)!important;
 }
 .nav.scorre .barra,.nav.su-chiaro.scorre .barra{
   position:fixed!important;top:var(--g)!important;bottom:auto!important;
   left:var(--g)!important;right:var(--g)!important;
   width:calc(100vw - 2 * var(--g))!important;max-width:none!important;
   margin:0!important;box-sizing:border-box!important;
   transform:translateY(0)!important;justify-content:center!important;
   border-radius:var(--r)!important;
 }
}
@media(max-width:760px){
 .nav .testa-top,.nav.scorre .testa-top{
   position:fixed!important;top:var(--g)!important;
   left:var(--g)!important;right:var(--g)!important;
   width:calc(100vw - 2 * var(--g))!important;max-width:none!important;
   box-sizing:border-box!important;margin:0!important;transform:none!important;
   border-radius:clamp(18px,5vw,var(--r))!important;
 }
 .nav .barra,.nav.scorre .barra,.nav.su-chiaro .barra{
   left:var(--g)!important;right:var(--g)!important;
   width:calc(100vw - 2 * var(--g))!important;max-width:none!important;
   bottom:calc(var(--g) + env(safe-area-inset-bottom))!important;
   box-sizing:border-box!important;
 }
}

/* Desktop: the scroll navigation is a floating dock at the bottom, like on
   mobile, instead of a full-width bar pinned to the top edge. */
@media(min-width:761px){
 .nav.scorre .barra,.nav.su-chiaro.scorre .barra{
   position:fixed!important;
   top:auto!important;
   bottom:calc(var(--g) + env(safe-area-inset-bottom))!important;
   left:0!important;right:0!important;
   margin:0 auto!important;
   width:max-content!important;max-width:calc(100vw - 2 * var(--g))!important;padding:6px 10px!important;
   transform:none!important;
   box-sizing:border-box!important;
   border-radius:var(--r)!important;
   justify-content:center!important;
 }
}

/* Desktop: the top header floats (more air above, a clear gap before the first
   panel) instead of sitting flush against the page edge and the hero. */
@media(min-width:761px){
 .nav:not(.scorre) .testa-top{
   top:6px!important;
   height:66px!important;
   box-shadow:0 14px 30px -16px rgba(3,8,40,.55)!important;
 }
}

/* Desktop menu mirrored on mobile (one centered column, no PNG brush). */
@media (max-width:760px) {
  #menu .m-corpo {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:visible !important;
  }
  #menu .m-corpo ol {
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    grid-template-rows:none !important;
    align-items:center !important;
    justify-content:center !important;
    width:min(100%,980px) !important;
    max-width:980px !important;
    height:auto !important;
    max-height:none !important;
    gap:clamp(3px,.55svh,9px) !important;
    margin:0 auto !important;
    padding:0 !important;
  }
  #menu .m-corpo ol > li,
  #menu .m-corpo ol > li:nth-child(n) {
    display:flex !important;
    flex:none !important;
    justify-content:center !important;
    align-items:center !important;
    width:100% !important;
    min-height:0 !important;
    height:auto !important;
    transform:none !important;
  }
  #menu .m-corpo ol > li > a {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    height:auto !important;
    text-align:center !important;
    min-height:clamp(42px,7.4svh,68px) !important;
    max-height:none !important;
    padding:0 8px !important;
    margin:0 !important;
    background:none !important;
    transform:none !important;
    animation:none !important;
  }
  #menu .m-corpo ol > li > a::before,
  #menu .m-corpo ol > li > a::after {
    content:none !important;
    display:none !important;
    background:none !important;
    animation:none !important;
  }
  #menu .m-corpo ol > li > a > span:not(.vfa-route-pin) {
    display:block !important;
    position:static !important;
    overflow:visible !important;
    clip-path:none !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    font:900 clamp(30px,9.4vw,57px)/1 Archivo,sans-serif !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
    color:#f7faff !important;
    transform:none !important;
  }
  #menu .m-corpo ol > li > a:is(.vfa-nav-active,[aria-current="page"]) > span:not(.vfa-route-pin) {
    color:#91bdff !important;
  }
  #menu .m-corpo ol > li > a:is(:hover,:focus-visible) > span:not(.vfa-route-pin) {
    color:#c7dfff !important;
  }
}

/* The same desktop overlay, fitted to phone viewports; the dock stays untouched. */
@media(max-width:760px){
  html #menu{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    gap:clamp(6px,1.5svh,16px)!important;
    padding:calc(10px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain;
  }
  html #menu .m-top{
    display:flex!important;flex:0 0 auto!important;align-items:center!important;
    width:100%!important;min-height:48px!important;height:auto!important;margin:0!important;
  }
  html #menu .m-top .chiudi-menu{
    width:48px!important;height:48px!important;min-width:48px!important;
    margin-left:auto!important;
  }
  html #menu .m-corpo {
    display:flex!important;flex:1 1 auto!important;
    align-items:center!important;justify-content:center!important;
    width:100%!important;min-height:0!important;margin:0!important;padding:0!important;
  }
  html #menu .m-corpo ol {
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;
    width:min(100%,980px)!important;margin:0 auto!important;
    gap:clamp(1px,.55svh,9px)!important;list-style:none!important;
  }
  html #menu .m-corpo ol>li,
  html #menu .m-corpo ol>li:nth-child(n) {
    display:flex!important;justify-content:center!important;align-items:center!important;
    width:100%!important;min-height:0!important;height:auto!important;
    transform:none!important;
  }
  html #menu .m-corpo ol>li>a {
    display:inline-flex!important;justify-content:center!important;align-items:center!important;
    width:auto!important;max-width:100%!important;min-height:clamp(42px,7.4svh,68px)!important;
    padding:0 7px!important;text-align:center!important;
    background:none!important;transform:none!important;animation:none!important;
  }
  html #menu .m-corpo ol>li>a::before,
  html #menu .m-corpo ol>li>a::after{
    display:none!important;content:none!important;background:none!important;animation:none!important;
  }
  html #menu .m-corpo ol>li>a>span:not(.vfa-route-pin){
    display:block!important;position:static!important;width:auto!important;height:auto!important;
    margin:0!important;padding:0!important;max-width:100%!important;
    font:900 clamp(30px,9.4vw,57px)/1 Archivo,sans-serif!important;
    font-stretch:var(--w62)!important;
    letter-spacing:-.035em!important;text-transform:uppercase!important;
    text-align:center!important;color:#f7faff!important;
    white-space:nowrap!important;clip-path:none!important;
    background:none!important;transform:none!important;
  }
  html #menu .m-corpo ol>li>a:is(.vfa-nav-active,[aria-current="page"])>span:not(.vfa-route-pin){
    color:#91bdff!important;
  }
  html #menu .m-corpo ol>li>a:is(:hover,:focus-visible)>span:not(.vfa-route-pin){
    color:#c7dfff!important;
  }
  html #menu .m-piede{
    flex:0 0 auto!important;display:flex!important;align-items:center!important;
    justify-content:center!important;margin:0!important;padding:0!important;
  }
  html #menu .m-soc{
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;
    justify-content:center!important;width:100%!important;max-width:100%!important;
    margin:0!important;gap:7px!important;
  }
  html #menu .m-soc>a.pill{
    display:inline-flex!important;flex:0 0 auto!important;min-height:38px!important;padding:0 11px!important;
  }
  html #menu .menu-lingue{
    display:flex!important;grid-column:auto!important;flex:0 0 auto!important;
    width:auto!important;margin:0!important;gap:6px!important;
  }
}
@media(max-width:760px) and (max-height:610px){
  html #menu{gap:4px!important;padding-top:calc(5px + env(safe-area-inset-top))!important;padding-bottom:calc(5px + env(safe-area-inset-bottom))!important;}
  html #menu .m-corpo ol{gap:0!important;}
  html #menu .m-corpo ol>li>a{min-height:38px!important;padding:1px 5px!important;}
  html #menu .m-corpo ol>li>a>span:not(.vfa-route-pin){font-size:clamp(28px,6.9svh,42px)!important;}
  html #menu .m-soc>a.pill{min-height:32px!important;}
}
@media(max-width:360px) {
  html #menu .m-corpo ol>li>a>span:not(.vfa-route-pin){font-size:clamp(27px,8.5vw,33px)!important;}
}


/* VFA mobile correction 2026-11-13: full paper header; the bottom dock stays unchanged. */
.vfa-mobile-section-title{display:none}
@media(max-width:760px){
  .nav .testa-top,
  .nav.scorre .testa-top,
  .nav.su-chiaro .testa-top{
    display:grid!important;
    grid-template-columns:minmax(74px,1fr) minmax(0,1.75fr) minmax(48px,1fr)!important;
    align-items:center!important;
    column-gap:6px!important;
    justify-content:initial!important;
    position:fixed!important;
    top:var(--g)!important;
    left:var(--g)!important;
    right:var(--g)!important;
    width:calc(100vw - 2 * var(--g))!important;
    height:64px!important;
    min-height:64px!important;
    padding:7px 9px 7px 13px!important;
    box-sizing:border-box!important;
    background:linear-gradient(rgba(249,250,253,.95),rgba(249,250,253,.95)),url("/v3/img/carta-grigia.webp") 0 0 / 256px repeat!important;
    border:1px solid rgba(11,42,140,.13)!important;
    border-radius:22px!important;
    box-shadow:inset 0 1px 0 #fff,0 14px 27px -16px rgba(3,8,40,.55)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .nav .testa-top .mark-top{
    display:inline-flex!important;
    grid-column:1!important;
    align-items:center!important;
    justify-content:flex-start!important;
    justify-self:start!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    background:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .nav .testa-top .mark-top .logo-anim,
  .nav .testa-top .mark-top svg{
    display:block!important;
    width:auto!important;
    height:37px!important;
    max-width:82px!important;
  }
  .nav .testa-top .link-top{display:none!important}
  .nav .testa-top .vfa-mobile-section-title{
    display:block!important;
    grid-column:2!important;
    justify-self:stretch!important;
    min-width:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
    color:#0b2a8c!important;
    font:900 clamp(11px,3.25vw,14px)/1.1 Archivo,Arial,sans-serif!important;
    font-stretch:78%!important;
    text-transform:uppercase!important;
    letter-spacing:-.035em!important;
    text-align:center!important;
  }
  /* The original SVG's white letters had no contrast on the paper header. */
  .nav .testa-top .mark-top .logo-anim .lp,
  .nav.scorre .testa-top .mark-top .logo-anim .lp{
    fill:#0b2a8c!important;
  }
  .nav .testa-top .mark-top .logo-anim .lfondo{
    display:none!important;
  }
  .nav .testa-top .soc,
  .nav.su-chiaro .testa-top .soc{
    display:flex!important;
    grid-column:3!important;
    justify-self:end!important;
    justify-content:flex-end!important;
    align-items:center!important;
    min-width:48px!important;
    width:48px!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    color:#0b2a8c!important;
  }
  .nav .testa-top .soc > a,
  .nav .testa-top .soc > b{display:none!important}
  .nav .testa-top .menu-btn2,
  .nav.scorre .testa-top .menu-btn2,
  .nav.su-chiaro .testa-top .menu-btn2{
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    min-height:48px!important;
    padding:0!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
    background:rgba(11,42,140,.065)!important;
    border:1px solid rgba(11,42,140,.12)!important;
    border-radius:15px!important;
    box-shadow:none!important;
    color:#0b2a8c!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .nav .testa-top .menu-btn2 i,
  .nav .testa-top .menu-btn2 i::before,
  .nav .testa-top .menu-btn2 i::after{
    display:block!important;
    background:#0b2a8c!important;
  }
  /* Preserve the original 70px scroll threshold controlled by site JS. */
  .nav:not(.scorre) .testa-top{opacity:1!important;pointer-events:auto!important}
  .nav.scorre .testa-top{opacity:0!important;pointer-events:none!important}
}
@media(max-width:760px){
  /* Move the identity plaque into normal flow, below the portrait, not across the arms. */
  body[data-pagina="home"] .s-make{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-end!important;
    padding-bottom:clamp(22px,4svh,42px)!important;
  }
  body[data-pagina="home"] .s-make .persona{
    align-self:center!important;
    margin-bottom:0!important;
    flex:none!important;
    max-width:100%!important;
  }
  body[data-pagina="home"] .s-make .piede-make{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    z-index:4!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:9px!important;
    width:min(100%,420px)!important;
    max-width:calc(100% - 8px)!important;
    min-width:0!important;
    margin:14px auto 0!important;
    padding:12px 16px!important;
    white-space:normal!important;
    text-align:center!important;
    border-radius:20px!important;
    font-size:clamp(11px,2.9vw,13px)!important;
  }
  body[data-pagina="home"] .s-make .piede-make > span:first-child{
    max-width:100%!important;
    line-height:1.3!important;
    text-wrap:balance;
  }
  body[data-pagina="home"] .s-make .piede-make .chi{
    justify-content:center!important;
    min-width:0!important;
    max-width:100%!important;
    padding:4px 12px 4px 4px!important;
    white-space:nowrap!important;
    font-size:clamp(12px,3.35vw,15px)!important;
  }
  body[data-pagina="home"] .s-make .piede-make .chi img{
    flex:none!important;
    width:32px!important;
    height:32px!important;
  }
}


/* VFA desktop profile (2026-11-18): retain the original layout but reduce
   portrait compositing and repaint work. Tablet and touch layouts are untouched. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  body[data-pagina="home"] .s-make {
    isolation: isolate;
    contain: layout paint;
  }
  body[data-pagina="home"] .s-make .persona img {
    /* Three shadows instead of eight costly full-size filtered passes. */
    filter: drop-shadow(0 0 2px #fff)
            drop-shadow(0 0 5px var(--brand-soft))
            drop-shadow(0 14px 20px rgba(10, 15, 31, .22));
    backface-visibility: hidden;
  }
  body[data-pagina="home"] .s-make .post-it {
    background: #fff;
    color: var(--brand-deep, #0b2a8c);
  }
  body[data-pagina="home"] .s-make .post-it::before {
    background: radial-gradient(circle at 35% 30%, #6ba8ff 0%, #2462d8 44%, #0b2a8c 100%);
    box-shadow: 0 3px 6px rgba(11, 42, 140, .27);
  }
}


/* VFA 2026-11-18 | Integrated header across every portfolio page, desktop with mouse only.
   GLAMOOD composition: logo left / truly centered links / actions right.
   Tablet, mobile and the scrolled bottom dock are unchanged. */
@media (min-width:1024px) and (hover:hover) and (pointer:fine) {
  body {padding-top:0!important}

  body .nav:not(.scorre) .testa-top {
    --head-contrast:#fff;
    --head-shadow:rgba(2,12,36,.58);
    position:fixed!important;
    top:var(--g)!important;
    left:0!important;
    right:0!important;
    transform:none!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:clamp(14px,1.7vw,28px)!important;
    width:100%!important;
    max-width:none!important;
    height:clamp(78px,7vw,96px)!important;
    padding:0 clamp(30px,4.5vw,74px)!important;
    margin:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border:0!important;
    border-radius:0!important;
    overflow:visible!important;
    isolation:auto!important;
  }
  body .nav.su-chiaro:not(.scorre) .testa-top {
    --head-contrast:var(--brand-deep,#0b2a8c);
    --head-shadow:rgba(255,255,255,.65);
  }
  body .nav:not(.scorre) .testa-top::before,
  body .nav:not(.scorre) .testa-top::after {
    content:none!important;
    display:none!important;
  }
  body .nav:not(.scorre) .testa-top .mark-top {
    grid-column:1!important;
    justify-self:start!important;
    align-self:center!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
  }
  body .nav:not(.scorre) .testa-top .mark-top .logo-anim {
    height:clamp(54px,4.7vw,68px)!important;
    width:auto!important;
    max-width:none!important;
    overflow:visible!important;
  }
  body .nav:not(.scorre) .mark-top .lp {
    fill:var(--head-contrast)!important;
  }
  body .nav:not(.scorre) .testa-top .link-top {
    grid-column:2!important;
    display:flex!important;
    justify-self:center!important;
    justify-content:center!important;
    align-items:center!important;
    gap:clamp(14px,1.8vw,30px)!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a {
    position:relative!important;
    background:none!important;
    color:var(--head-contrast)!important;
    font:800 clamp(16px,1.28vw,19px)/1.15 Archivo,Montserrat,sans-serif!important;
    letter-spacing:-.018em!important;
    font-stretch:90%!important;
    text-transform:none!important;
    text-align:center!important;
    white-space:nowrap!important;
    text-shadow:0 2px 11px var(--head-shadow)!important;
    border-radius:6px!important;
    padding:12px 0!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a::after {
    left:0!important;
    right:0!important;
    bottom:5px!important;
    height:2px!important;
    background:var(--head-contrast)!important;
    opacity:.95!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a:hover {
    opacity:.78;
  }
  body .nav:not(.scorre) .testa-top .soc,
  body .nav.su-chiaro:not(.scorre) .testa-top .soc {
    grid-column:3!important;
    display:flex!important;
    justify-self:end!important;
    justify-content:flex-end!important;
    align-items:center!important;
    gap:6px!important;
    margin:0!important;
    min-width:0!important;
    color:var(--head-contrast)!important;
  }
  body .nav:not(.scorre) .testa-top .soc a {
    display:grid!important;
    place-items:center!important;
    width:40px!important;
    height:40px!important;
    color:var(--head-contrast)!important;
    border-radius:12px!important;
  }
  body .nav:not(.scorre) .testa-top .soc a svg {
    width:19px!important;
    height:19px!important;
    filter:drop-shadow(0 1px 5px var(--head-shadow));
  }
  body .nav:not(.scorre) .testa-top .soc a:hover {
    background:color-mix(in srgb,var(--head-contrast) 11%,transparent);
  }
  body .nav:not(.scorre) .testa-top .soc b {
    display:none!important;
  }
  body .nav:not(.scorre) .testa-top .menu-btn2 {
    display:grid!important;
    place-items:center!important;
    flex:none!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    min-height:48px!important;
    margin:0 0 0 4px!important;
    background:color-mix(in srgb,var(--head-contrast) 13%,transparent)!important;
    color:var(--head-contrast)!important;
    border:1px solid color-mix(in srgb,var(--head-contrast) 30%,transparent)!important;
    border-radius:16px!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body .nav:not(.scorre) .testa-top .menu-btn2 i,
  body .nav:not(.scorre) .testa-top .menu-btn2 i::before,
  body .nav:not(.scorre) .testa-top .menu-btn2 i::after {
    background:currentColor!important;
  }
}
@media (min-width:1024px) and (max-width:1279px) and (hover:hover) and (pointer:fine) {
  body .nav:not(.scorre) .testa-top {
    column-gap:12px!important;
    padding-inline:clamp(20px,3vw,38px)!important;
  }
  body .nav:not(.scorre) .testa-top .link-top {
    gap:clamp(9px,1.15vw,15px)!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a {
    font-size:clamp(15px,1.45vw,17px)!important;
  }
  body .nav:not(.scorre) .testa-top .soc>a {
    display:none!important;
  }
}

/* Header contrast: the first section is authoritative, including the
   light case-study and the editorial 'Chi sono' first screen. */
@media (min-width:1024px) and (hover:hover) and (pointer:fine) {
  body:has(main > .schermo:first-child:is([data-chiaro],.d-caso))
    .nav:not(.scorre) .testa-top {
    --head-contrast:var(--brand-deep,#0b2a8c);
    --head-shadow:rgba(255,255,255,.7);
  }
}


/* VFA 2026-11-18 | Desktop top navigation: clean white active chip.
   Dark hero photography takes priority over .su-chiaro, which can describe
   the page body rather than the image directly behind the navigation. */
@media (min-width:1024px) and (hover:hover) and (pointer:fine) {
  /* Photographic first panels, especially Chi sono and experience details. */
  body:has(main > .schermo:first-child:is(.s-haven,.d-testa.foto))
    .nav:not(.scorre) .testa-top,
  body:has(main > .schermo:first-child:is(.s-haven,.d-testa.foto))
    .nav.su-chiaro:not(.scorre) .testa-top {
    --head-contrast:#fff;
    --head-shadow:rgba(0,8,28,.85);
  }

  /* Match the actual background while keeping the headline navigable. */
  body .nav:not(.scorre) .testa-top .link-top {
    gap:clamp(6px,.9vw,16px)!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a {
    color:var(--head-contrast)!important;
    font-size:clamp(16px,1.2vw,19px)!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:.008em!important;
    text-align:center!important;
    text-shadow:0 2px 9px var(--head-shadow)!important;
    padding:10px 6px!important;
    border:1px solid transparent!important;
    border-radius:12px!important;
    box-shadow:none!important;
    opacity:1!important;
  }

  /* No underline, neither on hover nor the selected link. */
  body .nav:not(.scorre) .testa-top .link-top a::after,
  body .nav:not(.scorre) .testa-top .link-top a:hover::after,
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"]::after {
    content:none!important;
    display:none!important;
    transform:none!important;
    border:0!important;
    background:none!important;
  }

  /* Small white card stays legible on dark photos and on pale sections. */
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"],
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"]:hover,
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"]:focus-visible {
    background:#fff!important;
    color:#0b2a8c!important;
    border:1px solid rgba(11,42,140,.15)!important;
    border-radius:12px!important;
    padding:10px 13px!important;
    box-shadow:0 5px 18px rgba(0,11,36,.2)!important;
    text-shadow:none!important;
    opacity:1!important;
  }
}
@media (min-width:1024px) and (max-width:1279px) and (hover:hover) and (pointer:fine) {
  body .nav:not(.scorre) .testa-top .link-top {gap:5px!important}
  body .nav:not(.scorre) .testa-top .link-top a {
    font-size:clamp(14px,1.42vw,16px)!important;
    padding-inline:5px!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"] {
    padding-inline:10px!important;
  }
}


/* 2026-11-19 | Tablet navigation parity with desktop (761–1023px and
   larger touch tablets). Never changes phone widths or mouse desktops. */
@media (min-width:761px) and (max-width:1023px),
       (min-width:1024px) and (hover:none) and (pointer:coarse) {
  body:not(.lk-body) {padding-top:0!important}

  body .nav:not(.scorre) .testa-top {
    --tablet-head-fg:#fff;
    --tablet-head-shadow:rgba(1,11,32,.78);
    display:grid!important;
    grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)!important;
    align-items:center!important;
    gap:clamp(4px,.8vw,12px)!important;
    position:fixed!important;
    top:var(--g)!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:none!important;
    height:clamp(70px,8vw,84px)!important;
    padding:0 clamp(14px,2.5vw,32px)!important;
    margin:0!important;
    transform:none!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
    isolation:auto!important;
  }
  body .nav:not(.scorre) .testa-top::before,
  body .nav:not(.scorre) .testa-top::after {
    content:none!important;display:none!important;
  }
  body .nav.su-chiaro:not(.scorre) .testa-top,
  body:has(main > .schermo:first-child:is([data-chiaro],.d-caso))
      .nav:not(.scorre) .testa-top {
    --tablet-head-fg:var(--brand-deep,#0b2a8c);
    --tablet-head-shadow:rgba(255,255,255,.72);
  }
  /* The photography itself, not the page's outer paper, decides contrast. */
  body:has(main > .schermo:first-child:is(.s-haven,.d-testa.foto))
      .nav:not(.scorre) .testa-top,
  body:has(main > .schermo:first-child:is(.s-haven,.d-testa.foto))
      .nav.su-chiaro:not(.scorre) .testa-top {
    --tablet-head-fg:#fff;
    --tablet-head-shadow:rgba(0,8,28,.88);
  }
  body .nav:not(.scorre) .testa-top .mark-top {
    grid-column:1!important;
    justify-self:start!important;
    align-self:center!important;
    margin:0!important;padding:0!important;
    min-width:0!important;
  }
  body .nav:not(.scorre) .testa-top .mark-top .logo-anim {
    width:auto!important;
    height:clamp(40px,5.4vw,52px)!important;
    max-width:none!important;
  }
  body .nav:not(.scorre) .testa-top .mark-top .lp {
    fill:var(--tablet-head-fg)!important;
  }

  body .nav:not(.scorre) .testa-top .link-top {
    grid-column:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:center!important;
    flex-wrap:nowrap!important;
    min-width:0!important;
    width:max-content!important;
    max-width:none!important;
    margin:0!important;
    gap:clamp(3px,.65vw,8px)!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a,
  body .nav.su-chiaro:not(.scorre) .testa-top .link-top a {
    color:var(--tablet-head-fg)!important;
    background:transparent!important;
    font:800 clamp(13px,1.48vw,16px)/1.15 Archivo,Montserrat,sans-serif!important;
    font-stretch:90%!important;
    letter-spacing:-.018em!important;
    text-transform:uppercase!important;
    text-align:center!important;
    white-space:nowrap!important;
    text-shadow:0 2px 10px var(--tablet-head-shadow)!important;
    padding:9px 3px!important;
    margin:0!important;
    border:1px solid transparent!important;
    border-radius:11px!important;
    box-shadow:none!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a::after,
  body .nav:not(.scorre) .testa-top .link-top a:hover::after,
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"]::after {
    display:none!important;
    content:none!important;
    transform:none!important;
    background:none!important;
    border:0!important;
  }
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"],
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"]:hover,
  body .nav:not(.scorre) .testa-top .link-top a[aria-current="page"]:focus-visible {
    color:#0b2a8c!important;
    background:#fff!important;
    text-shadow:none!important;
    padding:9px 10px!important;
    border:1px solid rgba(11,42,140,.15)!important;
    border-radius:11px!important;
    box-shadow:0 5px 14px rgba(0,11,36,.2)!important;
    opacity:1!important;
  }
  body .nav:not(.scorre) .testa-top .soc,
  body .nav.su-chiaro:not(.scorre) .testa-top .soc {
    grid-column:3!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    justify-self:end!important;
    gap:4px!important;
    margin:0!important;
    min-width:0!important;
    color:var(--tablet-head-fg)!important;
  }
  body .nav:not(.scorre) .testa-top .soc > a,
  body .nav:not(.scorre) .testa-top .soc > b {display:none!important}
  body .nav:not(.scorre) .testa-top .menu-btn2 {
    display:grid!important;
    place-items:center!important;
    width:44px!important;height:44px!important;
    min-width:44px!important;min-height:44px!important;
    margin:0!important;
    color:var(--tablet-head-fg)!important;
    background:color-mix(in srgb,var(--tablet-head-fg) 12%,transparent)!important;
    border:1px solid color-mix(in srgb,var(--tablet-head-fg) 28%,transparent)!important;
    border-radius:14px!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body .nav:not(.scorre) .testa-top .menu-btn2 i,
  body .nav:not(.scorre) .testa-top .menu-btn2 i::before,
  body .nav:not(.scorre) .testa-top .menu-btn2 i::after {
    background:currentColor!important;
  }
}
@media (min-width:1024px) and (hover:none) and (pointer:coarse) {
  body .nav:not(.scorre) .testa-top .link-top a {
    font-size:clamp(15px,1.4vw,18px)!important;
    padding-inline:6px!important;
  }
}


/* VFA 2026-11-21 | Phone integrated navigation, matching desktop/tablet.
   Left hamburger, centered page-name chip, right VFA logo.
   The lower scroll dock and larger breakpoints remain unchanged. */
@media (max-width:760px) {
  body .nav:not(.scorre) .testa-top {
    --phone-ink:#fff;
    --phone-shadow:rgba(0,9,35,.82);
    position:fixed!important;
    display:grid!important;
    grid-template-columns:minmax(68px,1fr) minmax(0,2.1fr) minmax(68px,1fr)!important;
    align-items:center!important;
    justify-content:normal!important;
    column-gap:6px!important;
    top:calc(var(--g) + env(safe-area-inset-top) + 5px)!important;
    left:var(--g)!important;
    right:var(--g)!important;
    width:calc(100vw - 2 * var(--g))!important;
    height:64px!important;
    min-height:64px!important;
    padding:0 8px!important;
    transform:none!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    isolation:auto!important;
    overflow:visible!important;
  }
  body .nav:not(.scorre) .testa-top::before,
  body .nav:not(.scorre) .testa-top::after {
    content:none!important;display:none!important;
  }
  body .nav.su-chiaro:not(.scorre) .testa-top,
  body:has(main > .schermo:first-child:is([data-chiaro],.d-caso))
    .nav:not(.scorre) .testa-top {
    --phone-ink:#0b2a8c;
    --phone-shadow:rgba(255,255,255,.65);
  }
  /* The image in the opening section overrides its light outer frame. */
  body:has(main > .schermo:first-child:is(.s-haven,.d-testa.foto))
    .nav:not(.scorre) .testa-top,
  body:has(main > .schermo:first-child:is(.s-haven,.d-testa.foto))
    .nav.su-chiaro:not(.scorre) .testa-top {
    --phone-ink:#fff;
    --phone-shadow:rgba(0,7,22,.9);
  }

  /* Move existing elements with CSS grid, keep their links and JS actions. */
  body .nav:not(.scorre) .testa-top .soc,
  body .nav.su-chiaro:not(.scorre) .testa-top .soc {
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    justify-content:flex-start!important;
    align-items:center!important;
    width:48px!important;
    min-width:48px!important;
    margin:0!important;
    padding:0!important;
    color:var(--phone-ink)!important;
    gap:0!important;
  }
  body .nav:not(.scorre) .testa-top .soc>a,
  body .nav:not(.scorre) .testa-top .soc>b {
    display:none!important;
  }
  body .nav:not(.scorre) .testa-top .menu-btn2,
  body .nav.su-chiaro:not(.scorre) .testa-top .menu-btn2 {
    display:grid!important;
    place-items:center!important;
    width:46px!important;height:46px!important;
    min-width:46px!important;min-height:46px!important;
    padding:0!important;margin:0!important;
    background:color-mix(in srgb,var(--phone-ink) 11%,transparent)!important;
    color:var(--phone-ink)!important;
    border:1px solid color-mix(in srgb,var(--phone-ink) 28%,transparent)!important;
    border-radius:14px!important;
    box-shadow:0 2px 12px rgba(0,8,28,.12)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body .nav:not(.scorre) .testa-top .menu-btn2 i,
  body .nav:not(.scorre) .testa-top .menu-btn2 i::before,
  body .nav:not(.scorre) .testa-top .menu-btn2 i::after {
    background:currentColor!important;
  }

  /* The title is a small, self-contained white chip, always centered. */
  body .nav:not(.scorre) .testa-top .vfa-mobile-section-title {
    display:block!important;
    grid-column:2!important;
    grid-row:1!important;
    justify-self:center!important;
    align-self:center!important;
    box-sizing:border-box!important;
    width:max-content!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:10px clamp(8px,2.2vw,12px)!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    text-align:center!important;
    font:900 clamp(11px,3.3vw,14px)/1.12 Archivo,Montserrat,sans-serif!important;
    font-stretch:75%!important;
    letter-spacing:-.035em!important;
    text-transform:uppercase!important;
    color:#0b2a8c!important;
    background:#fff!important;
    border:1px solid rgba(11,42,140,.16)!important;
    border-radius:12px!important;
    box-shadow:0 5px 15px rgba(0,9,35,.18)!important;
    text-shadow:none!important;
  }

  /* Visually large VFA letters, clipped within their right-hand slot. */
  body .nav:not(.scorre) .testa-top .mark-top {
    display:flex!important;
    grid-column:3!important;
    grid-row:1!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:end!important;
    width:min(78px,100%)!important;
    height:48px!important;
    min-height:0!important;
    padding:0!important;margin:0!important;
    overflow:hidden!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body .nav:not(.scorre) .testa-top .mark-top .logo-anim,
  body .nav:not(.scorre) .testa-top .mark-top svg {
    display:block!important;
    flex:0 0 108px!important;
    width:108px!important;
    max-width:none!important;
    height:50px!important;
    max-height:none!important;
    transform:scale(1.08)!important;
    transform-origin:center!important;
    overflow:visible!important;
  }
  body .nav:not(.scorre) .testa-top .mark-top .lp,
  body .nav.su-chiaro:not(.scorre) .testa-top .mark-top .lp {
    fill:var(--phone-ink)!important;
    filter:drop-shadow(0 1px 4px var(--phone-shadow));
  }
  body .nav:not(.scorre) .testa-top .mark-top .lfondo {
    display:none!important;
  }
}


/* 2026-11-21 | Phone: no top header. Only the existing bottom navbar
   (which appears after the normal scroll threshold) provides navigation.
   Desktop and tablet are intentionally untouched. */
@media (max-width:760px) {
  body .nav .testa-top,
  body .nav.scorre .testa-top,
  body .nav.su-chiaro .testa-top,
  body .nav:not(.scorre) .testa-top {
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}


/* 2026-11-24: prevent the first iOS scroll from stalling the page paint.
   The dock stays hidden at the top and enters without the former overshoot. */
@media (max-width:760px) {
  body { background-attachment:scroll !important; }
  .nav .barra,
  .nav.scorre .barra,
  .nav:not(.scorre) .barra {
    transition:transform .38s cubic-bezier(.22,1,.36,1),opacity .24s ease !important;
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
    will-change:transform,opacity;
  }
}
@media (prefers-reduced-motion:reduce) {
  .nav .barra,
  .nav.scorre .barra,
  .nav:not(.scorre) .barra {
    transition:none !important;
  }
}
