/* =========================================================
   Daniele Della Corte — foglio di stile principale
   Colori DDC: azzurro #56B7E7 · navy #00447C
   ========================================================= */

/* Font ospitati in locale (nessuna richiesta a Google: più rispettoso del GDPR) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/outfit-latin.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/sora-latin.woff2") format("woff2"); }

:root {
  --brand: #56b7e7;
  --brand-dark: #2a8fc4;
  --navy: #00447c;
  --bg: #000;
  --charcoal: #0a0a0a;
  --card: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.1);
  --text: #fafafa;
  --muted: #a3a3a3;
  --soft: #d4d4d4;
  --dim: #737373;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --radius: 1.25rem;
  --pad-x: clamp(1.25rem, 5vw, 7rem);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 768px) { html.snap { scroll-snap-type: y proximity; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 767px) { a, button { touch-action: manipulation; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-gray {
  background: linear-gradient(90deg, #fff, #9ca3af);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-x); }
.section { position: relative; padding: clamp(5rem, 10vw, 8rem) 0; }
.section-snap { scroll-snap-align: start; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-title .muted { color: var(--muted); }
.section-head { text-align: center; max-width: 52rem; margin: 0 auto 3.5rem; }
.section-head p { color: var(--muted); margin-top: 1.25rem; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brand); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(86, 183, 231, 0.6); }
.btn-outline { border: 1px solid var(--accent, var(--brand)); color: var(--accent, var(--brand)); }
.btn-outline:hover { background: color-mix(in srgb, var(--accent, var(--brand)) 12%, transparent); }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #000;
  transition: opacity 0.5s ease;
}
.loader.is-hidden { opacity: 0; pointer-events: none; }
.loader-inner { width: min(280px, 70vw); text-align: center; }
.loader img { width: 64px; margin: 0 auto 1.5rem; animation: pulse 1.6s ease-in-out infinite; }
.loader-label {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.3em; font-size: 0.85rem; color: var(--brand);
}
.loader-track { height: 3px; border-radius: 999px; background: #1a1a1a; margin: 1rem 0 0.6rem; overflow: hidden; }
.loader-bar { height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width 0.15s linear; }
.loader-pct { font-size: 0.8rem; color: var(--dim); font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.94); } }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent; isolation: isolate;
}
/* lo sfondo sfocato sta su uno strato separato, così logo e testi restano nitidi */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled { border-color: rgba(255, 255, 255, 0.06); }
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo img, .logo .logo-svg { height: 62px; width: auto; display: block; overflow: visible; }
@media (max-width: 767px) { .logo img, .logo .logo-svg { height: 46px; } }
.logo span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem);
  background: linear-gradient(90deg, #fff, #9ca3af);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter 0.3s;
}
.logo:hover span { background-image: linear-gradient(90deg, #fff, var(--brand)); }

.nav { display: none; align-items: center; gap: 1.6rem; }
.nav a.nav-link {
  position: relative; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav a.nav-link:hover { color: var(--brand); }
.nav a.nav-link:hover::after { transform: scaleX(1); }

.lang {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem;
}
.lang a { color: var(--dim); }
.lang a[aria-current="true"] { color: var(--brand); }
.lang a:hover { color: #fff; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(86, 183, 231, 0.4); background: rgba(0, 0, 0, 0.4);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--brand); background: rgba(86, 183, 231, 0.1); }

.burger { display: grid; place-items: center; width: 44px; height: 44px; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  position: relative; transition: transform 0.3s, opacity 0.3s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.header.menu-open .burger span { background: transparent; }
.header.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.header.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--charcoal); border-bottom: 1px solid #262626;
  padding: 1rem 1.5rem 1.75rem;
  display: none; flex-direction: column; gap: 0.25rem;
}
.header.menu-open { background: var(--charcoal); }
.header.menu-open .mobile-menu { display: flex; }
.mobile-menu a.nav-link {
  padding: 0.8rem 0; border-bottom: 1px solid #1c1c1c;
  font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--soft);
}
.mobile-menu .mobile-menu-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }

@media (min-width: 1100px) {
  .nav { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* =========================================================
   Hero — sequenza di frame su canvas
   ========================================================= */
.hero-scrub { position: relative; height: 400vh; height: 400svh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%; overflow: hidden; background: #000; z-index: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade-desktop {
  position: absolute; inset: 0; pointer-events: none; display: none;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(0, 68, 124, 0.22), transparent 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 70%);
}
.hero-shade-mobile {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48%; pointer-events: none;
  background: linear-gradient(to top, #000 30%, rgba(0, 0, 0, 0.85) 55%, transparent);
}
@media (min-width: 768px) {
  .hero-shade-desktop { display: block; }
  .hero-shade-mobile { display: none; }
}

.hero-blocks { position: relative; }
.hero-block {
  position: relative; z-index: 20;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding: 0 1.25rem calc(4.5rem + env(safe-area-inset-bottom));
  scroll-snap-align: start;
}
.hero-block:first-child { margin-top: -400vh; margin-top: -400svh; }
.hero-block > * { max-width: 40rem; }
.hero-title {
  font-size: clamp(2.4rem, 7vw, 5.25rem); font-weight: 800; letter-spacing: -0.03em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
}
.hero-sub {
  margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 500;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.hero-desc {
  margin-top: 1.25rem; color: rgba(255, 255, 255, 0.9); line-height: 1.75;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.hero-block .eyebrow { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }
/* Nome e cognome sempre su una riga */
.hero-block h1.hero-title { white-space: nowrap; max-width: none; font-size: clamp(1.8rem, 9.2vw, 5.25rem); }
@media (min-width: 768px) { .hero-block h1.hero-title { font-size: clamp(2.6rem, 5.2vw, 5rem); } }
.hero-years {
  font-family: var(--font-display); font-weight: 600; color: var(--soft);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); margin-bottom: 0.35rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.hero-years strong { color: var(--brand); font-weight: 800; font-size: 1.5em; margin-right: 0.15em; }
.rotator { display: inline-grid; }
.rotator span { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rotator span.is-active { opacity: 1; transform: none; }
/* Spazio fisso (largo quanto la parola più lunga): la parte fissa del titolo non si muove */
/* Titolo della consulenza: parola fissa su una riga, parola che ruota centrata sulla riga sotto */
.rotator.slot { display: grid; justify-items: center; white-space: nowrap; }

@media (min-width: 768px) {
  .hero-block {
    z-index: 10; justify-content: center; align-items: flex-start; text-align: left;
    padding: 0 0 0 clamp(5rem, 8vw, 7rem);
  }
  .hero-block > * { max-width: 36rem; }
}

/* Testi dell'hero: animazione solo in verticale */
.hero-block [data-y] { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero-block:not(.is-in) .hero-title { transform: translateY(36px); }
.hero-block:not(.is-in) .hero-sub, .hero-block:not(.is-in) .hero-years { transform: translateY(22px); }
.hero-block:not(.is-in) .hero-desc { transform: translateY(16px); }
.hero-block .hero-sub { transition-delay: 0.08s; }
.hero-block .hero-desc { transition-delay: 0.16s; }

.hero-nav {
  position: fixed; right: clamp(0.75rem, 2vw, 2rem); top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 0.6rem;
  transition: opacity 0.3s;
}
.hero-nav.is-hidden { opacity: 0; pointer-events: none; }
.hero-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color 0.2s, color 0.2s;
}
.hero-nav button:hover { border-color: var(--brand); color: var(--brand); }
.hero-nav svg { width: 18px; height: 18px; }

.scroll-hint {
  position: fixed; left: 50%; bottom: 1.75rem; transform: translateX(-50%); z-index: 40;
  display: none; flex-direction: column; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brand);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.85);
  transition: opacity 0.4s;
}
.scroll-hint span { animation: hint-pulse 2.4s ease-in-out infinite; }
.scroll-hint svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9)); }
@keyframes hint-pulse { 50% { opacity: 0.7; } }
.scroll-hint svg { width: 18px; height: 18px; color: var(--brand); animation: bounce 1.6s ease-in-out infinite; }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .scroll-hint { display: flex; } }
@keyframes bounce { 50% { transform: translateY(6px); } }

/* =========================================================
   Reveal generico allo scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.is-in > *:nth-child(n+7) { transition-delay: 0.48s; }

/* =========================================================
   Card generiche
   ========================================================= */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: rgba(86, 183, 231, 0.4); transform: translateY(-4px); box-shadow: 0 20px 50px -25px rgba(86, 183, 231, 0.45); }
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(86, 183, 231, 0.1); color: var(--brand); margin-bottom: 1.25rem;
  border: 1px solid rgba(86, 183, 231, 0.25);
}
.icon-badge svg { width: 24px; height: 24px; }

/* Card con icona: icona a sinistra del titolo, sulla stessa riga */
.card:has(> .icon-badge) { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-content: start; }
.card:has(> .icon-badge) > * { grid-column: 1 / -1; }
.card:has(> .icon-badge) > .icon-badge { grid-column: 1; width: 46px; height: 46px; margin: 0; align-self: center; }
.card:has(> .icon-badge) > .icon-badge svg { width: 22px; height: 22px; }
.card:has(> .icon-badge) > h3 { grid-column: 2; margin: 0; align-self: center; }
.card:has(> .icon-badge) > p { margin-top: 1.1rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   Cosa faccio (4 pilastri)
   ========================================================= */
.pillars .card { padding-top: 1.75rem; }
/* Card della consulenza: stessa altezza e righe interne allineate */
.pillars { grid-auto-rows: 1fr; }
@supports (grid-template-rows: subgrid) {
  .pillars { grid-auto-rows: auto; }
  .pillars .card { display: grid; grid-row: span 4; grid-template-rows: subgrid; grid-template-columns: auto 1fr; row-gap: 0; }
}
.pillars .card p { align-self: start; }
@media (min-width: 700px) { .pillars .card p { min-height: calc(1.65em * 6); } .pillars .pillar-tags { min-height: 4rem; align-content: flex-start; } }
@media (min-width: 1200px) { .pillars .card p { min-height: calc(1.65em * 4); } .pillars .pillar-tags { min-height: 0; } }
.pillars .card .card-link { align-self: end; justify-self: start; }
.pillars .pillar-tags { margin-bottom: 1.5rem; }
.card-link { margin-top: auto; display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; font-weight: 600; color: var(--brand); }
.card-link span { transition: transform 0.2s; }
.card-link:hover span { transform: translateX(4px); }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.pillar-tags li {
  font-size: 0.72rem; padding: 0.25rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--soft);
}

/* =========================================================
   Progetti (carosello)
   ========================================================= */
.work { background: #000; overflow-x: clip; }
/* Striscia orizzontale: la card successiva si intravede a lato */
.work-slides {
  position: relative; display: flex; gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* la striscia arriva fino ai bordi dello schermo, la prima card resta allineata al contenuto */
  --edge: calc((100vw - min(1280px, 100vw)) / 2 + var(--pad-x));
  margin-inline: calc(50% - 50vw); padding: 2.5rem var(--edge);
  scroll-padding-inline: var(--edge);
  scrollbar-width: none; cursor: grab;
}
.work-slides::-webkit-scrollbar { display: none; }
.work-slides.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.work-slides.is-dragging * { pointer-events: none; }
.work-slide {
  flex: 0 0 min(86vw, 1100px); scroll-snap-align: start;
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.75rem); border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line);
  opacity: 0.4; transform: scale(0.97); transform-origin: left center;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}
.work-slide.is-active { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
@media (min-width: 1000px) { .work-slide { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; } }
@media (max-width: 999px) { .work-slide .work-visual { order: -1; } }
.work-role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent, var(--brand)); }
.work-name { font-size: clamp(1.9rem, 4.5vw, 3.25rem); font-weight: 800; margin: 0 0 0.5rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.work-info { min-width: 0; }
.work-tagline { font-weight: 600; color: var(--accent); font-size: 1.05rem; }
.work-period { color: var(--dim); font-size: 0.85rem; margin-top: 0.35rem; }
.work-text { color: var(--soft); margin: 1.25rem 0 1.5rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; }
.work-tags li { font-size: 0.75rem; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--soft); }

.work-visual { position: relative; }
.work-glow {
  position: absolute; inset: 8%; border-radius: 2rem; filter: blur(60px); opacity: 0.35;
  background: var(--accent); transition: background 0.5s;
}
.work-card {
  position: relative; aspect-ratio: 16 / 10; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent);
  display: grid; place-items: center;
}
.work-logo-plate {
  width: 62%; aspect-ratio: 16 / 7; border-radius: 1rem; background: #fff;
  display: grid; place-items: center; padding: 6% 8%;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s ease;
}
.work-card:hover .work-logo-plate { transform: scale(1.04); }
.work-logo-plate { overflow: hidden; }
.work-logo-plate img { width: 100%; height: 100%; object-fit: contain; }
.work-num {
  position: absolute; top: 1rem; left: 1.25rem; font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.5);
}
.work-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 3rem; }
.work-controls button.arrow {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: border-color 0.2s, color 0.2s;
}
.work-controls button.arrow:hover { border-color: var(--brand); color: var(--brand); }
.work-controls svg { width: 20px; height: 20px; }
.work-count { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); min-width: 4.5rem; text-align: center; }
.work-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.work-dots button { width: 8px; height: 8px; border-radius: 999px; background: #333; transition: width 0.3s, background 0.3s; }
.work-dots button[aria-current="true"] { width: 26px; background: var(--brand); }

/* =========================================================
   Competenze — orbita
   ========================================================= */
.skills { background: #020608; overflow: hidden; }
.skills-orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.skills-orb.o1 { width: 520px; height: 520px; background: rgba(86, 183, 231, 0.16); top: 5%; left: -10%; }
.skills-orb.o2 { width: 620px; height: 620px; background: rgba(0, 68, 124, 0.35); bottom: 0; right: -15%; }
@media (max-width: 767px) { .skills-orb { filter: blur(60px); } }
.stars { position: absolute; inset: 0; pointer-events: none; display: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.2; animation: twinkle 3s ease-in-out infinite; }
.stars i:nth-child(3n) { background: var(--brand); }
@media (min-width: 768px) { .stars { display: block; } }
@keyframes twinkle { 50% { opacity: 0.9; } }

.orbit-wrap { position: relative; height: 760px; margin: -1rem 0 2rem; overflow: hidden; }
.orbit {
  --scale: 1;
  position: relative; width: 720px; height: 720px; flex: none;
  transform: scale(var(--scale));
}
.orbit-wrap .orbit { position: absolute; left: 50%; top: 50%; margin: -360px 0 0 -360px; }
@media (max-width: 800px) { .orbit-wrap { height: 560px; } .orbit { --scale: 0.74; } }
@media (max-width: 560px) { .orbit-wrap { height: 380px; margin-bottom: 1rem; } .orbit { --scale: 0.5; } }
@media (max-width: 400px) { .orbit-wrap { height: 340px; } .orbit { --scale: 0.45; } }

.orbit-rings { position: absolute; inset: 0; }
.orbit-rings circle { fill: none; transition: stroke 0.5s; }
.orbit-rings .faint { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.orbit-rings .dashed { stroke: var(--theme, var(--brand)); stroke-opacity: 0.35; stroke-width: 1; stroke-dasharray: 4 10; transform-origin: 50% 50%; animation: spin 80s linear infinite; }
.orbit-rings .dashed.rev { animation-direction: reverse; animation-duration: 120s; }

.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: spin var(--dur) linear infinite; }
.ring.ccw { animation-direction: reverse; }
.ring .node { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.ring .node-inner { animation: spin var(--dur) linear infinite reverse; }
.ring.ccw .node-inner { animation-direction: normal; }
.tech {
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 16, 22, 0.85); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tech svg { width: 24px; height: 24px; fill: var(--c); }
.tech:hover, .tech.is-active { transform: scale(1.18); border-color: var(--c); box-shadow: 0 0 24px -4px var(--c); }
.orbit.is-paused .ring, .orbit.is-paused .node-inner, .orbit.is-paused .dashed { animation-play-state: paused; }

.orbit-center {
  position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px;
  border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 60px -10px var(--theme, rgba(86, 183, 231, 0.5));
  transition: box-shadow 0.4s;
}
.orbit-center img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.orbit-center .center-tech { display: none; flex-direction: column; align-items: center; gap: 0.6rem; }
.orbit-center .center-tech svg { width: 56px; height: 56px; filter: drop-shadow(0 0 14px var(--theme)); }
.orbit-center .center-tech span { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.orbit-center.show-tech img { display: none; }
.orbit-center.show-tech .center-tech { display: flex; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Barre competenze */
.bars { display: grid; gap: 3rem; }
@media (min-width: 900px) { .bars { grid-template-columns: 1fr 1fr; } }
.bars h3 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.bar { margin-bottom: 1.1rem; }
.bar-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--soft); margin-bottom: 0.45rem; }
.bar-head b { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { height: 4px; border-radius: 999px; background: #151a1f; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--brand)); transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* =========================================================
   Esperienza (timeline interattiva)
   ========================================================= */
.exp-intro { color: var(--muted); max-width: 52rem; margin: 1.25rem auto 0; }
.exp-grid { display: grid; gap: 2rem; }
/* gli elementi della griglia non devono mai allargarsi oltre lo schermo (la riga di pillole scorre al suo interno) */
.exp-grid > *, .exp-list-viewport { min-width: 0; max-width: 100%; }
.exp-list { display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; scrollbar-width: none; }
.exp-list::-webkit-scrollbar { display: none; }
.exp-item {
  flex: none; scroll-snap-align: start; text-align: left;
  padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted); white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.exp-item small { display: none; }
.exp-item[aria-selected="true"] { color: #000; background: var(--brand); border-color: var(--brand); }
.exp-line { display: none; }
.exp-panels { position: relative; min-height: 22rem; }
.exp-panel {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}
.exp-panel.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; position: relative; }
.exp-company { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.exp-company svg { width: 15px; height: 15px; color: var(--brand); }
.exp-period { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin: 0.5rem 0 0.25rem; }
.exp-role { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.25rem; }
.exp-panel p { color: var(--soft); max-width: 42rem; }
.exp-panel .btn { margin-top: 1.5rem; }

@media (min-width: 1000px) {
  .exp-grid { grid-template-columns: 4fr 1fr 7fr; gap: 0; align-items: start; }
  .exp-list { flex-direction: column; overflow: visible; gap: 0.25rem; }
  .exp-item {
    border: 0; border-radius: 0.75rem; padding: 0.9rem 1rem; white-space: normal;
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--dim);
  }
  .exp-item small { display: block; font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; color: var(--dim); margin-top: 0.15rem; }
  .exp-item:hover { transform: translateX(6px); color: var(--soft); }
  .exp-item[aria-selected="true"] { transform: translateX(6px); }
  .exp-item[aria-selected="true"] { background: rgba(86, 183, 231, 0.07); color: #fff; }
  .exp-item[aria-selected="true"] small { color: var(--brand); }
  /* Su desktop: la lista scorre, il pannello resta fisso accanto */
  .exp-list { padding-bottom: 18vh; }
  .exp-item { padding: 1.15rem 1.25rem; }
  .exp-line { display: block; position: relative; align-self: stretch; justify-self: center; width: 2px; margin-bottom: 18vh; border-radius: 2px; background: linear-gradient(to bottom, rgba(86, 183, 231, 0.15), var(--brand) 20%, var(--navy) 80%, rgba(0, 68, 124, 0.1)); box-shadow: 0 0 18px rgba(86, 183, 231, 0.35); }
  .exp-dot { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(86, 183, 231, 0.2), 0 0 20px var(--brand); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .exp-panels { position: sticky; top: calc(var(--header-h) + 12vh); align-self: start; padding-top: 0.5rem; }
}

/* Gruppi della timeline: in corso / concluse */
.exp-group {
  flex: none; align-self: center; display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #4ade80; padding: 0 0.25rem;
}
.exp-group.is-past { color: var(--dim); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); animation: pulse 2s ease-in-out infinite; }
.exp-status {
  margin-left: 0.6rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--dim);
}
.exp-status.is-live { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.08); }
@media (min-width: 1000px) {
  .exp-group { align-self: stretch; padding: 1.1rem 1rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 0.35rem; }
  .exp-group.is-past { margin-top: 1rem; }
}

/* Esperienza su desktop: la sezione resta ferma e ogni ruolo ha il suo tratto di scroll */
@media (min-width: 1000px) {
  .exp-scroll { height: calc(var(--n) * 24vh + 100vh); }
  .exp-sticky {
    position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
    display: flex; align-items: center;
  }
  .exp-sticky .exp-grid { width: 100%; height: min(70vh, 620px); align-items: stretch; }
  .exp-list-viewport {
    position: relative; overflow: hidden; height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  }
  .exp-sticky .exp-list { position: relative; padding-bottom: 0; transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
  .exp-sticky .exp-item:not([aria-selected="true"]) { opacity: 0.55; }
  .exp-sticky .exp-line { margin-bottom: 0; }
  .exp-sticky .exp-dot { top: 50%; margin-top: -7px; transform: none !important; }
  .exp-sticky .exp-panels { position: relative; top: auto; align-self: center; }
}

/* =========================================================
   Speech & formazione
   ========================================================= */
.events { align-items: stretch; }
@supports (grid-template-rows: subgrid) {
  .events .event-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.event-card { padding: 1.5rem 1.35rem; }
.event-card h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1rem, 1.3vw, 1.12rem); letter-spacing: -0.01em; }
.event-card .role-pill { justify-self: start; align-self: start; }
.event-card .event-meta { flex-wrap: nowrap; white-space: nowrap; }
.event-card .role-pill { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid rgba(86, 183, 231, 0.5); color: var(--brand); margin-bottom: 1rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--dim); font-size: 0.8rem; margin-bottom: 0.9rem; }
.event-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.event-meta svg { width: 14px; height: 14px; }

.edu { display: grid; gap: 3rem; margin-top: 5rem; }
@media (min-width: 900px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu h3 { font-size: 1.35rem; margin-bottom: 1.75rem; }
.timeline { border-left: 1px solid rgba(86, 183, 231, 0.3); padding-left: 1.5rem; }
.timeline li { position: relative; margin-bottom: 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.5rem - 5px); top: 0.45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.timeline h4 { font-size: 1.05rem; font-weight: 700; }
.timeline .sub { color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0 0.4rem; }
.timeline .grade { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(86, 183, 231, 0.12); color: var(--brand); margin-left: 0.4rem; }
.timeline p { color: var(--dim); font-size: 0.88rem; }

/* =========================================================
   Lifestyle + YouTube
   ========================================================= */
.lifestyle-intro { display: grid; gap: 1rem; color: var(--soft); max-width: 52rem; margin: 0 auto 3.5rem; text-align: center; }
/* Viaggi: riquadro a tutta larghezza con i "timbri" del passaporto */
.travel {
  margin-top: 1.25rem; display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 100% 0%, rgba(86, 183, 231, 0.1), transparent 60%), var(--card);
}
@media (min-width: 1000px) { .travel { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; } }
.travel-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.travel-head .icon-badge { width: 46px; height: 46px; margin: 0; }
.travel-head .icon-badge svg { width: 22px; height: 22px; }
.travel-head h3 { font-size: 1.3rem; font-weight: 700; }
.travel p { color: var(--muted); font-size: 0.95rem; }
.travel-stat { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 1.5rem; }
.travel-stat strong { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--brand); }
.travel-stat span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.stamps { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.stamps li {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.9rem; border-radius: 0.6rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.28); color: var(--soft);
  font-size: 0.85rem; font-weight: 500; transform: rotate(var(--r, -2deg));
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.stamps li:nth-child(3n + 2) { --r: 1.5deg; }
.stamps li:nth-child(3n) { --r: -0.8deg; }
.stamps li:nth-child(4n) { --r: 2.2deg; }
.stamps li .flag { width: 24px; height: 16px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.stamps li:hover { transform: rotate(0) scale(1.06); border-color: var(--brand); color: #fff; }
.stamps li.love { border: 1.5px solid var(--brand); background: rgba(86, 183, 231, 0.12); color: #fff; font-weight: 600; --r: -3deg; }
.stamps li.love .flag-sardegna { width: 27px; height: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.stamps li.love .heart { color: #ff5a7a; font-size: 0.9rem; }

.yt-section { background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255, 0, 0, 0.1), transparent 70%), #000; }
.yt {
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.75rem;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: radial-gradient(ellipse at 0% 0%, rgba(255, 0, 0, 0.12), transparent 60%), rgba(255, 255, 255, 0.02);
}
@media (min-width: 1000px) { .yt { grid-template-columns: 1fr 1.2fr; gap: 3.5rem; } }
.yt p { color: var(--soft); font-size: 1.05rem; margin-bottom: 1.75rem; }
.yt .btn-yt { background: #ff0000; color: #fff; }
.yt .btn-yt svg { width: 20px; height: 20px; fill: #fff; }
.yt .btn-yt:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 0, 0, 0.6); }
.yt-videos { display: grid; gap: 1rem; }
.yt-videos { max-width: 560px; width: 100%; justify-self: center; }
@media (min-width: 1000px) { .yt-videos { justify-self: end; } }
.yt-video { display: block; border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); background: #0d0d0d; transition: transform 0.3s, border-color 0.3s; }
.yt-video:hover { transform: translateY(-4px); border-color: rgba(255, 0, 0, 0.5); }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb::after {
  content: ""; position: absolute; right: 0.9rem; bottom: 0.9rem; width: 54px; height: 38px;
  border-radius: 10px; background: rgba(255, 0, 0, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.yt-video span { display: block; padding: 0.85rem 1rem; font-size: 0.88rem; font-weight: 500; }

/* =========================================================
   Marchio
   ========================================================= */
.brand-sec { background: radial-gradient(ellipse 50% 50% at 25% 40%, rgba(0, 68, 124, 0.35), transparent 70%), #000; }
.brand-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .brand-grid { grid-template-columns: 1fr 1.3fr; gap: 5rem; } }
@media (max-width: 999px) { .brand-grid .brand-anim { order: 2; } }
.brand-anim { margin: 0; }
.brand-anim-frame {
  position: relative; border-radius: 1.5rem; overflow: hidden; background: #e9e9e9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px -40px rgba(86, 183, 231, 0.55), 0 0 0 1px rgba(86, 183, 231, 0.08);
}
.brand-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.brand-replay {
  position: absolute; right: 0.9rem; bottom: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: rgba(0, 68, 124, 0.85); color: #fff; opacity: 0; transition: opacity 0.3s, background 0.2s;
}
.brand-replay svg { width: 14px; height: 14px; }
.brand-replay.is-visible { opacity: 1; }
.brand-replay:hover { background: var(--navy); }
.brand-anim figcaption { color: var(--dim); font-size: 0.8rem; margin-top: 1rem; text-align: center; letter-spacing: 0.06em; }

.gallery-title { font-size: 1.35rem; margin: 5rem 0 1.5rem; text-align: center; }
.brand-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 900px) { .brand-gallery { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.brand-gallery figure { margin: 0; border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 800 / 1132; background: #111; }
.brand-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.brand-gallery figure:hover img { transform: scale(1.05); }

/* Foto nella sezione Speech */
.photo-strip { display: grid; gap: 1.25rem; margin-bottom: 3rem; }
@media (min-width: 800px) { .photo-strip { grid-template-columns: 1fr 1.55fr; } }
.photo-strip figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
@media (min-width: 800px) { .photo-strip figure { aspect-ratio: auto; height: 440px; } }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-strip figure:first-child img { object-position: 50% 30%; }
.photo-strip figure:hover img { transform: scale(1.04); }
.photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: 0.85rem; font-weight: 500; color: var(--soft);
}
.brand-story { display: grid; gap: 1rem; color: var(--soft); margin: 1.5rem 0; }
.brand-sub { color: var(--muted); margin-top: 0.75rem; }
.nowrap { white-space: nowrap; }
.brand-title { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.brand-title .nowrap { display: inline-block; }
.link-arrow { color: var(--brand); font-weight: 600; display: inline-flex; gap: 0.35rem; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
.quote {
  margin: 4.5rem auto 0; max-width: 56rem; padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 2px solid var(--brand); font-style: italic; color: var(--soft); line-height: 1.9;
  display: grid; gap: 1.1rem;
}
.quote strong { color: var(--brand); font-style: normal; }
.quote cite { display: block; text-align: right; color: var(--dim); font-size: 0.85rem; margin-top: 0.5rem; }

/* =========================================================
   Contatti + footer
   ========================================================= */
.contact { text-align: center; }
.nospam {
  max-width: 40rem; margin: 2.5rem auto; padding: 1.5rem 1.75rem; border-radius: var(--radius);
  border: 1px solid rgba(86, 183, 231, 0.3); background: rgba(86, 183, 231, 0.05);
  display: flex; gap: 1rem; text-align: left;
}
.nospam svg { width: 28px; height: 28px; color: var(--brand); flex: none; margin-top: 0.2rem; }
.nospam strong { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.3rem; }
.nospam p { color: var(--soft); font-size: 0.95rem; }
.contact-email { display: block; margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.contact-email:hover { color: var(--brand); }
.socials { display: flex; justify-content: center; gap: 0.9rem; margin-top: 2.5rem; }
.socials a {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.socials a:hover { border-color: var(--brand); transform: translateY(-3px); background: rgba(86, 183, 231, 0.08); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.follow { color: var(--dim); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 3rem; }

.footer { border-top: 1px solid #141414; padding: 2rem 0; color: var(--dim); font-size: 0.8rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: center; }
.footer .motto { color: var(--brand); font-family: var(--font-display); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }

/* =========================================================
   Movimento ridotto
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* =========================================================
   Esperienza su mobile/tablet: timeline verticale, tutti i ruoli visibili scorrendo
   ========================================================= */
@media (max-width: 999px) {
  .exp-list-viewport, .exp-line { display: none; }
  .exp-panels { min-height: 0; border-left: 1px solid rgba(86, 183, 231, 0.35); padding-left: 1.5rem; margin-left: 0.4rem; }
  .exp-panel, .exp-panel.is-active {
    position: relative; inset: auto; opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    padding-bottom: 2.25rem;
  }
  .exp-panel::before {
    content: ""; position: absolute; left: calc(-1.5rem - 6px); top: 0.35rem; width: 11px; height: 11px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 4px rgba(86, 183, 231, 0.18);
  }
  .exp-group-title {
    display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1.25rem -1.5rem; padding-left: 1.5rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #4ade80;
  }
  .exp-group-title.is-past { color: var(--dim); margin-top: 0.5rem; }
  .exp-period { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .exp-role { margin-bottom: 0.75rem; }
}
@media (min-width: 1000px) { .exp-group-title { display: none; } }

/* Progetti su mobile/tablet: schede in colonna, tutte visibili scorrendo */
@media (max-width: 999px) {
  .work-slides {
    flex-direction: column; overflow: visible; scroll-snap-type: none; cursor: auto;
    margin-inline: 0; padding: 0; gap: 1.25rem;
  }
  .work-slide, .work-slide.is-active {
    flex: none; opacity: 1; transform: none;
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  }
  .work-controls, .work-dots { display: none; }
}
