/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FONT */
body {
  font-family: 'Raleway', sans-serif;
  color: #111;
}


/* LOGO BASE (header trasparente → logo bianco) */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  content: url("jpg/logo_white.png");
}

/* LOGO QUANDO HEADER DIVENTA BIANCO */
header.scrolled .logo-img {
  content: url("jpg/logo.png");
}

/* MOBILE */
@media (max-width: 768px) {
  .logo-img {
    height: 34px;
  }
}

/* HEADER FISSO + FADE-IN PREMIUM */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 40px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Fade-in al caricamento */
  opacity: 0;
  animation: headerFadeIn 0.8s ease-out forwards;

  /* Transizioni premium */
  transition:
    background-color 0.45s cubic-bezier(0.4, 0.0, 0.2, 1),
    padding 0.35s ease,
    box-shadow 0.45s ease;
}

@keyframes headerFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* HEADER SCROLLATO (bianco premium) */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  padding: 10px 40px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* MENU DESKTOP */
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

/* MENU — stato base (nero) */
nav a {
  text-decoration: none;
  color: #111;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  position: relative;
  transition: color 0.3s ease;
}

/* Sottolineatura elegante */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* MENU BIANCO + OMBRA QUANDO HEADER È TRASPARENTE */
header:not(.scrolled) nav a {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

header:not(.scrolled) .hamburger span {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* MENU NERO QUANDO HEADER È BIANCO */
header.scrolled nav a {
  color: #111;
  text-shadow: none;
}

header.scrolled .hamburger span {
  background: #111;
  box-shadow: none;
}

/* HAMBURGER (solo mobile) */
.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #111;
  transition: 0.3s;
}

/* HERO FULLSCREEN */
.hero {
  height: 100vh; /* sempre full screen */
  width: 100%;
  background-image: url("jpg/back.jpg");
  background-size: cover; /* coprente */
  background-position: center; /* centrata */
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  max-width: 100%;
}

.hero-overlay {
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 40px 30px;
  max-width: 520px;
}

.hero-overlay h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

/* CONTENUTO */
main {
  background: #fff;
}

main section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

section p {
  font-size: 1rem;
  line-height: 1.6;
}

/* MOBILE */
@media (max-width: 768px) {

  header,
  header.scrolled {
    padding: 12px 20px;
  }

  /* hamburger visibile */
  .hamburger {
    display: flex;
  }

  /* menu mobile nascosto */
  nav ul {
    display: none;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.98);
    width: 70%;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(6px);
  }

  /* menu mobile aperto */
  nav ul.open {
    display: flex;
  }

  /* menu mobile quando header è trasparente */
  header:not(.scrolled) nav ul {
    background: rgba(0,0,0,0.85);
  }

  header:not(.scrolled) nav a {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  }

  .hero-overlay {
    max-width: 90%;
    padding: 24px 18px;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }
}
/* SEZIONE CHI SIAMO — LUXURY BEIGE */
/* SEZIONE CHI SIAMO — LUXURY BEIGE */
.about-box {
  width: 100%;
  background: #f5efe6;
  padding: 120px 20px;
  display: flex;
  justify-content: center;
}

.about-inner {
  max-width: 1200px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* TESTO */
.about-text {
  flex: 1.2;
  line-height: 1.85;
  letter-spacing: 0.015em;
}

.about-text h2 {
  font-size: 2.4rem;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #2a2a2a;
}

.about-text p {
  margin-bottom: 22px;
  font-size: 1.12rem;
  color: #3a3a3a;
}

/* FOTO A DESTRA */
.about-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* MOBILE */
@media (max-width: 900px) {
  .about-inner {
    flex-direction: column;
    gap: 40px;
  }

  .about-photo img {
    width: 100%;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}

/* FADE-IN */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* BLOCCO FULL-WIDTH */
.lux-block {
  display: flex;
  width: 100%;
  min-height: 520px;
  align-items: stretch;
}

/* Alternanza SX/DX */
.lux-block.reverse {
  flex-direction: row-reverse;
}

/* TESTO (35%) */
.lux-text {
  width: 40%;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lux-text h2 {
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: #222;
}

.lux-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

/* FOTO (65%) come background */
.lux-photo {
  width: 60%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ASSEGNAZIONE  FOTO*/
.photo1 { background-image: url("jpg/1.jpg"); }
.photo2 { background-image: url("jpg/2.jpg"); }
.photo3 { background-image: url("jpg/3.jpg"); }
.photo4 { background-image: url("jpg/4.jpg"); }
.photo5 { background-image: url("jpg/5.jpg"); }

/* 5 COLORI LUXURY */
.bg1 { background: white; } /* beige */
.bg2 { background: #ffebeb; } /* crema */
.bg3 { background: #e9dfcf; } /* champagne */
.bg4 { background: #f7f1e8; } /* sabbia */
.bg5 { background: #f3e9dd; } /* avorio */

/* RESPONSIVE */
@media (max-width: 900px) {
  .lux-block,
  .lux-block.reverse {
    flex-direction: column;
  }

  .lux-text {
    width: 100%;
    padding: 50px 30px;
  }

  .lux-photo {
    width: 100%;
    height: 300px;
  }
}

/* FADE-IN */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
