@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/josefin-sans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/josefin-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --marrone: #5a4217;
  --marrone-testo: #2d3438;
  --marrone-tenue: #66737b;
  --verde: #008b57;
  --rosso: #ca4645;
  --crema: #fbfcfd;
  --carta: #ffffff;
  --bordo: rgba(45, 72, 88, 0.14);
  --font-display: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --font-testo: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--crema);
  background-image: url("../img/montagne.svg?v=20261003");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% clamp(110px, 22vh, 230px);
  color: var(--marrone-testo);
  font-family: var(--font-testo);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.contenitore {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}

.attesa {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vh, 72px) 0 clamp(20px, 4vh, 44px);
  text-align: center;
}

.logo {
  width: min(780px, 50vw);
  margin: 0 auto;
}

.logo img {
  width: 100%;
  height: auto;
}

.occhiello {
  margin-top: clamp(18px, 3.2vh, 32px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.8rem, 0.95vw, 1.05rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--marrone-tenue);
}

.occhiello .punto {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0.8em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.26em;
}

.tricolore {
  display: block;
  width: 72px;
  height: 3px;
  margin: clamp(18px, 3.4vh, 34px) auto;
  background: linear-gradient(90deg, var(--verde) 0 50%, var(--rosso) 50% 100%);
  border-radius: 2px;
}

.annuncio {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--marrone);
}

.testo {
  max-width: 40em;
  margin: clamp(10px, 1.8vh, 18px) auto 0;
  font-size: clamp(1.02rem, 1.35vw, 1.4rem);
}

.lingue {
  max-width: 52em;
  margin: 8px auto 0;
  font-size: clamp(0.82rem, 0.95vw, 1.02rem);
  color: var(--marrone-tenue);
}

.lingue span {
  display: inline-block;
}

.contatti {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(26px, 5.5vh, 60px);
  background: var(--bordo);
  border-top: 1px solid var(--bordo);
  border-bottom: 1px solid var(--bordo);
}

.contatti li {
  background: var(--crema);
}

.contatto {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: clamp(18px, 3.4vh, 34px) 12px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.35s var(--curva);
}

.contatto svg {
  box-sizing: border-box;
  width: clamp(50px, 4vw, 60px);
  height: clamp(50px, 4vw, 60px);
  margin-bottom: clamp(10px, 1.6vh, 16px);
  padding: clamp(13px, 1.05vw, 16px);
  background: var(--carta);
  border: 1px solid var(--bordo);
  border-radius: 50%;
  fill: none;
  stroke: var(--marrone);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color 0.35s var(--curva), border-color 0.35s var(--curva), stroke 0.35s var(--curva), transform 0.35s var(--curva);
}

.etichetta {
  font-weight: 500;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.3;
  color: var(--marrone);
  transition: color 0.35s var(--curva);
}

.valore {
  margin-top: 2px;
  font-size: clamp(0.84rem, 0.92vw, 0.98rem);
  line-height: 1.35;
  color: var(--marrone-tenue);
  overflow-wrap: anywhere;
}

.contatto:hover {
  background: var(--carta);
}

.contatto:hover svg {
  background: var(--verde);
  border-color: var(--verde);
  stroke: #ffffff;
  transform: translateY(-3px);
}

.contatto:hover .etichetta {
  color: var(--verde);
}

.contatto:active svg {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.contatto:focus-visible,
.piede a:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: -2px;
}

.piede a:focus-visible {
  outline-offset: 3px;
}

.piede {
  flex-shrink: 0;
  padding: 14px 0 max(16px, env(safe-area-inset-bottom));
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--marrone-testo);
  text-align: center;
}

.piede-riga {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
}

.piede-riga + .piede-riga {
  margin-top: 4px;
}

.piede a {
  text-decoration: underline;
  text-decoration-color: rgba(45, 72, 88, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--curva);
}

.piede a:hover {
  text-decoration-color: currentColor;
}

.legale .contenitore {
  max-width: 920px;
}

.legale {
  flex: 1 0 auto;
  padding: clamp(32px, 6vh, 64px) 0 48px;
}

.legale .logo {
  width: min(300px, 70vw);
  margin: 0;
}

.legale .logo a {
  display: block;
}

.legale h1 {
  margin-top: 36px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: var(--marrone);
}

.legale h2 {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--marrone);
}

.legale p,
.legale ul {
  max-width: 44em;
  margin-top: 10px;
}

.legale ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legale .aggiornamento {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--marrone-tenue);
}

.bottone {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border: 1px solid var(--marrone);
  border-radius: 999px;
  color: var(--marrone);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s var(--curva), color 0.3s var(--curva);
}

.bottone:hover {
  background: var(--marrone);
  color: var(--carta);
}

.bottone:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

@keyframes entra {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes allarga {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.attesa .logo,
.attesa .occhiello,
.attesa .annuncio,
.attesa .testo,
.attesa .lingue,
.attesa .contatti li {
  animation: entra 0.9s var(--curva) both;
}

.attesa .occhiello { animation-delay: 0.12s; }
.attesa .tricolore { animation: allarga 0.9s var(--curva) 0.3s both; }
.attesa .annuncio { animation-delay: 0.22s; }
.attesa .testo { animation-delay: 0.3s; }
.attesa .lingue { animation-delay: 0.36s; }
.attesa .contatti li:nth-child(1) { animation-delay: 0.42s; }
.attesa .contatti li:nth-child(2) { animation-delay: 0.48s; }
.attesa .contatti li:nth-child(3) { animation-delay: 0.54s; }
.attesa .contatti li:nth-child(4) { animation-delay: 0.6s; }
.attesa .contatti li:nth-child(5) { animation-delay: 0.66s; }
.attesa .contatti li:nth-child(6) { animation-delay: 0.72s; }

@media (max-width: 1100px) {
  .contatti {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .logo {
    width: min(620px, 68vw);
  }
}

@media (max-width: 560px) {
  .attesa {
    padding: 26px 0 18px;
  }
  .logo {
    width: 90vw;
  }
  .occhiello {
    margin-top: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
  .occhiello .punto {
    display: block;
    width: 0;
    height: 5px;
    margin: 0;
    background: none;
  }
  .tricolore {
    margin: 16px auto;
  }
  .testo {
    margin-top: 8px;
  }
  .contatti {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 22px -16px 0;
  }
  .contatto {
    padding: 14px 8px;
  }
  .contatto svg {
    width: 44px;
    height: 44px;
    padding: 11px;
    margin-bottom: 8px;
  }
  .valore {
    font-size: 0.8rem;
  }
  .piede {
    font-size: 0.72rem;
  }
  .piede-riga {
    gap: 0 12px;
  }
}

@media (max-height: 760px) and (min-width: 561px) {
  .attesa {
    padding: 22px 0 16px;
  }
  .logo {
    width: min(640px, 46vw);
  }
  .tricolore {
    margin: 16px auto;
  }
  .contatti {
    margin-top: 24px;
  }
  .contatto {
    padding: 16px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
