/* Homepage Exhaust Italia */
body.ei-public.ei-home {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  background-attachment: fixed;
  font-family: "Bebas Neue", sans-serif;
}

body.ei-public.ei-home::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 102, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 51, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 219, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: eiBgShift 20s ease-in-out infinite;
}

@keyframes eiBgShift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.ei-home .container,
.ei-home section {
  position: relative;
  z-index: 1;
}

.lordicon-white {
  width: 30px;
  height: 30px;
  margin-right: 5px;
}

.badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff6600, #ff3300);
  color: #fff;
  letter-spacing: 0.5px;
  animation: eiPulse 2s infinite;
}

@keyframes eiPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 102, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.update-banner {
  background: linear-gradient(135deg, #1a1a1a, #242424);
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.update-banner strong { color: var(--ei-gold); }

.update-banner .close-update {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
}

#bannerCarousel .carousel-item {
  height: 85vh;
  min-height: 600px;
  background-color: #000;
  position: relative;
  overflow: hidden;
}

#bannerCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 8s ease-out;
}

#bannerCarousel .carousel-item.active img {
  transform: scale(1);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.banner-overlay h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(255, 102, 0, 0.8), 0 0 60px rgba(255, 102, 0, 0.4);
  animation: eiTitleGlow 3s ease-in-out infinite;
}

@keyframes eiTitleGlow {
  0%, 100% { text-shadow: 0 0 30px rgba(255, 102, 0, 0.8), 0 0 60px rgba(255, 102, 0, 0.4); }
  50% { text-shadow: 0 0 40px rgba(255, 102, 0, 1), 0 0 80px rgba(255, 102, 0, 0.6); }
}

.banner-overlay p {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: 300;
}

.btn-banner,
.btn-news,
.btn-register {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6600 0%, #ff3300 50%, #ff6600 100%);
  background-size: 200% 100%;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
  position: relative;
  overflow: hidden;
  animation: eiGradientShift 3s ease infinite;
}

@keyframes eiGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-banner:hover,
.btn-news:hover,
.btn-register:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.6), 0 0 0 4px rgba(255, 102, 0, 0.3);
  color: #fff;
}

.section-record {
  padding: 6rem 1rem;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(34, 34, 34, 0.9) 100%);
  backdrop-filter: blur(10px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-record--alt {
  background: linear-gradient(135deg, rgba(12, 12, 18, 0.92) 0%, rgba(22, 18, 28, 0.92) 100%);
}

.section-record--alt::before {
  background: radial-gradient(circle, rgba(180, 140, 255, 0.08) 0%, transparent 70%);
}

.section-record::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 219, 0, 0.1) 0%, transparent 70%);
  animation: eiRotate 20s linear infinite;
}

@keyframes eiRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.section-record h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-family: "Orbitron", sans-serif;
  margin-bottom: 3rem;
  text-transform: uppercase;
  color: var(--ei-gold);
  text-shadow: 0 0 20px rgba(255, 219, 0, 0.6), 0 0 40px rgba(255, 102, 0, 0.3);
  position: relative;
  z-index: 1;
  letter-spacing: 4px;
}

.record-category {
  margin: 0 auto;
  max-width: 700px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.record-category h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--ei-gold);
  text-shadow: 0 0 15px rgba(255, 219, 0, 0.5);
  letter-spacing: 2px;
}

.record-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  margin-bottom: 1.2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.record-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 102, 0, 0.4);
  border-color: rgba(255, 102, 0, 0.4);
}

.record-nickname {
  font-size: 1.1rem;
  color: #000;
  background: #ffd700;
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 5px;
}

.record-db {
  font-size: 1rem;
  color: #fff;
  margin-left: 5px;
}

.record-gara {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  margin-top: 0.2rem;
}

.section-partner {
  padding: 4rem 0;
  background: #111;
}

.section-partner h2 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-family: "Orbitron", sans-serif;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--ei-gold);
  text-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}

.news-card {
  background: linear-gradient(135deg, rgba(27, 27, 27, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  border: 2px solid rgba(255, 102, 0, 0.4);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(255, 102, 0, 0.2);
  position: relative;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  #bannerCarousel .carousel-item {
    height: 65vh;
    min-height: 420px;
  }

  .section-record {
    padding: 3.5rem 1rem;
  }
}

.section-blog {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(12, 12, 12, 0.98) 0%, rgba(22, 14, 10, 0.98) 100%);
}

.blog-section-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.blog-section-header h2 {
  font-family: "Orbitron", sans-serif;
  color: var(--ei-gold);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.blog-section-header p {
  color: var(--ei-muted);
  margin-bottom: 1.25rem;
}

.blog-carousel .carousel-item {
  padding: 0.5rem;
}

.blog-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius);
  background: linear-gradient(145deg, rgba(27, 27, 27, 0.97), rgba(11, 11, 11, 0.97));
  box-shadow: var(--ei-shadow);
  min-height: 320px;
}

.blog-card__category {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 101, 0, 0.18);
  color: var(--ei-gold);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card__title {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
}

.blog-card__meta {
  color: var(--ei-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.blog-card__excerpt {
  color: #ddd;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  body.ei-public.ei-home::before,
  .banner-overlay h1,
  .btn-banner,
  .btn-news,
  .btn-register,
  .section-record::before,
  .ei-card-glow::before {
    animation: none !important;
  }
}

/* ---- Layout sezioni homepage ---- */
.ei-section-divider {
  height: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255, 101, 0, 0.45), rgba(255, 211, 78, 0.35), transparent);
}

.ei-home-section {
  padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.ei-section-header {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.ei-section-header h2 {
  font-family: "Orbitron", sans-serif;
  color: var(--ei-gold);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.ei-section-header p {
  color: var(--ei-muted);
  font-family: "Roboto", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

.ei-section-header .ei-section-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ei-border);
  background: rgba(255, 101, 0, 0.12);
  color: var(--ei-gold);
  font-family: "Roboto", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Intro + quick nav */
.ei-home-intro {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.ei-home-intro__title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--ei-gold);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.ei-home-intro__lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #ccc;
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
}

.ei-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.ei-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 130px;
  padding: 1.25rem 1rem;
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius);
  background: linear-gradient(160deg, rgba(30, 30, 30, 0.95), rgba(12, 12, 12, 0.98));
  box-shadow: var(--ei-shadow);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ei-quick-card i {
  font-size: 1.6rem;
  color: var(--ei-orange);
}

.ei-quick-card span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.ei-quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--ei-orange);
  box-shadow: 0 16px 40px rgba(255, 101, 0, 0.22);
  color: var(--ei-gold);
  text-decoration: none;
}

/* Card generiche */
.ei-card {
  position: relative;
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius);
  background: linear-gradient(145deg, rgba(28, 28, 28, 0.97), rgba(12, 12, 12, 0.98));
  box-shadow: var(--ei-shadow);
  overflow: hidden;
}

.ei-card-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.12) 0%, transparent 70%);
  animation: eiRotate 18s linear infinite;
  pointer-events: none;
}

.ei-card__body {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.ei-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ei-orange), var(--ei-orange-dark));
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ei-card__meta {
  color: var(--ei-muted);
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
}

.ei-card__title {
  font-family: "Orbitron", sans-serif;
  color: var(--ei-gold);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin: 0.75rem 0;
}

.ei-card__text {
  color: #ccc;
  font-family: "Roboto", sans-serif;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.ei-card:hover {
  border-color: rgba(255, 101, 0, 0.55);
}

/* Eventi */
.ei-home-events {
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.6), rgba(18, 18, 18, 0.9));
}

.ei-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ei-event-card {
  border-left: 4px solid var(--ei-orange);
}

.ei-event-card h3 {
  font-family: "Orbitron", sans-serif;
  color: var(--ei-gold);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.ei-event-card p {
  color: #ccc;
  font-family: "Roboto", sans-serif;
  margin-bottom: 0.5rem;
}

.ei-event-card p i {
  color: var(--ei-orange);
  width: 1.25rem;
}

.ei-event-card .btn {
  margin-top: 0.75rem;
  border-radius: 999px;
  font-weight: 700;
}

.ei-empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--ei-muted);
  font-family: "Roboto", sans-serif;
  border: 1px dashed var(--ei-border);
  border-radius: var(--ei-radius);
}

/* News */
.ei-home-news {
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.95), rgba(10, 10, 10, 0.98));
}

.ei-news-card {
  max-width: 820px;
  margin: 0 auto;
}

/* Costruttori */
.ei-home-costruttori {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.98), rgba(20, 14, 10, 0.95));
}

.ei-costruttori-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: stretch;
}

.ei-costruttori-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ei-costruttori-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  color: #ccc;
  font-family: "Roboto", sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ei-costruttori-list li:last-child {
  border-bottom: 0;
}

.ei-costruttori-list i {
  color: var(--ei-orange);
  width: 1.25rem;
  text-align: center;
}

/* Shop */
.ei-home-shop {
  background: #0c0c0c;
}

.ei-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.ei-shop-image {
  overflow: hidden;
  border-radius: var(--ei-radius);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-shadow);
}

.ei-shop-image img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.ei-shop-image:hover img {
  transform: scale(1.06);
}

.ei-shop-price {
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  color: var(--ei-gold);
  margin-bottom: 0.75rem;
}

.ei-shop-desc {
  color: var(--ei-muted);
  font-family: "Roboto", sans-serif;
  margin-bottom: 1.25rem;
}

#paypal-button-container {
  max-width: 300px;
}

/* Partner */
.partner-logo {
  max-height: 80px;
  width: auto;
  margin: 1rem 1.5rem;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
}

/* CTA */
.ei-home-cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.98), rgba(8, 8, 8, 1));
  border-top: 1px solid var(--ei-border);
}

.ei-home-cta h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--ei-gold), var(--ei-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ei-home-cta p {
  color: #ccc;
  font-family: "Roboto", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.section-record p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: -2rem auto 2rem;
  color: var(--ei-muted);
  font-family: "Roboto", sans-serif;
}

@media (max-width: 991.98px) {
  .ei-costruttori-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ei-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ei-quick-card {
    min-height: 110px;
    padding: 1rem 0.75rem;
  }
}
