/* ============================================================
   La Storia del Denaro - Editorial Academic Heritage Theme
   Mobile-first, Performance Max compliant, W3C-friendly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --gold: #C5A880;
  --gold-bright: #D4AF37;
  --gold-dark: #A68B5B;
  --parchment: #FDFBF7;
  --parchment-dark: #F5F0E6;
  --text: #1A1A1A;
  --text-muted: #4A4A4A;
  --white: #FFFFFF;
  --border: #E8E0D5;
  --success: #2D6A4F;
  --danger: #9B2226;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
  --radius: 8px;
  --transition: all 0.25s ease;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lora', serif;
  --font-ui: 'Plus Jakarta Sans', sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--parchment);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--primary-light);
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-family: var(--font-ui);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-top a {
  color: var(--gold);
}

.header-top a:hover {
  color: var(--gold-bright);
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  max-width: 60%;
}

.ticker-content {
  display: inline-block;
  animation: ticker 25s linear infinite;
  color: var(--gold);
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.header-main {
  padding: 1rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--gold);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(197, 168, 128, 0.2);
  color: var(--gold);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--primary-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  width: 160px;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-box button {
  background: var(--gold);
  border: none;
  color: var(--primary);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-ui);
}

.search-box button:hover {
  background: var(--gold-bright);
}

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1621416894569-0f39ed31d247?w=800&q=80') center/cover no-repeat;
  opacity: 0.15;
  mask-image: linear-gradient(to left, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--primary);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

/* ========== SECTIONS ========== */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--parchment-dark);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-ui);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ========== CATEGORY GRID ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

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

.category-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.category-card a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-dark);
}

.category-card a:hover {
  color: var(--primary);
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--gold);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--primary);
  border-radius: 50%;
  top: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-content {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.timeline-year {
  font-family: var(--font-heading);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== ARTICLE CARDS ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.article-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.article-card .read-more {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-dark);
}

/* ========== NEWSLETTER ========== */
.newsletter {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.newsletter p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form .form-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(197, 168, 128, 0.4);
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--gold);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  opacity: 0.9;
}

.consent-check input {
  margin-top: 0.25rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.consent-check a {
  color: var(--gold);
  text-decoration: underline;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--gold);
}

/* ========== CONTENT ========== */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.content-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
}

.content-block p {
  margin-bottom: 1.15rem;
}

.content-block ul, .content-block ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}

.content-block ol {
  list-style: decimal;
}

.content-block li {
  margin-bottom: 0.4rem;
}

.content-block blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--parchment-dark);
  font-style: italic;
  color: var(--text-muted);
}

.featured-img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.img-caption {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.contact-info strong {
  font-family: var(--font-ui);
  color: var(--primary);
}

.contact-info a {
  color: var(--gold-dark);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  background: var(--parchment);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ========== LEGAL PAGES ========== */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary);
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary);
  margin: 1.5rem 0 0.6rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-left: 1.25rem;
  list-style: disc;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.legal-content th {
  background: var(--parchment-dark);
  font-weight: 600;
  color: var(--primary);
}

.last-update {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 0;
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
}

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

.footer-legal {
  padding: 1.5rem 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.footer-legal strong {
  color: var(--gold);
}

.footer-bottom {
  background: var(--primary-light);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom a {
  color: var(--gold);
  margin: 0 0.5rem;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  display: none;
  font-family: var(--font-ui);
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

.cookie-banner p {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-actions button {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-accept {
  background: var(--gold);
  color: var(--primary);
}

.btn-accept:hover {
  background: var(--gold-bright);
}

.btn-reject {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-reject:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-customize {
  background: var(--primary-light);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-customize:hover {
  background: rgba(197, 168, 128, 0.15);
}

.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: var(--parchment);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-content h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option label {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--primary);
}

.cookie-option small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.cookie-option input[type="checkbox"] {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 12px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 2.5rem;
    padding-right: 0;
  }
  .timeline-item .timeline-dot {
    left: 4px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }
  .header-main {
    position: relative;
  }
  .search-box {
    display: none;
  }
  .header-top .ticker {
    max-width: 100%;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 2.5rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions button {
    flex: 1;
    text-align: center;
  }
}
