/* ── Palette e font ────────────────────────────────────────── */
:root {
  --fondo: #f5f3ed;      /* avorio */
  --inchiostro: #1c1b19; /* titoli */
  --testo: #6e6b66;      /* testo corrente */
  --linea: #dedad1;      /* linee sottili */
  --vuoto: #e7e5e1;      /* riquadro se manca la foto */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (max-width: 700px) { html { scroll-padding-top: 24px; } }
body {
  background: var(--fondo);
  color: var(--testo);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Etichette maiuscole spaziate */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--testo);
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--fondo);
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px clamp(24px, 5vw, 48px) 22px;
  border-bottom: 1px solid var(--linea);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--inchiostro);
  line-height: 1.2;
}
.brand .label { font-size: 9px; }
.header-right { display: flex; align-items: center; gap: 36px; }
.nav { display: flex; gap: 28px; }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  letter-spacing: 0.18em; opacity: .5; transition: opacity .2s, color .2s;
}
.lang-btn.active, .lang-btn:hover { opacity: 1; color: var(--inchiostro); }
.lang-sep { font-size: 11px; color: var(--linea); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--inchiostro); }

/* ── Intro ─────────────────────────────────────────────────── */
.intro {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(80px, 14vw, 150px) 24px clamp(70px, 10vw, 120px);
  text-align: center;
}
.intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 60px);
  color: var(--inchiostro);
  line-height: 1.15;
  margin-bottom: 32px;
}
.intro p { font-size: clamp(16px, 1.8vw, 18px); }

/* ── Sezioni ───────────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px) clamp(80px, 10vw, 120px);
}
.section-title {
  padding-bottom: 16px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--linea);
}

/* ── Griglie ───────────────────────────────────────────────── */
.grid { display: grid; gap: 40px 20px; }
.grid-film { grid-template-columns: 1fr 1fr; }
.card-wide { grid-column: 1 / -1; }
.grid-libri { grid-template-columns: 1fr 1fr; }

/* ── Card ──────────────────────────────────────────────────── */
.card { display: flex; flex-direction: column; }
.thumb {
  overflow: hidden;
  background: var(--vuoto); /* solo sul contenitore, mai sull'immagine */
  margin-bottom: 16px;
}
.thumb-wide   { aspect-ratio: 16 / 9; }
.thumb-square { aspect-ratio: 16 / 10; }
.thumb-book   { aspect-ratio: 3 / 2; }
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.card:hover .thumb img { transform: scale(1.03); }
.card-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--inchiostro);
  line-height: 1.3;
  margin-bottom: 6px;
}
.card-link { font-size: 10px; transition: color .2s; }
.card:hover .card-link { color: var(--inchiostro); }

/* ── Contatti ──────────────────────────────────────────────── */
.contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-mail {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--inchiostro);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.contact-mail:hover { border-color: var(--inchiostro); }
.contact-tel { font-size: 18px; transition: color .2s; }
.contact-tel:hover { color: var(--inchiostro); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px clamp(24px, 5vw, 48px) 48px;
  border-top: 1px solid var(--linea);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.site-footer p { margin-bottom: 4px; }
.site-footer a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--inchiostro); }
.site-footer .legal {
  margin-top: 14px;
  max-width: 620px;
  font-size: 11px;
  line-height: 1.6;
  opacity: .8;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .site-header { position: static; flex-direction: column; align-items: flex-start; padding-top: 22px; }
  .header-right { width: 100%; justify-content: space-between; gap: 16px; }
  .nav { gap: 22px; }
  .grid-film { gap: 32px 14px; }
  .grid-libri { grid-template-columns: 1fr; }
  .card-title { font-size: 17px; }
}
