/* Stile del blog — rossellailacqua.it
   Stessi colori e font del sito: sfondo scuro, titoli Cormorant Garamond, testo Inter.
   Per cambiare un colore o la larghezza delle pagine basta toccare le variabili qui sotto. */

:root {
  --bg: #0A0A0A;
  --text: #FFFCFC;
  --text-soft: rgba(255, 252, 252, 0.85);
  --muted: rgba(255, 252, 252, 0.55);
  --line: rgba(255, 252, 252, 0.14);
  --accent: #3E8B93;
  --accent-hover: #4aa0a9;
  --accent-light: #76C8BD;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --pad: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(44px, 7vw, 72px); }
h1 em, h2 em { font-style: italic; color: var(--accent-light); }

/* ---------- Intestazione ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--accent-light); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-hover); }
.site-nav a.btn { color: var(--text); }

/* ---------- Indice del blog ---------- */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 150px var(--pad) 80px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.intro {
  max-width: 620px;
  font-size: 18px;
  color: var(--text-soft);
  margin-top: 24px;
}

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 56px 40px;
  margin-top: 72px;
}
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #161616; }
.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card:hover img { transform: scale(1.04); }
.post-meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 10px;
}
.post-card h2 { font-size: 32px; line-height: 1.1; margin-bottom: 12px; }
.post-card p { color: var(--text-soft); }
.more {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.empty {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.cta-strip {
  border-top: 1px solid var(--line);
  padding: 96px var(--pad);
  text-align: center;
}
.cta-strip h2 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 16px; }
.cta-strip p { color: var(--text-soft); margin-bottom: 32px; }

/* ---------- Articolo ---------- */
.article-head {
  max-width: 860px;
  margin: 0 auto;
  padding: 150px var(--pad) 0;
}
.crumbs {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-light); }
.article-head h1 { font-size: clamp(40px, 6vw, 64px); }
.article-meta {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-img { max-width: 1100px; margin: 56px auto 0; padding: 0 var(--pad); }
.hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--pad) 40px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-soft);
}
.prose p { margin-bottom: 1.4em; }
.prose .lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.35;
  color: var(--text);
}
.prose h2 { font-size: 40px; margin: 2em 0 0.6em; color: var(--text); }
.prose h3 { font-size: 28px; margin: 1.6em 0 0.5em; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.4em 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--accent-light); text-underline-offset: 3px; }
.prose a.btn { color: var(--text); text-decoration: none; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 28px;
  margin: 2em 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.35;
  color: var(--text);
}
.prose figure { margin: 2.4em 0; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

.cta-box { margin-top: 3em; padding: 40px; border: 1px solid var(--line); }
.cta-box h2 { font-size: 34px; margin: 0 0 12px; }
.cta-box p { margin-bottom: 24px; }
.author {
  margin-top: 3em;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}
.back {
  display: inline-block;
  margin-top: 2em;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
}

/* ---------- Piè di pagina ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 48px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Telefono ---------- */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .site-header { padding: 14px var(--pad); }
  .logo { font-size: 12px; letter-spacing: 0.2em; }
  .site-nav { gap: 16px; }
  .site-nav a.btn { padding: 9px 14px; letter-spacing: 0.14em; }
  .site-nav a:not(.btn):not(.keep) { display: none; }
  .page, .article-head { padding-top: 110px; }
  .posts { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .prose { font-size: 17px; }
  .prose .lead { font-size: 23px; }
  .prose h2 { font-size: 32px; }
  .prose blockquote { font-size: 23px; padding-left: 20px; }
  .cta-box { padding: 28px 22px; }
  .hero-img { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- Articolo "luce": foto + schema, riepilogo, numerazione ---------- */
.prose h2 .n {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.prose figure.pair, .prose figure.wide { margin: 2.6em -120px; }
.pair-img { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prose figure.pair img, .prose figure.wide img { border-radius: 4px; }
.prose figure.pair figcaption { padding: 0 120px; }
@media (max-width: 960px) {
  .prose figure.pair, .prose figure.wide { margin-left: 0; margin-right: 0; }
  .prose figure.pair figcaption { padding: 0; }
}
@media (max-width: 640px) {
  .pair-img { grid-template-columns: 1fr; }
  .prose figure.wide { overflow-x: auto; }
  .prose figure.wide img { max-width: none; width: 900px; }
}
