/* ==========================================================================
   Club Alfisti Veneto — style.css (edizione luxury)
   Palette: rosso Alfa + antracite profondo + avorio, oro caldo per i dettagli.
   Font self-hosted (GDPR): Playfair Display (display) + Inter (body).
   ========================================================================== */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette brand */
  --brand: #8c1d2e;
  --brand-dark: #5f1220;
  --accent: #c8a35f;
  --accent-soft: #e9d5a8;
  --gold-grad: linear-gradient(115deg, #96742f 0%, #d8b979 30%, #f4e5bf 50%, #d8b979 70%, #96742f 100%);
  --ink: #121216;
  --ink-soft: #1d1d24;
  --carbon: #08080b;
  --quadri: #00954a;
  --text: #3a3a40;
  --muted: #75757d;
  --bg: #fbf9f6;
  --bg-alt: #f4efe7;
  --line: #e5dfd4;
  --on-dark: #f6f3ee;
  --on-dark-muted: #b9b4ac;
  /* tipografia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  /* sistema */
  --shadow-sm: 0 1px 3px rgba(18, 18, 22, .08);
  --shadow-md: 0 10px 32px rgba(18, 18, 22, .14);
  --shadow-lg: 0 24px 60px rgba(18, 18, 22, .22);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --nav-h: 80px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
ul { list-style: none; }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.28rem; line-height: 1.3; }
h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* Parola accentata nei titoli: corsivo dorato */
h1 em, h2 em {
  font-style: italic; font-weight: 600;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gold-shimmer 6s linear infinite;
}
@keyframes gold-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Utility ---------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); position: relative; }
.section-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 90% at 90% 0%, rgba(140, 29, 46, .18), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(200, 163, 95, .07), transparent 60%);
}
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }
.section-head { max-width: 660px; margin-bottom: 64px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.section-head p { margin-top: 16px; font-size: 1.08rem; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.section-head:not(.centered) .eyebrow::before { background: var(--accent); width: 30px; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }

/* Bottoni con effetto shine ---------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 34px; border-radius: 999px;
  font-family: var(--font-body); font-size: .93rem; font-weight: 600; letter-spacing: .02em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .35) 50%, transparent 75%);
  transform: translateX(-130%) skewX(-12deg);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::after { transform: translateX(130%) skewX(-12deg); transition: transform .9s var(--ease); }
.btn-primary { background: linear-gradient(135deg, #a02540, var(--brand) 55%, var(--brand-dark)); color: #fff; box-shadow: 0 8px 24px rgba(140, 29, 46, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(140, 29, 46, .45); }
.btn-outline { border-color: rgba(18, 18, 22, .5); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.section-dark .btn-outline, .hero .btn-outline, .error-hero .btn-outline { border-color: rgba(246, 243, 238, .55); color: var(--on-dark); }
.section-dark .btn-outline:hover, .hero .btn-outline:hover, .error-hero .btn-outline:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* Reveal ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--stagger, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.scrolled {
  background: rgba(14, 14, 18, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(200, 163, 95, .22), var(--shadow-md);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 30% 25%, #a3253f, var(--brand) 55%, var(--brand-dark));
  color: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(200, 163, 95, .55), 0 4px 14px rgba(0, 0, 0, .3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.nav-brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); box-shadow: inset 0 0 0 1px rgba(233, 213, 168, .9), 0 6px 18px rgba(0, 0, 0, .4); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; color: var(--on-dark); }
.brand-tag { font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.nav-cta) {
  color: var(--on-dark); font-size: .92rem; font-weight: 500; position: relative; padding: 6px 0; letter-spacing: .02em;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--gold-grad); transition: width .4s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a[aria-current="page"]:not(.nav-cta)::after { width: 100%; }
.nav-cta { padding: 12px 26px; font-size: .87rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 110; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--on-dark);
  margin: 6px 0; border-radius: 2px; transition: transform .35s var(--ease), opacity .35s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero home — cinematico -------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 70px) 0 110px; overflow: hidden; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  animation: kenburns 14s var(--ease) both;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.14) translateY(-1.5%); }
  to { transform: scale(1.02) translateY(0); }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 12, 16, .94) 0%, rgba(12, 12, 16, .74) 45%, rgba(12, 12, 16, .28) 100%),
    radial-gradient(ellipse 120% 60% at 50% 108%, rgba(12, 12, 16, .9), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--on-dark); max-width: 15ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .lead { color: var(--on-dark-muted); font-size: 1.16rem; max-width: 52ch; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 56px; margin-top: 72px; }
.hero-stat { position: relative; padding-left: 18px; }
.hero-stat::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--accent), transparent); }
.hero-stat .num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1;
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-stat .lbl { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 10px; }

/* Indicatore di scroll */
.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 1;
  color: var(--on-dark-muted); font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scroll-pulse 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* Marquee modelli --------------------------------------------------------- */
.marquee {
  background: var(--ink); border-top: 1px solid rgba(200, 163, 95, .18); border-bottom: 1px solid rgba(200, 163, 95, .18);
  overflow: hidden; padding: 26px 0; position: relative;
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 64px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--on-dark-muted);
  white-space: nowrap; display: flex; align-items: center; gap: 64px;
}
.marquee-track span::after { content: '✦'; font-size: .7rem; color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero pagine interne ---------------------------------------------------- */
.page-hero {
  position: relative; background: var(--ink);
  padding: calc(var(--nav-h) + 88px) 0 84px; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 15%, rgba(140, 29, 46, .4), transparent 60%),
    radial-gradient(ellipse 45% 65% at 8% 95%, rgba(200, 163, 95, .12), transparent 60%);
  animation: hero-glow 9s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  from { opacity: .7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 163, 95, .5), transparent);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--on-dark); }
.page-hero .lead { color: var(--on-dark-muted); font-size: 1.12rem; max-width: 56ch; margin-top: 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; letter-spacing: .04em; margin-bottom: 26px; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark-muted); transition: color .3s; }
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb .sep { opacity: .45; }
.breadcrumb .current { color: var(--accent); }

/* Card feature ----------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 42px 34px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold-grad); background-size: 200% auto;
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(200, 163, 95, .45); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card.on-dark { background: var(--ink-soft); border-color: rgba(246, 243, 238, .1); }
.feature-card.on-dark:hover { border-color: rgba(200, 163, 95, .4); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 24px;
  background: linear-gradient(135deg, #a3253f, var(--brand) 50%, var(--brand-dark));
  box-shadow: inset 0 0 0 1px rgba(233, 213, 168, .25), 0 8px 20px rgba(140, 29, 46, .3);
  display: flex; align-items: center; justify-content: center; color: var(--accent-soft);
  transition: transform .5s var(--ease);
}
.feature-card:hover .feature-icon { transform: translateY(-4px) rotate(-4deg); }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { font-size: .96rem; }

/* Split about ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.split-media:hover img { transform: scale(1.015) translateY(-4px); box-shadow: 0 30px 70px rgba(18, 18, 22, .28); }
.split-media::before {
  content: ''; position: absolute; inset: 26px -26px -26px 26px;
  border: 1px solid var(--accent); border-radius: var(--radius-lg); z-index: -1; opacity: .55;
  transition: inset .6s var(--ease), opacity .6s;
}
.split-media:hover::before { inset: 18px -18px -18px 18px; opacity: .9; }
.split-media::after {
  content: '✦'; position: absolute; right: -13px; bottom: -13px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--accent); font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(200, 163, 95, .5);
}
.split-body h2 { margin-bottom: 20px; }
.split-body p + p { margin-top: 15px; }
.split-body .btn { margin-top: 30px; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-media::before { inset: 26px 26px -26px -26px; }
.split.reverse .split-media:hover::before { inset: 18px 18px -18px -18px; }
.split.reverse .split-media::after { right: auto; left: -13px; }

/* Card evento ------------------------------------------------------------ */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.event-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(200, 163, 95, .45); }
.event-card figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.event-card figure::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 12, 16, .5));
  opacity: 0; transition: opacity .5s;
}
.event-card:hover figure::after { opacity: 1; }
.event-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .8s; }
.event-card:hover figure img { transform: scale(1.07); }
.event-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.event-body h3 { margin-bottom: 10px; }
.event-body p { font-size: .95rem; flex: 1; }
.event-link { margin-top: 20px; font-weight: 600; font-size: .9rem; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; transition: gap .3s var(--ease); }
.event-card:hover .event-link { gap: 12px; }
.event-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: rgba(14, 14, 18, .78); color: var(--accent-soft);
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(200, 163, 95, .4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* Numeri ----------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; text-align: center; }
.stat { position: relative; padding: 8px 0; }
.stat + .stat::before {
  content: ''; position: absolute; left: -22px; top: 15%; bottom: 15%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200, 163, 95, .4), transparent);
}
.stat .num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.9rem); font-weight: 700; line-height: 1;
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gold-shimmer 7s linear infinite;
}
.stat .lbl { margin-top: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Quote ------------------------------------------------------------------ */
.quote-wrap { max-width: 820px; margin: 0 auto; text-align: center; position: relative; padding-top: 30px; }
.quote-wrap::before {
  content: '\201C'; position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 7rem; line-height: 1; color: var(--accent); opacity: .35;
}
.quote-wrap blockquote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-style: italic;
  color: var(--ink); line-height: 1.45;
}
.quote-wrap cite { display: block; margin-top: 26px; font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote-wrap cite::before { content: ''; display: block; width: 40px; height: 1px; margin: 0 auto 16px; background: var(--accent); }

/* Blog cards ------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(200, 163, 95, .45); }
.blog-card figure { aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.blog-card:hover figure img { transform: scale(1.06); }
.blog-card-body { padding: 32px; }
.blog-meta { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.blog-meta::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.blog-card h3 { margin-bottom: 12px; }
.blog-card h3 a { color: var(--ink); transition: color .3s; }
.blog-card h3 a:hover { color: var(--brand); }
.blog-card p { font-size: .95rem; }

/* Articolo --------------------------------------------------------------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 1.7rem; margin: 48px 0 16px; }
.article-body h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.article-body p + p { margin-top: 16px; }
.article-body ul { list-style: none; padding-left: 0; margin: 18px 0; }
.article-body ul li { position: relative; padding-left: 26px; }
.article-body ul li::before { content: '✦'; position: absolute; left: 0; top: 2px; font-size: .7rem; color: var(--accent); }
.article-body ul li + li { margin-top: 10px; }
.article-body strong { color: var(--ink); }
.article-lead {
  font-size: 1.12rem; color: var(--ink-soft);
  border-left: 2px solid var(--accent); padding: 6px 0 6px 22px;
  background: linear-gradient(90deg, rgba(200, 163, 95, .08), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* FAQ -------------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.faq-item[open] { border-color: rgba(200, 163, 95, .55); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 24px 0; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  transition: color .3s;
}
.faq-item summary:hover { color: var(--brand); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .4s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 24px; font-size: .97rem; }

/* Galleria --------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  border: 0; padding: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; position: relative; display: block; width: 100%;
}
.gallery-item::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(12, 12, 16, .45));
  opacity: 0; transition: opacity .5s;
}
.gallery-item::after {
  content: '+'; position: absolute; right: 14px; bottom: 12px; z-index: 2; pointer-events: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(14, 14, 18, .7); color: var(--accent-soft);
  font-family: var(--font-display); font-size: 1.2rem; line-height: 34px; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(200, 163, 95, .45);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after { opacity: 1; transform: none; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 14, .95);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox.is-open { display: flex; animation: lb-fade .35s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(200, 163, 95, .3), var(--shadow-lg); animation: lb-zoom .45s var(--ease); }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-zoom { from { transform: scale(.94); opacity: 0; } }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .8; transition: opacity .3s, transform .3s;
}
.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }

/* CTA banner ------------------------------------------------------------- */
.cta-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 45%, #a3324a 70%, var(--brand-dark));
  background-size: 220% 220%;
  animation: cta-drift 10s ease-in-out infinite alternate;
  padding: 80px 64px; text-align: center; box-shadow: var(--shadow-lg);
}
@keyframes cta-drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; opacity: .12;
  background: radial-gradient(circle at 20% 20%, #fff 1px, transparent 1.5px);
  background-size: 26px 26px;
}
.cta-banner::after {
  content: ''; position: absolute; inset: 10px; border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(233, 213, 168, .28); pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255, 255, 255, .87); max-width: 54ch; margin: 0 auto 32px; }
.cta-banner .btn-primary { background: var(--on-dark); color: var(--brand-dark); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.cta-banner .btn-primary:hover { background: #fff; color: var(--brand-dark); }

/* Contatti --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 28px; margin-top: 34px; }
.contact-item { display: flex; gap: 20px; align-items: flex-start; }
.contact-item .ci-icon {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px;
  background: linear-gradient(135deg, #a3253f, var(--brand) 50%, var(--brand-dark));
  box-shadow: inset 0 0 0 1px rgba(233, 213, 168, .25), 0 6px 16px rgba(140, 29, 46, .28);
  display: flex; align-items: center; justify-content: center; color: var(--accent-soft);
  transition: transform .4s var(--ease);
}
.contact-item:hover .ci-icon { transform: translateY(-3px) rotate(-4deg); }
.contact-item h3 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 1.04rem; color: var(--ink); font-weight: 500; }
.contact-item a:hover { color: var(--brand); }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 46px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.contact-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad); background-size: 200% auto;
  animation: gold-shimmer 6s linear infinite;
}
.contact-form h2 { font-size: 1.5rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 14px 17px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: .96rem; color: var(--ink); background: var(--bg);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 163, 95, .16);
}
.form-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; margin: 6px 0 22px; }
.form-privacy input { margin-top: 4px; accent-color: var(--brand); }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--brand); min-height: 1.4em; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 32px;
  font-weight: 600; font-size: .94rem; transition: gap .3s var(--ease);
}
.map-link:hover { gap: 13px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 0; position: relative; }
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 163, 95, .55), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding: 84px 24px 56px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; color: var(--on-dark); }
.footer-col p { font-size: .92rem; }
.footer-col h4 { color: var(--accent); margin-bottom: 20px; }
.footer-col ul li + li { margin-top: 11px; }
.footer-col ul a, .footer-col address { color: var(--on-dark-muted); font-size: .92rem; font-style: normal; transition: color .3s, padding-left .3s var(--ease); }
.footer-col ul a:hover { color: var(--accent-soft); padding-left: 5px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(246, 243, 238, .1); padding: 26px 24px; font-size: .84rem;
}
.footer-bottom a { color: var(--on-dark-muted); transition: color .3s; }
.footer-bottom a:hover { color: var(--accent-soft); }
.footer-credit a { color: var(--accent); font-weight: 600; }

/* 404 -------------------------------------------------------------------- */
.error-hero { min-height: 74vh; display: flex; align-items: center; text-align: center; background: var(--ink); padding: calc(var(--nav-h) + 40px) 0 60px; position: relative; overflow: hidden; }
.error-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 65% at 50% 30%, rgba(140, 29, 46, .35), transparent 65%);
  animation: hero-glow 8s ease-in-out infinite alternate;
}
.error-hero .container { max-width: 640px; position: relative; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 9rem); font-weight: 700; line-height: 1;
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gold-shimmer 6s linear infinite;
}
.error-hero h1 { color: var(--on-dark); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 14px 0 16px; }
.error-hero p { color: var(--on-dark-muted); margin-bottom: 32px; }

/* Policy ----------------------------------------------------------------- */
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-size: 1.45rem; margin: 42px 0 14px; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { list-style: disc; padding-left: 24px; margin: 14px 0; }
.legal-body ul li + li { margin-top: 6px; }

/* ==========================================================================
   STACCHI DI COLORE — sezione carbonio, divisori, texture
   ========================================================================== */

/* Sezione carbonio: il nero più profondo, con trama a griglia diagonale
   che richiama la calandra. Usata per gli stacchi forti. */
.section-carbon { background: var(--carbon); position: relative; overflow: hidden; }
.section-carbon::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(115deg, rgba(246, 243, 238, .035) 0 1px, transparent 1px 9px),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(140, 29, 46, .22), transparent 65%);
}
.section-carbon::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 163, 95, .45), transparent);
}
.section-carbon > .container { position: relative; z-index: 1; }
.section-carbon h2, .section-carbon h3 { color: var(--on-dark); }
.section-carbon p { color: var(--on-dark-muted); }
.section-carbon .eyebrow { color: var(--accent); }

/* Split su fondo scuro */
.section-dark .split-body p, .section-carbon .split-body p { color: var(--on-dark-muted); }
.section-dark .split-media::after, .section-carbon .split-media::after { background: var(--accent); color: var(--carbon); box-shadow: none; }

/* Divisore decorativo tra sezioni */
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 0 8px; }
.divider::before, .divider::after {
  content: ''; height: 1px; width: min(180px, 22vw);
}
.divider::before { background: linear-gradient(90deg, transparent, var(--accent)); }
.divider::after { background: linear-gradient(-90deg, transparent, var(--accent)); }
.divider span { color: var(--accent); font-size: .7rem; transform: rotate(45deg); display: block; width: 8px; height: 8px; border: 1px solid var(--accent); }

/* Badge di riconoscimento */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px 9px 14px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-soft); background: rgba(246, 243, 238, .05);
  box-shadow: inset 0 0 0 1px rgba(200, 163, 95, .32);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: box-shadow .4s, background .4s, transform .4s var(--ease);
}
.badge:hover { transform: translateY(-2px); background: rgba(246, 243, 238, .09); box-shadow: inset 0 0 0 1px rgba(233, 213, 168, .6); }
.badge svg { color: var(--accent); flex: 0 0 auto; }

/* ==========================================================================
   TIMELINE HERITAGE — "cent'anni di Biscione"
   ========================================================================== */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: ''; position: absolute; left: 0; right: 0; top: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 163, 95, .45) 12%, rgba(200, 163, 95, .45) 88%, transparent);
}
.timeline-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.tl-item { position: relative; padding-top: 92px; text-align: left; }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: 40px;
  width: 13px; height: 13px; transform: rotate(45deg);
  background: var(--carbon); box-shadow: inset 0 0 0 1px var(--accent);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.tl-item:hover::before { background: var(--brand); box-shadow: inset 0 0 0 1px var(--accent-soft), 0 0 18px rgba(140, 29, 46, .8); transform: rotate(45deg) scale(1.25); }
.tl-year {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1;
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.tl-item h3 { font-size: 1.06rem; margin-bottom: 9px; color: var(--on-dark); }
.tl-item p { font-size: .89rem; line-height: 1.65; color: var(--on-dark-muted); }

/* La tappa del 1923 — il quadrifoglio di Sivocci */
.tl-item.is-key h3 { color: var(--accent-soft); }
.tl-item.is-key::before { background: var(--quadri); box-shadow: inset 0 0 0 1px rgba(233, 213, 168, .7), 0 0 16px rgba(0, 149, 74, .55); }

/* Racconto esteso sotto la timeline */
.heritage-note {
  margin-top: 64px; padding: 40px 46px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(246, 243, 238, .05), rgba(246, 243, 238, .02));
  box-shadow: inset 0 0 0 1px rgba(246, 243, 238, .09);
  display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center;
}
.heritage-note .hn-mark {
  width: 66px; height: 66px; flex: 0 0 auto; transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(0, 149, 74, .22), rgba(0, 149, 74, .05));
  box-shadow: inset 0 0 0 1px rgba(0, 149, 74, .6);
  display: flex; align-items: center; justify-content: center;
}
.heritage-note .hn-mark span { transform: rotate(-45deg); color: var(--quadri); font-size: 1.5rem; }
.heritage-note p { font-size: 1.02rem; color: var(--on-dark-muted); }
.heritage-note p strong { color: var(--on-dark); font-weight: 600; }
.heritage-note cite { display: block; margin-top: 12px; font-style: normal; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Fascia fatti (sostituisce i numeri) ------------------------------------- */
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; text-align: center; }
.fact { position: relative; padding: 8px 0; }
.fact + .fact::before {
  content: ''; position: absolute; left: -22px; top: 15%; bottom: 15%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200, 163, 95, .4), transparent);
}
.fact .fact-top { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; line-height: 1.1;
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gold-shimmer 7s linear infinite;
}
.fact .lbl { margin-top: 14px; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Social footer ----------------------------------------------------------- */
.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-muted); box-shadow: inset 0 0 0 1px rgba(246, 243, 238, .16);
  transition: color .4s, box-shadow .4s, transform .4s var(--ease), background .4s;
}
.social-row a:hover { color: var(--carbon); background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-3px); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .timeline-track { grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
  .timeline::before { display: none; }
  .tl-item { padding-top: 78px; }
}
@media (max-width: 1024px) {
  .section { padding: 84px 0; }
  .split { gap: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .features-grid, .events-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(12, 12, 16, .98);
    flex-direction: column; justify-content: center; gap: 32px;
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.nav-cta) { font-size: 1.35rem; font-family: var(--font-display); }
  .nav-toggle { display: block; }
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media::before, .split-media::after { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 60px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .hero-stats { gap: 34px; margin-top: 56px; }
  .scroll-hint { display: none; }
}
@media (max-width: 900px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact + .fact::before { display: none; }
  .heritage-note { grid-template-columns: 1fr; gap: 24px; padding: 34px 28px; text-align: left; }
}
@media (max-width: 640px) {
  .features-grid, .events-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 68px; }
  .timeline-track { grid-template-columns: 1fr; gap: 30px; }
  .tl-item { padding-top: 0; padding-left: 34px; }
  .tl-item::before { top: 8px; left: 0; }
  .tl-year { position: static; display: block; font-size: 1.5rem; margin-bottom: 6px; }
  .tl-item { border-left: 1px solid rgba(200, 163, 95, .25); margin-left: 6px; padding-left: 26px; }
  .tl-item::before { left: -6px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero { min-height: 92vh; }
}

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