/* ==========================================================================
   La Fenice HR Solutions — stile "cruscotto"
   Concetto: la selezione del personale come un viaggio da 0 a 30 giorni,
   letto su uno strumento di bordo. Blu e oro dal logo, brace solo sulla lancetta.
   ========================================================================== */

:root {
  --ink: #0a1d35;
  --navy: #17365a;
  --steel: #2c5680;
  --gold: #c9a96a;
  --gold-light: #e8d6ae;
  --gold-deep: #7a6230;
  --ember: #f0592a;
  --amber: #ffb238;
  --paper: #f3f5f8;
  --white: #ffffff;
  --text: #16263a;
  --muted: #536378;
  --line: rgba(23, 54, 90, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 26px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius-s); font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.display, h1, h2 { font-stretch: 82%; font-weight: 700; letter-spacing: -0.028em; line-height: 1.03; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); }
h2 { font-size: clamp(2.05rem, 4vw, 3.5rem); }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; line-height: 1.25; font-weight: 650; }
p { text-wrap: pretty; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--muted); }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, 0.78); }
.on-dark { color: var(--white); }
.gold { color: var(--gold); }
.small { font-size: .9rem; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.2rem; padding: .85rem 1.5rem; border-radius: var(--radius-m);
  border: 1.5px solid transparent; font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.1;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(201, 169, 106, .7); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-dark); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--ink); transform: translateY(-2px); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .93rem; }
.btn svg { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 60; color: var(--white); }
/* lo sfondo sfocato sta in un pseudo-elemento: backdrop-filter sull'header romperebbe il menu mobile (position: fixed) */
.hdr::before { content: ""; position: absolute; inset: 0; background: rgba(10, 29, 53, .88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line-dark); opacity: 0; transition: opacity .3s; pointer-events: none; }
.hdr.is-solid::before { opacity: 1; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.6rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img:first-child { height: 2.7rem; width: auto; }
.brand img:last-child { height: 1.9rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.7rem); }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .85; position: relative; padding-block: .3rem; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { opacity: 1; }
.burger { display: none; width: 3rem; height: 3rem; border: 1px solid var(--line-dark); border-radius: var(--radius-m); background: transparent; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 1.3rem; height: 2px; background: var(--white); position: relative; transition: transform .3s var(--ease), background-color .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 4.6rem 0 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--ink); padding: 1.2rem var(--gutter) 2rem; overflow-y: auto;
    transform: translateY(-1rem); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 1.5rem; font-weight: 600; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); opacity: 1; font-stretch: 85%; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1.5rem; }
}

/* ---------- Sezioni ---------- */
.sec { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.sec--dark { background: var(--ink); color: var(--white); }
.sec--navy { background: var(--navy); color: var(--white); }
.sec--white { background: var(--white); }
.sec__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.1rem; }
.sec__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec--dark .lead, .sec--navy .lead { color: rgba(255, 255, 255, .78); }

/* ---------- Hero home ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden;
  padding: clamp(7.5rem, 12vw, 9.5rem) 0 0;
  background-image:
    radial-gradient(55% 60% at 74% 48%, rgba(44, 86, 128, .55), transparent 70%),
    radial-gradient(40% 40% at 74% 52%, rgba(201, 169, 106, .10), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__sub { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: rgba(255,255,255,.82); max-width: 34rem; margin-bottom: 2rem; }
.areas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.areas li { border: 1px solid var(--line-dark); border-radius: 999px; padding: .3rem .95rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero__meta { margin-top: 1.1rem; font-size: .9rem; color: rgba(255,255,255,.6); }

/* Contagiri */
.gauge { position: relative; width: min(100%, 620px); margin-inline: auto; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__face { container-type: inline-size; }
.gauge__readout { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); width: 56%; text-align: center; pointer-events: none; }
.gauge__num { font-size: 17cqw; font-weight: 780; font-stretch: 78%; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--white); }
.gauge__unit { font-size: 3.4cqw; letter-spacing: .02em; color: rgba(255,255,255,.7); margin-top: .5cqw; }
.gauge__phase { margin-top: 1.2cqw; font-weight: 650; font-size: 4.2cqw; line-height: 1.1; white-space: nowrap; color: var(--gold-light); transition: color .3s; }
.gauge.is-done .gauge__phase { color: var(--white); }
.g-track { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 22; }
.g-fill { fill: none; stroke: var(--gold); stroke-width: 22; stroke-dasharray: 100; stroke-dashoffset: 100; }
.g-fill--red { stroke: var(--ember); }
.g-tick { stroke: rgba(255,255,255,.38); stroke-width: 2; }
.g-tick--major { stroke: rgba(255,255,255,.85); stroke-width: 3; }
.g-num { fill: rgba(255,255,255,.72); font-size: 21px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.g-bezel { fill: none; stroke: url(#gBezel); stroke-width: 2; }
.g-needle { filter: drop-shadow(0 0 10px rgba(240, 89, 42, .75)); }
.g-mark { opacity: .28; transition: opacity .8s, filter .8s; }
.gauge.is-done .g-mark { opacity: 1; filter: drop-shadow(0 0 16px rgba(201, 169, 106, .6)); }
.gauge__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; margin-top: .4rem; }
.gstep { position: relative; text-align: left; background: transparent; border: 0; border-top: 3px solid rgba(255,255,255,.16); padding: .65rem .2rem 0 0; font-size: clamp(.72rem, 1.15vw, .88rem); line-height: 1.2; color: rgba(255,255,255,.6); transition: color .3s, border-color .3s; }
.gstep b { display: block; font-size: .78em; font-weight: 600; color: rgba(255,255,255,.45); margin-bottom: .15rem; font-variant-numeric: tabular-nums; }
.gstep.is-done { border-color: var(--gold); color: rgba(255,255,255,.92); }
.gstep.is-current { color: var(--white); font-weight: 650; }
.gstep:hover { color: var(--white); }
.gstep:last-child.is-done { border-color: var(--ember); }
.gauge__desc { min-height: 3.6em; margin-top: 1rem; font-size: .97rem; color: rgba(255,255,255,.78); max-width: 36rem; }

/* Fascia numeri */
.figures { border-top: 1px solid var(--line-dark); background: rgba(6, 18, 34, .55); }
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fig { padding: 1.7rem 1.4rem 1.7rem 0; }
.fig + .fig { padding-left: 1.6rem; border-left: 1px solid var(--line-dark); }
.fig strong { display: block; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; font-weight: 750; font-stretch: 80%; letter-spacing: -.02em; color: var(--white); font-variant-numeric: tabular-nums; }
.fig span { display: block; margin-top: .4rem; font-size: .93rem; color: rgba(255,255,255,.7); line-height: 1.35; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .fig { padding: 1.3rem 1rem 1.3rem 0; }
  .fig:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 520px) {
  .gauge__steps { grid-template-columns: repeat(5, 1fr); gap: .3rem; }
  .gstep { font-size: .66rem; }
  .gstep b { display: none; }
}

/* ---------- Spie ---------- */
.spie { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.spia { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; background: var(--white); padding: clamp(1.4rem, 3vw, 2.4rem); }
.lamp { position: relative; width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center; border: 0; background: #e9edf2; color: #9aa6b5; transition: background-color .6s, color .6s, box-shadow .6s; flex: none; }
.lamp svg { width: 2.2rem; height: 2.2rem; }
.lamp::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--line); }
.spia.is-on .lamp { background: var(--amber); color: #5a3300; box-shadow: 0 0 0 6px rgba(255, 178, 56, .22), 0 0 40px 6px rgba(255, 178, 56, .55); animation: lampPulse 1.8s ease-in-out infinite; }
@keyframes lampPulse { 50% { box-shadow: 0 0 0 10px rgba(255, 178, 56, .12), 0 0 56px 12px rgba(255, 178, 56, .35); } }
.spia:not(.is-on) .lamp { background: var(--navy); color: var(--gold); }
.spia__problem h3 { margin-bottom: .35rem; }
.spia__problem p { color: var(--muted); font-size: 1rem; }
.spia__fix { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 3rem); }
.spia__fix .tag { display: inline-block; font-size: .8rem; font-weight: 650; padding: .15rem .6rem; border-radius: 999px; background: var(--navy); color: var(--gold-light); margin-bottom: .55rem; }
.spia__fix h4 { font-size: 1.25rem; margin-bottom: .35rem; }
.spia__fix p { font-size: 1rem; color: var(--text); }
.tag--gold { background: var(--gold) !important; color: var(--ink) !important; margin-left: .3rem; }
.js .spia__fix { transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease); }
.js .spia.is-on .spia__fix { opacity: .18; filter: blur(5px); transform: translateX(10px); }
.js .spia.is-on .spia__problem h3 { color: #9b5a00; }
.spia__problem h3 { transition: color .6s; }
.spie-foot { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.spie-foot p { font-size: 1.25rem; font-stretch: 90%; max-width: 38rem; color: var(--text); font-weight: 500; line-height: 1.4; }

@media (max-width: 860px) {
  .spia { grid-template-columns: auto 1fr; }
  .spia__fix { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 1.2rem 0 0; }
}

/* ---------- Metodo ---------- */
.metodo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.metodo__side { position: sticky; top: 7rem; display: grid; gap: 1.6rem; }
.ring { position: relative; width: clamp(150px, 20vw, 220px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .r-bg { stroke: rgba(255,255,255,.12); }
.ring .r-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .5s var(--ease); }
.ring__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring__txt strong { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 780; font-stretch: 78%; font-variant-numeric: tabular-nums; }
.ring__txt span { font-size: .88rem; color: rgba(255,255,255,.7); margin-top: .35rem; }
.steps { position: relative; display: grid; gap: 0; counter-reset: st; }
.steps::before { content: ""; position: absolute; left: 1.3rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: rgba(255,255,255,.14); }
.steps::after { content: ""; position: absolute; left: 1.3rem; top: 1.4rem; width: 2px; bottom: 1.4rem; transform-origin: top; transform: scaleY(var(--sp, 0)); background: linear-gradient(var(--gold), var(--gold-light)); transition: transform .2s linear; }
.step { position: relative; padding: 0 0 clamp(2.4rem, 5vw, 4rem) 4.4rem; opacity: .45; transition: opacity .5s; }
.step:last-child { padding-bottom: 0; }
.step.is-active, .step.is-passed { opacity: 1; }
.step__n { position: absolute; left: 0; top: 0; width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--ink); border: 2px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); z-index: 1; transition: background-color .4s, color .4s, border-color .4s; }
.step.is-passed .step__n, .step.is-active .step__n { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.step:last-child.is-active .step__n { background: var(--ember); border-color: var(--ember); color: #fff; }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-stretch: 88%; margin: .1rem 0 .55rem; }
.step p { color: rgba(255,255,255,.78); }
.step ul { margin-top: .9rem; display: grid; gap: .55rem; }
.step li { position: relative; padding-left: 1.6rem; color: rgba(255,255,255,.85); font-size: 1rem; }
.step li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: 2px; background: var(--gold); }
.step__note { margin-top: .8rem; color: var(--gold-light); font-weight: 600; }
@media (max-width: 900px) {
  .metodo { grid-template-columns: 1fr; }
  .metodo__side { position: static; }
  .ring { display: none; }
}

/* ---------- Clienti / loghi ---------- */
.logos { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; gap: 1rem; width: max-content; animation: slide 60s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logo-card { position: relative; width: 12.5rem; height: 6rem; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); flex: none; }
/* i file sono ritagliati al contenuto: riempiono tutti lo stesso riquadro, centrati */
.logo-card img { position: absolute; inset: .95rem 1.2rem; width: calc(100% - 2.4rem); height: calc(100% - 1.9rem); object-fit: contain; object-position: center; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logo-card:hover img { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(calc(-50% - .5rem)); } }

.quotes { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.qlist { display: grid; gap: .3rem; }
.qtab { text-align: left; background: transparent; padding: .8rem 1rem; transition: box-shadow .3s, background-color .3s; border-radius: var(--radius-m); }
.qtab strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.qtab span { font-size: .88rem; color: var(--muted); }
.qtab:hover { background: rgba(23, 54, 90, .05); }
.qtab[aria-selected="true"] { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 24px -14px rgba(10, 29, 53, .35); }
.qpanel { position: relative; background: var(--navy); color: var(--white); border-radius: var(--radius-l); padding: clamp(1.8rem, 4vw, 3.4rem); min-height: 22rem; overflow: hidden; }
.qpanel::before { content: "“"; position: absolute; right: 1.6rem; top: -1.5rem; font-size: 14rem; line-height: 1; font-weight: 800; color: rgba(201, 169, 106, .14); font-family: Georgia, serif; }
.qpanel blockquote { position: relative; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.5; font-stretch: 92%; font-weight: 450; }
.qpanel blockquote p { max-width: none; color: var(--white); }
.qpanel blockquote p + p { margin-top: 1rem; }
.qpanel footer { position: relative; margin-top: 1.6rem; display: flex; flex-direction: column; gap: .1rem; }
.qpanel footer strong { color: var(--gold-light); font-size: 1.05rem; }
.qpanel footer span { color: rgba(255,255,255,.7); font-size: .95rem; }
.qpanel[hidden] { display: none; }
@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; }
  .qlist { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: .5rem; padding-bottom: .5rem; scrollbar-width: thin; }
  .qtab { box-shadow: inset 0 0 0 1px var(--line); }
}

/* ---------- Pacchetti ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.4rem; padding: clamp(1.8rem, 3.5vw, 3rem); border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); }
.plan--gold { background: var(--ink); color: var(--white); border-color: var(--gold); box-shadow: 0 30px 70px -30px rgba(10, 29, 53, .7), inset 0 0 0 1px rgba(201,169,106,.25); }
.plan__badge { align-self: flex-start; font-size: .82rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; background: var(--gold); color: var(--ink); }
.plan h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-stretch: 80%; font-weight: 720; letter-spacing: -.02em; line-height: 1; }
.plan h3 span { color: var(--gold); }
.plan:not(.plan--gold) h3 span { color: var(--gold-deep); }
.plan__for { color: var(--muted); font-size: 1.05rem; }
.plan--gold .plan__for { color: rgba(255,255,255,.75); }
.plan ul { display: grid; gap: 1rem; flex: 1; }
.plan li { position: relative; padding-left: 2rem; font-size: 1rem; }
.plan li strong { display: block; font-weight: 650; }
.plan li span { color: var(--muted); }
.plan--gold li span { color: rgba(255,255,255,.72); }
.plan li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23e8d6ae' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E") center/70% no-repeat; }
.plan--gold li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230a1d35' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E"); }
.plan__guarantee { display: flex; align-items: baseline; gap: .6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.plan--gold .plan__guarantee { border-color: var(--line-dark); }
.plan__guarantee strong { font-size: 2.6rem; line-height: 1; font-weight: 760; font-stretch: 78%; }
.plan__guarantee span { font-size: .95rem; color: var(--muted); line-height: 1.3; }
.plan--gold .plan__guarantee span { color: rgba(255,255,255,.72); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.cta-band { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); }
.cta-band p { font-size: 1.2rem; font-stretch: 90%; font-weight: 550; max-width: 34rem; color: var(--text); }

/* ---------- Figure ricercate ---------- */
.tabs { display: inline-flex; padding: .3rem; border-radius: var(--radius-m); background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); margin-bottom: 2rem; }
.tab { border: 0; background: transparent; padding: .7rem 1.4rem; border-radius: 10px; font-weight: 650; color: rgba(255,255,255,.75); transition: background-color .25s, color .25s; }
.tab small { font-weight: 500; opacity: .7; margin-left: .35rem; }
.tab[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); font-size: .98rem; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.chips li:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.roles-foot { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.roles-foot p { color: rgba(255,255,255,.78); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.person { display: flex; flex-direction: column; gap: 1rem; }
.person__ph { position: relative; border-radius: var(--radius-l); overflow: hidden; background: #dde2e9; aspect-ratio: 4 / 4.6; }
.person__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .8s var(--ease); }
.person:hover .person__ph img { transform: scale(1.04); }
.person__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,29,53,.5)); pointer-events: none; }
.person h3 { font-size: 1.5rem; }
.person .role { color: var(--gold-deep); font-weight: 650; margin-top: -.6rem; }
.person p { color: var(--muted); font-size: 1rem; }
.person details summary { cursor: pointer; font-weight: 650; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
.person details summary::-webkit-details-marker { display: none; }
.person details summary::after { content: "+"; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1rem; line-height: 1; transition: transform .3s var(--ease); }
.person details[open] summary::after { transform: rotate(45deg); }
.person details p { margin-top: .8rem; }
.accredit { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius-l); background: var(--navy); color: var(--white); }
.accredit img { height: 5.5rem; width: auto; }
.accredit strong { display: block; font-size: 1.35rem; font-stretch: 88%; margin-bottom: .25rem; }
.accredit p { color: rgba(255,255,255,.78); font-size: 1rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; max-width: 30rem; } .accredit { grid-template-columns: 1fr; } }

/* ---------- Contatto / form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.reasons { display: grid; gap: 1.6rem; margin-top: 2.2rem; }
.reason { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.reason__i { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(201,169,106,.16); color: var(--gold); }
.reason__i svg { width: 1.3rem; height: 1.3rem; }
.reason h4 { color: var(--white); margin-bottom: .2rem; }
.reason p { font-size: .98rem; color: rgba(255,255,255,.72); }
.callout { margin-top: 2.2rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-m); border: 1px solid var(--line-dark); display: flex; gap: 1rem; align-items: center; }
.callout strong { font-size: 2.2rem; font-weight: 760; font-stretch: 78%; color: var(--gold); line-height: 1; }
.callout span { font-size: .98rem; color: rgba(255,255,255,.82); line-height: 1.3; }
.form { background: var(--white); color: var(--text); border-radius: var(--radius-l); padding: clamp(1.5rem, 3.5vw, 2.8rem); display: grid; gap: 1.1rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.form h3 { font-size: 1.6rem; font-stretch: 88%; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-size: .9rem; font-weight: 600; color: var(--navy); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: .7rem .95rem; border: 1.5px solid #cfd7e2; border-radius: var(--radius-s); background: #fbfcfd; font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(23, 54, 90, .14); }
.field input:user-invalid { border-color: #c2331c; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; }
.pills legend { margin-bottom: .45rem; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid #cfd7e2; background: #fbfcfd; font-size: .95rem; font-weight: 550; transition: all .2s; cursor: pointer; }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; font-size: .88rem; color: var(--muted); align-items: start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--navy); }
.form .btn { width: 100%; }
.form__note { font-size: .88rem; color: var(--muted); text-align: center; }
.form__ok { display: none; text-align: center; padding: 2rem 0; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__ok { display: block; }
.form__ok h3 { margin-bottom: .6rem; }
.form__ok p { margin-inline: auto; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Stampa ---------- */
.press { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.clip { display: grid; gap: .9rem; text-align: left; background: none; border: 0; padding: 0; }
.clip__img { position: relative; height: clamp(17rem, 30vw, 26rem); border-radius: var(--radius-m); overflow: hidden; background: #e6eaf0; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(10,29,53,.6); }
.clip__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.clip:hover .clip__img img { transform: scale(1.04); }
.clip__img span { position: absolute; right: .8rem; bottom: .8rem; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; }
.clip h3 { font-size: 1.1rem; }
.clip p { font-size: .93rem; color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 900px); max-height: 94vh; overflow: visible; margin: auto; }
dialog.lightbox::backdrop { background: rgba(6, 18, 34, .88); backdrop-filter: blur(4px); }
dialog.lightbox img { max-height: 90vh; width: auto; margin: auto; border-radius: var(--radius-m); }
.lightbox__close { position: absolute; top: -3rem; right: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 1.4rem; line-height: 1; }
@media (max-width: 860px) { .press { grid-template-columns: 1fr; max-width: 30rem; } }

/* ---------- Footer ---------- */
.foot { background: #061426; color: rgba(255,255,255,.75); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: .98rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.foot .brand { margin-bottom: 1.2rem; }
.foot h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.foot li + li { margin-top: .5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background-color .25s, border-color .25s, color .25s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); text-decoration: none; }
.social svg { width: 1.15rem; height: 1.15rem; }
.foot__legal { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.55); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Pagine interne ---------- */
.phero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(8rem, 13vw, 11rem) 0 clamp(3.5rem, 7vw, 6rem);
  background-image: radial-gradient(50% 80% at 85% 20%, rgba(44,86,128,.55), transparent 70%); }
.phero__ring { position: absolute; right: -14rem; top: 50%; width: 46rem; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 135deg, rgba(255,255,255,.35) 0 .5deg, transparent .5deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 60.5% 66%, transparent 66.5%); mask: radial-gradient(circle, transparent 60%, #000 60.5% 66%, transparent 66.5%); }
.phero .wrap { position: relative; }
.phero h1 { max-width: 16em; margin-bottom: 1.4rem; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.phero .lead { max-width: 40rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.crumb { font-size: .92rem; color: rgba(255,255,255,.6); margin-bottom: 1.4rem; }
.crumb a { text-decoration: none; } .crumb a:hover { color: var(--gold-light); }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: .8rem; align-content: start; }
.card--dark { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--white); }
.card--dark p { color: rgba(255,255,255,.75); }
.card__i { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin-bottom: .4rem; }
.card--dark .card__i { background: rgba(201,169,106,.16); }
.card__i svg { width: 1.4rem; height: 1.4rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card ul { display: grid; gap: .5rem; margin-top: .3rem; }
.card li { position: relative; padding-left: 1.4rem; font-size: 1rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--gold-deep); }
.card--dark li::before { background: var(--gold); }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
@media (max-width: 760px) { .cards2 { grid-template-columns: 1fr; } }
.sector { display: grid; gap: 1rem; }
.sector h3 { font-size: 1.7rem; font-stretch: 85%; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img.photo { border-radius: var(--radius-l); width: 100%; height: 100%; max-height: 32rem; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.bar { display: grid; gap: 1.2rem; }
.bar__row { display: grid; grid-template-columns: 1fr; gap: .3rem; }
.list-check { display: grid; gap: .8rem; }
.list-check li { position: relative; padding-left: 2rem; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230a1d35' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E") center/70% no-repeat; }

.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-l); overflow: hidden; }
.phase { background: var(--ink); padding: clamp(1.3rem, 2.5vw, 2rem); display: grid; gap: .6rem; align-content: start; }
.phase b { font-size: 2.4rem; line-height: 1; color: var(--gold); font-stretch: 78%; font-weight: 760; }
.phase p { font-size: .97rem; color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr; } }

.stat-big { display: grid; gap: .3rem; }
.stat-big strong { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 780; font-stretch: 76%; line-height: .95; color: var(--gold); letter-spacing: -.03em; }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--gold); box-shadow: 0 16px 36px -26px rgba(10,29,53,.5); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 1.4rem; font-weight: 650; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--muted); max-width: 70ch; }
.faq details p a { color: var(--navy); font-weight: 600; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.post { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); text-decoration: none; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.post:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 24px 50px -30px rgba(10,29,53,.5); }
.post__meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); }
.post__meta b { font-weight: 600; padding: .1rem .6rem; border-radius: 999px; background: rgba(23,54,90,.08); color: var(--navy); }
.post h3 { font-size: 1.35rem; font-stretch: 90%; }
.post p { color: var(--muted); font-size: .98rem; }
.post .more { margin-top: auto; font-weight: 650; color: var(--navy); display: inline-flex; gap: .4rem; align-items: center; }
.post--feat { grid-column: 1 / -1; background: var(--navy); color: var(--white); border-color: var(--navy); }
.post--feat h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-stretch: 84%; }
.post--feat p, .post--feat .post__meta { color: rgba(255,255,255,.75); }
.post--feat .post__meta b { background: rgba(201,169,106,.2); color: var(--gold-light); }
.post--feat .more { color: var(--gold-light); }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* Candidati: testimonianze a griglia */
.voices { columns: 3 20rem; column-gap: clamp(1rem, 2.5vw, 1.6rem); }
.voice { break-inside: avoid; margin-bottom: clamp(1rem, 2.5vw, 1.6rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.6rem; }
.voice blockquote p { font-size: 1rem; line-height: 1.55; color: var(--text); max-width: none; }
.voice blockquote p + p { margin-top: .7rem; }
.voice footer { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; }
.voice footer strong { color: var(--navy); }
.voice footer span { font-size: .9rem; color: var(--muted); }

.contact-cards { display: grid; gap: 1rem; margin-top: 2rem; }
.ccard { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border: 1px solid var(--line-dark); border-radius: var(--radius-m); text-decoration: none; transition: border-color .3s, background-color .3s; }
.ccard:hover { border-color: var(--gold); background: rgba(255,255,255,.05); }
.ccard .reason__i { width: 3rem; height: 3rem; }
.ccard span { display: block; font-size: .88rem; color: rgba(255,255,255,.65); }
.ccard strong { font-size: 1.2rem; color: var(--white); font-weight: 650; }

/* ---------- Riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .logos__track { animation: none; }
  .logos { overflow-x: auto; }
}

/* Contagiri: il quadrante è il riferimento per il display centrale */
.gauge__face { position: relative; }
.hero h1 { max-width: 13em; }
.gauge__face { width: min(100%, max(340px, calc(100vh - 23rem))); margin-inline: auto; }
.ring__txt strong b { font-weight: inherit; }
.callout strong { white-space: nowrap; }

/* Filtri blog */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; transition: background-color .25s, color .25s, border-color .25s; }
.filter:hover { border-color: var(--navy); }
.filter.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.post[hidden] { display: none; }
.post--feat[hidden] { display: none; }

@media (max-width: 960px) {
  .hero { padding-top: 6.2rem; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); margin-bottom: 1rem; }
  .hero__sub { font-size: 1.05rem; margin-bottom: 1.4rem; }
  .hero .areas { display: none; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Pagine legali */
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.6rem 0 .8rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 1.4rem 0 .4rem; font-size: 1.1rem; }
.legal p { color: var(--text); max-width: 68ch; }
.legal p + p { margin-top: .8rem; }
.legal a { color: var(--navy); font-weight: 600; }
.check a { color: var(--navy); font-weight: 600; }

/* ---------- Blog: elenco con copertine ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.blogbar { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.blogbar .filters { margin-bottom: 0; }
.filter small { font-weight: 500; opacity: .6; margin-left: .2rem; }
.search { position: relative; display: block; min-width: min(100%, 18rem); }
.search svg { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; width: 1.15rem; height: 1.15rem; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 2.9rem; padding: .6rem 1rem .6rem 2.7rem; border: 1.5px solid #cfd7e2; border-radius: 999px; background: var(--white); font: inherit; color: var(--text); }
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(23, 54, 90, .14); }
.blogcount { font-size: .92rem; color: var(--muted); margin: 0 0 1.4rem; }
.blogempty { padding: 2.5rem 0; text-align: center; color: var(--muted); max-width: none; }
.blogmore { display: flex; justify-content: center; margin-top: 2.2rem; }
.blogmore[hidden] { display: none; }

.posts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post { padding: 0; gap: 0; overflow: hidden; }
.post__img { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #dfe5ee; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.2rem, 2.4vw, 1.7rem); flex: 1; }
.post__body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); }
.post__meta b { font-weight: 600; padding: .1rem .6rem; border-radius: 999px; background: rgba(23,54,90,.08); color: var(--navy); }
.post--feat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-column: 1 / -1; }
.post--feat .post__img { aspect-ratio: auto; height: 100%; min-height: 15rem; }
.post--feat .post__body { justify-content: center; padding: clamp(1.5rem, 3.5vw, 3rem); }
.post--feat .post__body p { -webkit-line-clamp: 4; }
.post--feat .post__meta b { background: rgba(201,169,106,.2); color: var(--gold-light); }
.post--feat .post__meta { color: rgba(255,255,255,.75); }
.post[hidden] { display: none; }
@media (max-width: 1000px) { .posts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .posts--3 { grid-template-columns: 1fr; } .post--feat { grid-template-columns: 1fr; } .post--feat .post__img { aspect-ratio: 2 / 1; height: auto; min-height: 0; } }

/* ---------- Articolo ---------- */
.phero--post h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 20em; }
.post__cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.post__cats a { text-decoration: none; font-size: .88rem; font-weight: 600; padding: .25rem .8rem; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--gold-light); transition: background-color .25s, color .25s; }
.post__cats a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.post__info { display: flex; flex-wrap: wrap; gap: .3rem 0; color: rgba(255,255,255,.7); font-size: .95rem; max-width: none; }
.post__info span + span { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--line-dark); }
.wrap--article { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.article__cover { margin: 0 0 2.2rem; }
.article__cover img { width: 100%; height: auto; border-radius: var(--radius-l); }
.article { font-size: 1.14rem; line-height: 1.75; color: var(--text); }
.article > :first-child { margin-top: 0; }
.article p { max-width: none; margin-top: 1.1rem; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-stretch: 85%; margin: 2.8rem 0 .3rem; }
.article h3 { font-size: 1.3rem; margin: 2rem 0 .2rem; }
.article ul, .article ol { margin-top: 1rem; display: grid; gap: .55rem; }
.article ul li { position: relative; padding-left: 1.6rem; }
.article ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: .8rem; height: 2px; background: var(--gold-deep); }
.article ol { list-style: decimal; padding-left: 1.5rem; }
.article ol li::marker { color: var(--gold-deep); font-weight: 700; }
.article a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.article a:hover { text-decoration-color: var(--navy); }
.article strong { font-weight: 650; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.6rem; }
.tags li { font-size: .88rem; padding: .25rem .8rem; border-radius: 999px; background: rgba(23,54,90,.07); color: var(--navy); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share > span { font-weight: 650; margin-right: .4rem; }
.share a, .share button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); display: grid; place-items: center; transition: background-color .25s, color .25s, border-color .25s; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share svg { width: 1.15rem; height: 1.15rem; }
.share .is-copied { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.2rem; }
.pn { display: grid; gap: .3rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; transition: border-color .3s, box-shadow .3s; }
.pn:hover { border-color: var(--gold); box-shadow: 0 16px 36px -26px rgba(10,29,53,.5); }
.pn small { color: var(--muted); font-size: .85rem; }
.pn span { font-weight: 650; line-height: 1.3; }
.pn--next { grid-column: 2; text-align: right; }
.pn--prev:only-child, .pn--next:only-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .pn-row { grid-template-columns: 1fr; } .pn--next { grid-column: auto; text-align: left; } }

/* ---------- Varie ---------- */
.photo-band { margin: 0; }
.photo-band img { width: 100%; height: clamp(14rem, 32vw, 26rem); object-fit: cover; border-radius: var(--radius-l); }
.partner { margin-top: clamp(3rem, 6vw, 5rem); }
.partner__t { font-size: 1.4rem; font-stretch: 88%; margin-bottom: 1.2rem; }
.partner__card { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; padding: 1.3rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--paper); max-width: 46rem; }
.partner__card img { height: 5rem; width: auto; border-radius: var(--radius-s); }
.partner__card span { font-size: 1rem; color: var(--muted); }
.partner__card strong { display: block; color: var(--navy); font-size: 1.15rem; margin-bottom: .2rem; }
@media (max-width: 560px) { .partner__card { grid-template-columns: 1fr; } }
.phases--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .phases--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .phases--5 { grid-template-columns: 1fr; } }
.phases--5 .phase h3 { font-size: 1.1rem; }
