/* Alpavinvest Holding — sito istituzionale
   Palette e tipografia derivate dal Company Profile 2026/2027 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #000000;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --white: #ffffff;
  --mist: #f5f5f5;
  --ash: #999999;          /* testo secondario su nero */
  --graphite: #4d4d4d;     /* testo secondario su chiaro */
  --line: #e2e2e2;
  --line-dark: #262626;

  --f-display: "Archivo", "Arial", sans-serif;
  --f-body: "Source Sans 3", "Calibri", "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec-pad: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-stretch: 112%; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tint :focus-visible, .drivers :focus-visible, .verticals :focus-visible { outline-color: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(0, 0, 0, .92); border-bottom-color: var(--line-dark); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: .98rem; font-weight: 500; letter-spacing: .01em; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 2px; }
.lang a { font-family: var(--f-display); font-size: .78rem; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border: 0; border-radius: 999px; color: var(--ash); }
.lang a:hover { color: var(--white); }
.lang a[aria-current="true"] { background: var(--gold); color: var(--black); }
.menu-btn { display: none; }

@media (max-width: 1120px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-right: -10px;
    background: none; border: 0; color: var(--white); cursor: pointer;
  }
  .menu-icon { position: relative; width: 24px; height: 12px; }
  .menu-icon i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
  .menu-icon i:first-child { top: 0; }
  .menu-icon i:last-child { top: 10px; }
  .menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 32px;
    padding: 32px var(--gutter) 48px;
    background: var(--black);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .nav ul a { display: block; font-family: var(--f-display); font-stretch: 112%; font-size: 1.6rem; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
  .nav ul a:hover { border-bottom-color: var(--gold); }
  .lang a { font-size: .9rem; padding: 8px 16px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--black); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: .98rem;
  text-decoration: none; border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--black); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--white); border-color: var(--white); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Peak art (montagna + simbolo sulla vetta) ---------- */
/* L'immagine mantiene sempre 16:9 e copre la sezione; il simbolo è
   posizionato in percentuale sulla vetta, quindi resta agganciato
   a qualsiasi dimensione dello schermo. */
.hero, .contact {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--black); color: var(--white);
}
.peak-art {
  --aw: max(100%, calc(var(--hh) * 1.7778));
  position: absolute; z-index: -1;
  top: 50%; transform: translateY(-50%);
  width: var(--aw);
  aspect-ratio: 16 / 9;
  left: clamp(calc(100% - var(--aw)), calc(var(--px) - 0.7007 * var(--aw)), 0px);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.peak-img { width: 100%; height: 100%; object-fit: cover; }
.peak-mark { position: absolute; left: 66.88%; top: 41.6%; width: 6.375%; height: auto; }
.hero::before, .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 32%, rgba(0,0,0,0) 62%);
}

/* ---------- Hero ---------- */
.hero { --hh: max(100svh, 640px); --px: 70%; height: var(--hh); display: flex; align-items: center; }
.hero-inner { position: relative; padding-top: var(--header-h); }
.hero-tag {
  display: inline-block; margin-bottom: 28px;
  font-family: var(--f-display); font-stretch: 112%; font-size: .95rem; font-weight: 600; color: var(--gold);
  padding: 6px 14px; border: 1px solid var(--gold-soft); border-radius: 999px;
}
.hero-title {
  max-width: 15ch;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  font-weight: 700; font-stretch: 118%;
  line-height: 1.04; letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-lead { max-width: 46ch; margin-top: 28px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: #d6d6d6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

@media (prefers-reduced-motion: no-preference) {
  .hero .peak-mark { animation: mark-land 1.1s cubic-bezier(.2,.7,.2,1) .35s both; }
  .hero-tag, .hero-title, .hero-lead, .hero-cta { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-title { animation-delay: .08s; }
  .hero-lead { animation-delay: .18s; }
  .hero-cta { animation-delay: .28s; }
}
@keyframes mark-land { from { opacity: 0; transform: translateY(-60%); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  /* Su schermi stretti la montagna sta in alto e il testo scorre sotto la vetta */
  .hero .peak-art, .contact .peak-art { --aw: 230%; top: 0; transform: none; }
  .hero { --px: 62%; height: auto; min-height: 100svh; align-items: flex-end; }
  .hero-inner { padding-top: calc(66vw + 24px); padding-bottom: 56px; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.75) 58%, rgba(0,0,0,.95) 100%); }
  .hero-title { max-width: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--sec-pad); }
.tint { background: var(--mist); }
.dark { background: var(--black); color: var(--white); }
.sec-head { margin-bottom: clamp(40px, 6vw, 64px); }
.sec-title {
  display: flex; align-items: center; gap: .55em;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800; font-stretch: 115%;
  text-transform: uppercase; letter-spacing: .01em;
}
.sec-title .t-mark { width: 1.05em; height: auto; flex: none; transform: translateY(-.04em); }
.sec-lead { max-width: 60ch; margin-top: 14px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--graphite); }
.dark .sec-lead { color: #cfcfcf; }
.panel-h { font-family: var(--f-display); font-stretch: 112%; font-size: 1rem; font-weight: 700; margin-bottom: 18px; color: var(--gold); }

.ico {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--black); color: var(--gold); font-size: 21px;
}
.ico-lg { width: 56px; height: 56px; font-size: 24px; }
.ico-line { background: transparent; border: 1px solid var(--gold-soft); width: 40px; height: 40px; font-size: 16px; }

/* ---------- Visione ---------- */
.vision-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.vision-panel {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--black); color: var(--white);
  padding: clamp(32px, 4vw, 52px);
}
.vision-statement { margin-top: 32px; font-family: var(--f-display); font-stretch: 110%; font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.22; }
.quote { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.quote blockquote { margin: 0; }
.quote p { font-style: italic; color: var(--gold); font-size: 1.08rem; line-height: 1.55; }
.quote figcaption { margin-top: 14px; font-weight: 700; font-size: .95rem; }
.vision-intro { font-style: italic; color: var(--graphite); margin-bottom: 12px; }
.icon-list li { display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.icon-list li:last-child { border-bottom: 0; }
.icon-list h3 { font-size: 1.2rem; font-weight: 700; margin: 8px 0 10px; }
.icon-list p { color: #262626; max-width: 62ch; }

/* ---------- Missione ---------- */
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.m-item { background: var(--white); padding: clamp(28px, 3vw, 40px); }
.m-item h3 { display: flex; align-items: center; gap: 14px; font-size: 1.08rem; font-weight: 700; margin-bottom: 18px; }
.m-item .ico { width: 42px; height: 42px; font-size: 19px; }
.m-item p { color: #262626; font-size: 1.05rem; }
.m-motto { position: relative; margin: 0; background: var(--black); min-height: 280px; overflow: hidden; }
.m-motto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.m-motto figcaption {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
  padding: clamp(28px, 3vw, 40px);
  font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2;
  color: var(--gold);
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 100%);
}
.motto-mark { width: 52px; height: auto; }

/* ---------- Driver ---------- */
.drivers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.d-item { padding: 8px clamp(20px, 2.4vw, 36px) 8px; border-left: 1px solid var(--line); }
.d-item:first-child { border-left: 0; padding-left: 0; }
.d-item h3 { margin: 26px 0 14px; font-size: 1.18rem; font-weight: 700; }
.d-item p { color: #262626; font-size: 1.04rem; }

/* ---------- Scalabilità ---------- */
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; margin-bottom: clamp(48px, 6vw, 72px); counter-reset: step; }
.chain li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-inline: 8px; }
.chain li:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; left: calc(50% + 44px); right: calc(-50% + 44px);
  border-top: 2px dashed var(--gold-soft);
}
.chain-dot { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 28px; }
.chain .is-end .chain-dot { background: var(--gold); color: var(--black); }
.chain-label { font-weight: 600; font-size: 1rem; line-height: 1.35; max-width: 18ch; }
.scale-panels { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.modules, .impact { background: var(--black); padding: clamp(28px, 3.5vw, 44px); }
.impact { background: #0d0d0d; }
.module-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.module-row > li:not(.arrow) { display: flex; flex-direction: column; gap: 14px; font-weight: 600; font-size: .98rem; }
.module-row .arrow { color: var(--gold); font-size: 22px; align-self: center; padding-bottom: 32px; }
.mod { display: grid; width: clamp(64px, 9vw, 104px); aspect-ratio: 1; gap: 5px; }
.mod i { background: var(--white); border-radius: 2px; }
.mod-4 { grid-template-columns: repeat(2, 1fr); }
.mod-16 { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mod-16 i { background: var(--gold); }
.check-list li { display: flex; gap: 14px; align-items: baseline; padding-block: 10px; color: #e6e6e6; }
.check-list svg { color: var(--gold); transform: translateY(.15em); }

/* ---------- Verticali ---------- */
.v-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.v-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.v-card > img { aspect-ratio: 900 / 421; object-fit: cover; width: 100%; }
.v-body { display: flex; flex-direction: column; flex: 1; padding: 28px clamp(22px, 2.4vw, 32px) 32px; }
.v-card h3 { display: flex; gap: 14px; font-size: 1.12rem; font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.v-n { font-size: 1.12rem; font-weight: 800; color: #a3842a; }
.v-body > p { color: #262626; font-size: 1.04rem; margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: .86rem; font-weight: 600; line-height: 1.2; padding: 7px 13px; border-radius: 999px; background: var(--black); color: var(--white); }
.pills-gold li { background: transparent; border: 1px solid var(--gold); color: var(--white); }
.pills-line li { background: transparent; border: 1px solid #b08f2c; color: var(--black); }
.more { margin-top: auto; padding-top: 26px; align-self: flex-start; font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: .95rem; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.more:hover { color: #8a6d1d; }

.vertical-feature {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 860px);
  display: flex; align-items: center;
  background: var(--black); color: var(--white);
  padding-block: clamp(96px, 12vw, 140px);
}
.vf-img { position: absolute; z-index: -2; top: 0; right: 0; height: 100%; width: 72%; object-fit: cover; }
.vertical-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,.8) 46%, rgba(0,0,0,.15) 72%, rgba(0,0,0,0) 100%);
}
.vf-inner > * { max-width: 580px; }
.vf-inner > .vf-title { max-width: 700px; }
.vf-num { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.vf-n { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: 1; color: var(--gold); }
.vf-label { font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: .9rem; color: var(--ash); }
.vf-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; font-stretch: 115%; line-height: 1.12; }
.vf-text { margin: 26px 0 40px; color: #dcdcdc; font-size: 1.12rem; }

@media (max-width: 900px) {
  .vertical-feature { display: block; min-height: 0; padding-block: 0 72px; }
  .vf-img { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; z-index: 0; }
  .vertical-feature::before { inset: 0; background: none; }
  .vf-inner { padding-top: 36px; position: relative; }
  .vf-num { flex-direction: row; align-items: baseline; gap: 14px; margin-bottom: 18px; }
  .vf-n { font-size: 2.6rem; }
}

/* ---------- Sinergie ---------- */
.eco { position: relative; max-width: 1040px; margin-inline: auto; }
.eco-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.eco-top .node { grid-column: 2; }
.eco-top .eco-cap { grid-column: 3; justify-self: start; }
.eco-row { display: grid; grid-template-columns: 1fr minmax(80px, 1fr) 1fr minmax(80px, 1fr) 1fr; align-items: start; position: relative; }
.eco-row::before { /* collegamento verticale intelligenza → qore */
  content: ""; position: absolute; left: 50%; top: -12px; height: 28px; border-left: 1px solid var(--gold-soft);
}
.eco-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: 16px; }
.node {
  display: grid; place-items: center;
  width: clamp(96px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold); font-size: clamp(34px, 3.6vw, 46px);
}
.node-white { width: clamp(76px, 8vw, 96px); background: var(--white); border-color: var(--white); color: var(--black); font-size: clamp(30px, 3vw, 38px); }
.eco-node:not(.eco-core) .node { margin-top: calc((clamp(120px, 14vw, 168px) - clamp(96px, 11vw, 132px)) / 2); }
.node-core { width: clamp(120px, 14vw, 168px); border-width: 3px; gap: 4px; align-content: center; }
.node-core img { width: 42%; }
.node-core b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(.8rem, 1.1vw, 1rem); letter-spacing: .14em; color: var(--white); }
.eco-cap { hyphens: none; -webkit-hyphens: none; font-family: var(--f-display); font-stretch: 115%; font-weight: 700; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); line-height: 1.45; }
.eco-top .eco-cap { color: var(--white); }
.eco-flow { position: relative; align-self: start; margin-top: calc(16px + clamp(60px, 7vw, 84px) - 1px); height: 2px; background: var(--gold-soft); }
.eco-flow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--gold); border-right: 0; }
.eco-flow span { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; font-style: italic; font-size: .92rem; color: var(--ash); }
.eco-text { max-width: 70ch; margin: clamp(48px, 6vw, 72px) auto 0; text-align: center; }
.eco-text p { font-style: italic; font-size: 1.12rem; color: #e6e6e6; }
.eco-text p + p { margin-top: 14px; }
.eco-text .gold { color: var(--gold); }

@media (max-width: 860px) {
  .eco-row { grid-template-columns: 1fr; justify-items: center; }
  .eco-row::before { display: none; }
  .eco-top { grid-template-columns: 1fr; justify-items: center; gap: 14px; margin-bottom: 8px; }
  .eco-top .node, .eco-top .eco-cap { grid-column: 1; justify-self: center; }
  .eco-top::after { content: ""; width: 1px; height: 28px; background: var(--gold-soft); }
  .eco-node:not(.eco-core) .node { margin-top: 0; }
  .eco-flow { width: 2px; height: 76px; margin: 18px 0; }
  .eco-flow::after { right: auto; top: auto; left: -5px; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--gold); border-bottom: 0; }
  .eco-flow span { left: 18px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .eco-node { padding-top: 0; gap: 16px; }
  .eco-text { text-align: left; }
}

/* ---------- Chi siamo ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.person { background: var(--white); padding: clamp(28px, 3.4vw, 44px); border: 1px solid var(--line); }
.person-head { display: flex; gap: 26px; align-items: center; margin-bottom: 26px; }
.person-photo { width: clamp(104px, 11vw, 128px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--gold); padding: 3px; background: var(--white); flex: none; }
.person h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
.role { margin-top: 6px; font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: .9rem; color: var(--graphite); }
.stat { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.stat b { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: 2.1rem; line-height: 1; color: #a3842a; }
.stat span { font-size: .95rem; line-height: 1.3; color: var(--graphite); max-width: 22ch; }
.person > p { color: #262626; font-size: 1.04rem; }
.person > p + p { margin-top: 8px; }
.person .pills { margin-top: 26px; }

/* ---------- Contatti ---------- */
.contact { --hh: max(88svh, 680px); --px: 76%; min-height: var(--hh); display: flex; align-items: center; padding-block: clamp(96px, 12vw, 140px); }
.contact-title { max-width: 14ch; font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 700; font-stretch: 118%; line-height: 1.06; letter-spacing: -.01em; }
.contact-lead { max-width: 44ch; margin-top: 22px; color: #d6d6d6; font-size: 1.15rem; }
.contact-list { margin-top: 44px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 18px; font-size: 1.08rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.contact-list a:hover { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 760px) {
  .contact { --px: 62%; min-height: 0; padding-top: calc(66vw + 24px); padding-bottom: 72px; }
  .contact::before { background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,.8) 55%, rgba(0,0,0,.95) 100%); }
  .contact-list li { align-items: flex-start; font-size: 1rem; overflow-wrap: anywhere; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--ash); border-top: 1px solid var(--line-dark); padding-block: 40px; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px 40px; }
.footer-logo { height: 26px; width: auto; }
.footer-text { display: grid; gap: 6px; }
.footer-legal { color: #c4c4c4; }
.footer-legal span:not(:last-child)::after { content: " · "; color: #666; }
.footer-rights { font-size: .84rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .drivers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .d-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
  .chain li { flex-direction: row; text-align: left; gap: 22px; padding: 0 0 28px; }
  .chain li:not(:last-child)::after { top: 72px; bottom: 0; left: 35px; right: auto; height: auto; border-top: 0; border-left: 2px dashed var(--gold-soft); }
  .chain-dot { width: 72px; height: 72px; flex: none; }
  .chain-label { max-width: none; }
  .scale-panels { grid-template-columns: 1fr; }
  .v-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 900px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-panel { position: static; }
  .people { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .module-row { gap: 6px; }
  .module-row > li:not(.arrow) { font-size: .86rem; }
  .mod { width: 58px; }
  .drivers-grid { grid-template-columns: 1fr; row-gap: 0; }
  .d-item, .d-item:first-child { border-left: 0; padding: 32px 0; border-top: 1px solid var(--line); }
  .d-item:first-child { border-top: 0; padding-top: 0; }
  .d-item h3 { margin-top: 20px; }
  .mission-grid { grid-template-columns: 1fr; }
  .module-row .arrow { padding-bottom: 36px; font-size: 18px; }
  .person-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .icon-list li { grid-template-columns: 1fr; gap: 14px; }
  .sec-title { font-size: clamp(1.35rem, 6.4vw, 1.6rem); }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- WordPress ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 1120px) {
  .admin-bar .nav { inset: calc(var(--header-h) + 32px) 0 0 0; }
}
@media (max-width: 782px) {
  .admin-bar .nav { inset: calc(var(--header-h) + 46px) 0 0 0; }
}
.footer-links { flex-wrap: wrap; }

/* Pagine interne: header sempre pieno */
.ap-inner .site-header { background: var(--black); border-bottom-color: var(--line-dark); }
.inner-main { padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(72px, 9vw, 120px); min-height: 70vh; }
.inner-title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; font-stretch: 115%; line-height: 1.1; margin-bottom: 32px; }
.inner-meta { color: var(--graphite); font-size: .95rem; margin: -18px 0 28px; }
.prose { max-width: 74ch; }
.prose .entry > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.08rem; margin-top: 1.4em; }
.prose a { color: #7a6118; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--black); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 1.2em; border-left: 3px solid var(--gold); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose img { height: auto; }
.prose figcaption { font-size: .9rem; color: var(--graphite); margin-top: 8px; }
.post-list { list-style: none !important; padding: 0 !important; }
.post-list li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { margin: 0 0 6px; font-size: 1.4rem; }
.post-list a { color: var(--black); text-decoration: none; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .9rem; color: var(--graphite); }
.nav-links { display: flex; gap: 16px; margin-top: 32px; }

/* 404 */
.nf-main { background: var(--black); color: var(--white); display: flex; align-items: center; min-height: calc(100svh - 150px); }
.nf-main p { color: #cfcfcf; max-width: 44ch; }
.nf-main .btn { margin-top: 28px; }
.nf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.nf-main .inner-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }

/* ---------- Struttura multipagina ---------- */
.nav ul a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
@media (min-width: 1121px) {
  .nav .nav-contact a { padding: 8px 18px; border: 1px solid var(--gold); border-radius: 2px; }
  .nav .nav-contact a:hover, .nav .nav-contact a[aria-current="page"] { background: var(--gold); color: var(--black); border-bottom-color: var(--gold); }
}

/* Intestazione delle pagine interne */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--black); color: var(--white);
  --hh: clamp(460px, 66svh, 640px); --px: 74%; min-height: var(--hh);
  display: flex; align-items: flex-end; padding: calc(var(--header-h) + 56px) 0 clamp(52px, 7vw, 88px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 34%, rgba(0,0,0,0) 64%); }
.page-hero-inner { position: relative; }
.page-title { max-width: 16ch; font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 700; font-stretch: 118%; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.page-lead { max-width: 50ch; margin-top: 22px; color: #d6d6d6; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
@media (prefers-reduced-motion: no-preference) {
  .page-hero .peak-mark, .contact .peak-mark { animation: mark-land 1.1s cubic-bezier(.2,.7,.2,1) .25s both; }
  .page-title, .page-lead, .contact-title { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .page-lead { animation-delay: .1s; }
}

/* Home: schede verso le pagine */
.explore { padding-block: clamp(64px, 8vw, 104px); }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.explore-grid li { border-left: 1px solid var(--line); }
.explore-grid li:first-child { border-left: 0; }
.explore-card { display: flex; flex-direction: column; height: 100%; padding: 8px clamp(20px, 2.4vw, 36px); text-decoration: none; color: inherit; }
.explore-grid li:first-child .explore-card { padding-left: 0; }
.explore-card h3 { margin: 26px 0 12px; font-size: 1.3rem; font-weight: 700; transition: color .2s; }
.explore-card p { color: #262626; font-size: 1.04rem; }
.explore-card .more { margin-top: auto; padding-top: 22px; }
.explore-card:hover h3 { color: #8a6d1d; }
.explore-card:hover .more { color: #8a6d1d; }

.home-contact { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line-dark); }
.home-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.home-contact-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; font-stretch: 118%; line-height: 1.1; max-width: 18ch; }

/* Chi siamo */
.about-intro-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-mark { width: clamp(88px, 12vw, 168px); height: auto; justify-self: start; margin-top: 8px; }
.about-text { max-width: 64ch; }
.about-text p { font-size: 1.2rem; color: #262626; }
.about-text p + p { margin-top: 18px; }
.about-text .about-first { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.25; color: var(--black); margin-bottom: 30px; }
.person { display: flex; flex-direction: column; }
.person-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 10px 18px;
  background: var(--black); color: var(--white); text-decoration: none; font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: .92rem; border-radius: 2px; }
.person-link svg { color: var(--gold); font-size: 1.1rem; }
.person-link:hover { background: #8a6d1d; }
.person-link:hover svg { color: var(--white); }

.scale + .synergy { border-top: 1px solid var(--line-dark); }

/* Verticali */
.v-card .v-title { display: flex; gap: 14px; font-size: 1.12rem; font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.verticals { padding-top: clamp(56px, 7vw, 96px); }

/* Contatti */
.contact { min-height: max(100svh, 720px); padding-top: calc(var(--header-h) + clamp(64px, 9vw, 120px)); }
.contact .hero-tag { margin-bottom: 24px; }
.addresses { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 28px 56px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-dark); max-width: 760px; }
.address-block { display: flex; gap: 18px; align-items: flex-start; }
.address-h { font-family: var(--f-display); font-stretch: 112%; font-size: .9rem; font-weight: 700; color: var(--gold); margin: 8px 0 6px; }
.addresses address { font-size: 1.05rem; line-height: 1.5; }
.addresses a { text-decoration: none; border-bottom: 1px solid transparent; }
.addresses a:hover { color: var(--gold); border-bottom-color: var(--gold); }

@media (max-width: 1080px) {
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .explore-grid li:nth-child(3) { border-left: 0; }
  .explore-grid li:nth-child(3) .explore-card { padding-left: 0; }
}
@media (max-width: 760px) {
  .page-hero .peak-art { --aw: 230%; top: 0; transform: none; }
  .page-hero { --px: 62%; min-height: 0; padding-top: calc(60vw + 24px); padding-bottom: 48px; }
  .page-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.8) 58%, rgba(0,0,0,.95) 100%); }
  .page-title { max-width: none; }
  .contact { min-height: 0; padding-top: calc(66vw + 24px); }
  .addresses { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-mark { width: 72px; }
}
@media (max-width: 640px) {
  .explore-grid { grid-template-columns: 1fr; row-gap: 0; }
  .explore-grid li, .explore-grid li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .explore-grid li:first-child { border-top: 0; }
  .explore-card, .explore-grid li:first-child .explore-card, .explore-grid li:nth-child(3) .explore-card { padding: 28px 0; }
  .explore-grid li:first-child .explore-card { padding-top: 0; }
  .explore-card h3 { margin-top: 18px; }
  .home-contact .btn { width: 100%; }
}

/* Home · notizie: nastro continuo */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.news-head .sec-head { margin-bottom: 0; }
.news-controls { display: flex; gap: 10px; flex: none; }
.news-controls[hidden] { display: none; }
.news-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--black);
  background: transparent; color: var(--black); font-size: 17px; cursor: pointer; transition: background-color .2s, color .2s; }
.news-btn:hover { background: var(--black); color: var(--gold); }
.news-btn[hidden] { display: none; }
.news-btn-pause { background: var(--black); color: var(--gold); }
.news-btn-pause:hover { background: #2a2a2a; }
.news-btn .i-play { display: none; }
.news-btn.is-paused .i-play { display: inline-flex; }
.news-btn.is-paused .i-pause { display: none; }
.news-btn span { display: inline-flex; }

.news-slider { margin-top: clamp(32px, 4vw, 48px); }
.news-viewport { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); }
.news-viewport::-webkit-scrollbar { display: none; }
.news-track { display: flex; gap: 20px; width: max-content; margin: 0; padding: 4px var(--gutter) 10px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.news-card { position: relative; flex: 0 0 clamp(250px, 22vw, 300px); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.news-card:hover { border-color: #b08f2c; }
.news-art { aspect-ratio: 16 / 10; background: var(--black); overflow: hidden; }
.news-art-svg { display: block; width: 100%; height: 100%; transition: transform .5s ease; }
.news-card:hover .news-art-svg { transform: scale(1.04); }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.news-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.news-topic { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: .8rem; color: var(--graphite); }
.news-topic svg { color: #a3842a; font-size: .95rem; }
.news-ai { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--black);
  font-family: var(--f-display); font-stretch: 112%; font-size: .72rem; font-weight: 800; letter-spacing: .06em; line-height: 1.5; }
.news-link { font-weight: 600; font-size: 1.04rem; line-height: 1.38; color: var(--black); text-decoration: none; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-link::after { content: ""; position: absolute; inset: 0; }
.news-link:hover { color: #7a6118; }
.news-link:focus-visible { outline: none; }
.news-link:focus-visible::after { outline: 2px solid var(--black); outline-offset: -2px; }
.news-meta { margin-top: auto; padding-top: 14px; font-size: .88rem; color: var(--graphite); }
.news-empty { color: var(--graphite); font-style: italic; margin-top: 24px; }
.news-note { margin-top: 24px; font-size: .9rem; color: var(--graphite); max-width: 80ch; }
@media (max-width: 640px) {
  .news-card { flex-basis: 78vw; max-width: 300px; }
  .news-btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card:hover .news-art-svg { transform: none; }
}

/* Pulsanti in apertura della home: sempre affiancati sullo smartphone, in tutte e due le lingue */
@media (max-width: 640px) {
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-cta .btn { padding-inline: 12px; font-size: clamp(.82rem, 3.7vw, .98rem); text-align: center; line-height: 1.2; }
}
