:root {
  --site-primary: #635f00;
  --site-primary-light: #aba242;
  --site-primary-dark: #4c3b00;
  --site-secondary: #638a70;
  --site-accent: #1968d2;
  --site-background: #ffecd2;
  --site-surface: #fffeed;
  --site-text-primary: #141402;
  --site-text-secondary: #565754;
  --bs-body-bg: #ffecd2;
  --bs-body-color: #141402;
  --bs-body-font-family: 'Source Sans 3', sans-serif;
  --bs-link-color: #635f00;
  --bs-link-hover-color: #4c3b00;
  --type-h1: clamp(2.2rem, 4.5vw, 3rem);
  --type-h2: 1.9rem;
  --type-h3: 1.4rem;
  --type-body: 1.06rem;
  --type-small: 0.9rem;
  --type-eyebrow: 0.74rem;
  --section-padding: clamp(4rem, 7vw, 6rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
  font-size: var(--type-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Source Serif 4', serif; }

h1, h2, h3 { color: var(--site-text-primary); line-height: 1.08; text-wrap: balance; }
h1 { font-size: var(--type-h1); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }
p, li { text-wrap: pretty; }
small, .small { font-size: var(--type-small); }

.btn-primary { background-color: var(--site-primary); border-color: var(--site-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--site-primary-dark); border-color: var(--site-primary-dark); color: #fff; }
.btn-outline-primary { color: var(--site-primary); border-color: var(--site-primary); background-color: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--site-primary); border-color: var(--site-primary); color: #fff; }
.bg-primary { background-color: var(--site-primary) !important; }
.text-primary { color: var(--site-primary) !important; }
.border-primary { border-color: var(--site-primary) !important; }
a { color: var(--site-primary); }
a:hover { color: var(--site-primary-dark); }

.btn {
  border-radius: 8px;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  box-shadow: none;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  border-width: 1px;
}

.btn:hover { transform: translateY(-1px); }

.form-control, .form-select {
  border-radius: 6px;
  border-color: rgba(20, 20, 2, 0.22);
  background-color: var(--site-surface);
  color: var(--site-text-primary);
  padding: 0.78rem 0.9rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--site-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(99, 95, 0, 0.14);
}

.card {
  border-radius: 10px;
  border-color: rgba(99, 138, 112, 0.36);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background: var(--site-surface);
}

.site-header {
  background: rgba(255, 254, 237, 0.96);
  border-bottom: 1px solid rgba(99, 138, 112, 0.32);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar { min-height: 88px; }
.navbar-brand { font-family: 'Source Serif 4', serif; color: var(--site-text-primary); font-weight: 700; }
.navbar-brand:hover { color: var(--site-primary-dark); }
.logo-mark { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; }
.footer-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; }
.navbar-nav .nav-link { color: var(--site-text-primary); font-weight: 650; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: var(--site-primary-dark); }
.navbar-toggler { border-color: rgba(20, 20, 2, 0.28); }

@media (min-width: 992px) {
  .navbar-centered { position: relative; }
  .navbar-centered .brand-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
    white-space: nowrap;
  }
  .navbar-centered .navbar-collapse { width: 100%; }
  .nav-split { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .nav-split ul { width: calc(50% - 130px); }
  .nav-left { justify-content: flex-end; }
  .nav-right { justify-content: flex-start; }
}

.hero {
  min-height: 620px;
  background-image: linear-gradient(rgba(20, 20, 2, 0.28), rgba(20, 20, 2, 0.28)), url('images/hero-corsi-cucina-bologna.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero h1, .hero p { color: #fff; }
.hero .lead { max-width: 780px; margin-left: auto; margin-right: auto; font-size: 1.17rem; }
.hero-panel { max-width: 860px; margin: 0 auto; text-align: center; padding: 4rem 0; }

.section-pad { padding: var(--section-padding) 0; }
.section-rule { width: 60%; margin: 0 auto; border: 0; border-top: 1px solid var(--site-secondary); opacity: 0.7; }
.eyebrow {
  display: block;
  font-size: var(--type-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--site-secondary);
  margin-bottom: 0.75rem;
}
.prose { max-width: 70ch; }
.prose-narrow { max-width: 62ch; }
.section-visual {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.decorative-visual {
  min-height: 126px;
  border-top: 1px solid rgba(99, 138, 112, 0.55);
  border-bottom: 1px solid rgba(99, 138, 112, 0.55);
  background: linear-gradient(90deg, rgba(255,254,237,0.7), rgba(171,162,66,0.16), rgba(255,254,237,0.7));
  border-radius: 8px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.service-card { height: 100%; }
.icon-fill {
  width: 44px;
  height: 44px;
  fill: var(--site-primary);
  background: rgba(171, 162, 66, 0.18);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 1rem;
}
.text-secondary-site { color: var(--site-text-secondary); }
.quote-line {
  font-family: 'Source Serif 4', serif;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--site-primary-dark);
  border-left: 3px solid var(--site-secondary);
  padding-left: 1rem;
  max-width: 58ch;
}
.contact-panel {
  background: var(--site-surface);
  border: 1px solid rgba(99, 138, 112, 0.36);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  display: block;
}
.footer-main {
  min-height: 280px;
  background: var(--site-surface);
  border-top: 1px solid rgba(99, 138, 112, 0.36);
  padding: 3rem 0;
}
.footer-main a { text-decoration: none; }
.footer-main a:hover { text-decoration: underline; }
.footer-heading { font-family: 'Source Serif 4', serif; font-size: 1.25rem; font-weight: 700; }
.legal-main { padding: var(--section-padding) 0; }
.form-note { min-height: 1.6rem; }
.tabular { font-variant-numeric: tabular-nums; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  background: var(--site-surface);
  border: 1px solid rgba(99, 138, 112, 0.45);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 1rem;
  max-width: 780px;
  margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }

@media (max-width: 991.98px) {
  .navbar { min-height: auto; }
  .brand-center { margin-right: auto; }
  .hero { min-height: 560px; }
  .hero-panel { text-align: left; }
  .hero .lead { margin-left: 0; margin-right: 0; }
}
