/* ==========================================================================
   Sous Vintage Shop — Alzaia Naviglio Pavese 52, Milano
   Firma grafica: le volute liberty del logo sul vetro + toni pastello
   nostalgici. Hero editoriale sulla foto vera della vetrina.
   ========================================================================== */

:root {
  --panna: #F4ECDE;
  --panna-scura: #ECE0CD;
  --rosa: #EBD8D3;
  --rosa-fondo: #E9D3CE;
  --malva: #A9657A;
  --salvia: #7E9478;
  --magenta: #B23A64;
  --magenta-scuro: #973154;
  --inchiostro: #3A2A32;
  --grigio: #6C5A61;
  --linea: rgba(58, 42, 50, .16);
  --font-display: "Fraunces", "Georgia", serif;
  --font-testo: "Karla", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-testo);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--inchiostro);
  background: var(--panna);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
figure { padding: 0; }

a { color: inherit; }

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

.etsy-fascia :focus-visible,
.footer :focus-visible {
  outline-color: var(--panna);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 2000;
  padding: .6rem 1rem;
  background: var(--inchiostro);
  color: var(--panna);
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: .5rem; }

.mono {
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  padding: .85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-testo);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-small { padding: .5rem 1.15rem; font-size: .85rem; }

.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover { background: var(--magenta-scuro); }

.btn-quieto {
  background: transparent;
  color: var(--inchiostro);
  border-color: rgba(58, 42, 50, .35);
}
.btn-quieto:hover { border-color: var(--inchiostro); }

.btn-quieto-chiaro {
  background: transparent;
  color: var(--panna);
  border-color: rgba(244, 236, 222, .5);
}
.btn-quieto-chiaro:hover { border-color: var(--panna); }

/* ---------- intro "la vetrina incisa" ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--rosa);
  transition: opacity .55s ease;
}
.intro--via { opacity: 0; }

.intro-scena { text-align: center; }

.intro-volute {
  width: clamp(200px, 42vw, 300px);
  height: auto;
  margin: 0 auto .4rem;
}

.v-tratto {
  stroke: var(--malva);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: incidi 1.4s ease-out .2s forwards;
}
.v-sotto { animation-delay: 1s; animation-duration: .8s; stroke-dasharray: 150; stroke-dashoffset: 150; }
.v-punto {
  fill: var(--magenta);
  opacity: 0;
  animation: appare .4s ease-out 1.2s forwards;
}

@keyframes incidi { to { stroke-dashoffset: 0; } }
@keyframes appare { to { opacity: 1; } }

.intro-nome {
  margin-top: .6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--inchiostro);
  opacity: 0;
  animation: sale .6s ease-out 1.1s forwards;
}

.intro-riga {
  margin-top: .5rem;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--malva);
  opacity: 0;
  animation: sale .6s ease-out 1.4s forwards;
}

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

.intro-lock { overflow: hidden; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem clamp(1rem, 3vw, 1.6rem);
  background: rgba(244, 236, 222, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--inchiostro);
  white-space: nowrap;
}
.wordmark-sub { color: var(--malva); }

.nav { margin-left: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  background: transparent;
  border: 1px solid rgba(58, 42, 50, .35);
  border-radius: 999px;
  font-family: var(--font-testo);
  font-weight: 700;
  font-size: .85rem;
  color: var(--inchiostro);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.5rem);
}

.nav-menu a {
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--inchiostro);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover { border-bottom-color: var(--magenta); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
}

.lang-btn {
  background: none;
  border: none;
  padding: .25rem .3rem;
  font-family: var(--font-testo);
  font-weight: 700;
  font-size: .82rem;
  color: var(--grigio);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.lang-btn.is-active {
  color: var(--inchiostro);
  border-bottom-color: var(--magenta);
}
.lang-sep { color: rgba(58, 42, 50, .4); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem 1.2rem 1rem;
    background: var(--panna);
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 14px 28px rgba(58, 42, 50, .12);
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-menu a {
    padding: .7rem .2rem;
    border-bottom: 1px solid rgba(58, 42, 50, .08);
  }
  .nav-menu li:last-child a { border-bottom-color: transparent; }
}

@media (max-width: 560px) {
  .wordmark { font-size: 1.15rem; }
  .topbar { gap: .6rem; }
}

/* ---------- hero editoriale (split) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(3rem, 7vw, 5rem);
}

.hero-testo { max-width: 34rem; }

.eyebrow {
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--malva);
}

.hero-nome {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 7vw, 4.6rem);
  line-height: 1;
  color: var(--inchiostro);
}
.hero-nome em {
  display: block;
  font-style: italic;
  font-weight: 600;
  color: var(--magenta);
}

.hero-claim {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--inchiostro);
}

.hero-lead {
  max-width: 42ch;
  margin-top: .7rem;
  font-size: 1.05rem;
  color: var(--grigio);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.8rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--malva);
}
.badge-dot { color: var(--magenta); }

.hero-foto {
  position: relative;
}
.hero-foto::before {
  content: "";
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid var(--malva);
  border-radius: 6px;
  opacity: .5;
  z-index: 0;
}
.hero-foto img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 22px 48px rgba(58, 42, 50, .2);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .hero-testo { max-width: none; order: 2; }
  .hero-foto { order: 1; }
  .hero-foto img { aspect-ratio: 4 / 3.4; }
}

/* ---------- volute divisore ---------- */

.volute-divisore {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.volute-divisore svg {
  width: 96px;
  height: 20px;
}
.volute-divisore path {
  stroke: var(--malva);
  stroke-width: 1.6;
  fill: none;
  opacity: .8;
}

/* ---------- sezioni ---------- */

.sezione {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}

.sezione-rosa { background: var(--rosa-fondo); }

.sezione-titolo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  text-align: center;
}

.sezione-sub {
  margin-top: .6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  text-align: center;
  color: var(--malva);
}

/* ---------- il negozio ---------- */

.negozio-testo {
  max-width: 62ch;
  margin: 2.4rem auto 0;
  display: grid;
  gap: 1.2rem;
  font-size: 1.06rem;
}

.negozio-numeri {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 3rem;
  text-align: center;
}

.negozio-numeri li {
  display: grid;
  gap: .2rem;
  min-width: 8rem;
}

.numero {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--magenta);
}

.numero-cosa {
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grigio);
  max-width: 20ch;
}

/* ---------- cosa trovi (reparti) ---------- */

.reparti {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  max-width: 1100px;
  margin: 2.8rem auto 0;
}

.reparto {
  padding: 1.6rem 1.4rem 1.7rem;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--linea);
  border-radius: 8px;
}

.reparto-num {
  color: var(--magenta);
}

.reparto h3 {
  margin-top: .5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
}

.reparto p {
  margin-top: .4rem;
  font-size: .93rem;
  color: var(--grigio);
}

.cosa-nota {
  max-width: 56ch;
  margin: 2.4rem auto 0;
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--inchiostro);
}

@media (max-width: 960px) { .reparti { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .reparti { grid-template-columns: 1fr; max-width: 360px; } }

/* ---------- perché vintage ---------- */

.filosofia-cit {
  max-width: 620px;
  margin: 2.2rem auto 0;
  text-align: center;
}
.filosofia-cit p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.4;
  color: var(--inchiostro);
}

.filosofia-punti {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 980px;
  margin: 2.8rem auto 0;
}

.filo-punto {
  padding-top: 1.2rem;
  border-top: 2px solid var(--malva);
}

.filo-punto h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
}

.filo-punto p {
  margin-top: .4rem;
  font-size: .95rem;
  color: var(--grigio);
}

@media (max-width: 820px) {
  .filosofia-punti { grid-template-columns: 1fr; max-width: 480px; }
}

/* ---------- etsy / social ---------- */

.etsy-fascia {
  background: var(--malva);
  color: var(--panna);
  padding: clamp(3.5rem, 8vw, 5rem) 1.5rem;
}

.etsy-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.etsy-titolo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.1;
}

.etsy-testo {
  max-width: 54ch;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  color: rgba(244, 236, 222, .9);
}

.etsy-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 1.8rem;
}

/* ---------- orari e dove ---------- */

.orari-dove {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: 900px;
  margin: 2.8rem auto 0;
  align-items: start;
}

.orari-tabella {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.orari-tabella th,
.orari-tabella td {
  padding: .8rem .2rem;
  border-bottom: 1px solid var(--linea);
  text-align: left;
  font-weight: 400;
}

.orari-tabella td { text-align: right; font-variant-numeric: tabular-nums; }

.dove-indirizzo {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.4;
}

.dove-metro {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  font-size: .92rem;
  color: var(--grigio);
}

.metro-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2C9A5B;
  flex: none;
}

.dove-azioni {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.dove-note {
  margin-top: 1.4rem;
  font-size: .88rem;
  color: var(--grigio);
}

@media (max-width: 760px) {
  .orari-dove { grid-template-columns: 1fr; max-width: 480px; }
}

/* ---------- footer ---------- */

.footer {
  position: relative;
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--inchiostro);
  color: var(--panna);
  overflow: hidden;
}

.footer-wordmark {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(5rem, 18vw, 12rem);
  white-space: nowrap;
  color: rgba(244, 236, 222, .06);
  pointer-events: none;
  user-select: none;
}

.footer-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.footer-cols h3 {
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: .7rem;
}

.footer-cols p {
  font-size: .95rem;
  color: rgba(244, 236, 222, .88);
  margin-bottom: .3rem;
}

.footer-cols a {
  color: var(--panna);
  text-decoration-color: rgba(244, 236, 222, .4);
  text-underline-offset: 3px;
}
.footer-cols a:hover { text-decoration-color: var(--panna); }

.footer-legal {
  position: relative;
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 236, 222, .16);
  font-size: .82rem;
  color: rgba(244, 236, 222, .6);
}

@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- reveal on scroll ---------- */
/* Lo stato nascosto esiste solo se il JS è partito (classe .js sul root)
   e solo se l'utente non preferisce il movimento ridotto. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transform: none; transition: none; }
  .intro { display: none; }
}
