:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #6b7280;
  --magenta: #d726a3;
  --border: #e5e7eb;
  --carbon: #0f0f10;
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92vw); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: saturate(120%) blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; font-family: 'Playfair Display', serif; font-weight: 600; letter-spacing: 0.2px; }
.logo-mark { color: var(--magenta); font-size: 18px; transform: translateY(2px); }
.logo-text { font-size: 20px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; padding: 6px 2px; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0%; height: 2px; background: var(--magenta); transition: width 160ms ease; }
.site-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.hero { position: relative; }
.hero-media { height: clamp(280px, 50vh, 520px); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(96%); }
.hero-content { padding: 36px 0 48px; }
.display { font-family: 'Playfair Display', serif; font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin: 0 0 12px; }
.intro { color: var(--muted); font-size: 18px; max-width: 70ch; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--border); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.btn.primary { background: var(--magenta); color: #fff; border-color: transparent; }
.btn.outline { background: transparent; color: var(--text); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(215,38,163,0.18); border-color: #d1d5db; }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section-head { text-align: center; max-width: 80ch; margin: 0 auto 28px; }
.section h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin: 0 0 10px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.image-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Covers */
.covers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cover-card { display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cover-card:hover { transform: translateY(-2px); border-color: #d1d5db; box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
.cover-card img { aspect-ratio: 3/4; object-fit: cover; }
.cover-meta { padding: 12px; }
.cover-meta h3 { font-size: 16px; margin: 0 0 4px; }
.cover-meta p { margin: 0; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq-list details { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 10px 0; transition: border-color .16s ease, background .16s ease; }
.faq-list details[open] { border-color: #d1d5db; background: #fafafa; }
.faq-list summary { cursor: pointer; font-weight: 500; }

/* Contacts */
.contacts { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: center; }
.contact-item .label { display: block; color: var(--muted); font-size: 13px; }
.social { display: flex; gap: 12px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); transition: border-color .16s ease, color .16s ease, transform .12s ease; }
.social-icon:hover { color: var(--magenta); border-color: var(--magenta); transform: translateY(-1px); }

/* Footer */
.site-footer {
  background: var(--carbon);
  color: #f5f5f5;
  padding: 28px 0;
  margin-top: 40px;
  text-align: center; /* centra il testo */
}

.site-footer a {
  color: #f5f5f5;
  text-decoration: underline;
}

.footer-inner {
  display: flex;              /* usa flexbox per l'allineamento */
  flex-direction: column;     /* posiziona tutto in colonna */
  align-items: center;        /* centra orizzontalmente */
  justify-content: center;    /* centra verticalmente (se serve) */
  gap: 6px;
  text-align: center;         /* ulteriore sicurezza */
}


/* Reveal animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .38s ease, transform .38s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .covers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .covers-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 0; }
}