/* Quicksand (SIL Open Font License), inclusa nel sito: nessun caricamento da servizi esterni */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/quicksand-300.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --green: #1b5a45;
  --orange: #d57a2f;
  --grey: #000000;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Quicksand", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--green);
  background: var(--bg);
}

.coming-soon {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 2rem 1.25rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(70%, 340px);
  height: auto;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.soon {
  margin: 0;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--grey);
}

/* Home: logo + testo in alto, fascia di foto a tutta larghezza in basso */
.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  padding: clamp(1.5rem, 5vh, 3rem) 1.25rem;
  text-align: center;
}

.band {
  position: relative;
  width: 100%;
  height: clamp(220px, 45vh, 480px);
  overflow: hidden;
  background: #efefef;
}

/* Dissolvenza incrociata in puro CSS: 5 foto, 6 secondi ciascuna, ciclo di 30 secondi */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slide-fade 30s linear infinite;
}

.s1 { animation-delay: -1s; object-position: 70% 35%; }
.s2 { animation-delay: 6s;  object-position: 50% 35%; }
.s3 { animation-delay: 12s; object-position: 50% 30%; }
.s4 { animation-delay: 18s; object-position: 50% 38%; }
.s5 { animation-delay: 24s; object-position: 50% 72%; }

@keyframes slide-fade {
  0%      { opacity: 0; }
  3.33%   { opacity: 1; }
  23.33%  { opacity: 1; }
  26.67%  { opacity: 0; }
  100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .s1 { opacity: 1; }
}

/* Pagina 404 */
.coming-soon .lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--green);
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.button:hover { background: var(--orange); }
