/* ==========================================================================
   A.C.A.M.D.E — Gli Amici di Caserta Auto & Moto d'Epoca
   Stile "Blu e Rosso" (B1a)
   ========================================================================== */

@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blu-notte: #061A3F;
  --blu-scuro: #031230;
  --blu-pannello: #0B2558;
  --blu-logo: #02296A;
  --blu-bordo: #1E3A75;
  --blu-bordo-2: #3A5A98;
  --rosso: #DC0000;
  --rosso-scuro: #B80000;
  --rosso-chiaro: #FF3B3B;
  --rosso-testo: #FF6B6B;
  --verde: #1A871A;
  --giallo: #FDDC01;
  --bianco: #FFFFFF;
  --testo: #E6ECF7;
  --testo-2: #C3CCE0;
  --testo-3: #9AA8C6;
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  --radius: 6px;
  --tri: linear-gradient(90deg, var(--verde) 0 33.33%, var(--bianco) 33.33% 66.66%, var(--rosso) 66.66% 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--blu-notte); color: var(--testo); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bianco); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--giallo); }
:focus-visible { outline: 3px solid var(--giallo); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--bianco); line-height: .95; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--giallo); color: var(--blu-logo); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.tri { height: 10px; background: var(--tri); }
.tri--thin { height: 4px; }
.red { color: var(--rosso-chiaro); }
.yellow { color: var(--giallo); }
.muted { color: var(--testo-2); }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 4px; font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--rosso); color: var(--bianco); }
.btn--red:hover { background: var(--rosso-scuro); color: var(--bianco); }
.btn--white { background: var(--bianco); color: var(--blu-logo); }
.btn--white:hover { background: var(--giallo); color: var(--blu-logo); }
.btn--ghost { border-color: var(--bianco); color: var(--bianco); background: transparent; }
.btn--ghost:hover { background: var(--bianco); color: var(--blu-logo); }
.btn--display { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: .06em; padding: 12px 28px 9px; }
.link-more { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; color: var(--rosso-testo); text-decoration: none; }
.link-more:hover { color: var(--bianco); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blu-notte); border-bottom: 1px solid var(--blu-bordo); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--bianco); min-width: 0; }
.brand img { width: 60px; height: 60px; flex: none; transition: transform .6s ease; }
.brand:hover img { transform: rotate(-12deg); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 32px; letter-spacing: .06em; }
.brand__tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rosso-testo); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--testo); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; position: relative; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--rosso-chiaro); transition: right .25s ease; }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--bianco); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { right: 0; }
.nav-toggle { display: none; background: none; border: 2px solid var(--blu-bordo-2); color: var(--bianco); width: 48px; height: 48px; border-radius: 4px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .25s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); background: var(--blu-scuro); border-right: 4px solid var(--rosso); flex-direction: column; align-items: stretch; padding: 96px 28px 28px; transform: translateX(-105%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; z-index: 60; overflow-y: auto; }
  .js .nav-open .nav { visibility: visible; transition: transform .3s ease; }
  .js .nav-open .nav { transform: none; }
  .js .nav__list { flex-direction: column; gap: 4px; }
  .js .nav__list a { display: block; font-family: var(--display); font-size: 34px; letter-spacing: .04em; font-weight: 400; padding: 6px 0; }
  .js .nav-toggle { position: relative; z-index: 70; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(3, 18, 48, .6); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .site-header__in { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; }
}
@media (max-width: 520px) {
  .brand img { width: 48px; height: 48px; }
  .brand__name { font-size: 26px; }
  .brand__tag { font-size: 10px; }
}

/* ---------- hero home ---------- */
.hero { position: relative; overflow: hidden; padding-top: 40px; }
.hero__marquee { position: absolute; top: 40px; left: 0; white-space: nowrap; font-family: var(--display); font-size: clamp(140px, 20vw, 260px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 59, 59, .28); animation: slide 50s linear infinite; pointer-events: none; user-select: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: end; padding-top: 90px; padding-bottom: 56px; }
.hero__copy { animation: inLeft .8s ease both; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--blu-bordo-2); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--testo); text-decoration: none; }
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rosso-chiaro); animation: pulse 1.6s ease-in-out infinite; }
.hero h1 { margin-top: 22px; font-size: clamp(76px, 11vw, 132px); line-height: .88; }
.hero h1 .kicker { display: block; font-family: var(--body); font-size: clamp(16px, 2vw, 20px); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--giallo); line-height: 1.2; margin-bottom: 14px; }
.hero h1 mark { background: var(--rosso); color: var(--bianco); padding: 0 12px; }
.hero__lead { margin-top: 26px; max-width: 520px; font-size: 19px; color: var(--testo-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.next-card { background: var(--rosso); color: var(--bianco); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; animation: inLeft .8s .15s ease both; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.next-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.next-card__label { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.next-card__title { font-family: var(--display); font-size: clamp(38px, 4.5vw, 52px); line-height: .95; color: var(--bianco); }
.next-card__title a { color: inherit; text-decoration: none; }
.next-card__logo { width: 96px; height: 96px; flex: none; animation: spinIn 1.2s .3s ease both; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; text-align: center; }
.countdown div { background: var(--blu-logo); border-radius: 4px; padding: 12px 4px; }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
.countdown span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.next-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.road { position: relative; height: 108px; overflow: hidden; border-top: 1px dashed var(--blu-bordo-2); }
.road__car { position: absolute; bottom: 6px; left: 0; width: 240px; animation: drive 9s linear infinite; }
.road__car img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); }

/* ---------- ticker ---------- */
.ticker { background: var(--rosso); color: var(--bianco); overflow: hidden; white-space: nowrap; }
.ticker__in { display: inline-flex; gap: 40px; padding: 14px 0; font-family: var(--display); font-size: 30px; letter-spacing: .04em; animation: slide 36s linear infinite; }
.ticker__in a { color: inherit; text-decoration: none; }
.ticker__in .star { color: var(--giallo); }

/* ---------- sezioni ---------- */
.section { padding: 96px 0; }
.section--dark { background: var(--blu-scuro); }
.section--red { background: var(--rosso); color: var(--bianco); }
.section--logo { background: var(--blu-logo); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.section-title { font-size: clamp(56px, 8vw, 88px); line-height: .9; }
.section-intro { max-width: 520px; color: var(--testo-2); margin: 0; font-size: 18px; }

/* ---------- pagina interna ---------- */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 48px; border-bottom: 1px solid var(--blu-bordo); }
.page-hero::after { content: attr(data-word); position: absolute; right: -2%; bottom: -40px; font-family: var(--display); font-size: clamp(120px, 18vw, 240px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 59, 59, .22); pointer-events: none; white-space: nowrap; }
.page-hero h1 { font-size: clamp(56px, 9vw, 104px); line-height: .9; position: relative; z-index: 1; }
.page-hero .lead { position: relative; z-index: 1; max-width: 720px; margin-top: 18px; font-size: 19px; color: var(--testo-2); }
.crumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--testo-3); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--rosso-testo); }
.crumbs a { color: var(--testo-2); text-decoration: none; }
.crumbs a:hover { color: var(--bianco); text-decoration: underline; }

/* testo formattato */
.prose { max-width: 760px; font-size: 18px; }
.prose p, .prose li { color: var(--testo); }
.prose h2 { font-size: 44px; margin: 1.3em 0 .4em; }
.prose h3 { font-size: 32px; margin: 1.2em 0 .4em; }
.prose a { color: var(--rosso-testo); }
.prose a:hover { color: var(--bianco); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--rosso-chiaro); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--rosso); color: var(--testo-2); font-style: italic; }

/* ---------- eventi ---------- */
.ev-list { border-top: 1px solid var(--blu-bordo); }
.ev-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px 20px; align-items: center; padding: 26px 16px; border-bottom: 1px solid var(--blu-bordo); text-decoration: none; color: var(--testo); transition: background .25s ease, padding .25s ease; }
.ev-row:hover { background: var(--blu-pannello); color: var(--testo); padding-left: 24px; }
.ev-row__date { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--bianco); }
.ev-row__date small { font-size: 28px; color: var(--rosso-testo); }
.ev-row__title { font-family: var(--display); font-size: 34px; color: var(--bianco); line-height: 1; }
.ev-row__place { color: var(--testo-2); }
.badge { justify-self: end; display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 18px; border-radius: 4px; border: 1px solid #4A66A0; color: var(--testo); white-space: nowrap; }
.badge--red { background: var(--rosso); border-color: var(--rosso); color: var(--bianco); }
.badge--past { color: var(--testo-3); }
.empty-box { border: 1px dashed var(--blu-bordo-2); border-radius: var(--radius); padding: 32px; color: var(--testo-2); }

.event-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: start; }
.event-facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.event-facts li { display: flex; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--blu-bordo); }
.event-facts b { min-width: 110px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rosso-testo); }
.event-poster { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.event-poster img { width: 100%; }

/* ---------- galleria / pellicola ---------- */
.film { background: var(--blu-pannello); padding: 14px 0; border-top: 10px dotted var(--blu-bordo); border-bottom: 10px dotted var(--blu-bordo); overflow: hidden; }
.film__track { display: flex; gap: 14px; width: max-content; animation: slide 80s linear infinite; }
.film:hover .film__track, .film:focus-within .film__track { animation-play-state: paused; }
.film__item { position: relative; flex: none; width: 300px; height: 210px; border-radius: 3px; overflow: hidden; display: block; background: var(--blu-bordo); }
.film__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7); transition: filter .3s ease, transform .4s ease; }
.film__item:hover img, .film__item:focus img { filter: none; transform: scale(1.06); }
.film__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(3, 18, 48, .9)); color: var(--bianco); font-weight: 600; font-size: 15px; }

.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 40px; }
.cat-card { text-decoration: none; border: 1px solid var(--blu-bordo-2); border-radius: var(--radius); padding: 22px; color: var(--testo); transition: transform .25s ease, background .25s ease; }
.cat-card:hover { transform: translateY(-4px); background: var(--blu-pannello); color: var(--testo); }
.cat-card strong { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; color: var(--bianco); }
.cat-card:nth-child(4n+1) { border-top: 4px solid var(--verde); }
.cat-card:nth-child(4n+2) { border-top: 4px solid var(--bianco); }
.cat-card:nth-child(4n+3) { border-top: 4px solid var(--rosso); }
.cat-card:nth-child(4n+4) { border-top: 4px solid var(--giallo); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--blu-bordo-2); border-radius: 4px; text-decoration: none; color: var(--testo); font-weight: 600; }
.filters a:hover { border-color: var(--bianco); color: var(--bianco); }
.filters a[aria-current="page"] { background: var(--rosso); border-color: var(--rosso); color: var(--bianco); }
.filters__label { align-self: center; font-weight: 700; color: var(--testo-3); margin-right: 4px; }

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--blu-pannello); text-decoration: none; color: var(--testo); }
.album-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blu-bordo); }
.album-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-card:hover .album-card__img img { transform: scale(1.07); }
.album-card__body { padding: 16px 18px 20px; }
.album-card__meta { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rosso-testo); }
.album-card__title { font-family: var(--display); font-size: 28px; line-height: 1.02; color: var(--bianco); margin-top: 4px; }
.album-card__count { position: absolute; top: 12px; right: 12px; background: rgba(3, 18, 48, .85); color: var(--bianco); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.album-card__open { position: absolute; inset: 0 0 auto; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: rgba(220, 0, 0, .86); color: var(--bianco); font-family: var(--display); font-size: 34px; opacity: 0; transition: opacity .3s ease; }
.album-card:hover .album-card__open { opacity: 1; }

.photos { columns: 4 260px; column-gap: 14px; }
.photo { break-inside: avoid; margin: 0 0 14px; display: block; border-radius: 4px; overflow: hidden; background: var(--blu-bordo); position: relative; }
.photo img { width: 100%; transition: transform .45s ease, opacity .3s; }
.photo:hover img { transform: scale(1.04); }
.photo figcaption { padding: 8px 10px; font-size: 14px; color: var(--testo-2); background: var(--blu-pannello); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(2, 10, 28, .96); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb__img { max-width: min(94vw, 1600px); max-height: 82vh; object-fit: contain; border-radius: 3px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; display: flex; justify-content: space-between; gap: 16px; color: var(--testo-2); font-size: 15px; }
.lb__btn { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); color: var(--bianco); width: 54px; height: 54px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb__btn:hover { background: var(--rosso); border-color: var(--rosso); }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__close { right: 16px; top: 16px; }

/* ---------- articoli ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--blu-pannello); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--testo); transition: transform .25s ease; }
.post-card:hover { transform: translateY(-6px); color: var(--testo); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blu-bordo); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-card__date { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rosso-testo); }
.post-card__title { font-family: var(--display); font-size: 30px; line-height: 1.02; color: var(--bianco); }
.post-card__ex { color: var(--testo-2); font-size: 16px; margin: 0; }
.article-gallery { margin-top: 40px; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.pager a, .pager span { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--blu-bordo-2); border-radius: 4px; text-decoration: none; font-weight: 700; color: var(--testo); }
.pager a:hover { border-color: var(--bianco); }
.pager span[aria-current] { background: var(--rosso); border-color: var(--rosso); color: var(--bianco); }

/* ---------- pratiche / moduli ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.steps li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--blu-bordo); }
.steps__n { font-family: var(--display); font-size: 64px; line-height: .9; color: var(--rosso-chiaro); }
.steps__t { font-family: var(--display); font-size: 30px; color: var(--bianco); }
.steps p { color: var(--testo-2); margin: 0; }
.form { background: var(--blu-pannello); border: 1px solid var(--blu-bordo); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; align-self: start; }
.form h2, .form h3 { font-size: 40px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #DCE3F2; }
.field input, .field select, .field textarea { font: inherit; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 16px; padding: 13px 14px; border-radius: 4px; border: 1px solid var(--blu-bordo-2); background: var(--blu-notte); color: var(--bianco); width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--giallo); outline: none; box-shadow: 0 0 0 3px rgba(253, 220, 1, .25); }
.chips { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #DCE3F2; margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--blu-bordo-2); border-radius: 4px; font-size: 15px; cursor: pointer; transition: background .2s; }
.chip input:checked + span { background: var(--rosso); border-color: var(--rosso); color: var(--bianco); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--giallo); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--testo-2); }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--rosso); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 4px; padding: 14px 18px; font-weight: 600; }
.alert--ok { background: rgba(26, 135, 26, .2); border: 1px solid var(--verde); color: #CFF5CF; }
.alert--err { background: rgba(220, 0, 0, .18); border: 1px solid var(--rosso-chiaro); color: #FFD6D6; }
.faq { display: grid; gap: 12px; margin-top: 30px; }
.faq details { background: var(--blu-pannello); border-radius: var(--radius); border: 1px solid var(--blu-bordo); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 18px; color: var(--bianco); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--rosso); color: var(--bianco); display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq__a { padding: 0 20px 18px; color: var(--testo-2); }
.services { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.services li { display: flex; gap: 16px; align-items: center; background: var(--blu-pannello); border-radius: 6px; padding: 14px 18px; font-weight: 600; color: var(--bianco); }
.services b { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--rosso); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 400; font-size: 24px; }

/* ---------- club ---------- */
.club { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; }
.club__claim { font-family: var(--display); font-size: clamp(48px, 6vw, 64px); line-height: .95; color: var(--bianco); }
.club__links { display: flex; flex-wrap: wrap; gap: 12px; }
.club__links a { border: 1px solid var(--bianco); color: var(--bianco); text-decoration: none; padding: 12px 20px; border-radius: 4px; font-weight: 600; }
.club__links a:hover { background: var(--bianco); color: var(--rosso-scuro); }
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.board li { background: var(--blu-pannello); border-radius: var(--radius); padding: 22px; border-left: 6px solid var(--rosso); }
.board li:nth-child(3n+1) { border-left-color: var(--verde); }
.board li:nth-child(3n+2) { border-left-color: var(--bianco); }
.board__role { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rosso-testo); }
.board__name { font-family: var(--display); font-size: 32px; color: var(--bianco); line-height: 1.05; margin-top: 4px; }

/* contatti */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.contact-card { background: var(--blu-pannello); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--rosso); }
.contact-card h2 { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rosso-testo); margin-bottom: 8px; }
.contact-card a, .contact-card p { color: var(--bianco); font-size: 18px; margin: 0; }
.contact-card .big { font-family: var(--display); font-size: 36px; text-decoration: none; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--blu-bordo-2); border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--testo); }
.socials a:hover { border-color: var(--bianco); color: var(--bianco); }
.socials svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--blu-bordo); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 100px; height: 100px; flex: none; }
.footer-h { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--rosso-testo); margin: 0 0 8px; font-family: var(--body); }
.footer-big { font-family: var(--display); font-size: 34px; color: var(--bianco); text-decoration: none; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { color: var(--testo-2); text-decoration: none; }
.footer-links a:hover { color: var(--bianco); text-decoration: underline; }
.footer-bottom { margin-top: 48px; }
.footer-bottom p { padding-top: 16px; color: var(--testo-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
.footer-bottom a { color: var(--testo-2); }

/* ---------- animazioni ---------- */
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes drive { 0% { transform: translateX(-30%); } 100% { transform: translateX(calc(100vw + 30%)); } }
@keyframes inLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes spinIn { from { opacity: 0; transform: rotate(-200deg) scale(.4); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

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

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .badge { justify-self: start; }
  .ev-row { padding: 22px 6px; }
  .next-card { padding: 22px; }
  .countdown b { font-size: 34px; }
  .next-card__logo { width: 70px; height: 70px; }
  .film__item { width: 230px; height: 165px; }
  .lb__prev, .lb__next { top: auto; bottom: 64px; transform: none; }
}

@media print {
  .site-header, .site-footer, .ticker, .road, .hero__marquee, .film, .lb { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .prose p { color: #000; }
}
