* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #111209;
  color: #f7f6f3;
}

/* NAVBAR */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: transparent;
}

.logo img {
  height: 116px;
  width: auto;
  object-fit: contain;
}

.btnContattaci {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  color: #f7f6f3;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.btnContattaci:hover {
  background: #f7f6f3;
  color: #1c1c1a;
}

.btnMenu {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.btnMenu span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #f7f6f3;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.btnMenu.aperto span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.btnMenu.aperto span:nth-child(2) {
  opacity: 0;
}
.btnMenu.aperto span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heroVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.heroTesto {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding: 0 24px;
}

.heroTesto h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: #f7f6f3;
  margin-bottom: 20px;
}

.heroTesto p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(247, 246, 243, 0.65);
}

/* DROPDOWN MENU */
.dropdown {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  background: rgba(10, 11, 8, 0.97);
  backdrop-filter: blur(12px);
  z-index: 999;
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.dropdown.aperto {
  max-height: 400px;
  padding: 40px 0;
}

.dropdown ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.dropdown ul li a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dropdown ul li a:hover {
  color: #c0dd97;
}

.dropdown .linea {
  width: 40px;
  height: 1px;
  background: #3b6d11;
  margin: 0 auto 32px;
}

/* BANNER CAROUSEL */
.carousel {
  width: 100%;
  background: #e2e2e0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 20px;
}

.carouselLabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.4);
  text-align: center;
  flex-shrink: 0;
}

.carouselWrapper {
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
}

.carouselTrack {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.carouselSlide {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.carouselSlide img {
  max-height: 70px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.65;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: auto;
}

/* Loghi grandi (Decimauni, Digitance, Pro Television) */
.carouselSlide img[src*="logo-removebg-preview"],
.carouselSlide img[src*="Digitance"],
.carouselSlide img[src*="tv-1024x118"] {
  max-height: 130px;
  max-width: 290px;
}

@keyframes marquee {
  0% {
    transform: translateZ(0) translateX(0);
  }
  100% {
    transform: translateZ(0) translateX(-50%);
  }
}

/* VALORI CAROUSEL (tablet/mobile) */
.valoriCarousel {
  display: none;
}
.valoriGrid {
  display: flex;
}

.valoriSwiper {
  width: 100%;
  padding-bottom: 40px !important;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.valoriSwiper .swiper-slide {
  border-top: 1px solid rgba(247, 246, 243, 0.1);
  padding: 32px 0;
  box-sizing: border-box;
  height: auto;
}

.valoriPagination {
  bottom: 0 !important;
}

.valoriPagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(247, 246, 243, 0.25);
  opacity: 1;
}

.valoriPagination .swiper-pagination-bullet-active {
  background: #c0dd97;
}

@media (max-width: 992px) {
  .valoriGrid {
    display: none;
  }
  .valoriCarousel {
    display: block;
  }
}

/* CHI SIAMO */
.chiSiamo {
  width: 100%;
}

.chiSiamo .row {
  align-items: stretch;
}

.chiSiamo .testo {
  min-height: 480px;
  background: #f7f6f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}

.chiSiamo .immagine {
  min-height: 480px;
  overflow: hidden;
}

.chiSiamo .immagine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  display: inline-block;
  background: #3b6d11;
  color: #f6f6f6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 20px;
  width: fit-content;
}

.separatore {
  width: 36px;
  height: 2px;
  background: #3b6d11;
  margin-bottom: 24px;
}

.chiSiamo .testo h2,
.innovazione .testo h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #1c1c1a;
  margin-bottom: 20px;
}

.chiSiamo .testo h2 .verde,
.innovazione .testo h2 .verde {
  color: #3b6d11;
}

.chiSiamo .testo p,
.innovazione .testo p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: #5f5e5a;
}

/* INNOVAZIONE */
.innovazione {
  width: 100%;
  background: #f7f6f3;
  overflow: hidden;
}

.innovazione .row {
  align-items: stretch;
}

.innovazione .immagine {
  position: relative;
  min-height: 480px;
}

.innovazione .immagine img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.innovazione .testo {
  min-height: 480px;
  background: #f7f6f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}

/* WRAPPER GRADIENTE UNIFICATO */
.gradientWrapper {
  background-color: #111209;
  background-image:
    linear-gradient(
      to bottom right,
      rgba(59, 109, 17, 0.55) 0%,
      transparent 45%
    ),
    linear-gradient(to top right, rgba(59, 109, 17, 0.35) 0%, transparent 45%);
}

/* VALORI */
.valori {
  height: 600px;
  display: flex;
  align-items: center;
}

.valoriLabel {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0dd97;
  margin-bottom: 24px;
}

.valoriLinea {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: #c0dd97;
}

.valoriTitolo {
  margin-bottom: 64px;
}

.valoriTitolo h2 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: #f7f6f3;
}

.valoriTitolo h2 .verde {
  color: #c0dd97;
}

.cardValori {
  padding: 40px 40px 40px 0;
  border-top: 1px solid rgba(247, 246, 243, 0.1);
}

.cardValori .numero {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #c0dd97;
  margin-bottom: 24px;
}

.cardValori h3 {
  font-size: 20px;
  font-weight: 700;
  color: #f7f6f3;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cardValori p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247, 246, 243, 0.55);
}

/* CONTATTI */
.contatti {
  padding: 100px 0;
}

.contattiTitolo {
  text-align: center;
  margin-bottom: 56px;
}

.contattiLabel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0dd97;
  margin-bottom: 20px;
}

.contattiLinea {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: #c0dd97;
}

.contatti .contattiTitolo h2 {
  font-size: 40px;
  font-weight: 700;
  color: #f7f6f3;
  line-height: 1.2;
}

.contatti .contattiTitolo h2 .verde {
  color: #c0dd97;
}

.form label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(247, 246, 243, 0.35);
  margin-bottom: 8px;
}

.form input,
.form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(247, 246, 243, 0.2);
  border-radius: 4px;
  color: #f7f6f3;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.form input:focus,
.form textarea:focus {
  border-color: #c0dd97;
}

.form .fondo {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.privacy {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 246, 243, 0.35);
  margin: 0;
}

.btnInvia {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(247, 246, 243, 0.5);
  color: #f7f6f3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 14px 32px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  white-space: nowrap;
}

.btnInvia:hover {
  background: #f7f6f3;
  color: #1c1c1a;
}

/* FOOTER */
.footer {
  background: #111209;
  border-top: 1px solid rgba(247, 246, 243, 0.08);
}

.barraVerde {
  width: 100%;
  height: 4px;
  background: #3b6d11;
}

.footerLogo {
  font-size: 20px;
  font-weight: 700;
  color: #f7f6f3;
  letter-spacing: 0.04em;
}

.footerLabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0dd97;
  margin-bottom: 10px;
}

.footerLink {
  font-size: 13px;
  font-weight: 300;
  color: rgba(247, 246, 243, 0.7);
  text-decoration: none;
  line-height: 1.7;
  display: block;
  transition: color 0.2s ease;
}

a.footerLink:hover {
  color: #c0dd97;
}

.lineaFooter {
  width: 100%;
  height: 1px;
  background: rgba(247, 246, 243, 0.08);
}

.copyright {
  font-size: 12px;
  font-weight: 300;
  color: rgba(247, 246, 243, 0.35);
  letter-spacing: 0.04em;
}

.iub__us-widget {
  display: none !important;
}

/* ─────────────────────────────────────────
   MEDIA QUERIES
───────────────────────────────────────── */

/* 1024px — tablet landscape */
@media (max-width: 1024px) {
  .logo img {
    height: 80px;
  }

  .chiSiamo .testo,
  .innovazione .testo {
    height: auto;
    padding: 48px 5%;
  }

  .chiSiamo .immagine {
    height: 360px;
  }

  .innovazione .immagine {
    min-height: 360px;
  }

  .valori {
    height: auto;
    padding: 80px 0;
  }
  .valoriTitolo h2 {
    font-size: 42px;
  }
  .cardValori {
    padding: 32px 24px 32px 0;
  }
  .contatti {
    padding: 80px 0;
  }
  .contatti .contattiTitolo h2 {
    font-size: 34px;
  }
}

/* 992px — Bootstrap lg breakpoint: colonne stackate */
@media (max-width: 992px) {
  .chiSiamo .testo,
  .innovazione .testo {
    min-height: unset;
    height: auto;
    padding: 40px 5%;
  }

  .chiSiamo .immagine,
  .innovazione .immagine {
    min-height: unset;
    height: 480px;
    order: -1;
  }

  .innovazione .immagine img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .chiSiamo .testo h2,
  .innovazione .testo h2 {
    font-size: 20px;
  }
}

/* 768px — tablet portrait */
@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }
  .logo img {
    height: 52px;
  }
  .btnContattaci {
    font-size: 11px;
    padding: 8px 16px;
  }
  .dropdown {
    top: 80px;
  }

  .heroTesto h1 {
    font-size: 28px;
  }
  .heroTesto p {
    font-size: 13px;
  }

  .carousel {
    padding: 10px 0 16px;
  }
  .carouselWrapper {
    margin-top: 14px;
  }
  .carouselSlide img {
    max-height: 55px;
    max-width: 130px;
  }

  /* Loghi grandi (Decimauni, Digitance, Pro Television) - tablet */
  .carouselSlide img[src*="logo-removebg-preview"],
  .carouselSlide img[src*="Digitance"],
  .carouselSlide img[src*="tv-1024x118"] {
    max-height: 75px;
    max-width: 170px;
  }

  .chiSiamo .row,
  .innovazione .row {
    flex-direction: column;
  }

  .chiSiamo .immagine,
  .innovazione .immagine {
    height: 500px;
    order: 1;
  }

  .chiSiamo .testo,
  .innovazione .testo {
    height: auto;
    padding: 40px 5%;
    order: 2;
  }

  .chiSiamo .testo h2,
  .innovazione .testo h2 {
    font-size: 18px;
  }

  .valori {
    padding: 60px 0;
  }
  .valoriTitolo {
    margin-bottom: 40px;
  }
  .valoriTitolo h2 {
    font-size: 34px;
  }
  .cardValori {
    padding: 24px 0;
  }
  .cardValori h3 {
    font-size: 17px;
  }

  .contatti {
    padding: 60px 0;
  }
  .contatti .contattiTitolo h2 {
    font-size: 28px;
  }
  .contattiTitolo {
    margin-bottom: 36px;
  }
  .form .fondo {
    flex-direction: column;
    align-items: flex-start;
  }
  .btnInvia {
    width: 100%;
    text-align: center;
  }

  .footer .row {
    gap: 24px 0;
  }
  .footerLogo {
    font-size: 18px;
  }
}

.dropdownContatti {
  display: none;
}

/* 450px — mobile */
@media (max-width: 450px) {
  .dropdownContatti {
    display: block;
  }
  .navbar {
    height: 56px;
  }
  .logo img {
    height: 44px;
  }
  .btnContattaci {
    display: none;
  }
  .dropdown {
    top: 72px;
  }

  .hero {
    min-height: 560px;
  }
  .heroTesto h1 {
    font-size: 22px;
  }
  .heroTesto p {
    font-size: 12px;
  }

  .carousel {
    padding: 10px 0 14px;
  }
  .carouselWrapper {
    margin-top: 12px;
  }
  .carouselSlide {
    padding: 0 24px;
  }
  .carouselSlide img {
    max-height: 44px;
    max-width: 100px;
  }

  /* Loghi grandi (Decimauni, Digitance, Pro Television) - mobile */
  .carouselSlide img[src*="logo-removebg-preview"],
  .carouselSlide img[src*="Digitance"],
  .carouselSlide img[src*="tv-1024x118"] {
    max-height: 60px;
    max-width: 130px;
  }

  .chiSiamo .testo,
  .innovazione .testo {
    padding: 32px 1.25rem;
  }

  .chiSiamo .immagine,
  .innovazione .immagine {
    height: 220px;
  }

  .chiSiamo .testo h2,
  .innovazione .testo h2 {
    font-size: 16px;
  }

  .valori {
    padding: 48px 0;
  }
  .valoriTitolo h2 {
    font-size: 26px;
  }
  .cardValori h3 {
    font-size: 15px;
  }
  .cardValori p {
    font-size: 12px;
  }

  .contatti {
    padding: 48px 0;
  }
  .contatti .contattiTitolo h2 {
    font-size: 24px;
  }
  .form input,
  .form textarea {
    font-size: 13px;
    padding: 10px 12px;
  }
  .privacy {
    font-size: 10px;
  }

  .footerLogo {
    font-size: 16px;
  }
  .footerLink {
    font-size: 12px;
  }

  .valoriArrow {
    display: none;
  }
  .valoriCarouselWrapper {
    display: block;
  }
}

/* 1600px — schermi grandi */
@media (min-width: 1600px) {
  .logo img {
    height: 130px;
  }
  .heroTesto h1 {
    font-size: 52px;
  }
  .heroTesto p {
    font-size: 18px;
  }
  .heroTesto {
    max-width: 860px;
  }

  .chiSiamo .testo,
  .innovazione .testo {
    min-height: 680px;
    padding: 100px 120px;
  }

  .chiSiamo .immagine {
    min-height: 680px;
  }
  .innovazione .immagine {
    min-height: 680px;
  }

  .chiSiamo .testo h2,
  .innovazione .testo h2 {
    font-size: 28px;
  }

  .chiSiamo .testo p,
  .innovazione .testo p {
    font-size: 15px;
  }

  .valori {
    height: 700px;
  }
  .valoriTitolo h2 {
    font-size: 68px;
  }
  .cardValori h3 {
    font-size: 24px;
  }
  .cardValori p {
    font-size: 15px;
  }

  .contatti .contattiTitolo h2 {
    font-size: 52px;
  }
  .form input,
  .form textarea {
    font-size: 15px;
    padding: 14px 20px;
  }
}

/* CHECKBOX PRIVACY */
.checkboxPrivacy {
  margin-top: 16px;
}

.privacyLabel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.privacyLabel input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #c0dd97;
  cursor: pointer;
  border: none;
  padding: 0;
  border-radius: 0;
}

.privacyLabel span {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 246, 243, 0.35);
}

.privacyLink {
  color: #c0dd97;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.privacyLink:hover {
  opacity: 0.75;
}

/* BOTTONE LINGUA */
.btnLingua {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  color: #f7f6f3;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.btnLingua:hover {
  background: rgba(192, 221, 151, 0.15);
  border-color: #c0dd97;
  color: #c0dd97;
}

/* FOOTER POLICY LINKS */
.footerPolicy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footerPolicySep {
  color: rgba(247, 246, 243, 0.2);
  font-size: 12px;
}

.footerPolicy .iubenda-embed {
  font-size: 11px;
  font-weight: 300;
  color: rgba(247, 246, 243, 0.35) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footerPolicy .iubenda-embed:hover {
  color: #c0dd97 !important;
}
