/* MilanoMasterclass — shared styles (reset, typography, layout, header, footer, buttons, icons) */

:root {
  --color-bg: #f7f3ee;
  --color-bg-alt: #efe6d8;
  --color-surface: #ffffff;
  --color-text: #2b2622;
  --color-text-muted: #6b6058;
  --color-border: #ddd2c0;
  --color-accent: #a8703f;
  --color-accent-dark: #8a5a30;
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 6px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.2em; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  color: currentColor;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-secondary:hover { background: var(--color-text); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
  padding: 10px 20px;
  font-size: 0.88rem;
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.logo:hover { text-decoration: none; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
}

.nav-links .nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-links .nav-cta:hover { background: var(--color-accent-dark); text-decoration: none; }

.nav-toggle-checkbox { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
    padding: 20px 0 8px;
  }
  .nav-toggle-checkbox:checked ~ .nav-links { display: flex; }
  .site-nav { position: relative; }
}

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--color-text-muted); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-bottom p { margin: 0; }

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

/* Tables (shared base) */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 640px;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
thead th {
  background: var(--color-bg-alt);
  font-family: var(--font-display);
  font-weight: 400;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }

/* FAQ / accordion base */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--color-accent-dark); }
.faq-item[open] .icon-chevron { transform: rotate(180deg); }
.icon-chevron { transition: transform 0.2s ease; }
.faq-item p { margin-top: 12px; }
