/*
 * Author: Luca Arzilli, ALSolutions
 * Project Name: Le Macchiole - Azienda
 *
 * Pagina Azienda: slideshow (prime 10 img), hero con logo + "Azienda",
 * freccia scroll, sezione testo su sfondo bianco con colonne Bootstrap.
 */

/* Body della pagina Azienda */
.lemacchiole-azienda {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Slideshow sfondo (stile home) */
.bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.02);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

@keyframes bg-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.bg-slide.bg-leaving {
  transform: scale(1.08);
}

.bg-slide.bg-active {
  opacity: 1;
  z-index: 1;
  animation: bg-zoom 5s linear forwards;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3vh 1.5vw 11vh 1.5vw;
}

/* Header con menu e lingue */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.25vh 2vw;
  z-index: 40;
  transition: background-color 0.4s ease;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25vw;
}

.header-divider {
  display: inline-block;
  height: 50px;
  border-left: 1px solid #808081;
  margin: 0 20px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #FFF;
  transition: color 0.4s ease;
}

/* Header su sfondo bianco quando la pagina è scrollata sulla sezione intro */
body.azienda-header-on-white .header {
  background-color: #fff;
}

body.azienda-header-on-white .menu-toggle {
  color: #000;
}

body.azienda-header-on-white .lang-link {
  color: #000;
}

body.fullmenu-open .menu-toggle {
  color: #000;
}

body.fullmenu-open .header-right,
body.fullmenu-open .menu-label,
body.fullmenu-open .header-divider,
body.fullmenu-open .lang-link {
  display: none;
}

.menu-label {
  font-style: italic;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.16em;
  color: #b49759;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.lang-link {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFF;
  text-decoration: none;
  transition: color 0.4s ease;
}

.lang-link:hover {
  color: #b49759;
}

/* Full screen menu */
.fullmenu {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

body.fullmenu-open .fullmenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fullmenu-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4vh;
  padding: 4vh 4vw 2vh 4vw;
}

.fullmenu-logo {
  width: clamp(200px, 30vw, 320px);
  height: auto;
  display: block;
}

.fullmenu-nav {
  margin-top: 3vh;
}

.fullmenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8vh;
}

.fullmenu-list a {
  font-family: "Bodoni Moda", serif;
  text-transform: uppercase;
  font-size: clamp(10px, 1.3vw, 18px);
  letter-spacing: 0.22em;
  color: #000;
  text-decoration: none;
}

.fullmenu-list a:hover {
  color: #b49759;
}

.fullmenu-social {
  margin-top: 4vh;
  display: flex;
  gap: 1.5vw;
}

.fullmenu-social-link {
  font-family: "Bodoni Moda", serif;
  text-transform: uppercase;
  font-size: clamp(11px, 1.1vw, 15px);
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #000;
}

.fullmenu-social-link:hover {
  color: #b49759;
}

/* Hero: logo centrato + scritta "Azienda" (stile home) */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6vh;
}

.logo {
  width: clamp(120px, 28vw, 380px);
  height: auto;
  display: block;
}

.season-label {
  padding-top: 1vh;
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.15em;
  color: #FFF;
}

/* Invito a scorrere: freccia animata */
.azienda-scroll-cta {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.azienda-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #FFF;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  animation: azienda-arrow-bounce 2s ease-in-out infinite;
}

.azienda-scroll-arrow:hover {
  color: #b49759;
  border-color: #b49759;
}

.azienda-scroll-arrow i {
  font-size: 0.9rem;
}

.azienda-scroll-text {
  font-style: italic;
  font-size: clamp(12px, 1.5vw, 16px);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes azienda-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 767.98px) {
  .logo, .fullmenu-logo {
    width: clamp(240px, 50vw, 760px);
  }
  .fullmenu-list a {
    font-size: clamp(14px, 5vw, 24px);
  }
  .fullmenu-list {
    gap: 2.5vh;
  }
  .fullmenu-social {
    gap: 3.5vw;
  }
  .fullmenu-social-link {
    width: 40px;
    height: 40px;
    font-size: clamp(14px, 5vw, 24px);
  }  
}
