/*
 * Il sito di Arboris (templates/sito/): scritto a mano, fuori da Tailwind, perché non ha niente in comune con il
 * gestionale tranne il font. Un solo aspetto, scuro: il logo è pensato per un fondo verde.
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght.938c6e8019b6.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght.6d36d5bdedfa.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Salvia scuro: abbastanza scuro perché le lettere chiare del logo e i testi si leggano. */
  --fondo: #566d5c;
  --fondo-alto: #5f7764;
  --fondo-basso: #4a5f50;
  --testo: #fbfcf6;
  --testo-tenue: #e3ebdf;
  --oro: #f3dc8a;
  --oro-scuro: #2a2105;
  --velo: rgb(255 255 255 / 0.09);
  --bordo: rgb(255 255 255 / 0.22);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--testo);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 3px solid var(--oro);
  outline-offset: 3px;
  border-radius: 8px;
}

.scena {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(900px 520px at 50% 0%, rgb(226 194 90 / 0.08), transparent 70%),
    radial-gradient(1400px 900px at 50% -10%, var(--fondo-alto) 0%, var(--fondo) 55%, var(--fondo-basso) 100%);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.contenuto {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) max(20px, env(safe-area-inset-right, 0px)) 48px
    max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contenuto.stretto {
  max-width: 560px;
  justify-content: center;
}

.logo {
  width: min(440px, 86vw);
  height: auto;
}

.logo.piccolo {
  width: min(260px, 70vw);
  margin-bottom: 28px;
}

.in-arrivo {
  margin: 30px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 13px;
  border: 1px solid rgb(226 194 90 / 0.55);
  border-radius: 999px;
  color: var(--oro);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.punto {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oro);
  box-shadow: 0 0 0 0 rgb(226 194 90 / 0.6);
  animation: battito 2.4s ease-out infinite;
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sotto {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--testo-tenue);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  text-wrap: pretty;
}

.assaggi {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 12px;
  text-align: left;
}

.assaggi li {
  background: var(--velo);
  border: 1px solid var(--bordo);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--testo-tenue);
  font-size: 0.98rem;
  line-height: 1.5;
}

.assaggi strong {
  display: block;
  color: var(--testo);
  font-weight: 800;
}

@media (min-width: 760px) {
  .assaggi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.azioni {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.bottone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid var(--oro);
  background: var(--oro);
  color: var(--oro-scuro);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.bottone:hover {
  background: #edd27a;
  border-color: #edd27a;
}

.bottone.secondario {
  background: transparent;
  border-color: var(--bordo);
  color: var(--testo);
}

.bottone.secondario:hover {
  border-color: var(--testo);
}

.scrivete {
  margin: 30px 0 0;
  color: var(--testo-tenue);
}

.scrivete a {
  font-weight: 700;
}

.piede {
  padding: 22px max(20px, env(safe-area-inset-right, 0px)) 26px max(20px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--bordo);
  text-align: center;
  color: var(--testo-tenue);
  font-size: 0.88rem;
}

.piede p {
  margin: 0;
}

/*
 * L'apertura: il logo e i testi salgono una volta, poi tutto resta fermo tranne il punto. Solo lo spostamento,
 * mai la trasparenza: se il browser rallenta l'animazione (una scheda in secondo piano) i testi si leggono lo stesso.
 */
.contenuto > * {
  animation: comparsa 0.7s ease-out both;
}

.contenuto > :nth-child(2) {
  animation-delay: 0.12s;
}

.contenuto > :nth-child(3) {
  animation-delay: 0.2s;
}

.contenuto > :nth-child(n + 4) {
  animation-delay: 0.28s;
}

@keyframes comparsa {
  from {
    transform: translateY(12px);
  }
}

@keyframes battito {
  0% {
    box-shadow: 0 0 0 0 rgb(226 194 90 / 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgb(226 194 90 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contenuto > *,
  .punto {
    animation: none;
  }
}
