:root {
  --black: #111111;
  --black-deep: #000000;
  --gray-900: #1a1a1a;
  --gray-700: #7d7d7d;
  --gray-500: #c7c7c7;
  --gray-300: #dcdcdc;
  --gray-200: #e8e8e8;
  --white: #ffffff;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "lato" !important;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
}

.alert-message {
  text-align: center;
  border: 1px solid #000;
  border-radius: 0;
  margin-top: 0 auto;
  margin-top: 40px;
}

/* ===============================
   HERO
================================ */
.hero {
  background-image: url("images/SEZIONE HERO NEJEN b2b - sfondo (1).png");
  background-repeat: no-repeat;
  height: 100vh;

  background-size: cover;
  background-position: bottom !important;
}

.hero-logo {
  width: 90%;
}

.hero-eyebrow {
  font-size: 1.5rem;
  letter-spacing: 0.28em;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.hero-subtitle {
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: 0.32em;
  color: var(--gray-900);
  border: 2px solid #000;
  padding: 10px;
}

.hero-heading {
  font-size: 3rem;
  letter-spacing: 0.22em;
  color: var(--white);
}

.hero-heading span {
  color: var(--white);
}

.hero-text {
  max-width: 520px;
  font-size: 1.5rem;
  color: var(--gray-900);
}

.hero-image {
  width: 95%;
  max-width: 520px;
}

/* FADE UP & DOWN */
.fade-up,
.fade-down {
  opacity: 0;
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

/* FADE LEFT & RIGHT (più veloci) */
.fade-left,
.fade-right {
  opacity: 0;
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out;
}

/* POSIZIONE INIZIALE */
.fade-up {
  transform: translateY(30px);
}

.fade-down {
  transform: translateY(-30px);
}

.fade-left {
  transform: translateX(-60px);
}

.fade-right {
  transform: translateX(60px);
}

/* STATO VISIBILE */
.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===============================
   BUTTON
================================ */
.btn-nejne {
  background-color: transparent;
  font-weight: 600;
  border: 2px solid #000;
  border-radius: 0;
  padding: 12px 28px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  margin-top: 40px;
}

.btn-nejne::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #000;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.btn-nejne:hover::after {
  width: 100%;
}

a.btn-nejne {
  text-decoration: none;
}
.cont-btn {
  margin-top: 80px;
}

/* ===============================
   STAT
================================ */
.stats-section {
  position: relative;
  z-index: 100;
  background: white;
  border-radius: 24px;
  width: 70%;
  margin: 50px auto 50px auto;
  padding: 25px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);

  display: flex;
  align-items: center;
}

.counter {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

/* label */
.stat-label {
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.stat-label::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: #000;
  margin: 0 auto 5px auto;
  opacity: 0.35;
}

.gradient-text {
  background: linear-gradient(
    341deg,
    #000 0%,
    #000 42%,
    #c7c7c7 48%,
    #c7c7c7 52%,
    #000 58%,
    #000 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===============================
   WHY NEJEN
================================ */

.why-nejen {
  padding: 7rem 0;
  background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
}

/* titolo sezione */
.why-nejen .section-title {
  font-size: 3.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
  color: #111;
}

/* contenitore centrale */
.block {
  padding: 4.5rem 2.5rem;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.06);
}

/* card */
.why-item {
  padding: 2rem 1.2rem;
  border-radius: 20px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.why-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.08);
}

/* icone */
.why-item .why-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f5f5f5, #ffffff);
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
}

.why-item svg {
  width: 30px;
  height: 30px;
  color: #1a1a1a;
}

.why-item:hover .why-icon {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.why-item:hover svg {
  color: #ffffff;
}

/* titoli */
.why-nejen h6 {
  font-size: 1.2rem;
  letter-spacing: 0.26em;
  margin-bottom: 1rem;
  font-weight: 900;
  color: #111;
}

.why-nejen h6::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #000, #c7c7c7);
  border-radius: 2px;
  opacity: 0.6;
}

/* descrizione */
.why-nejen p {
  font-size: 1rem;
  color: #6f6f6f;
  max-width: 270px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

/* ===============================
   PRODUCTS
================================ */

.products {
  padding: 7rem 0;
  color: black;
}

.product-card {
  background: transparent;
  border: none;
}

.product-card img {
  height: 380px;
  object-fit: contain;
  margin-bottom: 1.8rem;
}

.product-card .card-title {
  font-size: 1.8rem;
  letter-spacing: 0.24em;
  color: var(--white);
}

.product-card .card-text {
  font-size: 1.2rem;
  color: var(--gray-500);
}

.section-subtitle{
  font-size: 1.2rem;
}

/* ===============================
   FORM
================================ */
.partnership {
  padding: 7rem 0;
  background: #f5f5f5;
}

.partnership-form {
  padding: 4.5rem 3.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.form-title {
  font-size: 3rem;
}

.form-section-title {
  font-size: 1rem;
  letter-spacing: 0.22em;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--gray-700);
}

.form-control,
.form-select {
  border-radius: 0;
  border-color: var(--gray-300);
  padding: 1rem 0.9rem;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:checked {
  border-color: var(--black);
  box-shadow: none;
}

.form-check-input:checked {
  background-color: var(--black) !important;
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: var(--black-deep);
  padding-top: 7rem;
  padding-bottom: 3.5rem;
}

/* LOGO */
.footer img {
  width: 240px;
  margin-bottom: 1.8rem;
}

/* TESTI */
.footer-text,
.footer-tagline {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 280px;
}

/* TITOLI */
.footer-title {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--white);
  margin-bottom: 1.8rem;
}

.dir {
  font-size: 12px;
  color: var(--gray-500);
}

/* LINK GENERICI */
.footer a {
  color: var(--gray-500);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer a:hover {
  color: var(--white);
}

/* DIVIDER */
.divider {
  border-color: var(--gray-500);
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
}

/* LINK BOTTOM */
.footer-link {
  margin-left: 1.5rem;
  color: var(--gray-500);
}

.footer-link:hover {
  color: var(--white);
}

/* ===============================
   CONTATTI
================================ */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

/* ICONA CONTATTI */
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  margin-right: 0.7rem;
}

.footer-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-500);
  transition: 0.3s ease;
  transform: translateY(1px);
}

/* LINK CONTATTI */
.footer-item a {
  color: var(--gray-500);
  transition: 0.3s ease;
}

.footer-item a:hover {
  color: var(--white);
}

.footer-text-static {
  color: var(--gray-500);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  transition: 0.3s ease;
}

.footer-item:hover .footer-text-static {
  color: var(--white);
}

/* HOVER ICONA */
.footer-item:hover svg {
  stroke: var(--white);
}

/* ===============================
   SOCIAL ICONS 
================================ */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  background-color: var(--white);
}

/* ICONA */
.footer-social a i {
  font-size: 1.2rem;
  color: var(--gray-900);
  transition: 0.3s ease;
}

/* HOVER — come i contatti */
.footer-social a:hover {
  border-color: var(--white);
}

.footer-social a:hover i {
  color: var(--gray-700);
}

/* ===============================
   BOTTONE "VISITA IL SITO CONSUMER"
================================ */
.footer-consumer-btn {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-consumer-btn:hover {
  color: var(--gray-500);
}

.footer-consumer-btn span {
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.footer-consumer-btn:hover span {
  transform: translateX(4px);
}

/* ===============================
   FILTRI IMMAGINI
================================ */
img.to-white {
  filter: brightness(0) invert(1);
}

/* ===============================
   BOTTONE "VISITA IL SITO CONSUMER"
================================ */
.footer-consumer-btn {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-consumer-btn:hover {
  color: var(--gray-500);
}

.footer-consumer-btn span {
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.footer-consumer-btn:hover span {
  transform: translateX(4px);
}

/* ===============================
   FILTRI IMMAGINI
================================ */
img.to-white {
  filter: brightness(0) invert(1);
}

/* ===============================
   RESPONSIVE IMPROVEMENTS
================================ */
/* ===============================
   1400px — LARGE DESKTOP
================================ */
@media (max-width: 1400px) {
  .hero-heading {
    font-size: 2rem;
  }
  .product-card img {
    height: 340px;
  }
}

/* ===============================
   1200px — DESKTOP
================================ */
@media (max-width: 1200px) {

  .hero-logo {
    width: 50%;
    margin: 0 auto 20px auto;
  }

  /* HERO */
  .hero-eyebrow {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .hero-heading {
    font-size: 2.2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  /* WHY NEJEN */
  .why-nejen .section-title {
    font-size: 3.2rem;
  }

  .why-nejen h6 {
    font-size: 0.82rem;
  }

  .why-nejen p {
    font-size: 0.95rem;
  }

  /* PRODUCTS */
  .product-card .card-title {
    font-size: 0.85rem;
  }

  .product-card .card-text {
    font-size: 0.8rem;
  }

  .product-card img {
    height: 300px;
  }

  .section-subtitle{
  font-size: 0.95rem;
}
  /* FORM */
  .form-title {
    font-size: 2.7rem; 
  }

  .form-section-title {
    font-size: 0.8rem;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .form-control,
  .form-select {
    font-size: 0.95rem;
  }

  /* STAT */
  .stat-label {
    font-size: 12px;
  }

  .stats-section {
    width: 85%;
  }
}

/* ===============================
   992px — TABLET LANDSCAPE
================================ */
@media (max-width: 1024px) {
  /* HERO */
  .hero {
    height: auto;
    padding: 60px 0 40px 0;
    background-position: -188px -100px !important;
  }
  .hero-logo {
    width: 50%;
    margin: 0 auto 20px auto;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
  }
  .hero-subtitle {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .hero-heading {
    font-size: 1.4rem;
    line-height: 1;
  }
  .hero-text {
    font-size: 1rem;
  }
  .stats-section {
    margin: -50px auto 25px auto;
  }

  /* WHY */
  .why-nejen .section-title {
    font-size: 2.4rem;
  }
  .block {
    padding: 3rem 2rem;
  }

  /* PRODUCTS */
  .product-card img {
    height: 260px;
  }

  /* FORM */
  .partnership-form {
    padding: 3rem 2rem;
  }
}

.footer {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.footer img {
  width: 190px;
}

.footer-text,
.footer-tagline {
  max-width: 100%;
}

.footer-social {
  justify-content: flex-start;
}

@media (max-width: 992px) {
  .hero {
    background-position: 0px -123px !important;
  }
}
/* ===============================
   768px — TABLET PORTRAIT / MOBILE LARGE
================================ */
@media (max-width: 768px) {
  /* HERO */
  .hero {
    height: auto;
    padding: 0;
    background-size: cover;
    background-position: 0% 7% !important;
  }

  .content {
    margin-top: 28%;
  }

  .hero-image {
    width: 80%;
    max-width: 200px;
    margin: 30px auto 0 auto;
  }

  /* BUTTON */
  .btn-nejne {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  /* STATS */
  .stats-section {
    width: 100%;
    padding: 20px 10px;
    margin-top: -40px;
    flex-direction: column;
    text-align: center;
    margin: 18px auto 18px auto;
  }

  .counter {
    font-size: 1.8rem;
  }

  /* WHY */
  .why-nejen {
    padding: 4rem 0;
  }
  .why-nejen .section-title {
    font-size: 2rem;
  }
  .block {
    padding: 2.5rem 1.5rem;
  }
  .why-item {
    padding: 1.5rem 1rem;
  }

  /* PRODUCTS */
  .products {
    padding: 4rem 0;
  }
  .product-card img {
    height: 220px;
  }

  /* FORM */
  .partnership {
    padding: 4rem 0;
  }
  .partnership-form {
    padding: 2.5rem 1.5rem;
  }

  .form-label,
  .form-section-title {
    font-size: 0.7rem;
  }

  .form-control,
  .form-select {
    padding: 0.8rem 0.7rem;
    font-size: 0.85rem;
  }

  /* FOOTER */
  .footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  .footer img {
    width: 160px;
  }
  .footer-text,
  .footer-tagline {
    font-size: 0.8rem;
  }
}

/* ===============================
   576px — MOBILE STANDARD
================================ */
@media (max-width: 576px) {
  .hero {
    background-position: 7% 0% !important;
  }
  .content {
    margin-top: 44%;
  }

  .hero-heading {
    font-size: 1.25rem;
  }

  .hero-text {
    font-size: 0.85rem;
  }

  .partnership-form {
    padding: 2rem 1.2rem;
  }
  .footer {
    padding: 20px;
  }

  .footer img {
    width: 140px;
  }

  .footer-link {
    font-size: 0.5rem !important;
  }
}

@media (max-width: 500px) {
  .hero {
    background-position: -94px -15px !important;
  }
  .content {
    padding-right: 3rem !important;
    margin-top: 61%;
  }
  .stats-section {
    margin: 0px auto -25px auto;
  }
}

/* ===============================
   400px — MOBILE SMALL
================================ */
@media (max-width: 400px) {
  .hero {
    background-position: 10% 0% !important;
  }
  .hero-heading {
    font-size: 1.1rem;
    padding-right: 20px;
  }
  .hero-subtitle {
    font-size: 0.6rem;
    padding-right: 20px;
  }

  .stats-section {
    margin: 18px auto 18px auto;
  }

  .btn-nejne {
    padding: 8px 16px;
    font-size: 0.75rem;
  }

  .form-control,
  .form-select {
    font-size: 0.8rem;
    padding: 0.7rem;
  }

  .footer-text,
  .footer-tagline {
    font-size: 0.75rem;
  }
}
