/* =====================================================================
   ZampaGentile · Pagine statiche (cookie, privacy, blog)
   Condiviso da: cookie.html, privacy.html, blog/*.html
   ===================================================================== */
@import url('colors_and_type.css');

:root {
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Lato', sans-serif;
  --font-ui:      'Montserrat', sans-serif;
  --px:  clamp(1.25rem, 5vw, 5rem);
  --max: 1240px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--zg-cream);
  color: var(--zg-stone-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--px);
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.18);
}
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav__links a {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__links a.active { border-bottom: 2px solid var(--zg-orange-500); padding-bottom: 2px; }
.nav__cta {
  background: var(--zg-orange-500) !important; color: #fff !important;
  padding: 0.5rem 1.25rem !important; border-radius: 2px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav__cta:hover { background: var(--zg-orange-600) !important; transform: translateY(-1px); }
.nav__ham {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav__ham span { display: block; width: 22px; height: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
.nav__ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__ham.open span:nth-child(2) { opacity: 0; }
.nav__ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__drawer {
  display: none; position: fixed; inset: 0; background: var(--zg-blue-900);
  z-index: 199; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.nav__drawer.open { display: flex; }
.nav__drawer a { font-family: var(--font-ui); font-size: 1.3rem; font-weight: 700; color: #fff; }
.nav__drawer .drawer-cta {
  background: var(--zg-orange-500); color: #fff !important;
  padding: 0.7rem 1.8rem; border-radius: 2px; font-size: 1rem !important;
}

/* ── PAGE HERO (cookie, privacy) ── */
.page-hero {
  background: var(--zg-blue-900);
  padding: 7rem var(--px) 3.5rem;
  border-bottom: 3px solid var(--zg-orange-500);
}
.page-hero__inner { max-width: 800px; margin: 0 auto; }
.page-hero__eyebrow {
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--zg-orange-500); margin-bottom: 0.75rem;
}
.page-hero__title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 0.6rem;
  letter-spacing: -0.025em;
}
.page-hero__meta { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── POLICY BODY ── */
.policy-body { max-width: 800px; margin: 0 auto; padding: 4rem var(--px) 6rem; }
.policy-body h2 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  color: var(--zg-blue-900); margin-top: 3rem; margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--zg-stone-200);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body h3 {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--zg-blue-900); margin-top: 1.75rem; margin-bottom: 0.5rem;
}
.policy-body p { font-size: 0.97rem; line-height: 1.82; margin-bottom: 1rem; color: var(--zg-stone-500); }
.policy-body ul, .policy-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.policy-body li { font-size: 0.97rem; line-height: 1.78; margin-bottom: 0.4rem; color: var(--zg-stone-500); }
.policy-body a { color: var(--zg-orange-500); text-decoration: underline; text-underline-offset: 2px; }
.policy-body a:hover { color: var(--zg-orange-600); }
.policy-body strong { color: var(--zg-blue-900); }
.policy-body code { background: var(--zg-sand); padding: 0.1em 0.4em; border-radius: 2px; font-size: 0.9em; font-family: monospace; }

.info-box {
  background: #fff; border: 1px solid var(--zg-stone-200);
  border-left: 3px solid var(--zg-orange-500);
  border-radius: 0 4px 4px 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.info-box p { margin-bottom: 0.35rem; font-size: 0.93rem; color: var(--zg-stone-500); }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--zg-blue-900); }
.info-box a { color: var(--zg-orange-500); text-decoration: underline; }

/* Cookie table */
.cookie-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem; font-size: 0.88rem; }
.cookie-table th {
  background: var(--zg-blue-900); color: #fff;
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.7rem 1rem; text-align: left;
}
.cookie-table td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--zg-stone-200);
  line-height: 1.6; vertical-align: top; color: var(--zg-stone-500);
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table tr:nth-child(even) td { background: #fff; }
.cookie-table a { color: var(--zg-orange-500); text-decoration: underline; }
.cookie-table small { font-size: 0.8em; }

.badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 2px;
  font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge--tecnico  { background: #e8f4fd; color: #1a5276; }
.badge--terzo    { background: #fef9e7; color: #7d6608; }
.badge--assente  { background: #eafaf1; color: #1e8449; }

/* ── BLOG HERO ── */
.blog-hero {
  background: var(--zg-blue-900);
  padding: 7rem var(--px) 3.5rem;
  border-bottom: 3px solid var(--zg-orange-500);
}
.blog-hero__inner { max-width: var(--max); margin: 0 auto; }
.blog-hero__eyebrow {
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--zg-orange-500); margin-bottom: 0.75rem;
}
.blog-hero__title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}
.blog-hero__sub { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 560px; line-height: 1.65; }

/* ── BLOG GRID ── */
.blog-main { max-width: var(--max); margin: 0 auto; padding: 4rem var(--px) 6rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }

/* ── CARD ── */
.card {
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07); display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.card--pinned { border: 2px solid var(--zg-orange-500); grid-column: 1 / -1; }
.card__pin {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-ui); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--zg-orange-500); padding: 0.45rem 0.85rem;
  background: rgba(255,122,0,0.07); border-bottom: 1px solid rgba(255,122,0,0.18);
}
.card__pin svg { width: 11px; height: 11px; fill: var(--zg-orange-500); flex-shrink: 0; }
.card__type {
  font-family: var(--font-ui); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.5rem 0.85rem; display: inline-block;
}
.card__type--articolo { background: var(--zg-blue-900); color: var(--zg-orange-500); }
.card__type--spunto    { background: var(--zg-sand); color: var(--zg-blue-900); }
.card__body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__date { font-size: 0.75rem; color: var(--zg-stone-400); margin-bottom: 0.5rem; }
.card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--zg-blue-900); line-height: 1.35; margin-bottom: 0.75rem; }
.card__excerpt { font-size: 0.9rem; line-height: 1.7; color: var(--zg-stone-500); flex: 1; margin-bottom: 1.25rem; }
.card__link {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--zg-orange-500); display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.card__link:hover { gap: 0.7rem; }
.card__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; flex-shrink: 0; }

/* ── ARTICLE ── */
.post-hero {
  background: var(--zg-blue-900);
  padding: 7rem var(--px) 3.5rem;
  border-bottom: 3px solid var(--zg-orange-500);
}
.post-hero__inner { max-width: 800px; margin: 0 auto; }
.post-hero__meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.post-hero__badge {
  font-family: var(--font-ui); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 2px;
}
.post-hero__badge--articolo { background: var(--zg-orange-500); color: #fff; }
.post-hero__badge--spunto   { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.post-hero__date { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.post-hero__title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.post-hero__lead { font-size: 1.05rem; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 680px; }

.post-body { max-width: 800px; margin: 0 auto; padding: 3.5rem var(--px) 5rem; }
.post-body p { font-size: 1rem; line-height: 1.85; color: var(--zg-stone-500); margin-bottom: 1.4rem; }
.post-body h2 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
  color: var(--zg-blue-900); margin-top: 2.5rem; margin-bottom: 0.85rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--zg-stone-200);
}
.post-body strong { color: var(--zg-stone-900); font-weight: 700; }
.post-body em { font-style: italic; }
.post-body a { color: var(--zg-orange-500); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--zg-orange-600); }
.post-body code { background: var(--zg-sand); padding: 0.1em 0.4em; border-radius: 2px; font-size: 0.9em; }

.highlight {
  background: #fff; border-left: 3px solid var(--zg-orange-500);
  padding: 1.25rem 1.5rem; margin: 2rem 0; border-radius: 0 4px 4px 0;
}
.highlight p { margin-bottom: 0; font-size: 0.96rem; }

.post-sources { background: var(--zg-sand); border-radius: 4px; padding: 1.5rem 1.75rem; margin-top: 3rem; }
.post-sources__title {
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--zg-blue-900); margin-bottom: 0.85rem;
}
.post-sources ul { padding-left: 1.25rem; }
.post-sources li { font-size: 0.84rem; line-height: 1.65; color: var(--zg-stone-500); margin-bottom: 0.4rem; }
.post-sources a { color: var(--zg-orange-500); text-decoration: underline; text-underline-offset: 2px; }

.post-nav {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid var(--zg-stone-200); flex-wrap: wrap;
}
.post-nav a {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--zg-blue-900); display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s, color 0.2s;
}
.post-nav a:hover { color: var(--zg-orange-500); gap: 0.65rem; }
.post-nav svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; flex-shrink: 0; }

/* Tip list */
.tip-list { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; }
.tip-list li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: 4px; padding: 1rem 1.25rem; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.tip-list__num { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--zg-orange-500); flex-shrink: 0; line-height: 1.5; }
.tip-list__text { font-size: 0.96rem; line-height: 1.7; color: var(--zg-stone-500); }
.tip-list__text strong { color: var(--zg-stone-900); }

/* ── FOOTER ── */
.site-footer { background: var(--zg-blue-900); padding: 2.5rem var(--px); text-align: center; }
.site-footer p { font-size: 0.8rem; color: rgba(255,255,255,0.35); line-height: 2; }
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: rgba(255,255,255,0.85); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__ham   { display: flex; }
  .blog-grid  { grid-template-columns: 1fr; }
  .cookie-table { font-size: 0.8rem; }
  .cookie-table th, .cookie-table td { padding: 0.5rem 0.6rem; }
  .card--pinned { grid-column: auto; }
}
