/* =========================
   VARIABILI BRAND
========================= */
:root {
  --gold-primary: #C89B3C;
  --gold-light: #E6C87A;
  --gold-dark: #9E7627;

  --black: #111111;
  --dark-gray: #333333;
  --gray: #777777;
  --light-gray: #f5f5f5;
  --white: #ffffff;
}

/* =========================
   RESET BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   CORPO
========================= */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--white);
}

/* =========================
   HEADER
========================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--black);
}

header img {
  height: 55px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

nav a.active,
nav a:hover {
  color: var(--gold-primary);
}

/* =========================
   HERO
========================= */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: var(--light-gray);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: var(--black);
}

.hero p {
  color: var(--gray);
}

.hero .cta {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  background: var(--gold-primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero .cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

/* =========================
   GALLERIA / SERVIZI
========================= */
.anteprima-servizi {
  padding: 60px 20px;
  text-align: center;
}

.anteprima-servizi h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 30px;
}

.galleria {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.galleria img {
  width: 300px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galleria img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* =========================
   PROMOZIONI
========================= */
.griglia-promozioni {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.promo {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.promo:hover {
  transform: translateY(-4px);
}

.promo h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 10px;
}

.promo img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--black);
  color: var(--white);
  padding: 50px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

footer h3 {
  margin-bottom: 10px;
  color: var(--gold-primary);
  font-family: 'Playfair Display', serif;
}

footer a {
  color: var(--gold-light);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* =========================
   MODALE CONTATTI
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

.overlay.attivo {
  opacity: 1;
  visibility: visible;
}

.modale {
  background: var(--white);
  padding: 35px;
  border-radius: 14px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modale h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}

.modale input,
.modale textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
}

.modale input:focus,
.modale textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.checkbox {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

/* =========================
   BOTTONI
========================= */
.btn {
  background: var(--gold-primary);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  margin-top: 20px;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.chiudi {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   MESSAGGIO SUCCESSO
========================= */
.messaggio-successo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gold-primary);
  color: var(--white);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s;
  z-index: 2000;
}

.messaggio-successo.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 70px 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .galleria img {
    width: 100%;
  }
}
