/* Font self-hosted (niente Google Fonts esterni → nessun trasferimento dati a terzi) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --orange: #EE7217;
  --orange-deep: #C85A0C;
  --ink: #0A0A0A;
  --ink-2: #141210;
  --cream: #F4EEE6;
  --muted: #A39B92;
  --line: rgba(244, 238, 230, .14);
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

/* reset minimo (al posto del reboot di Bootstrap) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-tap-highlight-color: transparent;
  background: var(--ink);
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "content visual"
    "ticker  ticker";
}

/* ---------- Contenuto ---------- */
.content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding: clamp(28px, 5vw, 64px) var(--gutter);
  position: relative;
  z-index: 1;
}
.brand { width: min(100%, 620px); margin: 0; }
.brand img { width: 100%; height: auto; }
.brand figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: .9em;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(9px, 1.25vw, 15px);
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-style: italic;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow .opening-date {
  font-size: 1.6em;
  letter-spacing: .02em;
  color: var(--cream);
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(238, 114, 23, .6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(238, 114, 23, .55); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(238, 114, 23, 0); }
}

h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(40px, 5.2vw, 88px);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--orange);
}
.lead {
  margin: 24px 0 0;
  max-width: 34ch;
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--muted);
  text-wrap: pretty;
}
.lead strong { color: var(--cream); font-weight: 600; }

/* contatti: indirizzo + Instagram */
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 3.5vw, 56px);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
}
.contact:hover .value { color: var(--orange); text-decoration-color: var(--orange); }
.contact:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; border-radius: 6px; }
.contact svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--orange); }
.contact span { display: block; }
.contact .label {
  font-style: italic;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact .value {
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.3;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

/* ---------- Visual ---------- */
.visual {
  grid-area: visual;
  position: relative;
  overflow: hidden;
  background: #3a1203 url("../dunk-hero-background.webp") center / cover no-repeat;
}
.visual img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 30px rgba(20, 5, 0, .45));
}
/* sfumatura verso il pannello scuro */
.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(10, 10, 10, .55) 12%, rgba(10, 10, 10, 0) 38%);
  pointer-events: none;
}

/* ---------- Ticker ---------- */
.ticker {
  grid-area: ticker;
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px solid var(--ink);
  position: relative;
  z-index: 2;
  box-shadow: 0 -12px 32px rgba(238, 114, 23, .25);
}
.ticker-track {
  display: inline-flex;
  animation: marquee 32s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: clamp(14px, 2vh, 22px) 16px;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(18px, 1.9vw, 30px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ticker span::after {
  content: "";
  width: .4em; height: .4em;
  background: var(--ink);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Desktop: pagina bloccata a una schermata ---------- */
@media (min-width: 861px) {
  html, body { overflow: hidden; }
  .page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }
  /* testo centrato tra logo e ticker: stesso spazio sopra e sotto */
  .content {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    min-height: 0;
    padding-block: clamp(20px, 5vh, 64px) 0;
  }
  .brand { width: min(100%, 620px, 58vh); }
  .intro { align-self: center; padding-block: clamp(20px, 4vh, 56px); }
  h1 { font-size: min(5.2vw, 9.5vh, 88px); }
  .eyebrow { margin-bottom: clamp(12px, 2.2vh, 22px); }
  .lead { margin-top: clamp(12px, 2.4vh, 24px); }
  .contacts { margin-top: clamp(16px, 3.6vh, 36px); }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "visual"
      "content"
      "ticker";
  }
  .visual { height: 46svh; min-height: 300px; }
  .visual img { width: 105%; }
  .visual::after {
    background: linear-gradient(0deg, var(--ink) 0%, rgba(10, 10, 10, 0) 40%);
  }
  .content { gap: 40px; padding-top: 0; margin-top: -12px; }
  .brand { width: min(100%, 460px); }
  .brand figcaption { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .visual img, .ticker-track, .eyebrow::before { animation: none; }
}
