/* HERO */
#hero {
  position: relative;
  padding: 60px 5%;
  display: flex;
  background: #fff;
  overflow: hidden;
  height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100vw;
  height: 100vh;
  -webkit-mask-image: linear-gradient(
    110deg,
    transparent 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.5) 65% black 85%
  );
  mask-image: linear-gradient(
    110deg,
    transparent 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.5) 65%,
    black 85%
  );

  opacity: 0;
  animation: heroBgReveal 1.4s ease forwards;
  animation-delay: 0.3s;
  z-index: 0;
}

@keyframes heroBgReveal {
  to {
    opacity: 1;
  }
}

/* Tutto il contenuto sopra lo sfondo */
.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0 !important;
}

.hero-content {
  height: 100%;
  max-width: 600px;
  flex: 1;
}

/* ANIMAZIONE REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealFade 0.8s ease forwards;
}

.hero-proof {
  list-style: none;
  padding: 0;
}

.hero-proof li::before {
  content: "✔ ";
  color: green;
  margin-right: 8px;
}

@keyframes revealFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.25s;
}
.delay-3 {
  animation-delay: 0.4s;
}
.delay-4 {
  animation-delay: 0.55s;
}
.delay-5 {
  animation-delay: 0.7s;
}
.delay-6 {
  animation-delay: 0.85s;
}

/* EYEBROW */
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.2rem;
}

/* TITLE */
#hero h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111;
  margin-bottom: 1.5rem;
}

#hero h1 span {
  color: #e9530e;
  position: relative;
}

#hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 8px;
  background: rgba(233, 83, 14, 0.2);
  z-index: -1;
}

/* SUBTITLE */
.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 2rem;
}

/* PROOF */
.hero-proof {
  margin-bottom: 2.5rem;
}

.hero-proof div {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
  transition: transform 0.2s ease;
}

.hero-proof div:hover {
  transform: translateX(4px);
}

/* CTA */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-content {
  align-items: center;
  justify-content: center;
}

.hero-cta {
  flex-direction: column;
}

.hero-cta a {
  width: 75%;
  align-self: center;
}

.hero-numbers {
  justify-self: center;
}

.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
  min-width: 180px;
}

.btn-primary {
  background: #fd6c28;
  color: #fff;
  text-decoration: none;
  border: 0;
}

.btn-primary::before {
  background: #e9530e;
}

.btn-ghost {
  border: 1px solid #ddd;
  color: #333;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  border-color: #e9530e;
  color: #e9530e;
  transform: translateY(-2px);
}

/* NUMBERS */
.hero-numbers {
  display: flex;
  gap: 2rem;
  margin-bottom: 20px;
}

.hero-numbers .number {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.hero-numbers .number:hover {
  transform: translateY(-3px);
}

.hero-numbers strong {
  font-size: 1.4rem;
  color: #111;
}

.hero-numbers span {
  font-size: 0.8rem;
  color: #777;
}

.hero-cta a {
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Su mobile, sfondo leggermente visibile centrato */
  .hero-bg {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.08) 40%,
      rgba(0, 0, 0, 0.12) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.08) 40%,
      rgba(0, 0, 0, 0.12) 100%
    );
    background-position: center top;
  }

  #hero {
    padding: 4rem 5%;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-numbers {
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-numbers {
    gap: 1.2rem;
  }

  .hero-eyebrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-bg {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─────────────────────────────────────────
   SERVICES SECTION
───────────────────────────────────────── */
#services {
  padding: 60px 5%;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* .section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--black);
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-header h2 span {
  color: var(--orange-primary);
  position: relative;
} */

.section-header h2 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--yellow-primary);
  opacity: 0.4;
  z-index: -1;
}

.section-header p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 600;
}

/* Service Cards Grid (fallback) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--orange-primary),
    var(--yellow-primary),
    var(--red-accent)
  );
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--orange-primary);
  box-shadow: 0 20px 40px rgba(233, 83, 14, 0.15);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--orange-primary), var(--red-accent));
  color: var(--white);
  transform: scale(1.05);
}

.service-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 50px rgba(233, 83, 14, 0.4);
}

.service-card.featured h3,
.service-card.featured p {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--orange-primary);
  font-weight: 700;
}

.service-card p {
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.7;
}

.service-card svg {
  width: 100%;
  height: auto;
  max-height: 120px;
  display: block;
  margin: 0 auto 1rem;
}

.svg-primary {
  fill: #e9530e;
}
.svg-secondary {
  fill: #333;
}
.svg-outline {
  fill: none;
  stroke: #e9530e;
  stroke-width: 2;
}
.svg-bg {
  fill: #f8f9fa;
}

/* ─────────────────────────────────────────
   SERVICES CAROUSEL
───────────────────────────────────────── */
.services-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.carousel-track-wrapper {
  overflow: hidden;
  padding: 15px 0;
  margin: -15px 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
}

.carousel-track .service-card {
  flex: 0 0 auto;
  animation-delay: 0s !important;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--orange-primary);
  background: var(--white);
  color: var(--orange-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(233, 83, 14, 0.2);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-arrow--prev {
  left: 0;
}
.carousel-arrow--next {
  right: 0;
}

.carousel-arrow:hover {
  background: var(--orange-primary);
  color: var(--white);
  transform: translateY(-60%) scale(1.1);
  box-shadow: 0 6px 18px rgba(233, 83, 14, 0.4);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-medium);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    width 0.2s ease;
}

.carousel-dot.active {
  background: var(--orange-primary);
  width: 28px;
  border-radius: 5px;
}

/* ══════════════════════════════════════════
   VALORI
══════════════════════════════════════════ */

#valori-section {
  padding: 60px 10%;
  background: var(--white);
  position: relative;
}

#valori-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1000px;

  background: linear-gradient(
    to bottom,
    var(--gray-light) 0%,
    var(--white) 60%,
    transparent 100%
  );

  pointer-events: none;
  z-index: 1;
}

#valori-section > .container {
  position: relative;
  z-index: 2;
}

/* ── griglia valori ── */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Rimuoviamo il vincolo flex dalla riga (se presente nel HTML) */
.row-valori {
  display: contents;
}

.valore-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;

  /* Garantisce che il contenuto riempia la card e permetta altezze uguali */
  display: flex;
  flex-direction: column;
  height: 100%;

  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

/* Barra arancio in cima */
.valore-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--orange-primary),
    var(--yellow-primary),
    var(--red-accent)
  );
}

.valore-card:hover {
  transform: translateY(-10px);
  border-color: var(--orange-primary);
  box-shadow: 0 20px 40px rgba(233, 83, 14, 0.15);
}

.valore-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--orange-primary),
    var(--yellow-primary)
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(233, 83, 14, 0.3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.valore-card:hover .valore-icon {
  transform: scale(1.1) rotate(-4deg);
}

.valore-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.valore-card h3 {
  font-family: "Lato", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange-primary);
  margin-bottom: 0.8rem;
}

.valore-card p {
  font-size: 0.97rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin: 0;
  flex-grow: 1;
}

/* Stagger animazioni */
.valore-card:nth-child(1) {
  animation-delay: 0.05s;
}
.valore-card:nth-child(2) {
  animation-delay: 0.12s;
}
.valore-card:nth-child(3) {
  animation-delay: 0.18s;
}
.valore-card:nth-child(4) {
  animation-delay: 0.24s;
}
.valore-card:nth-child(5) {
  animation-delay: 0.3s;
}
.valore-card:nth-child(6) {
  animation-delay: 0.36s;
}

/* ─────────────────────────────────────────
   PARTNERS SECTION
───────────────────────────────────────── */
#partner {
  padding: 5rem 0;
  background: var(--white);
  border-top: 1px solid var(--gray-medium);
  border-bottom: 1px solid var(--gray-medium);
}

#partner .section-header {
  margin-bottom: 3rem;
}

.partners-marquee-wrapper {
  position: relative;
  overflow: hidden;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.partners-marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  height: 200px;
  animation: marqueeScroll 30s linear infinite;
}

.partners-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 160px;
  height: 80px;
  padding: 0.75rem 1.25rem;
  filter: grayscale(50%);
  transition:
    filter 0.3s ease,
    opacity 0.8s ease,
    transform 0.5s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

.partner-logo img {
  width: 150% !important;
  height: 150% !important;
  object-fit: contain;
  display: block;
}

.partner-logo--aura img {
  transform: scale(1.6);
}

.partner-logo__nejen img {
  transform: scale(1.4);
}

/* ─────────────────────────────────────────
   RESPONSIVE - HOME SPECIFIC
───────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1200px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-numbers strong {
    font-size: 1.2rem;
  }
}

@media (max-width: 991px) {
  .img-hero-container {
    max-width: 45% !important;
  }

  .hero-content h1 {
    text-align: center;
  }

  .hero-content {
    justify-content: center;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .badge {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .img-hero-container {
    display: none;
  }

  .home-hero-subtitle {
    display: none;
  }

  #hero {
    display: flex;
    justify-content: center;
  }

  #hero h1 {
    text-align: left;
    /* order: 1; */
  }

  #hero .hero-cta {
    width: 100%;
    order: 1;
  }

  #hero a {
    width: 100%;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-self: center;
  }

  .hero-proof {
    width: 100%;
  }

  #hero .hero-numbers {
    margin-bottom: 50px;
  }

  #hero .hero-bg {
    mask-image: linear-gradient(
      56deg,
      transparent 0%,
      rgba(0, 0, 0, 0.09) 40%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }
}

/* Mobile large */
@media (max-width: 575px) {
  #hero {
    min-height: fit-content;
  }

  .services-carousel {
    padding: 0 2.5rem;
  }
  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }

  .marquee-fade {
    width: 60px;
  }
  .marquee-track {
    gap: 0;
  }
  #partner {
    padding: 5rem 0;
  }
  .partner-logo {
    padding: 0;
  }

  .partner-logo img {
    height: 30px;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .trust-badges-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .trust-badge {
    flex: none;
    width: 100%;
  }

  .btn-large {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }


  .services-carousel {
    padding: 0 2rem;
  }
}

/* Riduci animazioni per chi preferisce */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .img-hero {
    animation: none;
  }
  .hero::before,
  .hero::after,
  .image-container {
    transition: none;
  }
}

.servizi-hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

@keyframes wave-flow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.wave--1 path {
  fill: #f35313;
}
.wave--1 {
  animation: wave-flow 14s linear infinite;
}

.wave--2 path {
  fill: #e07510;
  opacity: 0.5;
}
.wave--2 {
  animation: wave-flow 9s linear infinite reverse;
}

.wave--3 path {
  fill: #f0be19;
  opacity: 0.35;
}
.wave--3 {
  animation: wave-flow 6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .wave--1,
  .wave--2,
  .wave--3 {
    animation: none;
  }
}

span::after {
  display: none;
}

.img-hero-container {
  max-width: 70%;
}

.img-hero-container img {
  object-fit: cover;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.number {
  font-family: "Lato", sans-serif;
}

.hero-numbers {
  padding: 0px;
}
/* ══════════════════════════════════════════
   VALORI
══════════════════════════════════════════ */

#valori-section {
  padding: 60px 10%;
  background: var(--white);
  position: relative;
}

#valori-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1000px;

  background: linear-gradient(
    to bottom,
    var(--gray-light) 0%,
    var(--white) 60%,
    transparent 100%
  );

  pointer-events: none;
  z-index: 1;
}

#valori-section > .container {
  position: relative;
  z-index: 2;
}

/* ── griglia valori ── */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Rimuoviamo il vincolo flex dalla riga (se presente nel HTML) */
.row-valori {
  display: contents;
}

.valore-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;

  /* Garantisce che il contenuto riempia la card e permetta altezze uguali */
  display: flex;
  flex-direction: column;
  height: 100%;

  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

/* Barra arancio in cima */
.valore-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--orange-primary),
    var(--yellow-primary),
    var(--red-accent)
  );
}

.valore-card:hover {
  transform: translateY(-10px);
  border-color: var(--orange-primary);
  box-shadow: 0 20px 40px rgba(233, 83, 14, 0.15);
}

.valore-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--orange-primary),
    var(--yellow-primary)
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(233, 83, 14, 0.3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.valore-card:hover .valore-icon {
  transform: scale(1.1) rotate(-4deg);
}

.valore-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.valore-card h3 {
  font-family: "Lato", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange-primary);
  margin-bottom: 0.8rem;
}

.valore-card p {
  font-size: 0.97rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin: 0;
  flex-grow: 1;
}

/* Stagger animazioni */
.valore-card:nth-child(1) {
  animation-delay: 0.05s;
}
.valore-card:nth-child(2) {
  animation-delay: 0.12s;
}
.valore-card:nth-child(3) {
  animation-delay: 0.18s;
}
.valore-card:nth-child(4) {
  animation-delay: 0.24s;
}
.valore-card:nth-child(5) {
  animation-delay: 0.3s;
}
.valore-card:nth-child(6) {
  animation-delay: 0.36s;
}

@media (max-width: 1024px) {
  .valore-card {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 991px) {
  .valori-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  #valori-section {
    padding: 60px 5%;
  }

  .valori-grid {
    display: flex;
    flex-direction: column;
    width: 90%;
  }

  .partner-logo img {
    width: 80% !important;
    height: 80% !important;
  }
}

