/* ============================================================
   AIDP Premia 2026 — Frontend CSS
   Design "Eccellenza": Navy / Gold / Cream
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy: #001E4C;
  --navy-dark: #001030;
  --gold: #C09A50;
  --gold-light: #d4b578;
  --gold-pale: #f0e4c8;
  --cream: #F7F4EE;
  --cream-dark: #ede8dd;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: rgba(255, 255, 255, 0.75);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --radius: 2px;
  --radius-lg: 2px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);

  --transition: 0.25s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.5rem;
}

/* ── Typography helpers ─────────────────────────────────────── */
.text-gold {
  color: var(--gold) !important;
}

.text-navy {
  color: var(--navy) !important;
}

.text-cream {
  color: var(--cream) !important;
}

.text-white {
  color: var(--white) !important;
}

.text-serif {
  font-family: var(--font-serif);
}

.italic {
  font-style: italic;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy) !important;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192, 154, 80, 0.35);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--gold) !important;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy) !important;
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white) !important;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white) !important;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white) !important;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-navy:hover {
  background: #002a6b;
  border-color: #002a6b;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ── Gold divider ───────────────────────────────────────────── */
.gold-line {
  display: inline-block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.gold-line-full {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem 0;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  transition: box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0.875rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
}

.logo-aidp {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 18px;
  font-weight: 100;
  line-height: 1;
  user-select: none;
}

.logo-premia {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.site-logo:hover .logo-aidp {
  color: var(--cream);
}

.site-logo:hover .logo-premia {
  color: var(--gold-light);
}

/* Main Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-nav a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions .btn-gold {
  font-size: 11px;
  padding: 8px 18px;
  letter-spacing: 0.08em;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(192, 154, 80, 0.3);
  padding: 1rem 2rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav .btn-gold {
  margin-top: 0.75rem;
  text-align: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--navy);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(192, 154, 80, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 154, 80, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 65%;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.hero-eyebrow span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
  display: block;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1.75rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 0.9375rem;
  color: var(--text-light);
  max-width: 400px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(192, 154, 80, 0.25);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   SECTION — TRE SEZIONI (CREAM)
   ══════════════════════════════════════════════════════════════ */
.section-sezioni {
  background: var(--cream);
  padding: 5rem 0;
}

.section-sezioni .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-sezioni .section-intro {
  margin: 0 auto 0;
}

.sezione-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sezione-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--gold);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.sezione-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sezione-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.sezione-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.sezione-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.sezione-card .card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: gap var(--transition);
}

.sezione-card .card-link::after {
  content: '→';
  transition: transform var(--transition);
}

.sezione-card:hover .card-link::after {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════════════
   SECTION — LE QUATTRO CATEGORIE (NAVY)
   ══════════════════════════════════════════════════════════════ */
.section-categorie {
  background: var(--navy);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section-categorie::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-categorie::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-categorie .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-categorie .section-title {
  color: var(--white);
}

.section-categorie .section-intro {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 auto;
}

.categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.categoria-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 154, 80, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
}

.categoria-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(192, 154, 80, 0.5);
  transform: translateY(-3px);
}

.cat-roman {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 1rem;
}

.categoria-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.categoria-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   SECTION — CALENDARIO (WHITE)
   ══════════════════════════════════════════════════════════════ */
.section-calendario {
  background: var(--white);
  padding: 5rem 0;
}

.section-calendario .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.calendario-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: 700px;
  margin: 0 auto;
}

.cal-step {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 0 8px 20px;
}

.cal-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-family: var(--font-serif);
  font-size: 9px;
  font-style: italic;
  color: var(--gold);
}

.cal-step.cal-future .cal-circle {
  background: rgba(0, 30, 76, 0.12);
  border-color: rgba(192, 154, 80, 0.35);
  color: rgba(192, 154, 80, 0.6);
}

.cal-step.cal-highlight .cal-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-style: normal;
}

.cal-date {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cal-step.cal-future .cal-date {
  color: rgba(192, 154, 80, 0.65);
}

.cal-title {
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 2px;
}

.cal-desc {
  font-size: 10px;
  color: #6E6860;
  margin: 0;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   SECTION — CTA (GOLD BACKGROUND)
   ══════════════════════════════════════════════════════════════ */
.section-cta-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #a8832a 100%);
  padding: 5rem 0;
  text-align: center;
}

.section-cta-gold .cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-cta-gold .cta-subtitle {
  font-size: 1.05rem;
  color: rgba(0, 30, 76, 0.75);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-cta-sezione {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: var(--navy);
  color: var(--white) !important;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all var(--transition);
  min-width: 180px;
}

.btn-cta-sezione strong {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

.btn-cta-sezione span {
  font-size: 1rem;
  font-weight: 600;
}

.btn-cta-sezione:hover {
  background: #002a6b;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: var(--white) !important;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--navy-dark);
  padding: 4rem 0 2rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  align-items: start;
}

.footer-brand .site-logo {
  margin-bottom: 0.875rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
  line-height: 1.65;
  margin: 0;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav li a:hover {
  color: var(--gold);
}

.footer-contact-item {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.footer-contact-item a {
  color: var(--gold);
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer-copyright a:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════════════
   HERO MINIMALE (pagine interne)
   ══════════════════════════════════════════════════════════════ */
.hero-mini {
  background: var(--navy);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-mini::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.hero-mini-content {
  position: relative;
  z-index: 1;
}

.hero-mini .breadcrumb-nav {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.hero-mini .breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.hero-mini .breadcrumb-nav a:hover {
  color: var(--gold);
}

.hero-mini .breadcrumb-nav span {
  margin: 0 0.4rem;
}

.hero-mini h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-mini h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-mini .hero-mini-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   COMMISSIONE
   ══════════════════════════════════════════════════════════════ */
.section-commissione {
  background: var(--cream);
  padding: 5rem 0;
}

.commissione-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.commissario-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.commissario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.commissario-foto {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  background: var(--cream);
}

.commissario-foto-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--navy) 0%, #002a6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.commissario-foto-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

.commissario-info {
  padding: 1.25rem;
  border-top: 3px solid var(--gold);
}

.commissario-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.commissario-info .ruolo {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.commissario-info .bio {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   PAGINA GENERICA (CMS)
   ══════════════════════════════════════════════════════════════ */
.section-content {
  background: var(--white);
  padding: 4rem 0 5rem;
}

.content-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-body h2 {
  font-size: 1.65rem;
}

.content-body h3 {
  font-size: 1.3rem;
}

.content-body p {
  margin-bottom: 1.1rem;
}

.content-body ul,
.content-body ol {
  margin-bottom: 1.1rem;
}

.content-body li {
  margin-bottom: 0.35rem;
}

.content-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-body a:hover {
  color: var(--navy);
}

.content-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1.25rem;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-mid);
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.content-body th {
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 0.875rem;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-sans);
}

.content-body td {
  padding: 0.6rem 0.875rem;
  border-bottom: 1px solid var(--cream-dark);
}

.content-body tr:last-child td {
  border-bottom: none;
}

.content-body tr:nth-child(even) td {
  background: var(--cream);
}

/* ══════════════════════════════════════════════════════════════
   FORM CANDIDATURA MULTI-STEP
   ══════════════════════════════════════════════════════════════ */
.section-candidatura {
  background: var(--cream);
  padding: 4rem 0 5rem;
}

/* Selezione sezione */
.sezione-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sezione-selector-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.sezione-selector-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sezione-selector-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(192, 154, 80, 0.15);
}

.sezione-selector-card .sel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.sezione-selector-card:hover .sel-badge,
.sezione-selector-card.selected .sel-badge {
  background: var(--gold);
  color: var(--navy);
}

.sezione-selector-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.sezione-selector-card p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin: 0;
}

/* Form wrapper */
.candidatura-form-wrapper {
  display: none;
}

.candidatura-form-wrapper.active {
  display: block;
}

/* Progress bar */
.form-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 60px;
  position: relative;
}

.progress-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--cream-dark);
  z-index: 0;
  transition: background var(--transition);
}

.progress-step:last-child::after {
  display: none;
}

.progress-step.done::after,
.progress-step.active::after {
  background: var(--gold);
}

.progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mid);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.progress-step.done .progress-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.progress-step.active .progress-dot {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 30, 76, 0.15);
}

.progress-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-mid);
  text-align: center;
  white-space: nowrap;
}

.progress-step.active .progress-label {
  color: var(--navy);
  font-weight: 600;
}

/* Form card */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.form-card-header {
  background: var(--navy);
  padding: 1.75rem 2rem;
  border-bottom: 3px solid var(--gold);
}

.form-card-header h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.form-card-header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.form-card-body {
  padding: 2rem;
}

/* Form steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form fields */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: #dc3545;
  margin-left: 2px;
}

.form-group label .optional {
  color: var(--text-mid);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 4px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid #d4d0c8;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 30, 76, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23001E4C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.invalid-feedback {
  display: none;
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 0.3rem;
}

.form-control.is-invalid+.invalid-feedback,
.is-invalid~.invalid-feedback {
  display: block;
}

/* Char counter */
.char-counter {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-mid);
}

.char-counter.warning {
  color: #e67e22;
}

.char-counter.danger {
  color: #dc3545;
}

/* Radio / Checkbox groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.radio-option,
.check-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-option input,
.check-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

.radio-option span,
.check-option span {
  font-size: 0.9rem;
  color: var(--text-dark);
  user-select: none;
}

/* Privacy checkbox */
.privacy-block {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.privacy-block .check-option span {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.privacy-block .check-option span a {
  color: var(--navy);
  text-decoration: underline;
}

/* Form navigation buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
  margin-top: 1.5rem;
}

.form-nav .step-indicator {
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 500;
}

/* Conditional field */
.conditional-field {
  display: none;
}

.conditional-field.visible {
  display: block;
}

/* Upload field */
.upload-area {
  border: 2px dashed #d4d0c8;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.upload-area .upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.upload-area p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin: 0;
}

.upload-area input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Form errors banner */
.form-errors-banner {
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  border-left: 4px solid #dc3545;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #721c24;
}

.form-errors-banner ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.form-errors-banner ul li {
  margin-bottom: 0.25rem;
}

/* Candidature chiuse banner */
.candidature-chiuse-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid rgba(192, 154, 80, 0.3);
}

.candidature-chiuse-banner h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.candidature-chiuse-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════
   PAGINA GRAZIE
   ══════════════════════════════════════════════════════════════ */
.section-grazie {
  background: var(--cream);
  padding: 6rem 0;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.grazie-content {
  max-width: 600px;
  margin: 0 auto;
}

.grazie-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 0 0 12px rgba(192, 154, 80, 0.15);
}

.grazie-icon svg {
  width: 48px;
  height: 48px;
  color: var(--navy);
  stroke: var(--navy);
}

.grazie-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.grazie-content p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════
   PAGINA 404
   ══════════════════════════════════════════════════════════════ */
.section-404 {
  background: var(--navy);
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-404-number {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -2rem;
  pointer-events: none;
}

.error-404-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.error-404-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════ */
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-mid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.gap-2 {
  gap: 1rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1edda;
  border: 1px solid #a3d9b1;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  border-left: 4px solid #ffc107;
}

/* Gold accent bar top of page sections */
.section-accent-top {
  position: relative;
}

.section-accent-top::before {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

.section-center .section-accent-top::before {
  margin: 0 auto 1.5rem;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  .header-nav,
  .header-actions .btn-gold {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    min-height: 80vh;
    padding: 4rem 0;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0.75rem 1.25rem;
  }

  .sezione-cards,
  .categorie-grid {
    grid-template-columns: 1fr;
  }

  .sezione-selector {
    grid-template-columns: 1fr;
  }

  .commissione-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta-sezione {
    width: 100%;
    max-width: 300px;
  }

  .form-card-body {
    padding: 1.25rem;
  }

  .form-nav {
    flex-direction: column;
  }

  .form-nav .step-indicator {
    order: -1;
  }

  .calendario-steps {
    gap: 2px;
  }

  .cal-step {
    min-width: 80px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section-sezioni,
  .section-categorie,
  .section-calendario,
  .section-cta-gold,
  .section-commissione,
  .section-content,
  .section-candidatura {
    padding: 3.5rem 0;
  }
}

@media (max-width: 479px) {
  .commissione-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* ── Scrollbar personalizzata (webkit) ──────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  #site-header, #site-footer, .form-nav, .hero-cta {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  .content-body {
    max-width: none;
  }
}