:root {
  --bg: #0a0b0f;
  --fg: #e8e9ee;
  --muted: #a7abb4;
  --red: #ff2a2a;
  --blue: #00c2ff;
}

/* RESET BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Ubuntu, Arial;
  scroll-behavior: smooth;
}

/* === HEADER TRASPARENTE E DINAMICO === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 9, 14, 0.78); /* più trasparente */
  border-bottom: 1px solid rgba(255, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  transition: transform 0.8s ease, opacity 0.6s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Mantiene le dimensioni del menu */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 50px;
}

/* NAV MENU */
.nav {
  display: flex;
  gap: 34px;
  align-items: center;
  justify-content: center;
}

.nav a {
  color: #e6e8ee;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 15px; /* leggermente più grande */
  opacity: 0.95;
  transition: color 0.3s, text-shadow 0.3s, transform 0.2s;
}
.nav a:hover {
  color: var(--red);
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
  transform: scale(1.08);
}

.nav a:hover,
.nav a.active {
  color: var(--red);
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}
 

/* === ICONE CARRELLO & LOGIN (EMOJI OTTIMIZZATE) === */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px; /* forza una dimensione molto maggiore */
  font-family: "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
  color: #e6e8ee;
  text-decoration: none;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.3s ease;
  position: relative;
  top: 2px;
}

.login-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  margin-left: 20px;
}

.login-area i {
  font-size: 22px; /* più piccola */
  margin-bottom: 3px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.login-area:hover i {
  color: #ff2a2a;
  transform: scale(1.1);
}

.login-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ccc;
}


/* Hover fluido */
.icon:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* Riduce la distanza tra le due icone */
.icon + .icon {
  margin-left: 10px; /* prima era 20px */
}

/* Login icon – più sobria */
.icon.user {
  filter: grayscale(100%) brightness(1.3);
}

/* Carrello – più luminoso */
.icon.cart {
  filter: brightness(1.4);
}

/* Evita che la barra aumenti di altezza */
.header-inner {
  overflow: visible;
}



/* === LOGO ANCORA PIÙ GRANDE SENZA AUMENTARE LA BARRA === */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px; /* altezza effettiva della barra */
  overflow: visible; /* lascia uscire il logo sopra/sotto */
  position: relative; 
  z-index: 2;
}

.logo img {
  height: 70px; /* dimensione interna di riferimento */
  transform: scale(3.1); /* 🚀 ancora più grande visivamente */
  transform-origin: center center;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 0 35px rgba(255, 0, 0, 0.45));
}

.logo img:hover {
  transform: scale(3.3);
}


.logo img:hover {
  transform: scale(2.8); /* leggero effetto al passaggio del mouse */
}



/* Nascondi / Mostra header */
.header.hidden {
  transform: translateY(-120%);
  opacity: 0;
}

.header.visible {
  transform: translateY(0);
  opacity: 1;
}


/* ombra sfumata ai bordi laterali e in basso — SENZA LINEA CENTRALE */
.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.8) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(10,11,15,0.85) 100%);
  mix-blend-mode: multiply;
  z-index: 2;
  pointer-events: none;
}

/* animazione della luce */
@keyframes lightSweep {
  0% { transform: translateX(-25%) skewX(-10deg); opacity: 0.3; }
  100% { transform: translateX(25%) skewX(10deg); opacity: 0.6; }
}

/* responsive mobile */
@media (max-width: 768px) {
  .hero-dashboard { height: 240px; }
}

/* CTA */
.cta {
  margin-top: 24px;
  display: inline-block;
  background: linear-gradient(90deg, var(--red), #ff7a00);
  color: #fff;
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 30px rgba(255, 0, 0, 0.25);
  transition: 0.2s;
}
.cta:hover {
  box-shadow: 0 18px 50px rgba(255, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* CAROUSEL */
.carousel {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
}
.row {
  display: flex;
  gap: 16px;
  will-change: transform;
  transition: transform 0.4s ease-out;
}

.slide {
  min-width: 360px;
  max-width: 360px;
  min-height: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 25px 80px -25px rgba(0, 0, 0, 0.7);
}
.slide .t { font-weight: 900; color: #fff; }
.slide .m { color: #a5b4fc; font-size: 12px; margin-top: 4px; }
.slide .p { color: #fb7185; font-weight: 800; margin-top: 6px; }


/* === GRIGLIA SERVIZI - 5 COLONNE x 6 RIGHE === */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  justify-items: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.servizio-card {
  background: radial-gradient(circle at top, rgba(45,45,45,0.95), #0b0b0d 85%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: 100%;
  max-width: 200px;
  height: 210px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 15px rgba(255,0,0,0.08);
  cursor: pointer;
}

.servizio-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 25px rgba(255,0,0,0.35), inset 0 0 25px rgba(255,0,0,0.2);
  border-color: rgba(255,0,0,0.4);
}

/* Immagini icone */
.servizio-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.25));
}

/* Titoli - ROSSI E GRANDI */
.servizio-card h3 {
  font-size: 16px;               /* più grande */
  color: #ff2a2a;                /* rosso racing */
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* Nascondi completamente i prezzi */
.servizio-card .price {
  display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .servizi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .servizi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .servizio-card {
    max-width: 180px;
    height: 200px;
  }
  .servizio-card img {
    width: 80px;
    height: 80px;
  }
  .servizio-card h3 {
    font-size: 14px;
  }
}

/* === BLOCCO "COME FUNZIONA" RACING STYLE === */
/* SECTIONS */
.section {
  padding: 64px 48px;
}
.section h2 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: #b7bac4;
  margin-bottom: 22px;
  text-align: center;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.8);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 90px -40px rgba(255, 0, 0, 0.22);
}
.card h3 {
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.card p {
  color: #cfd3dc;
}
.alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.alt .img {
  height: 300px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(0, 180, 255, 0.15));
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.06);
}


/* === BLOCCO "I NOSTRI SERVIZI" === */
.servizi {
  text-align: center;
  padding: 80px 0 100px 0;
  background: #0a0b0f;
}

.servizi h2 {
  color: #ff2a2a; /* 🔥 titolo rosso */
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.servizi h2 span {
  color: #ff2a2a;
}

.intro-servizi {
  color: #aaa;
  font-size: 14px;
  max-width: 720px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}


/* === TESTIMONIANZE CAROUSEL === */
.testimonianze {
  text-align: center;
  padding: 60px 0;
  background: #0a0b0f;
  position: relative;
}

.testimonianze h2 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: #b7bac4;
  margin-bottom: 30px;
}

/* Contenitore */
.testi-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.testi-row {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease-in-out;
}

/* === TESTIMONIANZE === */
.testimonianze {
  text-align: center;
  padding: 60px 0;
  background: #0a0b0f;
}

.testimonianze h2 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: #b7bac4;
  margin-bottom: 30px;
}

/* Contenitore scorrevole */
.testi-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 10px 0;
}

.testi-row {
  display: flex;
  gap: 20px;
  padding: 0 40px;
}

/* Box testimonianze */
.testi-box {
  min-width: 260px;
  min-height: 200px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.35));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 70px -25px rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: grab;
}

.testi-box:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 90px -30px rgba(255,48,48,0.25);
}

/* Testo interno */
.quote {
  font-size: 14px;
  color: #e6e9ee;
  line-height: 1.5;
  font-style: italic;
}
.author {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #ff2a2a;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Effetto scorrimento orizzontale con mouse */
.testi-carousel::-webkit-scrollbar {
  height: 4px;
}
.testi-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 48, 48, 0.4);
  border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .testi-box { min-width: 220px; min-height: 180px; }
}

/* Box testimonianze */
.testi-box {
  min-width: 250px;
  min-height: 220px;
  flex: 0 0 250px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.35));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 70px -25px rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi-box:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 90px -30px rgba(255,48,48,0.25);
}

.quote {
  font-size: 14px;
  color: #e6e9ee;
  line-height: 1.5;
  font-style: italic;
}
.author {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #ff2a2a;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Frecce di navigazione */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
}
.arrow:hover {
  background: rgba(255, 0, 0, 0.4);
  border-color: rgba(255, 0, 0, 0.6);
}
.testi-carousel:hover .arrow {
  opacity: 1;
}
.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* Mobile */
@media (max-width: 768px) {
  .testi-box {
    min-width: 200px;
    flex: 0 0 200px;
  }
  .arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* === Carosello automatico "Ultimi file consegnati" === */
.carousel {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
}

.carousel .row {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollRow 20s linear infinite; /* velocità regolabile */
}

@keyframes scrollRow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* scorre a sinistra metà contenuto */
  }
}

/* Duplica il contenuto per scorrimento continuo */
.carousel .row::after {
  content: attr(data-duplicate);
  display: flex;
}

.login-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  margin-left: 15px;
  margin-right: 10px;
}

.login-area i {
  font-size: 22px;
  margin-bottom: 3px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.login-area:hover i {
  color: #ff2a2a;
  transform: scale(1.1);
}

.login-text {
  font-size: 11px;
  color: #ccc;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}


/* === ICONE SVG LOGIN & CARRELLO === */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e6e8ee;
  text-decoration: none;
  opacity: 0.9;
  transition: transform 0.25s ease, color 0.3s ease;
  margin-left: 12px; /* meno spazio tra le due icone */
}

.icon svg {
  width: 40px;  /* dimensione doppia rispetto a prima */
  height: 40px;
  transition: transform 0.25s ease, stroke 0.3s ease;
}

.icon:hover svg {
  transform: scale(1.15);
  stroke: var(--red);
}

.icon.user svg {
  stroke: #d9d9d9; /* neutro, più serio */
}

.icon.cart svg {
  stroke: #ffffff; /* più chiaro */
}




/* FOOTER */
footer {
  border-top: 1px solid rgba(255, 0, 0, 0.35);
  background: #0a0b0f;
  color: #a3a6ad;
  text-align: center;
  padding: 26px 0;
  font-size: 13px;
}

/* === IFRAME COMPATTO RACING (130px con effetti) === */
.iframe-top {
  margin: 40px auto 60px auto;
  padding: 0;
  width: 92%;
  max-width: 1200px;
  animation: fadein 1.4s ease-in-out;
}

@keyframes fadein {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.iframe-wrapper {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 0, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(0, 194, 255, 0.08));
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.25),
              0 10px 40px rgba(0, 0, 0, 0.65),
              inset 0 0 30px rgba(0, 194, 255, 0.15);
  overflow: hidden;
  min-height: 130px;
  transition: all 0.4s ease;
}

/* Altezza adattiva */
.iframe-wrapper iframe {
  width: 100%;
  min-height: 130px;
  height: auto;
  display: block;
}


.iframe-wrapper:hover {
  transform: scale(1.01);
  box-shadow:
    0 0 35px rgba(255, 0, 0, 0.3),
    0 14px 50px rgba(0, 0, 0, 0.8),
    inset 0 0 40px rgba(0, 194, 255, 0.2);
}

.iframe-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 40, 20, 0.12), transparent 60%);
  opacity: 0.5;
  animation: pulseLight 4s ease-in-out infinite alternate;
}

@keyframes pulseLight {
  from { opacity: 0.3; filter: blur(0px); }
  to { opacity: 0.7; filter: blur(2px); }
}

.iframe-wrapper iframe {
  width: 100%;
  height: 130px;
  display: block;
  border-radius: 16px;
  filter: brightness(1) contrast(1.05) saturate(1.1);
  transition: filter 0.3s ease;
}

.iframe-wrapper iframe:hover {
  filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

/* --- Versione mobile --- */
@media (max-width: 768px) {
  .iframe-top {
    margin: 30px auto 40px auto;
    width: 98%;
  }
  .iframe-wrapper {
    min-height: 120px;
    max-height: 120px;
  }
  .iframe-wrapper iframe {
    height: 120px;
  }
}

/* === HERO DASHBOARD - ALTEZZA CORRETTA === */
.hero-dashboard {
  position: relative;
  width: 100%;
  height: 420px; /* aumentata rispetto ai 320 precedenti */
  overflow: hidden;
  background: #0a0b0f;
  border: none;
}

}

/* Contenitore */
.dashboard-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Immagine cruscotto */
.dashboard-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.15) contrast(1.05) saturate(1.1);
  transform: scale(1.02);
}

/* === RIFLESSO LUMINOSO IN MOVIMENTO SULLA HERO === */
.hero-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0.2;
  animation: lightSweep 12s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(2px);
}

@keyframes lightSweep {
  0% {
    left: -50%;
    opacity: 0.05;
  }
  40% {
    left: 120%;
    opacity: 0.25;
  }
  100% {
    left: 120%;
    opacity: 0.05;
  }
}


/* --- SFUMATURA NATURALE CHE UNISCE HERO E BLOCCO SUCCESSIVO --- */
.hero-dashboard::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(10, 11, 15, 0.85) 70%,
    #0a0b0f 100%
  );
  z-index: 2;
  pointer-events: none;
}


/* --- TESTO A SINISTRA --- */
.hero-text-left {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 3;
  text-align: left;
  max-width: 600px;
}

/* Testo principale */
.hero-text-left h1 {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(-120px);
  animation: slideInLeft 2.3s ease-out forwards;
}
/* --- Testo secondario in ingresso da destra --- */
.hero-subtext {
  font-family: 'Roboto', sans-serif;
  color: #ccc;
  font-size: 18px;
  letter-spacing: 0.15em;
  font-weight: 400;
  margin-top: 10px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(80px);
  animation: slideInRight 2s ease-out 0.8s forwards;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(80px);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateX(-5px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(80px);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateX(-5px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Colori */
.hero-text-left .white-text {
  color: #ffffff;
  display: block;
}

.hero-text-left .red-text {
  color: #ff3030;
  display: block;
}

/* Animazione di ingresso */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateX(15px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-dashboard { height: 240px; }
  .hero-text-left {
    left: 5%;
    max-width: 90%;
  }
  .hero-text-left h1 {
    font-size: 32px;
    line-height: 1.2;
  }
}

/* Animazione ingresso dolce */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateX(15px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-dashboard { height: 240px; }
  .hero-text-left {
    left: 5%;
    max-width: 90%;
  }
  .hero-text-left h1 {
    font-size: 30px;
    line-height: 1.2;
  }
}

}

/* Effetto visivo e animazioni */
@keyframes fadeInScroll {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes bounceScroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(5px); opacity: 0.7; }
}

/* Visibile solo al passaggio del mouse sulla sezione */
.section:hover .scroll-btn {
  opacity: 1;
}


/* === Sottotitolo sotto SERVICE TUNING FILES === */
.hero-text-left::after {
  content: "AFFIDATI AI PROFESSIONISTI";
  display: block;
  margin-top: 10px;
  font-family: 'Roboto', sans-serif;
  color: #cccccc;
  font-size: 18px;
  letter-spacing: 0.15em;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(80px);
  animation: slideInRight 2s ease-out 1.2s forwards;
}

/* Animazione di ingresso da destra */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(80px);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateX(-5px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



/* === TASTO SCROLL-UP UNIVERSALE (IN BASSO A DESTRA) === */
.scroll-up {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
}

/* Appare solo dopo aver scrollato */
body.scrolled .scroll-up {
  opacity: 0.85;
  pointer-events: all;
}

.scroll-up:hover {
  background: rgba(255, 0, 0, 0.35);
  border-color: rgba(255, 0, 0, 0.6);
  transform: scale(1.1);
  opacity: 1;
}

.scroll-icon {
  font-size: 22px;
  color: #fff;
  animation: bounceUp 1.8s infinite ease-in-out;
}

/* Animazione leggera freccia */
@keyframes bounceUp {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-5px); opacity: 0.8; }
}

/* Mobile */
@media (max-width: 768px) {
  .scroll-up {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  .scroll-icon { font-size: 18px; }
}

/* === EFFETTI EXTRA "COME FUNZIONA" (non invasivi) === */

/* Glow rosso e sollevamento al passaggio */
.three .card {
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at top, rgba(45,45,45,0.95), #0b0b0d 85%);
}

.three .card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.35), inset 0 0 20px rgba(255, 0, 0, 0.15);
}

/* Luce mobile sottile */
.three .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(255,0,0,0.2) 50%, rgba(255,255,255,0.08) 100%);
  opacity: 0;
  transform: skewX(-20deg);
  transition: all 0.8s ease;
}

.three .card:hover::after {
  left: 120%;
  opacity: 1;
}

/* Animazione fade-in quando entra in visuale */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Applica l’effetto quando la sezione compare */
.section.three-visible .card {
  animation: fadeInUp 1s ease forwards;
}

/* Attivazione tramite scroll (solo per chi ha JS attivo) */
@media (prefers-reduced-motion: no-preference) {
  .three .card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .three-visible .card {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Allineamento icone su un'unica riga === */
.nav.right {
  display: flex;
  align-items: center;
  gap: 25px; /* spazio tra voci e icone */
  flex-wrap: nowrap;
}

.icons-area {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 10px;
}

.icons-area a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icons-area a svg {
  width: 26px;
  height: 26px;
  color: #fff;
  stroke: #fff;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.icons-area a:hover svg {
  stroke: #ff2a2a;
  transform: scale(1.1);
}

.icon-login {
  flex-direction: column;
  margin-top: 0;
}

.icon-login .login-text {
  font-size: 11px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
}

/* --- Fissa icone carrello e login sulla stessa riga del menu --- */
header .nav.right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: nowrap !important;
}

header .nav.right a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

/* Contenitore icone */
header .icons-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
}

/* Icone SVG */
header .icons-area a svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

header .icons-area a:hover svg {
  stroke: #ff2a2a;
  transform: scale(1.1);
}

/* Testo sotto login */
header .icon-login {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header .icon-login .login-text {
  font-size: 11px;
  color: #ccc;
  text-transform: uppercase;
  margin-top: 3px;
  letter-spacing: 0.3px;
}
/* 🔧 Immagine configurazione prodotto */
.config-product-image {
  width: 100%;
  max-width: 400px;
  height: 180px;                 /* Altezza fissa */
  background: #0b0b0c;
  border: 2px solid #d40000;     /* Cornice racing */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(212, 0, 0, 0.35);
}

.config-product-image img {
  width: 100%;                   /* 🔹 L'immagine si adatta alla larghezza */
  height: 100%;                  /* 🔹 e anche all'altezza */
  object-fit: contain;           /* 🔹 Mostra tutta l’immagine, senza tagliare */
  object-position: center;       /* 🔹 Centrata perfettamente */
  display: block;
  background: #000;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 4px;
}

/* 🔥 effetto racing hover */
.config-product-image:hover img {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}
