/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ================= HEADER ================= */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition: transform 0.4s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= LOGO ================= */

.logo-desktop {
  height: 150px;
}

.logo-mobile {
  display: none;
  height: 100px;
}

/* ================= HAMBURGER ================= */

.hamburger {
  width: 34px;
  height: 26px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  height: 2px;
  background: #fff;
  width: 100%;
  left: 0;
  transition: all 0.4s ease;
}

/* Linee sfalsate */
.hamburger span:nth-child(1) {
  top: 0;
  width: 75%;
  background: #6E1E2B;
}

.hamburger span:nth-child(2) {
  top: 12px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
  width: 55%;
}

/* X reale */
.hamburger.active span:nth-child(1) {
  top: 12px;
  width: 100%;
  transform: rotate(45deg);
  background: #6E1E2B;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  bottom: 21px;
  width: 100%;
  transform: rotate(-45deg);
  background: #fff;
}

/* ================= NAV OVERLAY ================= */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

.nav-overlay.open {
  transform: translateY(0);
}

.nav-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.nav-overlay li {
  margin: 30px 0;
}

.nav-overlay a {
  text-decoration: none;
  font-size: 34px;
  color: #fff;
  font-weight: 300;
  transition: opacity 0.3s ease;
}

.nav-overlay a:hover {
  opacity: 0.6;
}

/* BANNER */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Background image */
.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* Content */
.banner-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #fff;
}

/* Title */
.banner-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 20px;
}

/* Vertical line */
.banner-line {
  width: 1px;
  height: 60px;
  background: #fff;
  margin-bottom: 24px;
}

/* Paragraph */
.banner-content p {
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* CTA */
.banner-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  background: transparent;
  transition: all 0.35s ease;
}

.banner-cta:hover {
  background: #fff;
  color: rgba(0, 0, 0, 0.5);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.scroll-indicator small {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Arrow */
.arrow {
  width: 12px;
  height: 12px;
  border-left: 1px solid #6E1E2B;
  border-bottom: 1px solid #fff;
  transform: rotate(-45deg);
  animation: bounce 1.6s infinite;
  margin-bottom: 10px;
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(8px) rotate(-45deg);
  }
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SEZIONI BASE */
.section {
  position: relative;
  width: 100%;
  padding: 120px 20px;
  overflow: hidden;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* SEZIONE 2 */
.section-light {
  background: #fff;
  color: #000;
}

.section-light h1 {
  font-size: clamp(2.5rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.section-light p {
  line-height: 1.7;
}

/* PUNTI CHIAVE */

.key-points {
  list-style: none;
  margin-top: 50px;
  padding: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.key-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  color: #000;
  line-height: 1.7;
}

/* ICONA MINIMAL */
.icon-minimal {
  width: 3px;
  height: 28px;
  background: #6E1E2B;
  border-radius: 2px;
  margin-top: 4px;
  flex-shrink: 0;
}

.key-points strong {
  color: #000;
  font-weight: 600;
}


/* SEZIONE 3 */
.section-dark {
  background: #1f1f1f;
  color: #fff;
}

.section-dark h1 {
  font-size: clamp(2.5rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.section-dark p {
  line-height: 1.7;
  margin-bottom: 60px;
}

/* FEATURE BOX */
.feature-box {
  background: #fff;
  color: #000;
  border-radius: 14px;
  padding: 40px 30px;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  z-index: 9999;
}

.feature-box h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-box p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* PARALLAX IMAGES */
.parallax-img {
  position: absolute;
  z-index: 1;
  width: 360px;
  will-change: transform, box-shadow;
  z-index: 0;
}

.parallax-img img {
  width: 80%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transition: box-shadow 0.3s ease;
}

/* posizioni + rotazioni */
.img-1 { top: 500px; right: 6%; transform: rotate(6deg); }
.img-2 { top: 850px; left: 6%; transform: rotate(-5deg); }
.img-3 { top: 1260px; right: 7%; transform: rotate(4deg); }
.img-4 { top: 1660px; left: 12%; transform: rotate(-6deg); }

/* SEZIONE 4 */
.section-cta {
  background: #fff;
  padding: 120px 20px;
}

.section-cta h2 {
  font-size: clamp(2rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

.section-cta p {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #000;
}

.cta-outline {
  display: inline-block;
  padding: 14px 42px;
  border: 2px solid #000;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  background: #fff;
  transition: all 0.35s ease;
}

.cta-outline:hover {
  background: #000;
  color: #fff;
  border-color: transparent;
}

/* SEZIONE 5 */
.section-carousel {
  background: #1f1f1f;
  padding: 100px 0;
  overflow: hidden;
}

/* CAROUSEL */

.carousel-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-left: 6%;
  margin-bottom: 40px;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scrollCarousel 40s linear infinite;
}

.carousel-item {
  width: 180px;
  height: 120px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  border-radius: 10px;
}

.carousel-item img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  opacity: 0.5;
}

/* CAROUSEL ANIMATION */
@keyframes scrollCarousel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ================= FOOTER ================= */

.site-footer {
  background: #000;
  padding: 80px 40px 30px;
  font-size: 0.9rem;
  color: #fff;
}

/* Container principale */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

/* Colonne */
.footer-col {
  flex: 1;
}

/* Logo */
.footer-logo img {
  width: 160px;
}

/* Info aziendali */
.footer-info p {
  line-height: 1.6;
  font-size: 0.6rem;
}

/* Divider verticale */
.footer-divider {
  width: 1px;
  background: #ddd;
}

/* Menu */
.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 14px;
}

.footer-menu a {
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
}

.footer-menu a:hover {
  opacity: 0.6;
}

/* CTA */
.footer-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-cta p {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #fff;
}

/* Bottone CTA */
.footer-button {
  display: inline-block;
  padding: 10px 22px;
  background: #000;
  border: 2px solid #6E1E2B;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.footer-button:hover {
  background: #6E1E2B;
  color: #fff;
  border-color: transparent;
}

/* Footer bottom */
.footer-bottom {
  margin-top: 60px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

/* Social Icons */

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 25px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #6E1E2B;
  border-color: #6E1E2B;
  fill: #000;
}

.footer-social a:hover svg {
  fill: #1f1f1f;
}


/* MOBILE */
@media (max-width: 768px) {

  .header-container {
    padding: 18px 25px;
  }

  .logo-desktop {
    display: none;
  }
  .logo-mobile {
    display: block;
  }

  .banner-content p {
    font-size: 0.95rem;
  }

  .banner-line {
    height: 40px;
  }

  .parallax-img {
    display: none;
  }

  .section {
    padding: 80px 16px;
  }
  .carousel-item {
    width: 140px;
    height: 100px;
  }

  .carousel-title {
    margin-left: 20px;
    justify-items: center;
  }

.site-footer {
    padding: 60px 25px 30px;
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
  }

  .footer-logo img {
    width: 140px;
  }

  .footer-button {
    width: 100%;
    text-align: center;
  }
}