:root{
  --navy:#0b1526;
  --navy-2:#101d33;
  --blue:#1E2536;
  --blue-hover:#151b29;
  --ink:#182233;
  --grey:#5b6575;
  --line:#e6e9ef;
  --bg:#ffffff;
  --bg-soft:#f5f7fa;
  --radius:10px;
  --maxw:1560px;
  --gutter:clamp(20px,4vw,72px);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-y:scroll;scrollbar-gutter:stable}
body{font-family:'Inter',system-ui,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip}
/* height:auto è essenziale: gli <img> portano gli attributi width/height (per il CLS),
   ma senza height:auto, quando max-width:100% restringe la larghezza sul mobile,
   l'altezza resta quella fissa dell'attributo e l'immagine si stira. Le regole per
   classe che impostano un'altezza (loghi, .feature, .team-photo, .tile) hanno
   specificità maggiore e restano valide. */
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
/* .wrap is the page's only gutter: it owns max-width, centering and side padding.
   A class sharing an element with it (.hero-content, .stats-grid) must set padding
   with longhands, or the shorthand wipes the gutter and text hits the screen edge.
   Inside a flex parent that element also needs width:100% — see .page-hero. */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin-bottom:14px}
h2.section-title{font-size:clamp(26px,3.4vw,40px);font-weight:700;line-height:1.15;letter-spacing:-.01em;max-width:680px}
.section{padding:88px 0}
.center{text-align:center}
.center .section-title,.center p{margin-left:auto;margin-right:auto}
.lede{color:var(--grey);margin-top:16px;max-width:640px;font-size:16.5px}
.prose{max-width:960px;margin:0 auto}
.prose .section-title{margin-bottom:24px}
.prose p{color:var(--grey);font-size:16.5px;line-height:1.7;margin:0 0 18px}
.prose p:last-child{margin-bottom:0}
/* Long-form legal / policy text (Privacy, Imprint) */
.prose h2{font-size:22px;font-weight:700;color:var(--ink);margin:40px 0 14px;letter-spacing:-.01em}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:17px;font-weight:700;color:var(--ink);margin:24px 0 8px}
.prose ul{margin:0 0 18px;padding-left:22px;color:var(--grey);font-size:16.5px;line-height:1.7}
.prose li{margin-bottom:8px}
.prose a{color:var(--blue);font-weight:500}
.prose strong{color:var(--ink)}
.prose .legal-updated{font-size:14px;color:var(--grey);margin-bottom:32px}
.prose address{font-style:normal;color:var(--grey);font-size:16.5px;line-height:1.7}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 28px;border-radius:4px;font-weight:500;font-size:15.5px;transition:all .2s ease;cursor:pointer;border:none;font-family:inherit}
/* Primary = solid navy on light backgrounds (refined, not electric blue) */
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:#1b2c4b;transform:translateY(-1px)}
.btn-outline{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55)}
.btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.btn-outline-dark{background:transparent;color:var(--navy);border:1.5px solid var(--navy)}
.btn-outline-dark:hover{background:var(--navy);color:#fff}
/* On dark backgrounds the primary flips to a solid light button */
.hero .btn-primary,.page-hero .btn-primary,.platform .btn-primary,.dark-section .btn-primary,.mobile-menu .btn-primary{background:#fff;color:var(--navy)}
.hero .btn-primary:hover,.page-hero .btn-primary:hover,.platform .btn-primary:hover,.dark-section .btn-primary:hover,.mobile-menu .btn-primary:hover{background:#e6eaf2;color:var(--navy)}
.link-arrow{color:var(--blue);font-weight:600;display:inline-flex;align-items:center;gap:6px}
.link-arrow:hover{gap:10px}
/* Reserve a fixed 1em box for every icon and clip its overflow, so the ligature
   text (e.g. "arrow_drop_down", "menu") can't be laid out at fallback-font width
   before the Material Symbols font loads. Without this the nav briefly renders
   much wider and snaps back the instant the icon font arrives. */
.material-symbols-outlined{display:inline-flex;align-items:center;justify-content:center;width:1em;flex-shrink:0;overflow:hidden;line-height:1;white-space:nowrap}
.link-arrow .material-symbols-outlined{transition:transform .2s;font-size:20px}

/* ===== NAV ===== */
header.site-header{position:fixed;top:0;left:0;right:0;z-index:100;transition:background .3s ease, box-shadow .3s ease}
header.site-header.scrolled{background:var(--blue);box-shadow:0 2px 16px rgba(0,0,0,.25)}
.nav{display:flex;align-items:center;gap:40px;height:88px;color:#fff;max-width:none;padding:0 clamp(20px,2.5vw,48px)}
/* Fluid logo: scales smoothly between phones and desktop instead of hard-stepping at a
   single breakpoint. Flat 56px on wide screens, floors at 34px on small ones. */
.nav .logo img{height:clamp(34px,5.2vw,56px);width:auto}
.nav-links{display:flex;align-items:center;gap:26px;font-size:14.5px;font-weight:500;flex:1}
.nav-item{position:relative;padding:26px 0;cursor:pointer;display:flex;align-items:center;gap:2px;opacity:.92;white-space:nowrap}
.nav-item:hover{opacity:1}
.nav-item .material-symbols-outlined{font-size:18px}
.dropdown{position:absolute;top:100%;left:-14px;background:#fff;color:var(--ink);border-radius:8px;box-shadow:0 12px 40px rgba(10,20,40,.18);padding:8px;min-width:210px;opacity:0;visibility:hidden;transform:translateY(8px);transition:all .2s ease}
.nav-item:hover .dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{display:block;padding:10px 14px;border-radius:6px;font-weight:500;white-space:nowrap}
.dropdown a:hover{background:var(--bg-soft);color:var(--blue)}
.nav-cta{display:flex;align-items:center;gap:14px;margin-left:auto}
/* min-width reserves room for the longer Italian labels ("Accedi"/"Registrati") so
   switching language doesn't resize the buttons and shove the language switch. */
.nav-cta .login{font-weight:500;font-size:15px;padding:11px 26px;border:1.5px solid rgba(255,255,255,.8);border-radius:4px;transition:all .2s;display:inline-flex;align-items:center;justify-content:center;min-width:104px}
.nav-cta .login:hover{background:rgba(255,255,255,.12);border-color:#fff}
.nav-cta .btn{padding:11px 26px;font-size:15px;border-radius:4px;background:#fff;color:var(--ink);font-weight:500;min-width:138px}
.nav-cta .btn:hover{background:#e8ecf5;transform:none}
/* ===== LANGUAGE SWITCH (IT / EN) ===== */
.lang-switch{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;letter-spacing:.04em}
.lang-switch .lang-opt{background:none;border:0;padding:4px 2px;color:#fff;opacity:.6;font:inherit;cursor:pointer;transition:opacity .2s;-webkit-tap-highlight-color:transparent}
.lang-switch .lang-opt:hover{opacity:.9}
.lang-switch .lang-opt.active{opacity:1;text-decoration:underline;text-underline-offset:4px}
.lang-switch .lang-sep{opacity:.4;color:#fff}
/* Mobile-menu variant: bigger tap targets, sits under the logo row. */
.mobile-menu .mm-lang{margin:4px 0 8px;gap:10px;font-size:15px}
.mobile-menu .mm-lang .lang-opt{padding:8px 4px}
.hamburger{display:none;background:none;border:none;color:#fff;cursor:pointer;padding:8px;margin:-8px;-webkit-tap-highlight-color:transparent}
.hamburger .material-symbols-outlined{font-size:30px;display:block}
.mobile-menu{position:fixed;inset:0;background:var(--navy);z-index:200;padding:24px;display:none;flex-direction:column;color:#fff;overflow-y:auto}
.mobile-menu.open{display:flex}
.mobile-menu .top{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}
.mobile-menu .top img{height:32px}
/* :not(.btn) keeps this row styling off the CTAs — it outranks .btn on specificity,
   and would otherwise flatten them into left-aligned rows with a stray bottom rule. */
.mobile-menu a:not(.btn){display:block;padding:14px 0;font-size:17px;font-weight:500;border-bottom:1px solid rgba(255,255,255,.1)}
.mobile-menu .group-label{margin-top:18px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;opacity:.55}
.mobile-menu .mm-cta{display:flex;gap:12px;margin-top:28px;padding-bottom:8px}
.mobile-menu .mm-cta .btn{flex:1;padding:15px 20px}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero{position:relative;min-height:100vh;display:flex;align-items:center;color:#fff;background:var(--navy)}
.page-hero.tall{min-height:100vh}
/* no-repeat is a guard, not decoration: any page that overrides background-size
   with a non-covering value (e.g. `100% auto`) leaves the box unfilled at some
   viewport and CSS would tile a second copy of the photo by default. */
.page-hero .hero-bg{position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat}
.page-hero .hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,rgba(8,16,32,.88) 0%,rgba(8,16,32,.62) 55%,rgba(8,16,32,.35) 100%)}
/* width:100% is load-bearing: .page-hero is a flex container, so without it this
   item shrink-to-fits its text and .wrap's `margin:0 auto` centers the whole
   column away from the page edge (worse the wider the screen). */
.page-hero .hero-content{position:relative;z-index:2;width:100%;padding-top:170px;padding-bottom:110px}
.page-hero .hero-eyebrow{font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#9db4ff;margin-bottom:16px}
.page-hero h1{font-size:clamp(28px,5vw,52px);font-weight:700;line-height:1.2;letter-spacing:-.01em;margin-bottom:20px;max-width:820px}
.page-hero .sub{font-size:clamp(16px,2.4vw,21px);opacity:.9;margin-bottom:34px;max-width:600px}

/* ===== STATS ===== */
.stats{background:var(--navy-2);color:#fff;padding:44px 0}
.stats.light{background:var(--bg-soft);color:var(--ink)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
/* [data-stats] marks the shared 6-figure track-record grid (site.js injects it) —
   scoped by attribute so amc.html's own unrelated 4-figure block (AMC
   terms, no data-stats) keeps its 4-column layout untouched. */
.stats-grid[data-stats]{grid-template-columns:repeat(3,1fr)}
.stat .num{font-size:clamp(28px,3vw,40px);font-weight:800;letter-spacing:-.01em}
.stats.light .stat .num{color:var(--blue)}
.stat .lbl{font-size:14px;opacity:.7;margin-top:4px}

/* ===== SPLIT ===== */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(48px,6vw,110px);align-items:center}
.split.reverse .txt{order:2}
.split.reverse .media{order:1}
.split p{color:var(--grey);margin:18px 0 26px;font-size:16.5px;max-width:520px}
.split ul{color:var(--grey);margin:18px 0 26px 20px;font-size:16.5px;max-width:520px}
.split ul li{margin-bottom:10px}
.split .media img{border-radius:var(--radius)}
.chart-note{font-size:12.5px;color:var(--grey);margin-top:10px}
.dark-section{background:var(--navy);color:#fff}
.dark-section p,.dark-section ul{color:rgba(255,255,255,.75)}
.dark-section .eyebrow{color:#9db4ff}

/* ===== FEATURE GRID (cards with image + title + text) ===== */
.grid-head{max-width:680px;margin-bottom:52px}
.grid-head p{color:var(--grey);margin-top:16px}
.grid-head.right{margin-left:auto;text-align:right}
.grid-head.right .section-title{margin-left:auto}
/* grey background for alternating sections */
.section.alt{background:var(--bg-soft)}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.feature-grid.cols-2{grid-template-columns:repeat(2,1fr)}
.feature-grid.cols-3{grid-template-columns:repeat(3,1fr)}
.feature{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:box-shadow .25s,transform .25s;display:flex;flex-direction:column}
.feature:hover{box-shadow:0 14px 40px rgba(10,20,40,.1);transform:translateY(-4px)}
.feature img{height:170px;object-fit:cover;width:100%}
.feature-fig{height:170px;background:#edf1f8;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--line)}
.feature-fig svg{width:62%;height:auto;display:block}
.feature .body{padding:22px}
.feature .step-tag{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:8px}
.feature h3{font-size:18px;font-weight:700;margin-bottom:8px;line-height:1.3}
.feature p{color:var(--grey);font-size:14.5px}

/* ===== TEAM GRID ===== */
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin:52px auto 0;max-width:1280px;text-align:center}
/* The portraits are shot on white, so without a frame they read as bodies floating
   on the page and sliced off at the arms. The hairline matches the other cards. */
.team-photo{aspect-ratio:1/1;border-radius:var(--radius);overflow:hidden;background:var(--bg-soft);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.team-photo img{width:100%;height:100%;object-fit:cover}
.team-photo .material-symbols-outlined{font-size:64px;color:#c2c9d6}
.team-card .name{font-weight:700;font-size:17px;margin-top:16px;display:flex;align-items:center;justify-content:center;gap:7px}
.team-card .role{color:var(--grey);font-size:14.5px;margin-top:2px}

/* --- Flip: portrait on the front, background notes on the back. Only cards that
   actually carry a .team-flip are affected, so a plain .team-photo still works. --- */
.team-photo:has(.team-flip){perspective:900px}
.team-flip{position:relative;width:100%;height:100%;transform-style:preserve-3d;cursor:pointer;
  transition:transform .55s cubic-bezier(.2,.7,.3,1)}
.team-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
/* justify-content:flex-start (non center) e overflow-y:auto: quando la finestra si
   restringe il quadrato del flip rimpicciolisce ma il CV resta lungo. Centrato +
   overflow:hidden lo tagliava sopra e sotto; partendo dall'alto con scroll interno il
   testo comincia sempre dall'inizio e, nei casi estremi, si scorre invece di sparire. */
.team-back{transform:rotateY(180deg);background:var(--navy);color:#fff;
  display:flex;flex-direction:column;justify-content:flex-start;gap:0;padding:22px;text-align:left;overflow-y:auto}
.team-back ul{list-style:none;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
.team-back li{position:relative;padding-left:18px;font-size:13px;line-height:1.45;color:rgba(255,255,255,.88)}
/* Not var(--blue): that is a near-navy (#1E2536) and would vanish against this
   face. #9db4ff is the same light accent the footer and nav already use on dark. */
.team-back li::before{content:'';position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:50%;background:#9db4ff}
/* The institution demoted to a second line: it repeats across bullets, so at full
   weight it competes with the degree itself for attention. */
.team-back .where{display:block;font-size:11.5px;line-height:1.35;margin-top:3px;color:rgba(255,255,255,.55)}
/* focus-within sits outside the hover query on purpose: it is what makes the back
   face reachable by keyboard, and on touch it is the only trigger there is —
   tapping the focusable .team-flip flips it, since those devices have no hover. */
.team-card:focus-within .team-flip{transform:rotateY(180deg)}
@media (hover:hover){
  .team-card:hover .team-flip{transform:rotateY(180deg)}
}
/* The rotation is the whole effect, so it stays — but instantly, with no sweep. */
@media (prefers-reduced-motion:reduce){
  .team-flip{transition:none}
}
/* Below this width the grid is two-up on a phone, so the card is roughly 165px
   square — a box that cannot hold a CV at any readable size, flip or no flip.
   Unfold instead into a vertical stack. Order matters: photo, then name and role
   (as on desktop), then the CV last. display:contents dissolves the .team-photo and
   .team-flip wrappers so portrait, name, role and CV become direct flex children of
   the card and can be ordered — otherwise the CV stays trapped between photo and name,
   and names (pushed down by CVs of different length) never line up across the two
   columns. */
@media (max-width:700px){
  .team-card{display:flex;flex-direction:column}
  .team-photo:has(.team-flip),.team-flip{display:contents}
  .team-face{position:static;backface-visibility:visible}
  .team-front{order:1}
  /* width:100%/height:auto beat the base .team-photo img{height:100%}; without
     height:auto the fixed height wins over aspect-ratio and the photo stretches. */
  .team-front img{width:100%;height:auto;aspect-ratio:1/1;border-radius:var(--radius);border:1px solid var(--line)}
  .team-card .name{order:2}
  /* Il ruolo va da una a due righe ("Investment Associate" vs "Managing Director
     and Partner"): gli riserviamo sempre l'altezza di due righe, così il CV sotto
     parte alla stessa quota nelle due colonne invece di sfalsarsi. */
  .team-card .role{order:3;line-height:1.35;min-height:2.7em;margin-bottom:10px}
  .team-back{order:4;transform:none;background:none;padding:14px 0 0;display:block;text-align:left}
  .team-back li{color:var(--grey);font-size:12.5px}
  /* Back on a white background, so the light accent flips to the dark one. */
  .team-back li::before{background:var(--blue)}
  .team-back .where{color:var(--grey);opacity:.75}
}

/* ===== IMAGE TILE GRID (asset classes) ===== */
.tile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tile{position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.tile:hover img{transform:scale(1.05)}
.tile .lbl{position:absolute;left:0;right:0;bottom:0;padding:40px 18px 16px;color:#fff;font-weight:700;font-size:17px;background:linear-gradient(transparent,rgba(8,16,32,.85))}

/* ===== ASSET CLASS CARDS (image-free) ===== */
.asset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.asset-grid.cols-2{grid-template-columns:repeat(2,1fr)}
.asset-split{position:relative;column-gap:40px}
.asset-split::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;background:var(--blue)}
.asset-card{position:relative;display:flex;align-items:baseline;gap:16px;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:26px 24px;overflow:hidden;transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease}
/* accent bar that grows in on hover */
.asset-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue);transform:scaleY(0);transform-origin:top;transition:transform .3s ease}
.asset-card:hover{border-color:var(--blue);transform:translateY(-2px);box-shadow:0 10px 30px rgba(11,21,38,.08)}
.asset-card:hover::before{transform:scaleY(1)}
.asset-num{font-size:13px;font-weight:700;letter-spacing:.08em;color:#3f63bf;opacity:.85}
.asset-name{font-size:18px;font-weight:700;color:var(--ink);letter-spacing:-.01em}
/* colored icon badge inside compact asset cards */
.ac-ico{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;flex-shrink:0;transition:background .25s ease}
.asset-card:hover .ac-ico{background:var(--blue)!important}
.asset-card:hover .ac-ico .material-symbols-outlined{color:#fff!important}
/* destination chips */
.dest-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 11px;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:600;color:var(--ink);transition:background .2s ease,border-color .2s ease,color .2s ease}
.dest-chip .material-symbols-outlined{color:var(--blue);transition:color .2s ease}
.dest-chip:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.dest-chip:hover .material-symbols-outlined{color:#fff}
/* fast-financing timeline: same 4 columns as .feature-grid so dots align with the cards below */
.fin-timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;position:relative;margin-bottom:30px}
.fin-timeline::before{content:"";position:absolute;left:12.5%;right:12.5%;top:7px;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--line),#3f63bf)}
.fin-step{display:flex;flex-direction:column;align-items:center;gap:10px;position:relative}
.fin-step .dot{width:17px;height:17px;border-radius:50%;background:#fff;border:3px solid #3f63bf;box-shadow:0 0 0 4px rgba(63,99,191,.14)}
.fin-step .dot.filled{background:#3f63bf}
.fin-step .when{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#3f63bf}
/* fast-financing cards: accent the step tag in the brighter blue */
.fin-flow .step-tag{color:#3f63bf}
/* on mobile the horizontal timeline becomes a vertical one on the left of the cards.
   The rail sits in a fixed 34px gutter; dot and connector share the same centre (17px). */
@media (max-width:900px){
  .fin-timeline{display:none}
  .feature-grid.fin-flow,.feature-grid.fin-flow.cols-3{grid-template-columns:1fr}
  .fin-flow{position:relative;padding-left:34px}
  .fin-flow .feature{overflow:visible;position:relative}
  /* dot: centred at 17px from the .fin-flow left edge (i.e. -17px from the card edge) */
  .fin-flow .feature::before{content:"";position:absolute;left:-17px;top:28px;width:14px;height:14px;transform:translate(-50%,-50%);border-radius:50%;background:#fff;border:3px solid #3f63bf;box-shadow:0 0 0 3px rgba(63,99,191,.14);z-index:1}
  /* connector line: same centre, drawn from this dot down to the next one */
  .fin-flow .feature:not(:last-child)::after{content:"";position:absolute;left:-17px;top:28px;height:calc(100% + 28px);width:3px;transform:translateX(-50%);border-radius:2px;background:#3f63bf;opacity:.35}
  .fin-flow .feature:last-child::before{background:#3f63bf}
}

/* ===== ALLOCATION CHART (home: diversification) =====
   Two 100% horizontal bars comparing portfolio composition.
   Monochrome navy/grey ramp; the Yeldo sleeve is the solid deep-navy block. */
.alloc{width:100%;max-width:520px;margin:0 auto;font-variant-numeric:tabular-nums}
.alloc-cap-top{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--grey);margin-bottom:20px}
.pf-row{display:grid;grid-template-columns:88px 1fr;align-items:center;gap:16px}
.pf-row + .pf-row{margin-top:14px}
.pf-name{font-size:13px;font-weight:700;color:var(--ink);text-align:right;line-height:1.2}
.pf-bar{display:flex;height:52px;border-radius:8px;overflow:hidden;background:#fff}
.s{display:flex;align-items:center;justify-content:center;min-width:0;transition:flex-grow .9s cubic-bezier(.22,.61,.36,1),opacity .6s ease}
.s + .s{margin-left:3px}
.s b{font-size:13px;font-weight:700;letter-spacing:.01em}
.s-eq{background:#cdd3dc}
.s-eq b{color:var(--ink);opacity:.7}
.s-bond{background:#7c8798}
.s-bond b{color:#fff}
.s-yeldo{background:var(--navy)}
.s-yeldo b{color:#fff}
.pf-legend{list-style:none;display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:24px;padding-left:104px}
.pf-legend li{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink)}
.pf-legend .dot{width:11px;height:11px;border-radius:3px;flex:none}
.dot-eq{background:#cdd3dc}.dot-bond{background:#7c8798}.dot-yeldo{background:var(--navy)}
/* reveal: the second bar starts as a 60/40 and diversifies as the Yeldo block grows in */
.alloc.anim{opacity:0;transform:translateY(12px);transition:opacity .6s ease,transform .6s ease}
.alloc.anim.is-visible{opacity:1;transform:none}
.alloc.anim .pf-row:last-of-type .s-eq{flex-grow:60}
.alloc.anim .pf-row:last-of-type .s-bond{flex-grow:40}
.alloc.anim .pf-row:last-of-type .s-yeldo{flex-grow:0;opacity:0}
.alloc.anim.is-visible .pf-row:last-of-type .s-eq{flex-grow:50}
.alloc.anim.is-visible .pf-row:last-of-type .s-bond{flex-grow:30}
.alloc.anim.is-visible .pf-row:last-of-type .s-yeldo{flex-grow:20;opacity:1;transition-delay:.2s}

/* ===== DEAL CARDS ===== */
.deal-scroller{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.deal-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;transition:box-shadow .25s,transform .25s;display:flex;flex-direction:column}
.deal-card:hover{box-shadow:0 16px 44px rgba(10,20,40,.12);transform:translateY(-4px)}
.deal-card>img{height:160px;object-fit:cover;width:100%}
.deal-body{padding:18px;flex:1;display:flex;flex-direction:column}
.deal-tag{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--grey);margin-bottom:6px}
.deal-type{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--blue);margin-bottom:10px}
.deal-type img{height:12px;width:16px;border-radius:2px}
.deal-body h3{font-size:15.5px;font-weight:700;line-height:1.35;margin-bottom:14px}
.deal-body h3 strong{font-weight:800}
.deal-meta{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;font-size:12.5px}
.deal-meta .k{color:var(--grey)}
.deal-meta .v{font-weight:700;text-align:right}

/* ===== CASE STUDY ===== */
.case-study{background:var(--bg-soft);border-radius:var(--radius);padding:56px;display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.case-study ul{margin:20px 0 0 20px;color:var(--grey)}
.case-study ul li{margin-bottom:12px}

/* ===== CTA STRIP ===== */
.strip{background:var(--blue);color:#fff;padding:56px 0}
.strip .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.strip h3{font-size:clamp(20px,2.4vw,28px);font-weight:700;max-width:560px}
.strip .btn{background:#fff;color:var(--blue)}
.strip .btn:hover{background:#eef2ff}
.strip.soft{background:var(--bg-soft);color:var(--ink)}
.strip.soft .btn{background:var(--blue);color:#fff}
.strip.soft .btn:hover{background:var(--blue-hover)}

/* ===== FORMS ===== */
.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:40px;max-width:640px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{margin-bottom:16px}
.field label{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px}
/* 16px keeps iOS Safari from zooming the page in when a field takes focus. */
.field input,.field textarea,.field select{width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:6px;font-size:16px;font-family:inherit;outline:none;transition:border .2s;background:#fff}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue)}
.field textarea{min-height:130px;resize:vertical}
.consent{font-size:12px;color:var(--grey);margin:14px 0 18px;line-height:1.55}
.form-ok{display:none;color:var(--blue);font-weight:600;margin-top:14px}

/* ===== JOB LIST ===== */
.job-list{display:grid;gap:16px}
.job{border:1px solid var(--line);border-radius:var(--radius);padding:26px 28px;display:flex;gap:24px;align-items:center;justify-content:space-between;transition:box-shadow .25s,transform .25s;background:#fff}
.job:hover{box-shadow:0 12px 36px rgba(10,20,40,.1);transform:translateY(-2px)}
.job h3{font-size:18px;font-weight:700;margin-bottom:6px}
.job p{color:var(--grey);font-size:14.5px;max-width:720px}
.job .material-symbols-outlined{color:var(--blue);flex-shrink:0}

/* ===== OFFICES ===== */
.office-list{display:grid;gap:14px;margin-top:24px}
.office{display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid var(--line);border-radius:8px;background:#fff}
.office .material-symbols-outlined{color:var(--blue)}
/* Scoped to .center so who-we-are's address stays left-aligned in its text column. */
.center .office{justify-content:center}

/* ===== BIG NUMBER ROW ===== */
.bignum-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.bignum{background:#eaf0ff;border:1px solid #d6e0fb;border-radius:var(--radius);padding:34px;text-align:center}
.bignum .v{font-size:clamp(26px,3vw,38px);font-weight:800;color:#3f63bf}
.bignum .u{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--grey);margin-top:2px}
.bignum .k{font-size:14.5px;color:var(--grey);margin-top:8px}

/* ===== FOOTER ===== */
footer.site-footer{background:var(--navy);color:#fff;padding:72px 0 40px;font-size:14px}
.footer-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:40px;margin-bottom:56px}
.footer-brand img{height:50px;margin-bottom:16px}
.footer-brand p{opacity:.7}
.footer-col h4{font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.55;margin-bottom:16px}
/* "Cookie settings" è un <button>, non un <a>: apre un pannello, non naviga.
   Qui gli si toglie l'aspetto nativo perché stia in colonna con gli altri link. */
.footer-col a,.footer-col button{display:block;padding:5px 0;opacity:.85;font-weight:400}
.footer-col button{background:none;border:0;color:inherit;font-family:inherit;font-size:inherit;text-align:inherit;cursor:pointer}
.footer-col a:hover,.footer-col button:hover{opacity:1;color:#9db4ff}
.footer-info{border-top:1px solid rgba(255,255,255,.12);padding-top:36px;display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-bottom:36px}
.footer-info h4{font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.55;margin-bottom:12px}
.footer-info p{opacity:.8;line-height:1.7}
.footer-legal{border-top:1px solid rgba(255,255,255,.12);padding-top:32px;font-size:11.5px;line-height:1.7;opacity:.5}
.footer-legal p{margin-bottom:14px}
.copyright{margin-top:24px;font-size:12.5px;opacity:.6;text-align:center}

/* ===== MARQUEE ===== */
.logos-section{background:var(--bg-soft)}
.logos-head{text-align:center;max-width:680px;margin:0 auto 48px}
.logos-head h2{margin:0 auto 16px}
.logos-head p{color:var(--grey)}
.marquee{overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee-track{display:flex;align-items:center;gap:72px;width:max-content;animation:scroll 32s linear infinite}
.marquee-track img{height:44px;width:auto;filter:grayscale(1);opacity:.65;transition:all .25s}
.marquee-track img:hover{filter:none;opacity:1}
.marquee-track img[src*="artech"]{height:32px}
.marquee-track img[src*="invgroup1"]{height:32px}
.marquee-track img[src*="fenice"]{height:60px}
.marquee-track img[src*="Garzoni"]{position:relative;top:-6px}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.marquee-track{animation:none;flex-wrap:wrap;width:auto;justify-content:center}}

/* ===== HOME EXTRAS ===== */
.cards{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;transition:box-shadow .25s ease,transform .25s ease;display:flex;flex-direction:column}
.card:hover{box-shadow:0 18px 48px rgba(10,20,40,.12);transform:translateY(-4px)}
.card>img{height:240px;object-fit:cover;width:100%}
.card>.card-visual{height:240px;width:100%;background:linear-gradient(135deg,#eef2f8,#e2e9f5);border-bottom:1px solid var(--line)}
.card>.card-visual svg{display:block;width:100%;height:100%}

/* ===== GEO MAP (shared geographies block) ===== */
.geo-map svg{display:block;width:100%;height:auto;max-width:560px;margin:0 auto}

/* ===== CAPITAL STACK (our approach) ===== */
.capfig svg{display:block;width:100%;height:auto;max-width:600px;margin:0 auto}

/* ===== TEAM PORTRAITS (home expertise) ===== */
/* Griglia 2x2: stando nella metà stretta di una .split, due colonne (invece di
   quattro in fila) raddoppiano la dimensione di ogni ritratto. Le foto sono 600x600
   quadrate e le rispettiamo con aspect-ratio 1/1, come le card di who-we-are. */
.team-mini{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:520px}
.team-mini-card{margin:0}
/* height:auto è necessario: l'<img> porta height="600" come attributo, che il
   browser tratta come altezza fissa di 600px e — con width:100% già definita —
   ignora del tutto aspect-ratio, rendendo le foto altissime e strette. Con
   height:auto l'attributo è annullato e aspect-ratio:1/1 torna a decidere l'altezza. */
.team-mini-card img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;object-position:center top;display:block;border-radius:var(--radius);border:1px solid var(--line)}
.team-mini-card figcaption{margin-top:8px;text-align:center}
/* Sotto i 960px la .split impila le due colonne: la 2x2 arriverebbe a piena
   larghezza. Un tetto la mantiene dimensionata come nel resto del sito. */
@media (max-width:960px){
  .team-mini{max-width:420px;margin:0 auto}
}
.tm-name{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13.5px;font-weight:700;line-height:1.25;color:var(--navy)}
.tm-li{display:inline-flex;align-items:center;justify-content:center;color:#0a66c2;flex:0 0 auto}
.tm-li:hover{opacity:.75}
.tm-role{font-size:12px;color:var(--grey);line-height:1.3;margin-top:2px}
.card-body{padding:30px;display:flex;flex-direction:column;flex:1}
.card-body h3{font-size:22px;font-weight:700;margin-bottom:12px}
.card-body p{color:var(--grey);font-size:15.5px;flex:1;margin-bottom:22px}
.dev-banner{position:relative;color:#fff;border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr;background:var(--navy-2)}
.dev-banner .txt{padding:64px 56px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:20px}
.dev-banner h2{font-size:clamp(24px,3vw,34px);font-weight:700;line-height:1.2}
.dev-banner p{color:rgba(255,255,255,.75);font-size:16.5px}
.dev-banner .media{min-height:320px;background-position:center;background-size:cover}

/* ===== CAREERS EMPTY-STATE CTA ===== */
/* Self-contained (not .center + inline margins) so the mobile override below can
   flip text-align cleanly — an inline margin:0 auto on the element would outrank
   any external stylesheet rule regardless of media query. */
.careers-cta{text-align:center}
.careers-cta .section-title{max-width:680px;margin:0 auto 16px}
.careers-cta .lede{max-width:640px;margin:0 auto 30px}

/* ===== COOKIE CONSENT ===== */
/* Sits above the header but below the mobile menu, so an open menu covers it. */
.cookie-consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:150;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 18px 50px rgba(10,20,40,.22);padding:20px 24px;display:none;max-height:calc(100vh - 32px);overflow-y:auto}
.cookie-consent.show{display:block}
.cc-inner{display:flex;align-items:center;gap:28px;max-width:1180px;margin:0 auto}
.cc-text strong{font-size:15.5px;font-weight:700}
.cc-text p{color:var(--grey);font-size:14px;margin-top:4px;max-width:70ch}
.cc-text a{color:var(--blue);font-weight:600;text-decoration:underline}
/* Decline must be no harder to reach than Accept: same size, same row, one click. */
.cc-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
.cc-actions .btn{padding:12px 26px;white-space:nowrap}
.cc-link{background:none;border:0;padding:12px 8px;color:var(--blue);font-family:inherit;font-size:14px;font-weight:600;text-decoration:underline;cursor:pointer;white-space:nowrap}
/* Bottone che vive dentro un paragrafo: deve leggersi come un link inline,
   quindi eredita tutto dal testo circostante e non introduce spaziature. */
.link-inline{display:inline;background:none;border:0;padding:0;margin:0;color:var(--blue);font:inherit;text-decoration:underline;cursor:pointer}
.cc-options{max-width:1180px;margin:18px auto 0;border-top:1px solid var(--line);padding-top:8px}
.cc-opt{display:flex;align-items:flex-start;gap:12px;padding:12px 0;cursor:pointer}
.cc-opt input{width:17px;height:17px;margin-top:2px;flex-shrink:0;accent-color:var(--navy);cursor:pointer}
.cc-opt input:disabled{cursor:default;opacity:.55}
.cc-opt span{font-size:13.5px;color:var(--grey)}
.cc-opt strong{display:block;color:var(--ink);font-size:14.5px;font-weight:700;margin-bottom:1px}
.cc-options .btn{margin-top:10px}

/* ===== GATED EMBED (map) ===== */
.map-embed{position:relative;min-height:380px;border-radius:var(--radius);overflow:hidden;background:var(--bg-soft);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.map-embed iframe{width:100%;height:380px;border:0;display:block}
.map-ask{text-align:center;padding:32px 24px;max-width:400px}
.map-ask .material-symbols-outlined{font-size:40px;color:#aab3c2}
.map-ask p{color:var(--grey);font-size:14.5px;margin:8px 0 18px}
/* block, not inline-block: the .btn above is inline-flex and would pull this
   onto the same line. Padding carries it to a thumb-sized target. */
.map-ask .alt{display:block;margin-top:8px;padding:10px 0;color:var(--blue);font-weight:600;font-size:14px}

/* ===== WIDE MONITORS ===== */
/* Below the caps everything scales with vw; on very wide screens the clamp caps
   freeze the layout at 1560px and leave large empty side margins. These
   breakpoints let the container, gutters and key type keep breathing. */
@media (min-width:1700px){
  :root{--maxw:1680px;--gutter:clamp(64px,5vw,110px)}
  .hero h1{font-size:clamp(48px,4vw,66px);max-width:1000px}
  .hero .sub{font-size:clamp(20px,1.7vw,26px);max-width:680px}
  h2.section-title{font-size:clamp(36px,2.7vw,46px);max-width:760px}
  .split p,.split ul{max-width:600px}
  .grid-head,.logos-head{max-width:760px}
}
@media (min-width:2100px){
  :root{--maxw:1840px}
  .hero h1{font-size:70px}
  h2.section-title{font-size:50px}
  .team-grid{max-width:1440px}
  .geo-map svg{max-width:640px}
  .capfig svg{max-width:680px}
}

/* ===== RESPONSIVE ===== */
/* The full horizontal nav (logo + 6 items + Log in + Sign up) needs ~1080px before it
   starts crowding and the labels wrap. Collapse to the hamburger below that — earlier
   than the 960px layout breakpoint — so the bar never breaks. Sign up, Log in and the
   language switch all live inside the mobile menu, so dropping them here loses nothing. */
@media (max-width:1080px){
  .nav-links,.nav-cta .login,.nav-cta .btn,.nav-cta .lang-switch{display:none}
  .hamburger{display:block;margin-left:auto}
}
@media (max-width:960px){
  .split,.cards,.dev-banner,.case-study{grid-template-columns:1fr}
  /* Once stacked, the split's desktop gap (min 48px) leaves too much air between the
     copy and its image/diagram. One flat, smaller value keeps every split section
     consistent on mobile. */
  .split{gap:28px}
  .split.reverse .txt{order:1}
  .split.reverse .media{order:2}
  /* Only the split copy: its 520px cap reads narrow once the column goes full width.
     .lede keeps its measure — it is always centred, so uncapping it just widens it. */
  .split p,.split ul{max-width:none}
  /* Same breakpoint where .split collapses to one full-width column: at this width
     the internship section above and this CTA stack directly on top of each other,
     so keeping this one centered would read as a stray alignment bug rather than
     an intentional register shift. Left-align to match the section above. */
  .careers-cta{text-align:left}
  .careers-cta .section-title,.careers-cta .lede{margin-left:0;margin-right:0}
  /* .stats-grid[data-stats] repeated here at equal specificity to the unqualified
     rule above (0,2,0 either way) so source order — not the unconditional 3-column
     rule at the top of the file — decides, and both variants drop to 2 columns. */
  .stats-grid,.stats-grid[data-stats]{grid-template-columns:repeat(2,1fr);gap:32px}
  .feature-grid,.feature-grid.cols-3,.tile-grid,.asset-grid,.deal-scroller,.bignum-grid,.team-grid{grid-template-columns:1fr 1fr}
  /* Five nav columns don't divide evenly into a fixed number of tracks: whatever
     the count, the remainder is left stranded against the left edge with a hole
     beside it. A centred flex row lets the last row hold however many columns are
     left over and centre them under the ones above. */
  .footer-grid{display:flex;flex-wrap:wrap;justify-content:center;text-align:center;gap:32px 44px}
  .footer-col{flex:0 1 200px}
  /* The <button> doesn't inherit the grid's text-align the way the <a>s do, so
     pin it to full width and centre it explicitly to match the links above. */
  .footer-col button{width:100%;text-align:center}
  /* Short address/office lines — centring keeps them in register with the columns
     above. The legal fine print below stays left-aligned: it runs to full
     paragraphs, and centred body copy is hard to read down the ragged left edge. */
  .footer-info{grid-template-columns:1fr;text-align:center}
  .dev-banner .txt,.case-study{padding:44px 28px}
  .dev-banner .media{min-height:220px}
  .section{padding:64px 0}
  .form-row{grid-template-columns:1fr}
  /* Altezza uniforme su mobile: senza questa, ogni hero è alto quanto il suo
     contenuto, così pagine con più testo risultano più alte e cambia la porzione di
     foto visibile. Un min-height comune li rende coerenti tra le pagine; il contenuto
     resta centrato verticalmente (align-items:center). */
  .page-hero,.page-hero.tall{min-height:80vh}
  .page-hero .hero-content{padding-top:124px;padding-bottom:72px}
  /* The 100deg gradient only shelters a left-hand column. Here the copy runs the
     full width, so shade top-to-bottom instead and let the photo open up below it. */
  .page-hero .hero-bg::after{background:linear-gradient(180deg,rgba(8,16,32,.85) 0%,rgba(8,16,32,.7) 55%,rgba(8,16,32,.4) 100%)}
  .job{flex-direction:column;align-items:flex-start;gap:14px}
}
@media (max-width:560px){
  .feature-grid,.feature-grid.cols-3,.tile-grid,.asset-grid,.deal-scroller,.bignum-grid{grid-template-columns:1fr}
  .asset-split::before{display:none}
  /* team-grid stays two-up: a 1:1 photo at full width eats a whole phone screen. */
  .team-grid{gap:20px}
  .team-card .name{font-size:15.5px;margin-top:12px}
  .team-card .role{font-size:13.5px}
  .page-hero .hero-content{padding-top:104px;padding-bottom:56px}
  .page-hero .sub{margin-bottom:28px}
  .nav{height:72px}
  .section{padding:52px 0}
  .stats{padding:36px 0}
  .stat .num{font-size:22px}
  h2.section-title{font-size:clamp(23px,6vw,30px)}
  .grid-head,.logos-head{margin-bottom:34px}
  .card>img,.card>.card-visual{height:190px}
  .card-body{padding:24px}
  .dev-banner .txt,.case-study,.form-card{padding:32px 22px}
  .bignum{padding:26px}
  footer.site-footer{padding:56px 0 32px}
  .footer-grid{gap:24px 20px;margin-bottom:40px}
  .footer-legal{font-size:12px}
  /* Footer links and inline arrows sit close together and are only ~26px tall on
     their own — pad them out to a thumb-sized target. */
  .footer-col a,.footer-col button{padding:9px 0}
  .link-arrow{padding:10px 0}
  /* Deal cards go full width here, so the dense card type can breathe. */
  .deal-tag{font-size:12px}
  .deal-meta{font-size:13px}
}
@media (max-width:700px){
  .cookie-consent{left:10px;right:10px;bottom:10px;padding:18px;max-height:calc(100vh - 20px)}
  .cc-inner{flex-direction:column;align-items:stretch;gap:16px}
  .cc-actions{margin-left:0;flex-wrap:wrap}
  .cc-actions .btn{flex:1}
  /* Customize drops to its own full-width row under the two buttons. */
  .cc-actions .cc-link{order:3;flex-basis:100%}
  .cc-options .btn{width:100%}
  .map-embed{min-height:320px}
  .map-embed iframe{height:320px}
}
@media (max-width:400px){
  .nav-cta .btn{padding:10px 18px}
  .stats-grid{gap:24px 14px}
  .stat .num{font-size:20px}
  .stat .lbl{font-size:13px}
  .marquee-track{gap:44px}
  .marquee-track img{height:34px}
}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ===== PRINT / PDF ===== */
/* Goal: printing gives just the page content (hero + sections), no site chrome.
   Backgrounds (hero photo, tinted sections) are forced on so the PDF matches screen. */
@media print{
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  /* Interactive-only bits and site chrome that aren't part of the document. */
  .mobile-menu,.cookie-consent,.site-footer,.strip,
  .page-hero .btn,.map-embed,.ph{display:none !important}
  /* Header: keep it, but as position:absolute it is painted ONCE at the top of
     the flow (page 1) instead of repeating on every printed page like a fixed
     element does. Navy background so the white nav text stays legible. */
  header.site-header{position:absolute !important;background:var(--navy)}
  /* Tighter vertical rhythm so it paginates cleanly. */
  .section{padding:40px 0}
  .page-hero,.page-hero.tall{min-height:auto}
  /* Enough top room that the hero title clears the 88px bar on page 1. */
  .page-hero .hero-content{padding-top:120px;padding-bottom:56px}
  /* Keep logical blocks from splitting across page breaks. */
  .split,.feature,.stat,.bignum,.card,.section-title{break-inside:avoid}
}
