@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

/* =====================================================================
   BOTTEGO, Design System v3 · "Insegna moderna"
   Crema · navy · oro/ocra · brick, l'insegna di bottega, ma digitale
   Token semantici: --brand (navy), --action (brick), --gold (ocra), --dark (navy profondo).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Superfici */
  --paper: #f4f1ea;        /* crema/carta, sfondo pagina */
  --paper-2: #e9e3d6;      /* crema più calda */
  --card: #fcfaf4;         /* card chiara */
  --ink: #191a20;          /* quasi-nero (testo) */
  --ink-2: #383b44;
  --ink-soft: #63666f;
  --ink-faint: #6c6e73;
  --line: #ded7c8;         /* hairline */
  --line-2: #c9c2b0;

  /* Brand, navy primario, oro accento, brick per le azioni */
  --brand: #22355f;        /* NAVY, colore primario/strutturale */
  --brand-d: #172547;
  --brand-l: #3a527f;
  --action: #b8442b;        /* BRICK, azioni/accento (AA su bianco) */
  --action-d: #93331e;
  --gold: #e0a52b;         /* OCRA/ORO, insegna, evidenze */
  --cream-ink: #f4f1ea;

  /* Sezioni scure, navy profondo */
  --dark: #121c33;
  --dark-2: #18274a;

  /* Tipografia */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  /* Raggi & ombre */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --shadow-sm: 0 1px 0 rgba(18,26,40,.04), 0 4px 14px rgba(18,26,40,.05);
  --shadow-md: 0 10px 34px rgba(18,26,40,.10);
  --shadow-lg: 0 30px 70px rgba(18,26,40,.16);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --nav-h: 60px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* grana sottile + aloni caldi */
  background-image:
    radial-gradient(60% 50% at 85% -5%, rgba(184,68,43,.06), transparent 60%),
    radial-gradient(45% 40% at 5% 8%, rgba(34,53,95,.06), transparent 60%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* grana su tutta la pagina */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }

/* ---------- Tipografia ---------- */
.display { font-family: var(--display); font-weight: 600; font-size: clamp(2.9rem, 7.2vw, 6rem);
  line-height: 1.06; letter-spacing: -0.025em; }
.h1 { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.02em; }
.h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.h3 { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.55rem); }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.4rem); color: var(--ink-2); font-weight: 400; line-height: 1.5; }
.muted { color: var(--ink-soft); }
.serif { font-family: var(--display); }

/* Etichette monospace, accento "editoriale-tech" */
.eyebrow {
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--action-d);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--action); display: inline-block; }
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.center-line { justify-content: center; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(70px, 11vw, 130px); position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--cream-ink); }
.center { text-align: center; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.section-head { max-width: 760px; margin: 0 0 clamp(38px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1.1rem; }
.section-head .eyebrow { margin-bottom: 1.2rem; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .92em 1.5em; border-radius: 100px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .18s ease, background .2s, box-shadow .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #000; box-shadow: var(--shadow-md); }
.btn--action { background: var(--action); color: #fff; box-shadow: 0 10px 26px rgba(184,68,43,.28); }
.btn--action:hover { background: var(--action-d); box-shadow: 0 14px 32px rgba(184,68,43,.36); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-d); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--ink); background: rgba(18,26,40,.03); }
.btn--lg { padding: 1.05em 1.9em; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

.arrow { color: var(--action-d); font-weight: 600; font-family: var(--mono); font-size: .82rem;
  letter-spacing: .04em; display: inline-flex; align-items: center; gap: .4em; }
.arrow .a { transition: transform .2s ease; }
.arrow:hover .a { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(244,241,234,.82); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: .6em; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; }
.nav__logo { width: 30px; height: 30px; flex: 0 0 auto; }
.nav__links { display: flex; gap: clamp(12px, 2vw, 26px); align-items: center; }
.nav__links a { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.nav__links a:hover, .nav__links a.active { color: var(--action-d); }
.nav__cta { background: var(--ink); color: var(--paper) !important; padding: .5em 1.1em;
  border-radius: 100px; font-weight: 600 !important; }
.nav__cta:hover { background: #000; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; place-items: center; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

@media (max-width: 880px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 2px; background: var(--paper); padding: 16px var(--gutter) 26px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-md); }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { font-size: 1.15rem; padding: 12px 0; width: 100%; font-family: var(--display); }
  .nav__cta { align-self: stretch; text-align: center; margin-top: 8px; }
  .nav__toggle { display: grid; }
}

/* ---------- Ticker / marquee ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 1px solid var(--ink); }
.ticker__track { display: inline-flex; gap: 0; white-space: nowrap; padding-block: 13px;
  animation: marquee 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; padding-inline: 26px;
  display: inline-flex; align-items: center; gap: 12px; }
.ticker__track b { color: var(--gold); font-weight: 600; }
.ticker__track i { width: 5px; height: 5px; border-radius: 50%; background: var(--action); display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(30px, 6vw, 70px); }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.hero__tag { display: inline-flex; align-items: center; gap: .55em; margin-bottom: 1.6rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; color: var(--brand);
  background: rgba(34,53,95,.08); border: 1px solid rgba(34,53,95,.18); padding: .5em 1em; border-radius: 100px; }
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 0 rgba(184,68,43,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(184,68,43,.45)} 70%{box-shadow:0 0 0 9px rgba(184,68,43,0)} 100%{box-shadow:0 0 0 0 rgba(184,68,43,0)} }
.hero h1 { margin-bottom: 1.4rem; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--action); font-family: var(--display); }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .14em;
  background: var(--gold); opacity: .55; border-radius: 2px; }
.hero__lead { max-width: 44ch; margin-bottom: 2.1rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(28px, 5vw, 56px); align-items: center; }

/* hero visual, carta con mockup */
.hero__panel { position: relative; }
.hero__frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: var(--card); }
.hero__frame img { width: 100%; height: auto; display: block; }
.hero__svg { width: 100%; height: auto; display: block; }
.hero__svg .d { font-family: var(--display); }
.hero__svg .m { font-family: var(--mono); }
.hero__chip { position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 16px; box-shadow: var(--shadow-md); }
.hero__chip .k { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--brand); line-height: 1; }
.hero__chip .l { font-family: var(--mono); font-size: .68rem; color: var(--ink-soft); letter-spacing: .04em; margin-top: 4px; }
.hero__chip--tl { top: 18px; left: -22px; }
.hero__chip--br { bottom: 26px; right: -18px; }
.hero__chip--br .k { color: var(--action); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1, .hero__lead { max-width: none; }
  .hero__panel { max-width: 440px; margin-top: 10px; }
  .hero__chip--tl { left: 0; }
  .hero__chip--br { right: 0; }
}

/* ---------- Stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; background: var(--card); margin-top: clamp(30px,5vw,52px); }
.statband .cell { padding: 26px clamp(16px,2vw,26px); border-right: 1px solid var(--line); }
.statband .cell:last-child { border-right: 0; }
.statband .n { font-family: var(--display); font-size: clamp(1.9rem,3vw,2.7rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.statband .n .u { color: var(--action); }
.statband .c { font-size: .86rem; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 760px){ .statband { grid-template-columns: 1fr 1fr; }
  .statband .cell:nth-child(2){border-right:0} .statband .cell:nth-child(1),.statband .cell:nth-child(2){border-bottom:1px solid var(--line)} }
@media (max-width: 440px){ .statband { grid-template-columns: 1fr; } .statband .cell{border-right:0;border-bottom:1px solid var(--line)} .statband .cell:last-child{border-bottom:0} }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--dark); color: var(--cream-ink); }
.manifesto__big { font-family: var(--display); font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 500;
  line-height: 1.16; letter-spacing: -0.02em; max-width: 20ch; }
.manifesto__big .hi { color: var(--gold); font-style: italic; }
.manifesto__big .lo { color: rgba(244,241,234,.42); }
.manifesto__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px,5vw,64px); align-items: end; }
.manifesto__side p { color: rgba(244,241,234,.68); font-size: 1rem; }
.manifesto__side p + p { margin-top: 1rem; }
.manifesto__side .stat { font-family: var(--display); font-size: 2.6rem; color: var(--action); font-weight: 600;
  display: block; letter-spacing: -0.02em; }
@media (max-width: 820px){ .manifesto__cols { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Bento (servizi) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px,1.8vw,20px);
  grid-auto-rows: minmax(150px, auto); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.tile__num { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); letter-spacing: .1em; }
.tile h3 { font-size: 1.35rem; margin: 10px 0 6px; }
.tile p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-top: auto;
  align-self: flex-start; }
.tile .ico svg { width: 24px; height: 24px; }
/* spans */
.tile--wide { grid-column: span 4; }
.tile--half { grid-column: span 3; }
.tile--third { grid-column: span 2; }
.tile--feature { grid-column: span 4; grid-row: span 2; background: var(--brand); color: var(--cream-ink); }
.tile--feature h3 { font-size: 1.8rem; }
.tile--feature p { color: rgba(244,241,234,.75); font-size: 1.02rem; }
.tile--feature .tile__num { color: rgba(244,241,234,.5); }
.tile--action { background: var(--action); color: #fff; grid-column: span 2; }
.tile--action h3, .tile--action p { color: #fff; }
.tile--action .tile__num { color: rgba(255,255,255,.6); }
.tile__list { margin: 12px 0 0; padding: 0; list-style: none; }
.tile__list li { font-size: .84rem; padding: 5px 0 5px 20px; position: relative; color: var(--ink-2); }
.tile__list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 5px;
  border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.tile--feature .tile__list li { color: rgba(244,241,234,.85); }
.tile--feature .tile__list li::before { border-color: var(--gold); }
.ico--brand { background: rgba(34,53,95,.1); } .ico--brand svg { stroke: var(--brand); }
.ico--action { background: rgba(184,68,43,.12); } .ico--action svg { stroke: var(--action-d); }
.ico--on-olive { background: rgba(244,241,234,.14); } .ico--on-olive svg { stroke: var(--cream-ink); }
@media (max-width: 900px){ .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide,.tile--half,.tile--third,.tile--feature,.tile--action { grid-column: span 1; grid-row: auto; } }
@media (max-width: 520px){ .bento { grid-template-columns: 1fr; } }

/* ---------- Charts (dark generic) ---------- */
.chart-card { background: var(--dark-2); border: 1px solid rgba(244,241,234,.1); border-radius: var(--r-lg); padding: 26px; }
.chart-card h3 { font-size: 1.1rem; color: var(--cream-ink); }
.chart-card .sub { font-family: var(--mono); font-size: .74rem; color: rgba(244,241,234,.62); margin-top: 4px; letter-spacing: .03em; }
.chart-card .src { font-family: var(--mono); font-size: .72rem; color: rgba(244,241,234,.62); margin-top: 14px; }
.chart-legend { display: flex; gap: 18px; margin-top: 12px; font-size: .78rem; color: rgba(244,241,234,.66); }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.stat { background: rgba(244,241,234,.05); border: 1px solid rgba(244,241,234,.1); border-radius: var(--r-md); padding: 20px; }
.stat b { font-family: var(--display); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--gold); display: block; }
.stat span { font-size: .84rem; color: rgba(244,241,234,.62); }
.growth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,44px); align-items: center; }
@media (max-width: 900px){ .growth__grid { grid-template-columns: 1fr; } .stat-row{grid-template-columns:1fr 1fr} }

/* ---------- Statistiche estese (sezione scura) ---------- */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(22px, 3.5vw, 38px); }
.statbox { background: rgba(244,241,234,.05); border: 1px solid rgba(244,241,234,.1); border-radius: var(--r-md);
  padding: 22px; transition: border-color .25s, transform .25s; }
.statbox:hover { border-color: rgba(224,165,43,.4); transform: translateY(-3px); }
.statbox b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 2.5vw, 2.15rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--gold); line-height: 1.1; }
.statbox p { font-size: .88rem; color: rgba(244,241,234,.72); margin: 10px 0 0; }
.statbox .src { display: block; margin-top: 12px; font-family: var(--mono); font-size: .70rem;
  color: rgba(244,241,234,.62); letter-spacing: .03em; }
@media (max-width: 900px) { .statgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .statgrid { grid-template-columns: 1fr; } }

/* ---------- Blocco onestà ---------- */
.honesty { margin-top: clamp(26px, 4vw, 44px); background: rgba(224,165,43,.07);
  border: 1px solid rgba(224,165,43,.28); border-left: 4px solid var(--gold);
  border-radius: var(--r-md); padding: clamp(22px, 3vw, 32px); }
.honesty h3 { font-family: var(--display); font-size: clamp(1.15rem, 1.9vw, 1.4rem); color: var(--cream-ink); margin-bottom: 10px; }
.honesty p { color: rgba(244,241,234,.78); font-size: .98rem; margin: 0; max-width: 82ch; }
.honesty p + p { margin-top: 10px; }
.honesty b { color: var(--gold); }

/* ---------- Elenco fonti ---------- */
.sources { margin-top: 24px; border-top: 1px solid rgba(244,241,234,.12); padding-top: 18px;
  font-family: var(--mono); font-size: .74rem; color: rgba(244,241,234,.62); line-height: 1.95; }
.sources b { color: rgba(244,241,234,.68); font-weight: 500; }

/* ---------- Storie ---------- */
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2.5vw,26px); }
.story { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px;
  transition: transform .28s, box-shadow .28s; }
.story:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.story__badge { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 600;
  color: #fff; background: var(--action); font-size: 1.05rem; padding: .35em .9em; border-radius: 100px; margin-bottom: 16px; }
.story h3 { font-size: 1.55rem; margin-bottom: 2px; }
.story__place { display: block; font-family: var(--mono); color: var(--brand); font-size: .76rem; letter-spacing: .03em; margin-bottom: 14px; }
.story p { color: var(--ink-soft); font-size: .97rem; margin: 0 0 14px; }
.story__src { font-family: var(--mono); font-size: .68rem; color: var(--ink-faint); }
@media (max-width: 780px){ .stories { grid-template-columns: 1fr; } }

/* ---------- Bandi ---------- */
.grant-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grant { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px;
  transition: transform .28s, box-shadow .28s; }
.grant:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.grant .pct { font-family: var(--display); font-size: 2.1rem; font-weight: 600; letter-spacing: -0.03em; color: var(--action); line-height: 1; }
.grant h3 { font-size: 1.02rem; margin: 12px 0 6px; }
.grant p { font-size: .89rem; color: var(--ink-soft); margin: 0; }
.incentivi-note { margin-top: 28px; background: var(--card); border: 1.5px dashed var(--line-2); border-radius: var(--r-md);
  padding: 22px 28px; font-size: .96rem; text-align: center; color: var(--ink-2); }
.incentivi-note .muted { display: block; margin-top: 8px; font-size: .8rem; }
@media (max-width: 900px){ .grant-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .grant-grid { grid-template-columns: 1fr; } }

/* ---------- Bandi: card cliccabili ---------- */
a.grant { display: block; color: inherit; }
a.grant:hover { text-decoration: none; }
.grant__more { display: inline-flex; align-items: center; gap: .35em; margin-top: 14px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--action-d); }
.grant__more .a { transition: transform .2s ease; }
a.grant:hover .grant__more .a { transform: translateX(4px); }

/* ---------- Header sottopagine ---------- */
.subnav-links { display: flex; gap: clamp(14px, 2vw, 24px); align-items: center; }
.subnav-links a { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.subnav-links a:hover { color: var(--action-d); text-decoration: none; }
.footer--slim .footer__bottom { border-top: 0; }
.bando-sources { border-top: 1px solid var(--line); padding-block: 26px 40px; font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); }
.bando-sources a { color: var(--ink-soft); }
.bando-sources a:hover { color: var(--action-d); }

/* ---------- Pagina dettaglio bando ---------- */
.bando-hero { position: relative; padding-block: clamp(34px, 6vw, 70px) clamp(24px, 4vw, 44px); }
.back-link { display: inline-flex; align-items: center; gap: .4em; font-family: var(--mono); font-size: .78rem;
  letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 26px; }
.back-link:hover { color: var(--action-d); text-decoration: none; }
.bando-hero .kicker { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--action-d); }
.bando-hero h1 { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 600; letter-spacing: -0.02em;
  margin: 12px 0 16px; max-width: 20ch; }
.bando-hero .summary { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 60ch; line-height: 1.5; }

.bando-grid { display: grid; grid-template-columns: 1fr 330px; gap: clamp(28px, 5vw, 56px); align-items: start;
  padding-bottom: clamp(60px, 9vw, 110px); }
.bando-main h2 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 40px 0 12px; }
.bando-main h2:first-child { margin-top: 0; }
.bando-main p { color: var(--ink-2); font-size: 1rem; margin: 0 0 14px; max-width: 66ch; }
.bando-main ul.spec { list-style: none; padding: 0; margin: 8px 0 14px; }
.bando-main ul.spec li { position: relative; padding: 8px 0 8px 30px; font-size: .98rem; color: var(--ink-2);
  border-top: 1px solid var(--line); max-width: 64ch; }
.bando-main ul.spec li:first-child { border-top: 0; }
.bando-main ul.spec li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.bando-main ul.spec li.no::before { border: 0; content: "✕"; left: 3px; top: 8px; color: var(--action-d); font-weight: 700; transform: none; height: auto; }
.callout { background: var(--paper-2); border-left: 3px solid var(--gold); border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px; margin: 18px 0; font-size: .96rem; color: var(--ink-2); }
.callout b { color: var(--ink); }

/* Facts card (sidebar) */
.facts { position: sticky; top: 82px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); }
.facts__badge { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--action);
  line-height: 1; }
.facts__badge small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--ink-soft);
  text-transform: uppercase; margin-top: 4px; -webkit-text-fill-color: initial; }
.facts dl { margin: 20px 0 0; display: grid; gap: 0; }
.facts dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); flex: 0 0 auto; }
.facts dd { margin: 0; text-align: right; font-size: .9rem; font-weight: 500; color: var(--ink); }
.facts .status { display: inline-flex; align-items: center; gap: 6px; }
.facts .dot-ok { width: 8px; height: 8px; border-radius: 50%; background: #2e9e63; display: inline-block; }
.facts .dot-wait { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.facts .btn { margin-top: 20px; width: 100%; justify-content: center; }

.bando-cta { background: var(--brand); color: var(--cream-ink); border-radius: var(--r-lg); padding: clamp(26px,4vw,40px); margin-top: 30px; }
.bando-cta h3 { font-family: var(--display); font-size: 1.5rem; color: var(--cream-ink); }
.bando-cta p { color: rgba(244,241,234,.8); margin: 10px 0 20px; max-width: 60ch; }
.bando-cta .btn--action { background: var(--action); }

.related { border-top: 1px solid var(--line); padding-block: clamp(40px,6vw,64px); }
.related h2 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 20px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.related a:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-3px); }
.related a { transition: transform .2s, border-color .2s; }
.related .p { font-family: var(--display); font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.related .s { font-family: var(--mono); font-size: .72rem; color: var(--action-d); }

@media (max-width: 860px) {
  .bando-grid { grid-template-columns: 1fr; }
  .facts { position: static; }
  .related__grid { grid-template-columns: 1fr; }
}

/* ---------- Settori ---------- */
.sect-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(14px,2vw,20px); }
.sector { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid var(--line); }
.sector img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sector:hover img { transform: scale(1.05); }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18,26,40,.72)); }
.sector__label { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; }
.sector__label b { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.sector__label span { font-family: var(--mono); font-size: .68rem; opacity: .85; }
@media (max-width: 820px){ .sect-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Pacchetti ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,22px); align-items: stretch; }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.pack--feat { background: var(--brand); color: var(--cream-ink); border-color: var(--brand); position: relative; }
.pack--feat .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--action); color: #fff;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; padding: .4em 1em; border-radius: 100px; }
.pack h3 { font-size: 1.4rem; }
.pack .price { font-family: var(--display); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 2px; }
.pack .price small { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--ink-faint); }
.pack--feat .price small { color: rgba(244,241,234,.6); }
.pack .desc { color: var(--ink-soft); font-size: .92rem; min-height: 42px; }
.pack--feat .desc { color: rgba(244,241,234,.75); }
.pack ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.pack li { font-size: .92rem; padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); }
.pack--feat li { border-top-color: rgba(244,241,234,.16); }
.pack li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 11px; height: 6px;
  border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.pack--feat li::before { border-color: var(--gold); }
@media (max-width: 880px){ .pack-grid { grid-template-columns: 1fr; } }

/* ---------- Parole in dialetto, in linea ---------- */
.dial { font-style: italic; color: var(--action-d); font-weight: 600; }
.section--dark .dial, .manifesto .dial { color: var(--gold); }

/* ---------- Citazione in dialetto ---------- */
.dialetto { margin: 22px 0 0; padding: 18px 22px; border-left: 4px solid var(--gold);
  background: rgba(224,165,43,.09); border-radius: 0 var(--r-md) var(--r-md) 0; }
.dialetto .d { font-family: var(--display); font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-style: italic;
  color: var(--ink); margin: 0 0 8px; }
.dialetto .t { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.dialetto .t b { color: var(--action-d); font-style: italic; }

/* ---------- Steps (metodo) ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(18px,2.5vw,30px); counter-reset: s; }
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: .8rem; color: var(--action-d); letter-spacing: .1em; }
.step h3 { font-size: 1.2rem; margin: 6px 0 6px; }
.step p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }

/* ---------- Team CTA ---------- */
.collab { background: var(--action); color: #fff; border-radius: var(--r-xl); padding: clamp(38px,6vw,70px); text-align: center; position: relative; overflow: hidden; }
.collab::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 90% at 85% 0%, rgba(255,255,255,.16), transparent 55%); }
.collab h2 { color: #fff; position: relative; }
.collab p { color: rgba(255,255,255,.9); max-width: 620px; margin: 1rem auto 2rem; position: relative; }
.collab .btn--primary { background: #fff; color: var(--action-d); }
.role-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; position: relative; }
.role-tags span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: .45em 1em;
  border-radius: 100px; font-family: var(--mono); font-size: .78rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 42px 22px 0; position: relative; font-family: var(--display);
  font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.7rem; font-weight: 300; color: var(--action); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--ink-soft); font-size: .98rem; max-width: 68ch; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,58px); align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  font-family: var(--sans); font-size: .98rem; background: var(--card); color: var(--ink); transition: border .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(34,53,95,.12); }
.field textarea { resize: vertical; min-height: 118px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(34,53,95,.09); display: grid; place-items: center; flex: 0 0 auto; }
.contact-info .ico svg { width: 20px; height: 20px; stroke: var(--brand); }
.contact-info b { display: block; font-size: .98rem; }
.contact-info span { color: var(--ink-soft); font-size: .92rem; }
.form-note { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); margin-top: 6px; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success__ico { width: 62px; height: 62px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 2rem;
  display: grid; place-items: center; margin: 0 auto 18px; }
.form-success h3 { font-size: 1.6rem; margin-bottom: .5rem; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(244,241,234,.72); font-size: .88rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-block: 58px 40px; }
.footer__brand { display: flex; align-items: center; gap: .5em; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--cream-ink); margin-bottom: 12px; }
.footer p { color: rgba(244,241,234,.7); max-width: 34ch; }
.footer h4 { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(244,241,234,.64); margin-bottom: 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: rgba(244,241,234,.7); }
.footer li a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(244,241,234,.12); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(244,241,234,.62); font-family: var(--mono); font-size: .74rem; }
@media (max-width: 780px){ .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer__top { grid-template-columns: 1fr; } }

/* ---------- Scroll progress ---------- */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--brand), var(--gold)); }

/* ---------- Prima / Dopo: selettore scene ---------- */
.ba-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vw, 30px); }
.ba-tab { font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--ink-2);
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: 100px;
  padding: .6em 1.3em; transition: background .2s, color .2s, border-color .2s, transform .18s; }
.ba-tab:hover { border-color: var(--ink); transform: translateY(-1px); }
.ba-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ba-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ba__caption { margin-top: 20px; font-size: .96rem; max-width: 62ch; margin-inline: auto; }

/* ---------- Prima / Dopo ---------- */
.ba { position: relative; max-width: 880px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 640 / 420; user-select: none;
  touch-action: none; cursor: ew-resize; background: var(--card); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ba .ba__before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--gold);
  transform: translateX(-1px); pointer-events: none; }
.ba__grip { position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(18,26,40,.3); pointer-events: none; color: var(--ink); }
.ba__grip svg { width: 22px; height: 22px; }
.ba__lbl { position: absolute; top: 14px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .35em .8em; border-radius: 100px; pointer-events: none; }
.ba__lbl--b { left: 14px; background: rgba(18,26,40,.62); color: #fff; }
.ba__lbl--a { right: 14px; background: var(--brand); color: var(--cream-ink); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize; z-index: 3; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; }
.ba__range::-moz-range-thumb { width: 46px; height: 100%; border: 0; background: transparent; }
.ba:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Proof: audit terminale ---------- */
.proof__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.proof h2 { color: var(--cream-ink); }
.proof .lead { color: rgba(244,241,234,.7); }
.proof__note { font-family: var(--mono); font-size: .78rem; color: rgba(244,241,234,.65); margin-top: 18px; }
.term { background: #0d1730; border: 1px solid rgba(244,241,234,.12); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); }
.term__bar { background: #16224180; padding: 11px 15px; display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid rgba(244,241,234,.08); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term__bar .t { margin-left: 10px; font-family: var(--mono); font-size: .74rem; color: rgba(244,241,234,.62); }
.term__body { padding: 20px 22px 24px; font-family: var(--mono); font-size: clamp(.74rem, 1.15vw, .84rem);
  line-height: 1.5; color: rgba(244,241,234,.86); }
.term__row { display: flex; gap: 12px; padding: 5px 0; }
.js .term__row { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.js .term.in .term__row { opacity: 1; transform: none; }
.js .term.in .term__row:nth-child(1){transition-delay:.05s}.js .term.in .term__row:nth-child(2){transition-delay:.18s}
.js .term.in .term__row:nth-child(3){transition-delay:.31s}.js .term.in .term__row:nth-child(4){transition-delay:.44s}
.js .term.in .term__row:nth-child(5){transition-delay:.57s}.js .term.in .term__row:nth-child(6){transition-delay:.70s}
.js .term.in .term__row:nth-child(7){transition-delay:.83s}.js .term.in .term__row:nth-child(8){transition-delay:.96s}
.js .term.in .term__row:nth-child(9){transition-delay:1.09s}
.term__row .k { color: rgba(244,241,234,.64); flex: 0 0 118px; }
.term__row .ok { color: #46c98a; }
.term__row b { color: #fff; font-weight: 600; }
.term__row .cmd { color: var(--gold); }
.term__cursor { display: inline-block; width: 8px; height: 15px; background: var(--gold); vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 820px){ .proof__grid { grid-template-columns: 1fr; } .term__row .k{flex-basis:100px} }

/* ---------- Reveal ---------- */
/* contenuto visibile di default: senza JS resta leggibile */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"]{transition-delay:.07s} .js .reveal[data-d="2"]{transition-delay:.14s} .js .reveal[data-d="3"]{transition-delay:.21s} .js .reveal[data-d="4"]{transition-delay:.28s}

@media (prefers-reduced-motion: reduce) {
  *, *::before { scroll-behavior: auto !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
