/* ==========================================================================
   Strutture Sportive — foglio di stile unico
   Palette: navy notturno (60) · blu campo (30) · oro pallina (10, solo CTA)
   ========================================================================== */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter.woff2') format('woff2'); }

:root {
  /* palette brand */
  --navy-950: #06111e;
  --navy: #0a1a2f;
  --navy-800: #102640;
  --navy-700: #183456;
  --brand: #1f56c9;          /* blu campo da padel/tennis */
  --brand-dark: #163f99;
  --brand-soft: #e6eefc;
  --accent: #d6c02e;         /* oro pallina, dal logo — SOLO azioni */
  --accent-hover: #e6d24a;
  --gold: #b0a20e;           /* oro originale del logo */
  --turf: #2f8f4e;

  --ink: #0a1a2f;
  --text: #2a3646;
  --muted: #566376;
  --bg: #f5f7fa;
  --bg-alt: #eaf0f7;
  --white: #ffffff;
  --line: #d8e0ea;
  --on-dark: #e9eef6;
  --on-dark-muted: #a9b6c8;
  --line-dark: rgba(255, 255, 255, .12);

  /* tipografia */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* sistema */
  --shadow-sm: 0 2px 8px rgba(10, 26, 47, .06);
  --shadow-md: 0 12px 32px rgba(10, 26, 47, .10);
  --shadow-lg: 0 30px 70px rgba(10, 26, 47, .22);
  --radius: 10px;
  --radius-lg: 18px;
  --container: 1240px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
/* il pannello del menu fuori schermo non deve allargare il layout viewport su mobile */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- tipografia ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.02; margin: 0 0 .5em; letter-spacing: .005em; text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 800; }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.1; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hl { color: var(--brand); }
.section-dark .hl, .hero .hl, .page-hero .hl { color: var(--accent); }

/* --- layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-white { background: var(--white); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }

/* righe di campo decorative */
.court-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.court-lines::before, .court-lines::after { content: ""; position: absolute; border: 2px solid rgba(255,255,255,.06); }
.court-lines::before { left: 50%; top: -20%; bottom: -20%; width: 0; border-width: 0 0 0 2px; }
.court-lines::after { width: 340px; height: 340px; border-radius: 50%; left: calc(50% - 170px); top: calc(50% - 170px); }

/* --- bottoni -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 6px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 26px rgba(214, 192, 46, .28); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--brand); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- topbar + header ------------------------------------------------------ */
.topbar { background: var(--navy-950); color: var(--on-dark-muted); font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 90; background: rgba(10, 26, 47, .92);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark); transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { background: rgba(10, 26, 47, .97); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 10px 14px; border-radius: 6px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark); position: relative;
}
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: #fff; }
.nav-menu .nav-cta { margin-left: 10px; }
.nav-menu .nav-cta .btn { min-height: 46px; padding: 0 20px; font-size: 1.02rem; color: var(--ink); }

/* --- menu mobile (template Royaletiger) ----------------------------------- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 8px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(3, 9, 17, .6);
    border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--navy);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 104px 24px 40px;
    box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid var(--line-dark);
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a { padding: 14px 16px; font-size: 1.35rem; }
  .nav-menu a:not(.btn)::after { left: 16px; right: auto; width: 30px; }
  .nav-menu .nav-cta { margin: 18px 0 0; }
  .nav-menu .nav-cta .btn { width: 100%; }
}

/* --- HERO home ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(ellipse 70% 60% at 78% 45%, rgba(31, 86, 201, .35), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 100%, rgba(47, 143, 78, .16), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-950) 100%);
}
.hero::before { /* griglia tecnica */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px; align-items: center; padding: clamp(48px, 6vw, 84px) 24px clamp(56px, 6vw, 88px); }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero .lead { color: var(--on-dark-muted); margin-bottom: 34px; }
.hero .eyebrow { color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 38px 0 0; font-size: .92rem; color: var(--on-dark); }
.hero-badges li { display: flex; align-items: center; gap: 9px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* --- arena interattiva ----------------------------------------------------- */
.arena { position: relative; }
.arena-stage {
  position: relative; aspect-ratio: 1 / .92; min-height: 380px; border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 60%, rgba(31,86,201,.22), rgba(6,17,30,0) 70%);
}
.arena-stage canvas { width: 100%; height: 100%; }
.arena-hud { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; pointer-events: none; }
.hud-card { background: rgba(6, 17, 30, .72); border: 1px solid var(--line-dark); border-radius: 10px; padding: 10px 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; line-height: 1; }
.hud-spec { font-size: .78rem; color: var(--on-dark-muted); margin-top: 5px; line-height: 1.4; }
.hud-spec b { color: var(--on-dark); font-weight: 600; }
.arena-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.arena-step {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 11px; border-radius: 8px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03);
  color: var(--on-dark-muted); font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.arena-step svg { width: 24px; height: 24px; }
.arena-step.is-active { color: #fff; border-color: rgba(214,192,46,.6); background: rgba(214,192,46,.1); }
.arena-step.is-active svg { color: var(--accent); }
.step-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.arena-step.is-active .step-bar { animation: tabprog var(--cycle, 5.9s) linear forwards; }
@keyframes tabprog { to { width: 100%; } }

/* --- ticker sport ---------------------------------------------------------- */
.ticker { background: var(--accent); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(0,0,0,.08); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; gap: 22px; padding: 14px 22px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ticker li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- feature cards --------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  position: relative; padding: 36px 30px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 56px; background: var(--brand); transition: width .45s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { width: 100%; }
.feature-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--bg-alt); }
.feature-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: 22px; }
.feature-icon svg { width: 28px; height: 28px; }
.feature p { color: var(--muted); margin: 0; }

/* --- servizi bento --------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.service-card {
  position: relative; grid-column: span 4; min-height: 380px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; text-decoration: none; background: var(--navy);
}
.service-card.wide { grid-column: span 8; }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,17,30,0) 25%, rgba(6,17,30,.88) 100%); transition: background .4s var(--ease); }
.service-card:hover img { transform: scale(1.06); }
.service-card:hover::before { background: linear-gradient(180deg, rgba(6,17,30,.15) 0%, rgba(6,17,30,.92) 100%); }
.service-tag { align-self: flex-start; margin-bottom: auto; padding: 6px 12px; border-radius: 4px; background: rgba(6,17,30,.6); border: 1px solid rgba(255,255,255,.18); font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: .82rem; text-transform: uppercase; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.service-card h3 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.service-card p { color: rgba(233,238,246,.85); margin: 0 0 14px; font-size: .98rem; max-width: 46ch; }
.service-card .link-arrow { color: var(--accent); }

/* --- split / about --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/4.4; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-media .media-badge {
  position: absolute; right: -18px; bottom: 32px; background: var(--accent); color: var(--ink); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-md); max-width: 230px;
}
.media-badge strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: .9; }
.media-badge span { font-size: .9rem; font-weight: 600; line-height: 1.3; display: block; margin-top: 6px; }
.check-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }
.section-dark .check-list svg { color: var(--accent); }
.section-dark .check-list li { color: var(--on-dark); }

/* --- partner jubo ---------------------------------------------------------- */
.partner { position: relative; overflow: hidden; }
.partner-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.partner-media { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.partner-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.partner-media img:first-child { grid-row: span 2; aspect-ratio: 3/4.3; }
.partner-media img:not(:first-child) { aspect-ratio: 1; }
.partner-seal {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(255,255,255,.03); margin-bottom: 26px;
}
.partner-seal svg { width: 40px; height: 40px; color: var(--accent); }
.partner-seal strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; line-height: 1.05; }
.partner-seal span { font-size: .82rem; color: var(--on-dark-muted); }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 32px; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.spec-table th { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); width: 38%; font-size: .95rem; }
.spec-table td { color: var(--on-dark); }

/* --- processo -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 31px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.step { position: relative; padding: 0 22px 0 0; }
.step-dot {
  position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px;
  background: var(--white); border: 2px solid var(--brand); color: var(--brand); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.step:hover .step-dot { background: var(--brand); color: #fff; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* --- numeri ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat { padding: 40px 28px; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.8rem); line-height: .9; color: #fff; font-variant-numeric: tabular-nums; }
.stat-num small { color: var(--accent); font-size: .6em; }
.stat-label { margin-top: 10px; font-size: .95rem; color: var(--on-dark-muted); }

/* --- target ---------------------------------------------------------------- */
.audience { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.audience-item { padding: 26px 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); text-align: left; }
.audience-item svg { width: 34px; height: 34px; color: var(--brand); margin-bottom: 16px; }
.audience-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.audience-item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* --- galleria -------------------------------------------------------------- */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-strip a { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.gallery-strip a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-strip a:nth-child(4) { grid-row: span 2; }
.gallery-strip img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-strip a:hover img, .gallery-grid a:hover img { transform: scale(1.06); }
.gallery-strip figcaption, .gallery-grid figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 4px; background: rgba(6,17,30,.75); color: #fff;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; font-size: .82rem; text-transform: uppercase;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-btn {
  padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; }
.gallery-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; }
.gallery-grid figure.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(3, 9, 17, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 8px; }
.lightbox-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--on-dark); font-size: .95rem; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* --- blog cards ------------------------------------------------------------ */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); color: inherit; }
.post-card img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.post-body { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.post-meta { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.post-card h3 { font-size: 1.45rem; }
.post-card p { color: var(--muted); font-size: .96rem; }
.post-card .link-arrow { margin-top: auto; }

/* --- CTA banner ------------------------------------------------------------ */
.cta-banner { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; isolation: isolate; }
.cta-banner::before { content: ""; position: absolute; z-index: -1; inset: 0; background:
  linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.14) calc(50% - 1px), rgba(255,255,255,.14) calc(50% + 1px), transparent calc(50% + 1px)),
  linear-gradient(transparent calc(30% - 1px), rgba(255,255,255,.14) calc(30% - 1px), rgba(255,255,255,.14) calc(30% + 1px), transparent calc(30% + 1px)),
  linear-gradient(transparent calc(70% - 1px), rgba(255,255,255,.14) calc(70% - 1px), rgba(255,255,255,.14) calc(70% + 1px), transparent calc(70% + 1px)); }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn-ghost-light { border-color: rgba(255,255,255,.5); }

/* --- page hero (interne) --------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; color: #fff; padding: clamp(80px, 11vw, 150px) 0 clamp(56px, 7vw, 90px); overflow: hidden; background: var(--navy); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,17,30,.94) 0%, rgba(6,17,30,.72) 55%, rgba(6,17,30,.35) 100%); }
.page-hero h1 { color: #fff; max-width: 16ch; margin-bottom: 18px; font-size: clamp(2.5rem, 5.5vw, 4.6rem); }
.page-hero .lead { color: var(--on-dark-muted); }
.page-hero .eyebrow { color: var(--accent); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .86rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* --- servizi dettaglio ----------------------------------------------------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block:nth-child(even) .service-block-media { order: 2; }
.service-block-media { position: relative; }
.service-block-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); }
.service-index { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .2em; color: var(--brand); margin-bottom: 10px; display: block; }
.service-block p { color: var(--muted); }
.service-block .check-list { margin: 18px 0 26px; }
.service-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.service-nav a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .92rem; }
.service-nav a:hover { border-color: var(--brand); color: var(--brand); }

/* --- valori / chi siamo ---------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--navy); padding: 38px 30px; }
.value-num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .2em; color: var(--accent); }
.value h3 { margin: 14px 0 12px; }
.value p { margin: 0; font-size: .98rem; }
.quote-block { border-left: 4px solid var(--accent); padding: 6px 0 6px 26px; margin: 30px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: var(--ink); text-transform: none; }
.quote-block cite { display: block; margin-top: 12px; font-family: var(--font-body); font-style: normal; font-size: .9rem; font-weight: 600; color: var(--muted); }

/* --- contatti -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: inherit; }
.contact-card .ci { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.1rem; margin: 0 0 4px; letter-spacing: .08em; }
.contact-card p { margin: 0; color: var(--text); }
.contact-card small { color: var(--muted); }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-md); border-top: 4px solid var(--brand); }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(31,86,201,.14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; margin-top: 8px; }
.form-status { font-size: .92rem; color: var(--brand-dark); font-weight: 600; min-height: 1.4em; margin: 10px 0 0; }

/* --- articoli -------------------------------------------------------------- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.article figure { margin: 2em 0; }
.article figure img { border-radius: var(--radius); width: 100%; }
.article figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.answer-box { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 0 0 2em; }
.answer-box strong { color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.8em; font-size: .95rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
.article th, .article td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { background: var(--navy); color: #fff; font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; color: var(--on-dark-muted); }
.faq { border-top: 1px solid var(--line); margin-top: 1em; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--brand); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }

/* --- footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding-top: clamp(64px, 8vw, 96px); font-size: .95rem; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); flex-shrink: 0; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; }
.socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px 24px; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-credit a { color: var(--accent); }

/* pulsante chiamata flottante (mobile) */
.call-fab { display: none; }

/* --- reveal ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .audience { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 720px; }
  .service-card, .service-card.wide { grid-column: span 6; }
  .posts { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar-hide { display: none; }
  .features { grid-template-columns: 1fr; }
  .split, .contact-grid, .service-block { grid-template-columns: 1fr; }
  .split.reverse .split-media, .service-block:nth-child(even) .service-block-media { order: 0; }
  .split-media .media-badge { right: 14px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .values { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .call-fab {
    display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
    align-items: center; justify-content: center; background: var(--accent); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .call-fab svg { width: 24px; height: 24px; }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.wide { grid-column: auto; min-height: 320px; }
  .gallery-strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-strip a:nth-child(4) { grid-row: auto; }
  .post-card { grid-template-columns: 1fr; }
  .post-card img { min-height: 0; aspect-ratio: 16/9; }
  .audience { grid-template-columns: 1fr 1fr; }
  .partner-media { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .hero-grid { padding-left: 16px; padding-right: 16px; }
  .topbar { display: none; }
  .brand-sub { display: none; }
  .brand img { width: 40px; }
  .brand-name { font-size: 1.3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .arena-steps { grid-template-columns: repeat(3, 1fr); }
  .arena-stage { min-height: 330px; aspect-ratio: 1 / 1.05; }
  .hud-name { font-size: 1.2rem; }
  .hud-spec { font-size: .72rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .split-media .media-badge { position: static; margin-top: -40px; margin-left: 16px; position: relative; }
}
@media (max-width: 480px) {
  .audience { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .ticker li { font-size: 1.1rem; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
