/* ==========================================================================
   L'ARTIZZERIA DI MURGO DORA — direzione "atelier / galleria d'arte"
   Concept: "l'arte dell'impasto". Ogni pizza è un'opera incorniciata con
   targhetta da museo. Canvas gesso/bianco-tela + inchiostro grafite +
   UNICO accento cobalto elettrico (la loro parete di fondo, photo-01).
   Type: Syne (arte) + Epilogue (didascalia). Raggio 0px ovunque.
   Mobile-first: progettato a 390px, poi min-width per il desktop.
   ========================================================================== */

:root {
  --bg: #f4f1ea;            /* gesso / bianco-tela caldo */
  --alt: #ece7db;           /* banda alternata */
  --plate: #fbf9f4;         /* superficie / passe-partout della cornice */
  --hairline: #ddd6c8;      /* filetti */
  --ink: #17161a;           /* inchiostro grafite quasi-nero (~14:1) */
  --muted: #6a6558;         /* testo secondario (~5,1:1 AA) */
  --accent: #1a44c9;        /* COBALTO elettrico — azione/link/cornice */
  --accent-bright: #2455e6; /* cobalto vivo — solo display grande */
  --accent-deep: #163ab8;   /* banda color-block */
  --accent-ink: #f4f4ff;    /* testo su cobalto */
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-body: "Epilogue", -apple-system, "Segoe UI", sans-serif;
  --measure: 60ch;
  --edge: 1.25rem;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: 0.85rem; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--muted); }
p { max-width: var(--measure); }

/* -- kicker / eyebrow ------------------------------------------------------ */
.kicker {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 1rem;
}
.kicker-center { text-align: center; }

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem var(--edge);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.topbar-cta {
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 1rem;
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 0.72rem 1.4rem; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) {
  .btn:hover { background: var(--ink); color: var(--bg); }
  .btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }
}
.btn:active { transform: translateY(1px); }

/* -- the FRAME device (cornice-quadro) + museum label ---------------------- */
.opera { margin: 0; }
.frame {
  border: 1px solid var(--accent);
  background: var(--plate);
  padding: clamp(8px, 2.5vw, 13px);
}
.frame img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;   /* mai una torre a 390px */
  display: block;
}
.opera-hero .frame img { aspect-ratio: 3 / 2; }
.label {
  margin-top: 0.7rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.7rem;
}
.label-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.label-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.4; max-width: 42ch; }

/* -- hero ------------------------------------------------------------------ */
.hero {
  padding: clamp(2.2rem, 7vh, 4rem) var(--edge) 3rem;
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: 2.2rem;
}
.hero h1 { font-size: clamp(3rem, 15vw, 5.4rem); font-weight: 800; margin-bottom: 1.1rem; }
.wordmark-sub {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 3.4vw, 1.15rem);
  font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.6rem;
}
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 38ch; margin-bottom: 1.7rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* -- statement ------------------------------------------------------------- */
.statement { padding: 3rem var(--edge); max-width: var(--measure); margin: 0 auto; }
.rating { margin-top: 1.1rem; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.rating-count { color: var(--muted); font-weight: 500; }
.chips { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  border: 1px solid var(--hairline); background: var(--plate);
  padding: 0.35rem 0.8rem; font-size: 0.86rem; font-weight: 500; color: var(--ink);
}

/* -- feature (unico split img+testo) --------------------------------------- */
.feature {
  background: var(--alt);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 3.2rem var(--edge);
}
.feature-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.8rem; }
.feature-copy { align-self: center; }

/* -- gallery (le opere) ---------------------------------------------------- */
.gallery { padding: 3.4rem var(--edge); max-width: 1180px; margin: 0 auto; text-align: center; }
.gallery h2 { margin-bottom: 0.6rem; }
.gallery-intro { color: var(--muted); max-width: 52ch; margin: 0 auto 2.2rem; }
.opere-grid { display: grid; gap: 2rem; text-align: left; }

/* -- quote band (color block cobalto) -------------------------------------- */
.quote-band { background: var(--accent-deep); color: var(--accent-ink); padding: 3.6rem var(--edge); }
.quote-band blockquote { max-width: 34rem; margin: 0 auto; text-align: center; }
.quote-band p {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 5.5vw, 2rem); line-height: 1.25; letter-spacing: -0.01em;
  max-width: none;
}
.quote-band cite {
  display: block; margin-top: 1.2rem; font-style: normal;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-ink) 78%, transparent);
}

/* -- info (orari & dove) --------------------------------------------------- */
.info { padding: 3.4rem var(--edge); max-width: 1000px; margin: 0 auto; }
.info-grid { display: grid; gap: 2.4rem; margin-top: 1.4rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours td { padding: 0.42rem 0; border-bottom: 1px solid var(--hairline); color: var(--muted); }
.hours td:first-child { color: var(--ink); font-weight: 500; padding-right: 1.5rem; }
.hours tr.today td { color: var(--accent); font-weight: 700; }
.hours-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.9rem; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.9; }
.contact-lines a { font-weight: 600; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 2.8rem var(--edge) 3.2rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--hairline);
}
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 0.5rem; max-width: none; }
.footer-brand span { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 0.2rem; }
.footer p { max-width: none; }
.demo-note { margin-top: 0.7rem; opacity: 0.75; }

/* -- reveal on-scroll (solo con JS + motion consentito) -------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ========================================================================== */
/*  DESKTOP  (>= 760px)                                                        */
/* ========================================================================== */
@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
    padding-top: clamp(3rem, 8vh, 5rem);
  }
  .hero-copy { order: 1; }
  .opera-hero { order: 2; }

  .feature-inner { grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }
  .feature .opera { order: 2; }
  .feature-copy { order: 1; }
  /* su desktop l'alveolatura respira in un formato più ampio */
  .feature .frame img { aspect-ratio: 3 / 2; }

  .opere-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: clamp(4rem, 6.2vw, 5.6rem); }
}
