/* Poppins ospitato in locale (niente Google Fonts esterno, ok GDPR) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

/* Colori presi dal logo */
:root {
  --azzurro: #2da5d2;   /* sfondo del logo */
  --blu: #1e1d3f;       /* anello e slogan */
  --bianco: #ffffff;    /* scritta "Lepore" e goccia */

  /* Unità di spaziatura che si adatta all'altezza dello schermo */
  --s: clamp(4px, 1.4vh, 12px);
}

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

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

/* La pagina occupa esattamente l'altezza dello schermo: niente scroll */
html, body { height: 100%; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;           /* altezza reale su mobile (barra del browser esclusa) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--s) * 1.5);
  padding: calc(var(--s) * 2) 16px;
  background: var(--blu);
  color: var(--blu);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(12px, 1.85vh, 16px);
  line-height: 1.4;
}

/* Card: stesso azzurro del logo, così l'immagine si fonde con lo sfondo */
.card {
  width: 100%;
  max-width: 520px;
  background: var(--azzurro);
  border-radius: 24px;
  padding: calc(var(--s) * 2.5) clamp(16px, 5vw, 28px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.brand { margin-bottom: calc(var(--s) * 2); }

.brand h1 { margin: 0; line-height: 0; }

/* Il logo si riduce in base all'altezza disponibile */
.logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 340px);
  max-height: 26vh;
  max-height: 26dvh;
  margin: 0 auto;
}

/* Contatti: riquadri bianchi come il cerchio del logo, testo blu */
.contacts { display: grid; gap: var(--s); }

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--s) 16px;
  background: var(--bianco);
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--blu);
  text-decoration: none;
  font-weight: 600;
  transition: border-color .15s, transform .15s;
}

.contact:hover, .contact:focus-visible {
  border-color: var(--blu);
  transform: translateY(-1px);
  outline: none;
}

.contact svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: var(--azzurro);
}

.contact span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }

.contact small {
  font-size: .72em;
  font-weight: 700;
  color: var(--azzurro);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hours {
  margin-top: calc(var(--s) * 1.8);
  padding-top: calc(var(--s) * 1.5);
  border-top: 2px solid rgba(30, 29, 63, .2);
  text-align: center;
}

.hours h2 {
  margin: 0 0 2px;
  font-size: .75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hours p { margin: 0; font-weight: 600; }

/* Footer sullo sfondo blu della pagina */
footer {
  max-width: 520px;
  text-align: center;
  font-size: .78em;
  color: rgba(255, 255, 255, .75);
}

footer p { margin: 0 0 2px; }
footer strong { color: var(--bianco); }
.copy { font-size: .92em; }

/* Telefoni piccoli in verticale: compatta ancora un po' */
@media (orientation: portrait) and (max-height: 700px) {
  :root { --s: clamp(4px, 1.1vh, 8px); }
  .logo { max-height: 22vh; max-height: 22dvh; }
  .contact { gap: 10px; padding-inline: 12px; }
  .contact svg { width: 18px; height: 18px; }
  footer { font-size: .72em; }
}

/* Schermi bassi in orizzontale (telefono girato): logo a sinistra, contatti a destra */
@media (orientation: landscape) and (max-height: 560px) {
  :root { --s: clamp(4px, 1.6vh, 10px); }

  body { font-size: clamp(12px, 3vh, 15px); }

  .card {
    max-width: 820px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-rows: auto auto;
    column-gap: 24px;
    align-items: center;
  }

  .brand { grid-row: 1 / span 2; margin: 0; }

  .logo { max-height: 62vh; max-height: 62dvh; }

  .hours { margin-top: var(--s); padding-top: var(--s); }

  footer { max-width: 820px; }

  footer br { display: none; }
}