/* =========================================================
   VCH 2027 — La vulnerabilità del patrimonio culturale
   ========================================================= */
:root {
  --blue: #378ce9;
  --blue-d: #1f6fd0;
  --blue-l: #5fa3ec;
  --blue-xl: #dbe9fb;
  --maroon: #911d2a;
  --red: #bc1a29;
  --ink: #2e2326;
  --ink-2: #5a4d50;
  --bg: #f3f1f2;
  --white: #fff;
  --display: "Onest", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; border-radius: 4px; }

main { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--maroon)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 999px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; cursor: pointer;
  transition: transform .35s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .35s;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.600; transition: transform .35s var(--ease-out); }
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(31, 111, 208, .7); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--blue-d); }
.btn--ghost:hover { color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--red); }
.btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn--sm { padding: 11px 20px; font-size: 13px; }

/* ---------- section headings ---------- */
.h-sec {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 5.200vw, 72px); line-height: .98; letter-spacing: -.01em; color: var(--blue);
}
.h-sec--light { color: #fff; }
.h-sec--dark { color: #111; }
.eyebrow { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--maroon); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--pad);
  transition: transform .5s var(--ease-out), background .3s, box-shadow .3s, padding .3s;
}
.nav.is-solid { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(46, 35, 38, .08); padding-block: 10px; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-family: var(--display); font-size: 24px; line-height: 1; display: inline-flex; gap: 6px; align-items: baseline; }
.nav__logo b { font-weight: 900; color: var(--blue); }
.nav__logo span { font-weight: 200; color: var(--ink); }
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; font-size: 14px; font-weight: 600; }
.nav__links a { position: relative; padding: 6px 0; color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease-out); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__links a.is-active { color: var(--blue-d); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; justify-content: center; gap: 6px; padding: 90px var(--pad) 40px;
    background: var(--blue); font-family: var(--display); font-size: clamp(28px, 7vw, 44px); font-weight: 800;
    clip-path: circle(0% at calc(100% - 42px) 38px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav__links a { color: #fff; }
  .nav__links a::after { background: #fff; }
  .nav__links a.is-active { color: #fff; }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 42px) 38px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .nav.is-open { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-open .nav__logo b, .nav.is-open .nav__logo span { color: #fff; }
  .nav.is-open .nav__toggle { background: #fff; }
  .nav.is-open .nav__toggle span { background: var(--blue); }
  .nav.is-open .nav__cta { opacity: 0; pointer-events: none; }
}
@media (max-width: 520px) { .nav__cta { display: none; } .nav__toggle { margin-left: auto; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, .820fr) minmax(0, 1.300fr); align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: 96px var(--pad) 80px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(55, 140, 233, .14), transparent 70%),
    linear-gradient(#fff 0 62%, var(--bg) 62%);
  overflow: hidden;
}
.hero__title { font-family: var(--display); font-size: clamp(58px, min(6.600vw, 15vh), 132px); line-height: .9; letter-spacing: -.035em; margin-top: 10px; white-space: nowrap; }
.hero__title b { font-weight: 900; color: var(--blue); }
.hero__title i { font-style: normal; font-weight: 200; color: var(--ink); letter-spacing: -.05em; }
.hero__sub { font-family: var(--display); font-weight: 800; color: var(--blue); font-size: clamp(22px, 3vw, 44px); line-height: 1.050; margin-top: 12px; letter-spacing: -.01em; }
.hero__meta { margin-top: clamp(20px, 3vw, 36px); font-family: var(--display); }
.hero__meta strong { display: block; font-weight: 900; color: var(--blue); font-size: clamp(26px, 3vw, 44px); line-height: 1; }
.hero__meta em { display: block; font-style: normal; font-weight: 500; font-size: clamp(20px, 2.200vw, 32px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.countdown { display: flex; gap: clamp(14px, 2vw, 30px); margin-top: clamp(26px, 3vw, 44px); }
.countdown div { display: flex; flex-direction: column-reverse; min-width: 56px; }
.countdown dd { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.800vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.countdown div + div { border-left: 1px solid rgba(46, 35, 38, .16); padding-left: clamp(14px, 2vw, 30px); }

.hero__visual { position: relative; align-self: stretch; display: flex; align-items: center; margin-right: calc(var(--pad) * -1); }
.hero__img { position: relative; width: 100%; aspect-ratio: 1 / .88; max-height: calc(100svh - 150px); border-radius: 78% 0 0 0 / 100% 0 0 0; overflow: hidden; will-change: transform; box-shadow: 0 40px 80px -40px rgba(31, 60, 110, .55); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.160); will-change: transform; }
.hero__badge { position: absolute; top: 5%; right: 5%; width: clamp(64px, 7vw, 104px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: 0 16px 40px -16px rgba(31, 60, 110, .5); transition: transform .5s var(--ease-out), background .3s, color .3s; }
.hero__badge svg { width: 46%; height: 46%; stroke-width: 3; }
.hero__badge:hover { background: var(--blue); color: #fff; transform: rotate(-45deg) scale(1.060); }
.hero__ring { position: absolute; left: -8%; bottom: 2%; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--blue); opacity: .5; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { position: absolute; left: var(--pad); bottom: 26px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.hero__scroll span { width: 1px; height: 44px; background: rgba(46, 35, 38, .2); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--blue); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* hero entrance (lines slide up from a mask) */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
.js .line > span { transform: translateY(110%); transition: transform 1.100s var(--ease-out); }
.js .fade { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .hero__img { clip-path: circle(0% at 100% 100%); transition: clip-path 1.600s var(--ease); }
.js .hero__badge { scale: 0; transition: scale .8s var(--ease-out) 1.100s, transform .5s var(--ease-out), background .3s, color .3s; }
.js .loaded .line > span { transform: none; }
.js .loaded .fade { opacity: 1; transform: none; }
.js .loaded .hero__img { clip-path: circle(150% at 100% 100%); }
.js .loaded .hero__badge { scale: 1; }
.hero__text > :nth-child(1) > span { transition-delay: .1s; }
.hero__title .line > span { transition-delay: .2s; }
.hero__sub .line:nth-child(1) > span { transition-delay: .35s; }
.hero__sub .line:nth-child(2) > span { transition-delay: .45s; }
.hero__meta > span { transition-delay: .6s; }
.hero__cta { transition-delay: .8s !important; }
.countdown { transition-delay: .95s !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 70px; background: #fff; }
  .hero__visual { order: -1; margin-left: calc(var(--pad) * -.25); }
  .hero__img { aspect-ratio: 1 / .8; max-height: none; }
  .hero__scroll { display: none; }
  .hero__ring { display: none; }
}

/* =========================================================
   CONTESTO
   ========================================================= */
.contesto { position: relative; display: grid; grid-template-columns: minmax(0, 1.500fr) minmax(0, 1fr); background: var(--bg); min-height: 86vh; }
.contesto__panel {
  --p: 1;
  background: var(--blue); color: #fff;
  border-radius: 0 0 clamp(160px, 38vw, 620px) 0;
  padding: clamp(70px, 10vw, 150px) var(--pad) clamp(90px, 13vw, 200px);
  clip-path: circle(calc(var(--p) * 150%) at 0 0);
  will-change: clip-path;
}
.contesto__inner { max-width: 620px; margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.contesto__inner p { margin-top: 22px; font-size: clamp(16px, 1.250vw, 19px); max-width: 54ch; }
.contesto__inner .lead { font-size: clamp(19px, 1.700vw, 26px); line-height: 1.300; font-family: var(--display); font-weight: 700; margin-top: 30px; }
.contesto__side { display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 7vw, 100px); padding: 60px var(--pad) 60px clamp(20px, 3vw, 50px); align-items: flex-end; text-align: right; }
.contesto__logo { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); }
.contesto__logo img { width: clamp(180px, 20vw, 300px); mix-blend-mode: multiply; transition: transform .5s var(--ease-out); }
.contesto__logo:hover img { transform: scale(1.040); }
.contesto__claim { display: flex; align-items: center; gap: 22px; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.600vw, 24px); line-height: 1.250; max-width: 24ch; }
.contesto__claim em { font-style: italic; }
.arrow-dot { flex: none; width: clamp(64px, 7vw, 108px); aspect-ratio: 1; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.arrow-dot svg { width: 44%; height: 44%; stroke-width: 3; }
.contesto__claim.in .arrow-dot svg { animation: nudge 2.400s var(--ease) infinite 1s; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translate(5px, -5px); } }
@media (max-width: 900px) {
  .contesto { grid-template-columns: 1fr; }
  .contesto__panel { border-radius: 0 0 46vw 0; padding-bottom: 34vw; }
  .contesto__side { flex-direction: column; align-items: flex-end; padding-block: 50px; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { overflow: hidden; padding: clamp(30px, 5vw, 70px) 0; background: var(--bg); }
.marquee__row { display: flex; gap: clamp(24px, 4vw, 60px); white-space: nowrap; align-items: baseline; font-family: var(--display); font-size: clamp(48px, 9vw, 140px); line-height: 1; text-transform: uppercase; will-change: transform; }
.marquee__row span { font-weight: 900; color: var(--blue); }
.marquee__row i { font-style: normal; font-weight: 900; color: transparent; -webkit-text-stroke: 1.500px var(--ink); }

/* =========================================================
   ENTI
   ========================================================= */
.enti { background: #fff; padding: clamp(70px, 9vw, 130px) 0; position: relative; overflow: hidden; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(36px, 5vw, 70px); }
.corner-icon { flex: none; width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 100% 0 0 100% / 100% 0 0 100%; border-radius: 0 0 0 100%; background: var(--blue); color: #fff; display: grid; place-items: start end; padding: 14% 14% 0 0; }
.corner-icon svg { width: 52%; height: 52%; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.500vw, 20px); }
.logos li { background: #fff; border: 1px solid rgba(46, 35, 38, .1); border-radius: 18px; aspect-ratio: 16 / 9; min-width: 0; padding: 9% 13%; transition: transform .5s var(--ease-out), box-shadow .5s, border-color .3s, opacity .9s var(--ease-out); }
.logos img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s, transform .5s var(--ease-out); }
.logos li:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(31, 60, 110, .45); border-color: var(--blue); }
.logos li:hover img { filter: none; opacity: 1; transform: scale(1.050); }
@media (hover: none) { .logos img { filter: none; opacity: 1; } }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   OBIETTIVI
   ========================================================= */
.obiettivi { padding: clamp(70px, 9vw, 130px) 0; background: var(--bg); }
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: clamp(36px, 5vw, 70px); }
.goal { position: relative; background: #fff; border-radius: 28px 28px 110px 28px; padding: clamp(22px, 2.400vw, 36px); padding-bottom: clamp(40px, 4vw, 60px); overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s, opacity .9s var(--ease-out); }
.goal::before { content: ""; position: absolute; inset: 0; background: var(--blue); clip-path: circle(0% at 0 0); transition: clip-path .7s var(--ease); }
.goal > * { position: relative; }
.goal__icon { display: grid; place-items: center; width: clamp(72px, 7.500vw, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--blue); color: #fff; transition: background .4s, color .4s, transform .6s var(--ease-out); }
.goal__icon svg { width: 54%; height: 54%; stroke-width: 1.800; }
.goal__n { position: absolute; top: 22px; right: 26px; font-family: var(--display); font-weight: 200; font-size: 40px; line-height: 1; color: rgba(46, 35, 38, .22); transition: color .4s; }
.goal h3 { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 1.900vw, 28px); line-height: 1.080; color: var(--maroon); margin-top: 26px; transition: color .4s; }
.goal h3 span { display: block; color: var(--blue); transition: color .4s; }
.goal p { margin-top: 10px; font-weight: 600; font-size: 15px; line-height: 1.350; transition: color .4s; }
.goal:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(31, 60, 110, .6); }
.goal:hover::before { clip-path: circle(150% at 0 0); }
.goal:hover .goal__icon { background: #fff; color: var(--blue); transform: rotate(-8deg) scale(1.050); }
.goal:hover h3, .goal:hover h3 span, .goal:hover p { color: #fff; }
.goal:hover .goal__n { color: rgba(255, 255, 255, .5); }
@media (max-width: 1000px) { .goals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .goals { grid-template-columns: 1fr; } .goal { border-radius: 24px 24px 90px 24px; } }

/* =========================================================
   PROGRAMMA + MAP
   ========================================================= */
.programma { background: #fff; padding-top: 5.600vw; }
.programma__head { display: flex; justify-content: flex-end; align-items: flex-start; min-height: 15.400vw; position: relative; z-index: 3; }
.programma__meta { text-align: right; font-family: var(--display); }
.programma__meta strong { display: block; font-weight: 900; color: var(--blue); font-size: clamp(30px, 4.600vw, 96px); line-height: 1; }
.programma__meta em { display: block; font-style: normal; font-weight: 500; font-size: clamp(18px, 2.800vw, 60px); }
.programma__meta small { display: block; font-weight: 800; color: var(--maroon); font-size: clamp(11px, 1.300vw, 26px); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }

/* the blue quarter-circle sits exactly over the one drawn in the map artwork (5.6vw from the left, 45vw radius) */
.map-wrap { position: relative; }
.programma__title { position: absolute; z-index: 2; left: 5.500vw; top: -15.500vw; width: 45.300vw; height: 45.300vw; background: #388de9; color: #fff; border-radius: 6px 0 100% 6px; padding: 5.200vw 5vw; }
.programma__title h2 { font-family: var(--display); text-transform: uppercase; font-size: 6.800vw; line-height: .95; }
.programma__title b { display: block; font-weight: 900; }
.programma__title h2 > span { display: block; font-weight: 200; }

.map { position: relative; overflow: hidden; }
.map__inner { position: relative; width: 100%; }
.map__inner > img { width: 100%; }
.map__route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the dashed route lives in the original artwork: these strokes are a mask that uncovers it leg by leg */
.route-seg { fill: none; stroke: #fff; stroke-width: 30; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .route-seg { stroke-dashoffset: 1; }
.spot { position: absolute; left: var(--x); top: var(--y); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; z-index: 1; }
.spot i { position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--blue-d); opacity: 0; }
.spot.on i { animation: ping 2.200s var(--ease-out) infinite; }
.spot:hover i, .spot:focus-visible i { animation: none; opacity: 1; transform: scale(1.250); background: rgba(55, 140, 233, .25); }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.700); opacity: 0; } }
@media (max-width: 820px) {
  .programma { padding-top: 56px; }
  .programma__head { justify-content: flex-start; min-height: 0; margin-bottom: 20px; }
  .programma__meta { text-align: left; }
  .programma__title { position: relative; left: auto; top: auto; width: auto; height: auto; display: inline-block; margin: 0 0 -46px calc(var(--pad) * .5); padding: 26px 90px 96px 24px; border-radius: 6px 0 100% 0; }
  .programma__title h2 { font-size: clamp(40px, 11vw, 64px); }
  .map__inner { width: 205%; margin-left: -92%; }
}

/* =========================================================
   TAPPE
   ========================================================= */
.tappa { position: relative; padding: clamp(80px, 10vw, 150px) 0; background: var(--bg); overflow: hidden; }
.tappa--alt { background: #fff; }
.tappa__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .900fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.tappa--alt .tappa__text { order: 2; }
.tappa__text { position: relative; }
.tappa__num { position: absolute; top: -.550em; right: 0; z-index: 0; font-family: var(--display); font-weight: 900; font-size: clamp(120px, 20vw, 300px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(55, 140, 233, .2); pointer-events: none; user-select: none; will-change: transform; }
.tappa__text > :not(.tappa__num) { position: relative; z-index: 1; }
.tappa__date { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--blue); font-size: clamp(30px, 4.200vw, 60px); line-height: 1; }
.tappa__stage { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 3vw, 42px); line-height: 1.100; text-transform: uppercase; margin-top: 4px; }
.tappa__stage i { font-style: normal; font-weight: 200; }
.tappa__venue { font-family: var(--display); font-weight: 700; font-style: italic; color: var(--blue); font-size: clamp(20px, 2.300vw, 32px); line-height: 1.150; margin-top: 10px; }
.tappa__addr { display: flex; align-items: center; gap: 6px; font-weight: 600; font-style: italic; color: var(--maroon); margin-top: 8px; font-size: clamp(15px, 1.300vw, 18px); }
.tappa__addr svg { width: 20px; height: 20px; fill: var(--red); stroke: none; flex: none; }
.sched { margin-top: clamp(22px, 3vw, 38px); display: grid; gap: 14px; max-width: 560px; }
.sched li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(46, 35, 38, .14); }
.sched time { font-family: var(--display); font-weight: 800; white-space: nowrap; }
.sched time::after { content: "⟶"; margin-left: 10px; color: var(--blue); }
.stats { display: inline-flex; align-items: center; gap: clamp(18px, 3vw, 44px); margin-top: clamp(26px, 3.500vw, 46px); background: var(--blue); color: #fff; padding: clamp(20px, 2.500vw, 34px) clamp(46px, 6vw, 90px) clamp(20px, 2.500vw, 34px) clamp(22px, 3vw, 40px); border-radius: 0 140px 0 0 / 0 100% 0 0; }
.stats__icon { width: clamp(54px, 6vw, 86px); flex: none; stroke-width: 2.200; }
.stats p { font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1.200; }
.stats b { display: block; white-space: nowrap; font-weight: 900; font-size: clamp(26px, 3.200vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.live { display: flex !important; width: fit-content; align-items: center; gap: 8px; background: #fff; color: var(--blue); border-radius: 999px; padding: 5px 14px 5px 10px; font-size: 18px !important; text-transform: uppercase; margin-bottom: 10px; }
.live i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.400s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.tappa__media { position: relative; display: grid; gap: clamp(12px, 1.500vw, 22px); justify-items: end; }
.shape { overflow: hidden; background: var(--blue-xl); }
.shape img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.180); will-change: transform; }
.shape--bl { width: 62%; aspect-ratio: 1; border-radius: 0 0 0 100%; }
.shape--tl { width: 92%; aspect-ratio: 1.200; border-radius: 100% 0 0 0; }
.tappa--alt .tappa__media { justify-items: start; }
.tappa--alt .shape--bl { border-radius: 0 0 100% 0; }
.tappa--alt .shape--tl { border-radius: 0 100% 0 0; }
.shape--ph { background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--display); text-transform: uppercase; text-align: center; }
.shape--ph p { display: grid; gap: .3em; padding: 12%; font-weight: 800; font-size: clamp(13px, 1.400vw, 20px); line-height: 1.150; }
.shape--ph b { font-weight: 900; font-size: clamp(44px, 6.500vw, 104px); line-height: .9; }
.shape--ph2 { background: var(--blue-xl); color: var(--blue-d); }
@media (max-width: 900px) { .shape--ph p { padding: 8%; font-size: 11px; } .shape--bl.shape--ph p { padding: 6% 24% 24% 6%; } .shape--ph b { font-size: clamp(34px, 11vw, 64px); } }
.tag { position: absolute; z-index: 2; left: 2%; top: 4%; width: clamp(84px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(13px, 1.300vw, 18px); line-height: 1; rotate: -10deg; padding: 12px; }
@media (max-width: 900px) {
  .tappa__grid { grid-template-columns: 1fr; }
  .tappa--alt .tappa__text { order: 0; }
  .tappa__media { grid-template-columns: 1fr 1.400fr; align-items: end; }
  .shape--bl, .shape--tl { width: 100%; }
  .tag { left: auto; right: 4%; top: -30px; }
}

/* ---------- Palazzo full-bleed ---------- */
.palazzo, .people { position: relative; height: 120vh; min-height: 620px; overflow: hidden; background: #16335c; color: #fff; }
.palazzo__bg, .people__bg { position: absolute; inset: -4% 0; will-change: transform; }
.palazzo__bg img, .people__bg img { width: 100%; height: 100%; object-fit: cover; }
.palazzo__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 111, 208, .78) 0%, rgba(31, 111, 208, .1) 34%, rgba(10, 20, 40, .1) 55%, rgba(10, 20, 40, .82) 100%); }
.palazzo__content { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; padding-top: clamp(90px, 10vw, 140px); padding-bottom: clamp(50px, 8vw, 110px); gap: 20px; }
.palazzo__fact { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(14px, 1.500vw, 22px); line-height: 1.100; max-width: 16ch; }
.palazzo__fact b { font-size: 2.200em; line-height: .9; }
.palazzo__fact small { font-size: 1em; }
.palazzo__fact--r { justify-self: end; text-align: right; }
.palazzo__fact--r b { display: block; }
.palazzo__fact--r b small { font-size: .45em; }
.palazzo__title { grid-column: 1 / -1; align-self: end; text-align: center; font-family: var(--display); }
.palazzo__title small { display: block; font-weight: 900; text-transform: uppercase; color: #9cc8ff; font-size: clamp(16px, 2vw, 28px); letter-spacing: .04em; }
.palazzo__title span { display: block; font-weight: 200; font-style: italic; font-size: clamp(34px, 6.400vw, 108px); line-height: 1; letter-spacing: -.02em; text-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
@media (max-width: 700px) { .palazzo, .people { height: 100vh; } .palazzo__content { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; } .palazzo__fact--r { justify-self: start; text-align: left; } }

.tappa--after { padding-bottom: 0; }

/* ---------- Un palco di prestigio ---------- */
.palco { display: grid; grid-template-columns: minmax(0, 1.250fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 10vw, 150px); }
.shape--arch { aspect-ratio: 1.300; border-radius: 0 100% 0 0; }
.palco__text h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--blue); font-size: clamp(32px, 4.600vw, 68px); line-height: .98; }
.palco__text ul { margin: 26px 0 32px; display: grid; gap: 12px; }
.palco__text li { position: relative; padding-left: 30px; font-size: clamp(17px, 1.600vw, 22px); color: var(--blue-d); font-weight: 500; }
.palco__text li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
@media (max-width: 900px) { .palco { grid-template-columns: 1fr; } }

/* ---------- Hospitality horizontal gallery ---------- */
.hosp { margin-top: clamp(80px, 10vw, 150px); background: #fff; padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 130px); }
.hosp__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: clamp(30px, 4vw, 56px); }
.hosp__head h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--blue); font-size: clamp(32px, 4.600vw, 68px); line-height: .98; }
.hosp__head em { display: block; font-size: .5em; font-weight: 700; text-transform: none; }
.hosp__head p { max-width: 38ch; color: var(--ink-2); font-size: 17px; }
.hgallery { overflow: hidden; }
.hgallery__track { display: flex; gap: clamp(12px, 1.600vw, 24px); padding-inline: var(--pad); width: max-content; will-change: transform; }
.hgallery figure { position: relative; flex: none; width: clamp(260px, 34vw, 520px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0 0 0 0; }
.hgallery figure:nth-child(3n + 1) { border-radius: 100% 0 0 0 / 80% 0 0 0; }
.hgallery figure:nth-child(3n + 2) { border-radius: 0 0 28% 0; }
.hgallery figure:nth-child(3n) { border-radius: 0 100% 0 0 / 0 80% 0 0; }
.hgallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.200s var(--ease-out); }
.hgallery figure:hover img { transform: scale(1.070); }
.hgallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 18px; background: linear-gradient(transparent, rgba(10, 20, 40, .75)); color: #fff; font-family: var(--display); font-style: italic; font-size: clamp(15px, 1.400vw, 19px); }
.hgallery figcaption b { font-style: normal; font-weight: 900; text-transform: uppercase; }
@media (hover: none) and (max-width: 900px) { .hgallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .hgallery::-webkit-scrollbar { display: none; } .hgallery figure { scroll-snap-align: center; width: 78vw; } .hgallery__track { transform: none !important; } }

/* =========================================================
   200 PERSONALITÀ
   ========================================================= */
.people { height: 110vh; }
.people__shade { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(31, 111, 208, .5), transparent 55%); }
.people__panel { position: absolute; left: 0; top: 0; background: var(--blue); border-radius: 0 0 100% 0; padding: clamp(90px, 10vw, 150px) clamp(110px, 16vw, 260px) clamp(120px, 15vw, 240px) var(--pad); }
.people__panel p { display: flex; align-items: center; gap: clamp(12px, 1.600vw, 24px); font-family: var(--display); font-weight: 900; text-transform: uppercase; }
.people__panel b { font-size: clamp(72px, 11vw, 180px); line-height: .9; font-variant-numeric: tabular-nums; }
.people__panel span { font-size: clamp(16px, 2.200vw, 36px); line-height: 1.050; }
@media (max-width: 600px) { .people__panel p { flex-direction: column; align-items: flex-start; } .people__panel { padding-right: 24vw; padding-bottom: 30vw; } }

/* =========================================================
   CALL FOR ABSTRACT
   ========================================================= */
.call { position: relative; background: linear-gradient(var(--blue-l) 0 clamp(150px, 17vw, 250px), var(--blue) 0); color: #fff; padding: clamp(60px, 7vw, 100px) 0 clamp(80px, 10vw, 150px); overflow: hidden; }
.call__corner { position: absolute; right: 0; top: 0; width: clamp(110px, 16vw, 250px); aspect-ratio: 1; background: var(--maroon); border-radius: 0 0 0 100%; display: grid; place-items: start end; padding: 14% 16% 0 0; }
.call__corner svg { width: 42%; height: 42%; stroke-width: 2.400; animation: flip 5s var(--ease) infinite; }
@keyframes flip { 0%, 80% { transform: none; } 90%, 100% { transform: rotate(180deg); } }
.call__grid { display: grid; grid-template-columns: minmax(0, 1.150fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: end; }
.pill { display: inline-block; background: #fff; color: var(--maroon); font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(15px, 1.700vw, 24px); padding: 12px 32px; border-radius: 999px; margin-top: 26px; box-shadow: 0 16px 30px -16px rgba(10, 30, 70, .6); }
.call__lead { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 2vw, 28px); margin-top: clamp(40px, 5vw, 70px); }
.focus { display: grid; gap: 14px; margin-top: 22px; }
.focus li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px; padding: 18px 22px; font-size: clamp(16px, 1.500vw, 21px); transition: background .4s, transform .5s var(--ease-out), opacity .9s var(--ease-out); }
.focus li:hover { background: rgba(255, 255, 255, .22); transform: translateX(8px); }
.focus b { font-family: var(--display); font-weight: 900; text-transform: uppercase; background: #fff; color: var(--blue-d); padding: 6px 14px; border-radius: 999px; font-size: .8em; white-space: nowrap; }
.call__notes { display: grid; gap: 18px; font-size: clamp(15px, 1.250vw, 18px); }
.call__mega { width: clamp(110px, 13vw, 190px); justify-self: end; rotate: -8deg; }
@media (max-width: 900px) { .call__grid { grid-template-columns: 1fr; } .call__mega { justify-self: start; } .call .h-sec { max-width: 70%; } }

/* =========================================================
   PACCHETTI
   ========================================================= */
.pacchetti { background: var(--bg); padding: clamp(80px, 10vw, 150px) 0; }
.pacchetti__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 30px; margin-bottom: clamp(36px, 5vw, 70px); }
.deadline { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--maroon); font-size: clamp(14px, 1.400vw, 20px); line-height: 1.100; border-left: 4px solid var(--maroon); padding-left: 14px; }
.deadline b { display: block; font-weight: 900; font-size: 1.300em; }
.plans { display: grid; grid-template-columns: 1.250fr repeat(4, 1fr); gap: clamp(10px, 1.200vw, 18px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--blue); border-radius: 24px; padding: clamp(20px, 2vw, 30px); transition: transform .6s var(--ease-out), box-shadow .6s, opacity .9s var(--ease-out); }
.plan h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--blue); font-size: clamp(19px, 1.700vw, 24px); line-height: 1; }
.plan__price { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 2.700vw, 40px); line-height: 1; margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(46, 35, 38, .14); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__price--free { font-size: clamp(20px, 1.800vw, 26px); white-space: normal; }
.plan ul { display: grid; gap: 10px; margin: 18px 0 26px; font-size: 14.500px; line-height: 1.350; }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .2em; width: 14px; height: 8px; border-left: 2.500px solid var(--blue); border-bottom: 2.500px solid var(--blue); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; justify-content: center; padding: 13px 16px; font-size: 13px; }
.plan:hover { transform: translateY(-10px); box-shadow: 0 36px 60px -36px rgba(31, 60, 110, .65); }
.plan--main { background: var(--blue); color: #fff; border-radius: 24px 24px 24px 110px; padding-top: 60px; }
.plan--main h3 { color: #fff; font-size: clamp(22px, 2vw, 30px); }
.plan--main .plan__price { border-color: rgba(255, 255, 255, .35); font-size: clamp(34px, 3.300vw, 50px); }
.plan--main li::before { border-color: #fff; }
.plan--main .btn { background: #fff; border-color: #fff; color: var(--blue-d); }
.plan--main .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan__flag { position: absolute; top: 16px; left: clamp(20px, 2vw, 30px); background: var(--maroon); color: #fff; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, 1fr); } .plan--main { grid-column: 1 / -1; border-radius: 24px 24px 24px 90px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* =========================================================
   CONTATTI + FOOTER
   ========================================================= */
.contatti { background: #fff; padding: clamp(70px, 9vw, 130px) 0; }
.contatti__grid { display: grid; grid-template-columns: minmax(0, 1.100fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.org { background: var(--red); color: #fff; border-radius: 12px 0 100% 12px / 12px 0 100% 12px; padding: clamp(36px, 5vw, 70px) clamp(90px, 14vw, 220px) clamp(70px, 9vw, 130px) clamp(28px, 4vw, 60px); }
.org__label { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; opacity: .85; }
.org h2 { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 2.800vw, 40px); line-height: 1.050; margin-top: 10px; }
.org ul { display: grid; gap: 10px; margin: 24px 0 30px; font-weight: 500; }
.org li { display: flex; align-items: center; gap: 10px; }
.org li svg { width: 20px; height: 20px; flex: none; }
.org a:not(.btn) { border-bottom: 1px solid rgba(255, 255, 255, .5); transition: border-color .3s; }
.org a:not(.btn):hover { border-color: #fff; }
.madeby { display: grid; gap: 22px; justify-items: start; }
.madeby__label { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.200vw, 30px); }
.madeby a { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.madeby a img { width: clamp(220px, 26vw, 380px); transition: transform .5s var(--ease-out); }
.madeby a:hover img { transform: scale(1.030); }
.madeby__mlab { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding-top: 24px; border-top: 1px solid rgba(46, 35, 38, .14); font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--maroon); font-size: 14px; letter-spacing: .06em; }
.madeby__mlab img { width: 96px; }
@media (max-width: 860px) { .contatti__grid { grid-template-columns: 1fr; } }

.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 34px 0; font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.footer .nav__logo span { color: #fff; }
.footer p { flex: 1 1 280px; }
.footer__top { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; color: #fff; transition: background .3s, transform .4s var(--ease-out); }
.footer__top svg { width: 20px; height: 20px; }
.footer__top:hover { background: var(--blue); transform: translateY(-4px); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-reveal="left"] { transform: translateX(-60px); }
.js .reveal[data-reveal="right"] { transform: translateX(60px); }
.js .reveal[data-reveal="scale"] { transform: scale(.4) rotate(-20deg); transition-timing-function: var(--ease-out), cubic-bezier(.3, 1.500, .5, 1); }
.js .reveal[data-reveal="rise"] { transform: translateY(80px) skewY(4deg); transition-duration: 1.300s; }
.js .reveal[data-reveal].in { transform: none; }
.js .reveal[data-reveal^="clip"] { opacity: 1; transform: none; transition: clip-path 1.400s var(--ease) var(--d, 0s); }
.js .reveal[data-reveal="clip-tl"] { clip-path: circle(0% at 0 0); }
.js .reveal[data-reveal="clip-tr"] { clip-path: circle(0% at 100% 0); }
.js .reveal[data-reveal="clip-bl"] { clip-path: circle(0% at 0 100%); }
.js .reveal[data-reveal="clip-br"] { clip-path: circle(0% at 100% 100%); }
.js .reveal[data-reveal="clip-b"] { clip-path: circle(0% at 50% 100%); }
.js .reveal[data-reveal="clip-tl"].in { clip-path: circle(150% at 0 0); }
.js .reveal[data-reveal="clip-tr"].in { clip-path: circle(150% at 100% 0); }
.js .reveal[data-reveal="clip-bl"].in { clip-path: circle(150% at 0 100%); }
.js .reveal[data-reveal="clip-br"].in { clip-path: circle(150% at 100% 100%); }
.js .reveal[data-reveal="clip-b"].in { clip-path: circle(150% at 50% 100%); }
/* once revealed, interactive cards go back to their own snappier transitions */
.js .logos li.done, .js .goal.done, .js .plan.done, .js .focus li.done { transition-delay: 0s; transition-duration: .5s; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .line > span, .js .fade { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .hero__img { clip-path: none !important; }
  .js .hero__badge { scale: 1; }
  .contesto__panel { clip-path: none; }
  .js .route-seg { stroke-dashoffset: 0; }
  .shape img, .hero__img img { transform: none; }
}
