/* ==========================================================================
   Pagina evento Alpine ICE Driving — stile dedicato
   Palette ispirata ai colori del marchio Alpine: nero, blu elettrico, rosso, argento
   ========================================================================== */
.theme-alpine{
  --a-ink: #0a0a0a;
  --a-blue: #0a28ff;
  --a-red: #ef0010;
  --a-silver: #cfd1d3;
  --a-mist: #f1f2f3;
  --a-steel: #6a6c72;
  --a-body: #33353b;
  --a-font: "Montserrat", "Manrope", system-ui, sans-serif;

  background: var(--a-ink);
  color-scheme: light;
}
.theme-alpine h1,
.theme-alpine h2,
.theme-alpine h3{
  font-family: var(--a-font);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.a-hero{
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  color: #fff;
  background: var(--a-ink);
  overflow: hidden;
}
.a-hero__bg{ position: absolute; inset: 0; z-index: -2; }
.a-hero__bg img{ width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.a-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,40,255,.55) 0%, rgba(10,40,255,0) 60%),
    linear-gradient(180deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.30) 42%, rgba(10,10,10,.94) 100%);
}
.a-hero::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 5vw;
  background: var(--a-mist);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.a-hero__content{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100svh;
  padding-block: 8rem calc(5vw + 2.5rem);
}

.a-eyebrow{
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--a-font);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.4rem;
}
.a-tricolor{ display: inline-flex; gap: 3px; }
.a-tricolor i{
  display: block;
  width: 26px;
  height: 6px;
  transform: skewX(-24deg);
}
.a-tricolor i:nth-child(1){ background: var(--a-blue); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.a-tricolor i:nth-child(2){ background: #fff; }
.a-tricolor i:nth-child(3){ background: var(--a-red); }

.a-hero__title{
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 900;
  line-height: .92;
  margin: 0 0 1.4rem;
  color: #fff;
}
.a-hero__title span{
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}
.a-hero__lead{
  max-width: 620px;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
}

.a-stats{
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 860px;
}
.a-stats li{
  border-left: 4px solid var(--a-red);
  padding-left: 1.1rem;
}
.a-stats__num{
  display: block;
  font-family: var(--a-font);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
  color: #fff;
}
.a-stats__label{
  display: block;
  margin-top: .4rem;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.5;
}
.a-stats__label small{
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: rgba(255,255,255,.72);
}

/* ---------- Sezioni ---------- */
.a-section{ position: relative; overflow: hidden; }
.a-light{ background: var(--a-mist); color: var(--a-ink); }
.a-white{ background: #fff; color: var(--a-ink); }

.a-split{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}
.a-split--reverse{ align-items: end; }

.a-text{
  align-self: center;
  max-width: 100%;
  padding-block: 6rem;
}
.a-text--right{
  padding-left: 4vw;
  padding-right: max(1.5rem, calc((100vw - 1180px) / 2));
}
.a-text--left{
  padding-right: 4vw;
  padding-left: max(1.5rem, calc((100vw - 1180px) / 2));
}
.a-text h2{
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--a-ink);
  margin-bottom: .8em;
}
.a-text p{
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--a-body);
}
.a-text strong{ color: var(--a-ink); }

.a-kicker{
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--a-font);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--a-blue);
  margin: 0 0 1.1rem;
}
.a-kicker::before{
  content: "";
  width: 30px;
  height: 4px;
  background: var(--a-red);
  transform: skewX(-24deg);
}
.a-kicker--light{ color: #fff; justify-content: center; }

/* ---------- Foto auto su fondo con trama e fascio di luce ---------- */
.a-tex-lines{
  background-image: repeating-linear-gradient(104deg, rgba(10,10,10,.055) 0 2px, transparent 2px 15px);
}
.a-tex-dots{
  background-image: radial-gradient(circle, rgba(10,40,255,.16) 1.4px, transparent 1.8px);
  background-size: 20px 20px;
}
.a-tex-weave{
  background-image:
    repeating-linear-gradient(45deg, rgba(10,10,10,.06) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(10,10,10,.06) 0 1px, transparent 1px 9px);
}

.a-figure{
  position: relative;
  margin: 0;
  padding-top: 4.5rem;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}
.a-figure::before{
  content: "";
  position: absolute;
  inset: 4% -6% -6% -6%;
  background: radial-gradient(closest-side, #fff 0%, rgba(255,255,255,.92) 40%, rgba(255,255,255,0) 100%);
  transform: skewX(-14deg);
}
.a-figure--left{ justify-content: flex-start; }
.a-figure--right{ justify-content: flex-end; }

.a-figure img{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.45));
}
.a-figure--right img{ max-width: 760px; }

.a-ghost{
  position: absolute;
  z-index: 1;
  top: 30%;
  font-family: var(--a-font);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 13rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(10,40,255,.2);
  pointer-events: none;
  user-select: none;
}
.a-figure--left .a-ghost{ left: 4%; }
.a-figure--right .a-ghost{ right: 4%; }

/* ---------- Fascia centrale con foto ---------- */
.a-photoband{
  background: var(--a-ink);
  color: #fff;
  padding: 12vw 0 11vw;
  isolation: isolate;
}
.a-photoband__bg{ position: absolute; inset: 0; z-index: -2; }
.a-photoband__bg img{ width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.a-photoband__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10,40,255,.55), rgba(10,10,10,.2) 70%),
    rgba(10,10,10,.68);
}
.a-photoband::before,
.a-photoband::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 5vw;
  z-index: 1;
}
.a-photoband::before{
  top: -1px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.a-photoband::after{
  bottom: -1px;
  background: var(--a-mist);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.a-center{
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}
.a-center h2{
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin-bottom: .9em;
}
.a-center p{
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
}

/* ---------- Elenco mansioni ---------- */
.a-checks{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.4rem;
  margin-top: 1.6rem;
}
.a-checks li{
  position: relative;
  padding-left: 1.7rem;
  font-weight: 700;
  color: var(--a-ink);
  line-height: 1.4;
}
.a-checks li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 14px;
  height: 14px;
  background: var(--a-blue);
  transform: skewX(-18deg);
}

/* ---------- Chiusura ---------- */
.a-cta{
  position: relative;
  background: var(--a-blue);
  color: #fff;
  text-align: center;
  padding: calc(5vw + 5rem) 0 5rem;
  overflow: hidden;
}
.a-cta::before{
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 5vw;
  background: var(--a-mist);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.a-cta h2{
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
}
.a-cta p{ color: rgba(255,255,255,.9); font-size: 1.15rem; }
.a-cta__actions{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
}
.a-btn{
  display: inline-block;
  font-family: var(--a-font);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.2rem;
  transform: skewX(-12deg);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), color var(--dur-fast);
}
.a-btn:hover, .a-btn:focus-visible{ transform: skewX(-12deg) translateY(-3px); }
.a-btn--white{ background: #fff; color: var(--a-ink); }
.a-btn--white:hover{ background: var(--a-ink); color: #fff; }
.a-btn--outline{ border: 2px solid rgba(255,255,255,.8); color: #fff; }
.a-btn--outline:hover{ background: rgba(255,255,255,.14); }
.a-note{
  max-width: 640px;
  margin: 0 auto;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .a-hero{ min-height: 92svh; }
  .a-hero__content{ padding-block: 7rem calc(5vw + 2rem); min-height: 92svh; }

  .a-split{ grid-template-columns: 1fr; }
  .a-split--reverse .a-figure{ order: -1; }
  .a-text{ padding: 2.5rem 1.5rem 4rem; }
  .a-figure{ padding-top: 3rem; }
  .a-figure img{ max-width: 520px; margin-inline: auto; }
  .a-figure--right img{ max-width: 560px; }
  .a-ghost{ font-size: 28vw; left: 4% !important; right: auto !important; }
}

@media (max-width: 560px){
  .a-stats{ grid-template-columns: 1fr; gap: 1.2rem; }
  .a-stats li{ display: flex; align-items: center; gap: 1rem; }
  .a-stats__num{ min-width: 2.2ch; }
  .a-stats__label{ margin-top: 0; }
  .a-checks{ grid-template-columns: 1fr; }
  .a-hero__title span{ -webkit-text-stroke-width: 1.5px; }
}

@media (prefers-reduced-motion: reduce){
  .a-btn, .a-btn:hover{ transition: none; transform: skewX(-12deg); }
}
