/* CSS guide esami concorsi - claudioiodice.it */

:root {
  --ivory: #d5e1ef;
  --ivory-deep: #bccde0;
  --paper: #e4ecf5;
  --ink: #0d1b2e;
  --ink-soft: #2f3e57;
  --burgundy: #1a3a7a;
  --burgundy-deep: #0f2555;
  --gold: #b8893f;
  --muted: #6a778e;
  --rule: #a9bbd0;
  --shadow: 0 30px 80px -40px rgba(13,27,46,0.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(184,137,63,0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(30,58,107,0.06), transparent 45%);
}

/* NAV */
nav {
  position: sticky;
  top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 3rem;
  background: rgba(213,225,239,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
nav.scrolled { border-bottom-color: var(--rule); }
.mark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .02em;
}
.mark em { color: var(--burgundy); font-style: italic; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  position: relative; transition: color .3s;
}
.nav-links a.active { color: var(--burgundy); font-weight: 600; }
.nav-links a:hover { color: var(--burgundy); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--ink); }

/* PAGE HEADER */
.page-header {
  background: var(--ink);
  color: var(--ivory);
  padding: 6rem 3rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(26,58,122,0.6), transparent 70%);
}
.page-header-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-kicker {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem; font-weight: 500;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-header h1 em { font-style: italic; color: var(--gold); }
.page-header .subtitle {
  color: rgba(213,225,239,0.78);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* BREADCRUMB */
.breadcrumb {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.2rem 2rem 0;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--burgundy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 .6rem; color: var(--rule); }

/* ARTICLE CONTENT */
.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}
.article > h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  margin: 3rem 0 1rem;
  line-height: 1.2;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .5rem;
}
.article > h2:first-child { margin-top: 1rem; }
.article > h2 em { color: var(--burgundy); font-style: italic; }
.article > h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--burgundy);
  margin: 2.2rem 0 .8rem;
  line-height: 1.25;
}
.article > p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.article > p strong { color: var(--ink); font-weight: 600; }
.article > ul, .article > ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--ink-soft);
}
.article > ul li, .article > ol li {
  margin-bottom: .6rem;
  line-height: 1.7;
  font-size: .97rem;
}
.article > ul li strong, .article > ol li strong { color: var(--ink); }
.article a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: rgba(26,58,122,0.35);
  text-underline-offset: 3px;
  transition: color .2s;
}
.article a:hover { color: var(--gold); }

/* BOX informativi (riquadri) */
.box-info {
  background: var(--paper);
  border-left: 4px solid var(--burgundy);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: .94rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.box-info strong { color: var(--burgundy); }
.box-info p { margin-bottom: .8rem; }
.box-info p:last-child { margin-bottom: 0; }
.box-info.gold { border-left-color: var(--gold); }
.box-info.gold strong { color: var(--gold); }

/* TABELLA */
.tbl-wrap { overflow-x: auto; margin: 1.8rem 0; }
table.gtab {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--paper);
}
table.gtab th, table.gtab td {
  padding: .75rem 1rem;
  border: 1px solid var(--rule);
  text-align: left;
  color: var(--ink-soft);
}
table.gtab th {
  background: var(--burgundy);
  color: var(--ivory);
  letter-spacing: .04em;
  font-size: .82rem;
  text-transform: uppercase;
}

/* PROMO BOX (CTA libro) */
.promo-box {
  background: var(--ink);
  color: var(--ivory);
  padding: 2.5rem 2rem;
  margin: 3.5rem 0 1rem;
  text-align: center;
  border: 1px solid var(--burgundy-deep);
}
.promo-box .promo-kicker {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.promo-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: .8rem;
  color: var(--ivory);
}
.promo-box h3 em { color: var(--gold); font-style: italic; }
.promo-box p {
  color: rgba(213,225,239,0.8);
  margin-bottom: 1.5rem;
  font-size: .95rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.btn-promo {
  display: inline-block;
  padding: .9rem 2.4rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  transition: opacity .3s, transform .3s;
}
.btn-promo:hover { opacity: .9; transform: translateY(-2px); }
.btn-promo.outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  margin-left: .5rem;
}

/* RELATED LINKS */
.related {
  background: var(--paper);
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.related-inner { max-width: 860px; margin: 0 auto; }
.related h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.related h2 em { color: var(--burgundy); font-style: italic; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--ivory);
  border: 1px solid var(--rule);
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  display: block;
  transition: all .3s;
}
.related-card:hover {
  border-color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(13,27,46,0.2);
}
.related-card .cat {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .4rem;
}
.related-card .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.3;
}

/* FOOTER */
footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
footer .foot-mark { font-family: 'DM Serif Display', serif; font-size: 1.2rem; }
footer .foot-mark em { color: var(--gold); font-style: italic; }
footer .foot-copy { font-size: .78rem; color: rgba(213,225,239,0.5); letter-spacing: .1em; }
footer .foot-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
footer .foot-links a {
  color: rgba(213,225,239,0.7);
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .3s;
}
footer .foot-links a:hover { color: var(--gold); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 1.5rem; gap: 1.2rem; border-top: 1px solid var(--rule); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .page-header { padding: 4rem 1.5rem 3rem; }
  .article { padding: 1.5rem 1.3rem 3rem; }
  .breadcrumb { padding: 1.2rem 1.3rem 0; }
  .related { padding: 2rem 1.5rem; }
  .promo-box { padding: 2rem 1.3rem; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
}
