/* RESET BASICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* BACKGROUND FULLSCREEN */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background: #000000;
}

/* LAYOUT PRINCIPALE */
.page-wrapper {
  min-height: 100vh;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

/* HEADER: LOGO + BOTTONI */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 10;
}

.logo-wrapper {
  flex-shrink: 0;
}

.logo {
  width: 220px;
  max-width: 60vw;
  height: auto;
  display: block;
}

/* NAV LINGUE */
.lang-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-btn {
  background: transparent;
  color: #ffffff;
  border-radius: 50%;
  border: 1px solid #ffffff;
  width: 42px;
  height: 42px;
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.lang-btn.active {
  background: #ffffff;
  color: #000000;
}

.email-btn {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* HERO: TITOLO + CAPTION */
.hero {
  flex: 1;
  display: flex;
  align-items: center;       /* verticale al centro */
  justify-content: flex-start;
}

.hero-text {
  max-width: 520px;
  text-align: left;
}

/* Slider di testo */
.slides {
  position: relative;
  margin-bottom: 1.5rem;
  min-height: 4.5rem;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-caption {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Bottone catalogo */
.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
  white-space: nowrap;
  width: auto;
}

.catalog-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-1px);
}


/* RESPONSIVE TABLET */
@media (max-width: 960px) {
  .page-wrapper {
    padding: 16px 18px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .lang-nav {
    justify-content: flex-start;
  }

  .hero {
    align-items: center;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* RESPONSIVE MOBILE */
@media (max-width: 600px) {
  .logo {
    width: 180px;
  }

  .lang-btn {
  background: transparent;
  color: #ffffff;
  border-radius: 50%;
  border: 1px solid #ffffff;
  width: 42px;
  height: 42px;
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

  .hero {
    margin-top: 10px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-caption {
    font-size: 0.95rem;
  }

  .slides {
    min-height: 5rem;
  }
}

/* MOBILE PICCOLO */
@media (max-width: 400px) {
  .page-wrapper {
    padding: 14px;
  }

  .logo {
    width: 160px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-caption {
    font-size: 0.9rem;
  }
}

.contact-btn {
  background: transparent;
  color: #ffffff;
  border-radius: 999px;
  border: 1px solid #ffffff;
  padding: 10px 18px;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}
.contact-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-1px);
}


/* Slider immagini full-screen sotto al contenuto */
.hero {
  position: relative;
}

.hero-bg-slider {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.bg-slide.active {
  opacity: 1;
}

.bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Il testo rimane in primo piano */
.hero-text {
  position: relative;
  z-index: 1;
}
