* { box-sizing: border-box; }

:root {
  --verde: hsla(127.16, 73.63%, 17.84%, 1);
  --verde-hover: hsla(127.16, 73.63%, 12%, 1);
}

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

/* La foto è lo sfondo della pagina; il video (se parte) ci va sopra, il riquadro sopra il video. */
body {
  font-family: "PT Serif", Georgia, serif;
  color: #2b2b2b;
  background: #fff url("assets/sfondo.jpg") center / cover no-repeat fixed;
}

/* Il riquadro è una colonna a sinistra, alta quanto tutta la finestra. */
.page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Il video sta fisso a tutto schermo dietro il riquadro; la dimensione dell'iframe
   la calcola lo script in index.html sulle proporzioni vere del video, così lo
   riempie come una foto "cover" senza bande ai lati. */
.bg-video {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.bg-video.is-playing { opacity: 1; }
.bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 10px 0 40px rgba(0, 0, 0, .2);
}

h1, h2 { font-family: "Marcellus", Georgia, serif; }

.logo { max-width: 220px; width: 70%; height: auto; margin-bottom: 1rem; }

.title {
  font-weight: normal;
  font-size: clamp(2.5rem, 10vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: .03em;
  color: var(--verde);
}

h2 {
  font-weight: normal;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin: 2.5rem 0 .75rem;
}

a { color: var(--verde); }

.email { font-size: 1.35rem; margin: 0 0 1.25rem; overflow-wrap: anywhere; }

.links { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin: 0; }

address { font-style: normal; line-height: 1.6; margin-bottom: 0; }

.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 0;
  background: var(--verde);
  color: #fff;
  text-decoration: none;
  font-family: "Marcellus", Georgia, serif;
  font-size: .95rem;
  letter-spacing: .03em;
}
.btn:hover { background: var(--verde-hover); }
