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

/* =========================
   STRUTTURA GENERALE
========================= */
html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
  background: url('../img/sfondo.jpg') no-repeat center center fixed;
  background-size: cover;

  display: flex;
  flex-direction: column;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.5rem 1rem;
  background-color: #000;
  border-bottom: 1px solid #444;
}

.logo img {
  height: 32px;
  display: block;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.menu .active a {
  color: gold;
}

/* =========================
   CONTENUTO GENERICO
========================= */
main {
  flex: 1;
}

/* contenuto centrato (home, success, error) */
.centrato-page {
  min-height: 100vh;
  padding: 6rem 1rem 3rem;

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

/* =========================
   TESTI
========================= */
.titolo {
  color: gold;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.sottotitolo {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* =========================
   BOTTONI
========================= */
.button {
  display: inline-block;
  background-color: orange;
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 2rem;
}

/* =========================
   FOOTER
========================= */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  border-top: 1px solid #444;
}

/* =========================
   FADE-IN ANIMATION
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* =========================
   SERVIZI
========================= */
.servizi-lista {
  list-style: none;
  margin-top: 2rem;
}

.servizi-lista li {
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

.servizi-lista li:hover {
  color: orange;
}

/* =========================
   CONTATTI
========================= */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;

  padding: 6rem 2rem 3rem;
}

.contact-left {
  max-width: 550px;
  flex: 1;
}

.contact-left p {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 4px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background-color: orange;
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

/* honeypot anti-spam */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* MAPPA */
.contact-right {
  max-width: 550px;
  flex: 1;
}

.contact-right iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 4px;
}

/* =========================
   PRIVACY
========================= */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  line-height: 1.6;
}

.privacy-content h2 {
  color: orange;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.privacy-content ul {
  margin-left: 1.2rem;
  margin-top: 0.5rem;
}

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

  .titolo {
    font-size: 1.5rem;
  }

  .sottotitolo {
    font-size: 1rem;
  }

  .contact-container {
    flex-direction: column !important;
    align-items: center !important;
  }

  .contact-left,
  .contact-right {
    max-width: 100% !important;
    width: 100% !important;
  }

  .contact-right {
    margin-top: 2rem;
  }

  .contact-right iframe {
    height: 300px !important;
  }
}
