/* ==========================================================================
   IrteniNauto — Main Stylesheet
   Soft Pastel Editorial Design System
   ========================================================================== */

/* 0. Custom Properties
   ========================================================================== */
:root {
  /* Colours */
  --c-primary:       #7EB8C9;
  --c-primary-dark:  #6AA8BA;
  --c-secondary:     #F5C6AA;
  --c-secondary-dark:#EEB08E;
  --c-accent:        #B8A9D4;
  --c-tertiary:      #A8D5BA;

  --c-bg:            #FAF7F4;
  --c-bg-alt:        #F0ECE6;
  --c-bg-white:      #FFFFFF;

  --c-text:          #3B3640;
  --c-text-2:        #7A7580;
  --c-text-3:        #A09BA5;
  --c-border:        #E8E4DF;
  --c-shadow:        rgba(59,54,64,0.06);
  --c-shadow-hover:  rgba(59,54,64,0.10);

  /* Typography */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-heading:    'Source Serif 4', Georgia, serif;
  --font-body:       'DM Sans', system-ui, sans-serif;

  /* Type scale (modular ratio 1.25) */
  --text-xs:   13px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   20px;
  --text-lg:   25px;
  --text-xl:   31px;
  --text-2xl:  39px;
  --text-3xl:  49px;

  /* Spacing */
  --radius-card: 16px;
  --radius-btn:  12px;
  --radius-img:  12px;
  --shadow-base: 0 2px 12px var(--c-shadow);
  --shadow-hover:0 4px 20px var(--c-shadow-hover);

  /* Layout */
  --container-max: 1280px;
  --gap-grid:      28px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--c-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* 2. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 40px;
}

.section-pad { padding-block: 80px; }
.section-pad-sm { padding-block: 56px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}

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

/* 3. Typography
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--c-text);
  line-height: 1.25;
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--c-text);
}

/* Section heading with lavender underline accent */
.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}
.section-heading.centered {
  display: block;
  text-align: center;
}
.section-heading.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* 4. Components
   ========================================================================== */

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.badge--notizie     { background: rgba(245,198,170,0.25); color: #C4845A; }
.badge--tecnologia  { background: rgba(168,213,186,0.25); color: #5A9E73; }
.badge--motorsport  { background: rgba(184,169,212,0.25); color: #7A66A8; }
.badge--recensioni  { background: rgba(126,184,201,0.25); color: #4A8FA8; }
.badge--evidenza    { background: rgba(245,198,170,0.25); color: #C4845A; }
.badge--speciale    { background: rgba(168,213,186,0.25); color: #5A9E73; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(126,184,201,0.35);
}
.btn-secondary {
  background: rgba(245,198,170,0.15);
  color: #C4845A;
  border: 1px solid rgba(245,198,170,0.4);
}
.btn-secondary:hover {
  background: rgba(245,198,170,0.28);
  transform: translateY(-1px);
}
.btn-link {
  background: none;
  color: var(--c-primary);
  padding: 0;
  font-weight: 500;
  font-size: var(--text-base);
}
.btn-link:hover { color: var(--c-primary-dark); }
.btn-link svg { width: 16px; height: 16px; stroke-width: 2.5; }

/* --- Cards --- */
.card {
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card:hover .card-title { color: var(--c-primary); }

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.03); }

.card-img-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
}

.card-body { padding: 20px; }

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.card-excerpt {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

/* --- Meta row --- */
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--c-text-3);
  font-style: italic;
}
.meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-tertiary);
  flex-shrink: 0;
}

/* --- Tag pills --- */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(184,169,212,0.10);
  color: var(--c-text-2);
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: 400;
  transition: background 0.2s ease;
}
.tag-pill:hover { background: rgba(184,169,212,0.22); color: var(--c-text); }

/* --- Form elements --- */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 7px;
}

.form-group .optional {
  font-size: var(--text-xs);
  color: var(--c-text-3);
  font-weight: 400;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  font-size: var(--text-base);
  color: var(--c-text);
  background: var(--c-bg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}
.form-control::placeholder { color: var(--c-text-3); }
.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(126,184,201,0.15);
}

textarea.form-control {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}

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='%237A7580' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Custom checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--c-border);
  border-radius: 5px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  margin-top: 2px;
}
.checkbox-group input[type="checkbox"]:checked {
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.checkbox-group input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 7px;
  height: 11px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checkbox-group label {
  font-size: var(--text-sm);
  color: var(--c-text-2);
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 0;
}
.checkbox-group label a { color: var(--c-primary); text-decoration: underline; }

/* 5. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-bg-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 4px rgba(59,54,64,0.04);
  transition: box-shadow 0.3s ease;
  height: 72px;
}
.site-header.scrolled { box-shadow: 0 1px 16px rgba(59,54,64,0.09); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-dot {
  color: var(--c-secondary);
  margin-left: 3px;
  font-size: 28px;
  line-height: 1;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  display: block;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--c-text-2);
  transition: background 0.2s, color 0.2s;
}
.btn-search:hover { background: var(--c-bg-alt); color: var(--c-text); }
.btn-search svg { width: 20px; height: 20px; stroke-width: 2; }

.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 8px;
  color: var(--c-text);
  transition: background 0.2s;
}
.btn-hamburger:hover { background: var(--c-bg-alt); }
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X */
body.nav-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--c-bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.nav-open .nav-overlay { opacity: 1; pointer-events: all; }
.nav-overlay a {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--c-text);
  padding: 12px 24px;
  transition: color 0.2s;
}
.nav-overlay a:hover { color: var(--c-primary); }

/* Search overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--c-bg-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-hover);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.search-overlay.open { transform: translateY(0); opacity: 1; }
.search-overlay input {
  flex: 1;
  height: 48px;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--c-text);
  background: none;
  outline: none;
}
.search-overlay input::placeholder { color: var(--c-text-3); }
.btn-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--c-text-2);
  border-radius: 10px;
  flex-shrink: 0;
}
.btn-search-close:hover { background: var(--c-bg-alt); color: var(--c-text); }
.btn-search-close svg { width: 20px; height: 20px; }

/* 6. Footer
   ========================================================================== */
.site-footer {
  background: var(--c-text);
  color: var(--c-border);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin-bottom: 14px;
  display: block;
}
.footer-desc {
  font-size: var(--text-sm);
  color: rgba(232,228,223,0.65);
  line-height: 1.75;
}

.footer-col-heading {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(232,228,223,0.45);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--c-accent);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: var(--text-sm);
}
.footer-contact-item span { color: rgba(232,228,223,0.65); line-height: 1.6; }
.footer-contact-item a { color: var(--c-accent); }
.footer-contact-item a:hover { color: #fff; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: rgba(232,228,223,0.45);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  color: rgba(232,228,223,0.45);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(232,228,223,0.85); }

/* 7. Scroll Reveal Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 8. Homepage Sections
   ========================================================================== */

/* Hero */
.hero-section { background: var(--c-bg); }
.hero-card {
  display: grid;
  grid-template-columns: 60fr 40fr;
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  overflow: hidden;
}
.hero-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-card:hover .hero-img-wrap img { transform: scale(1.02); }

.hero-content {
  background: var(--c-bg-alt);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}
.hero-excerpt {
  font-size: var(--text-base);
  color: var(--c-text-2);
  line-height: 1.7;
}
.hero-meta { margin-top: auto; }

/* Section with parchment alt bg */
.section-alt { background: var(--c-bg-alt); }

/* Ultime Notizie */
.news-section { background: var(--c-bg); }
.section-footer { text-align: center; margin-top: 40px; }

/* Editor's Pick */
.editors-pick { background: var(--c-bg-alt); }
.editors-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--gap-grid);
  align-items: start;
}
.editors-right { display: flex; flex-direction: column; gap: var(--gap-grid); }

.card-horizontal {
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: stretch;
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.card-horizontal:hover { box-shadow: var(--shadow-hover); }
.card-horizontal:hover .card-title { color: var(--c-primary); }
.card-horizontal .card-img-wrap { aspect-ratio: auto; height: 100%; min-height: 220px; }
.card-horizontal .card-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.card-horizontal .card-title { -webkit-line-clamp: 4; }
.card-horizontal .card-excerpt { -webkit-line-clamp: 4; }

/* Categories strip */
.categories-section { background: var(--c-bg); }
.categories-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.categories-row::-webkit-scrollbar { display: none; }
.category-card {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.category-card svg { width: 36px; height: 36px; stroke-width: 1.5; }
.category-card span {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--c-text);
}
.cat--notizie    { background: rgba(245,198,170,0.08); }
.cat--recensioni { background: rgba(126,184,201,0.08); }
.cat--tecnologia { background: rgba(168,213,186,0.08); }
.cat--motorsport { background: rgba(184,169,212,0.08); }

/* Approfondimenti */
.approfondimenti { background: var(--c-bg-alt); }

/* Newsletter */
.newsletter-section {
  background: rgba(126,184,201,0.10);
  padding-block: 72px;
}
.newsletter-inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.newsletter-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 14px;
}
.newsletter-sub {
  font-size: var(--text-base);
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-btn);
  overflow: hidden;
  box-shadow: var(--shadow-base);
}
.newsletter-form input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--c-border);
  border-right: none;
  border-radius: var(--radius-btn) 0 0 var(--radius-btn);
  font-size: var(--text-base);
  color: var(--c-text);
  background: var(--c-bg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-form input::placeholder { color: var(--c-text-3); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(126,184,201,0.15);
}
.newsletter-form button {
  height: 48px;
  padding: 0 28px;
  background: var(--c-primary);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 500;
  border: none;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  cursor: pointer;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--c-primary-dark); }
.newsletter-disclaimer {
  font-size: var(--text-xs);
  color: var(--c-text-3);
  margin-top: 14px;
  line-height: 1.6;
}
.newsletter-disclaimer a { color: var(--c-primary); text-decoration: underline; }

/* Newsletter success */
.newsletter-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(168,213,186,0.2);
  border: 1px solid rgba(168,213,186,0.5);
  border-radius: var(--radius-btn);
  padding: 14px 20px;
  color: #5A9E73;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: 14px;
}
.newsletter-success.visible { display: flex; }

/* 9. Notizie Archive Page
   ========================================================================== */
.page-header {
  background: var(--c-bg-alt);
  text-align: center;
  padding-block: 64px;
}
.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 18px;
  color: var(--c-text-2);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: var(--c-bg-white);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
}
.filter-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 7px 18px;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.filter-pill:hover { background: var(--c-bg-alt); }
.filter-pill.active {
  background: rgba(126,184,201,0.15);
  color: var(--c-primary);
}

.archive-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.featured-article-card {
  margin-bottom: 36px;
}

/* Sidebar */
.sidebar-widget {
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  padding: 28px;
  margin-bottom: 28px;
}
.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

/* Most read list */
.most-read-list { display: flex; flex-direction: column; gap: 18px; }
.most-read-item { display: flex; gap: 16px; align-items: flex-start; }
.most-read-num {
  font-family: var(--font-heading);
  font-size: 39px;
  font-weight: 700;
  color: rgba(245,198,170,0.4);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
}
.most-read-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.45;
  transition: color 0.2s;
}
.most-read-title:hover { color: var(--c-primary); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination a:hover { background: var(--c-bg-alt); color: var(--c-text); }
.pagination .active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.pagination .nav-page {
  font-size: var(--text-sm);
  padding: 0 16px;
  gap: 6px;
}
.pagination .nav-page svg { width: 16px; height: 16px; }

/* 10. Single Article Page
   ========================================================================== */
.article-header {
  background: var(--c-bg);
  padding-top: 48px;
  padding-bottom: 40px;
  text-align: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: var(--text-xs);
  color: var(--c-text-3);
}
.breadcrumb svg { width: 12px; height: 12px; stroke-width: 2.5; }
.breadcrumb a { color: var(--c-text-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--c-primary); }

.article-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  max-width: 800px;
  margin-inline: auto;
  margin-top: 16px;
  margin-bottom: 18px;
  line-height: 1.2;
}
.article-deck {
  font-size: var(--text-md);
  color: var(--c-text-2);
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: 28px;
}
.author-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  box-shadow: var(--shadow-base);
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-bg-alt);
  overflow: hidden;
  flex-shrink: 0;
}
.author-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.author-name { font-size: var(--text-sm); font-weight: 500; color: var(--c-text); }
.author-meta { font-size: var(--text-xs); color: var(--c-text-3); font-style: italic; }

.article-featured-img {
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 56px;
  padding-inline: 40px;
}
.article-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
}
.img-caption {
  font-size: var(--text-sm);
  color: var(--c-text-3);
  font-style: italic;
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid var(--c-accent);
  line-height: 1.5;
}

/* Article body */
.article-body {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 40px;
  margin-bottom: 48px;
}
.article-body p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--c-text);
  margin-bottom: 24px;
}
.article-body h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
}
.article-body h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}
.article-body blockquote {
  margin: 32px 0;
  padding: 24px 24px 24px 24px;
  background: rgba(184,169,212,0.06);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius-img) var(--radius-img) 0;
  font-style: italic;
  font-size: 18px;
  color: var(--c-text-2);
  line-height: 1.7;
}
.article-body ul {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-text);
}
.article-body ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--c-tertiary);
  margin-top: 9px;
}
.article-body a { color: var(--c-primary); }
.article-body a:hover { text-decoration: underline; }

.article-tags {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
  margin-bottom: 64px;
}
.article-tags-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: 14px;
}

/* Related articles */
.related-section {
  background: var(--c-bg-alt);
  padding-block: 64px;
}

/* 11. Reviews Page
   ========================================================================== */
.reviews-hero {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 21/9;
  margin-bottom: 60px;
  border: 1px solid var(--c-border);
}
.reviews-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reviews-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59,54,64,0.85) 0%, rgba(59,54,64,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  gap: 16px;
}
.reviews-hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  max-width: 700px;
  line-height: 1.2;
}
.reviews-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rating-dots { display: flex; gap: 4px; }
.rating-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.rating-dot.filled { background: var(--c-secondary); border-color: var(--c-secondary); }
.rating-dot.half {
  background: linear-gradient(90deg, var(--c-secondary) 50%, transparent 50%);
  border-color: var(--c-secondary);
}
.rating-text { font-size: var(--text-sm); color: rgba(255,255,255,0.9); font-weight: 500; }
.reviews-hero-cta { color: #fff; text-decoration: underline; font-size: var(--text-sm); }

/* Review card */
.review-card {
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.review-card:hover { box-shadow: var(--shadow-hover); }
.review-card:hover .review-card-title { color: var(--c-primary); }
.review-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.review-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.review-card:hover .review-card-img img { transform: scale(1.03); }
.review-card-body { padding: 24px; }
.review-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.25s;
  line-height: 1.3;
}
.review-card-verdict {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.55;
  margin-bottom: 14px;
}
.review-card-rating { margin-bottom: 14px; }
.review-card-rating .rating-dot { border-color: rgba(59,54,64,0.3); }
.review-card-rating .rating-dot.filled { background: var(--c-secondary); border-color: var(--c-secondary); }
.review-card-rating .rating-dot.half { background: linear-gradient(90deg, var(--c-secondary) 50%, transparent 50%); border-color: var(--c-secondary); }
.review-specs {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
  flex-wrap: wrap;
}
.spec-item {
  flex: 1;
  min-width: 0;
  font-size: var(--text-xs);
  color: var(--c-text-2);
  line-height: 1.5;
  padding-right: 10px;
}
.spec-item:not(:last-child) { border-right: 1px solid var(--c-border); margin-right: 10px; }
.spec-label { color: var(--c-text-3); font-size: 11px; margin-bottom: 2px; }

/* 12. Technology Page
   ========================================================================== */
.tech-header { background: rgba(168,213,186,0.08); }

.tech-spotlight {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
  padding-block: 64px;
}
.tech-spotlight-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--c-border);
}
.tech-spotlight-img img { width: 100%; height: 100%; object-fit: cover; }
.tech-spotlight-content { display: flex; flex-direction: column; gap: 16px; }
.tech-spotlight-title {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.25;
}
.tech-spotlight-excerpt {
  font-size: var(--text-base);
  color: var(--c-text-2);
  line-height: 1.75;
}

.topic-cluster { margin-bottom: 60px; }
.topic-cluster-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}
.topic-cluster-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topic-cluster-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.cluster-icon--zap    { background: rgba(245,198,170,0.2); color: #C4845A; }
.cluster-icon--nav    { background: rgba(126,184,201,0.2); color: #4A8FA8; }
.cluster-icon--wifi   { background: rgba(168,213,186,0.2); color: #5A9E73; }
.cluster-icon--leaf   { background: rgba(184,169,212,0.2); color: #7A66A8; }
.topic-cluster-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
}

/* Compact card for topic clusters */
.card-compact {
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}
.card-compact:hover { box-shadow: var(--shadow-hover); }
.card-compact:hover .card-compact-title { color: var(--c-primary); }
.card-compact-img {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.card-compact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-compact:hover .card-compact-img img { transform: scale(1.03); }
.card-compact-body { padding: 16px; }
.card-compact-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
  margin-bottom: 8px;
  transition: color 0.25s;
}
.card-compact-date { font-size: var(--text-xs); color: var(--c-text-3); font-style: italic; }

/* Glossary accordion */
.glossary-section { background: var(--c-bg-alt); }
.accordion-list { display: flex; flex-direction: column; }
.accordion-item {
  border-bottom: 1px solid var(--c-border);
}
.accordion-item:first-child { border-top: 1px solid var(--c-border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.accordion-trigger-text {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--c-text);
}
.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-text-3);
  transition: transform 0.3s ease;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.accordion-item.open .accordion-body { opacity: 1; }
.accordion-content {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.7;
}

/* 13. Motorsport Page
   ========================================================================== */
.motorsport-header { background: rgba(184,169,212,0.08); }

.race-hero {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 21/9;
  margin-bottom: 60px;
  border: 1px solid var(--c-border);
}
.race-hero img { width: 100%; height: 100%; object-fit: cover; }
.race-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59,54,64,0.88) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  gap: 12px;
}
.race-hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.race-hero-result {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.race-hero-link { color: rgba(255,255,255,0.7); font-size: var(--text-sm); text-decoration: underline; }

/* Standings tables */
.standings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}
.standings-widget {
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  overflow: hidden;
}
.standings-widget-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--c-border);
}
.standings-widget-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table th {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-text-3);
  padding: 12px 24px;
  text-align: left;
  background: var(--c-bg);
}
.standings-table td {
  padding: 12px 24px;
  font-size: var(--text-sm);
  color: var(--c-text);
  border-top: 1px solid var(--c-border);
}
.standings-table tr:nth-child(even) td { background: var(--c-bg-alt); }
.standings-table tr.pos-1 td:first-child { border-left: 3px solid var(--c-secondary); }
.standings-table tr.pos-2 td:first-child { border-left: 3px solid var(--c-accent); }
.standings-table tr.pos-3 td:first-child { border-left: 3px solid var(--c-tertiary); }
.standings-pos { font-weight: 600; color: var(--c-text-2); }
.standings-name { font-weight: 500; }
.standings-team { font-size: var(--text-xs); color: var(--c-text-3); }
.standings-pts { font-weight: 600; color: var(--c-text); }
.standings-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}
.standings-link { font-size: var(--text-sm); color: var(--c-primary); font-weight: 500; }
.standings-link:hover { text-decoration: underline; }

/* 14. Contact Page
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: start;
}
.contact-form-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 28px;
}
.info-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--c-bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-base);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.icon--peach   { background: rgba(245,198,170,0.20); color: #C4845A; }
.icon--mint    { background: rgba(168,213,186,0.20); color: #5A9E73; }
.icon--lavender{ background: rgba(184,169,212,0.20); color: #7A66A8; }
.info-card-label { font-size: var(--text-sm); font-weight: 500; color: var(--c-text); margin-bottom: 4px; }
.info-card-detail { font-size: var(--text-sm); color: var(--c-text-2); line-height: 1.55; }
.info-card-detail a { color: var(--c-primary); }

.map-placeholder {
  height: 280px;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--c-text-3);
}
.map-placeholder svg { width: 36px; height: 36px; stroke-width: 1.5; }
.map-placeholder span { font-size: var(--text-sm); }

/* Form success/error */
.form-message {
  display: none;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: 16px;
}
.form-message.success {
  display: block;
  background: rgba(168,213,186,0.2);
  border: 1px solid rgba(168,213,186,0.5);
  color: #5A9E73;
}
.form-message.error {
  display: block;
  background: rgba(245,198,170,0.2);
  border: 1px solid rgba(245,198,170,0.5);
  color: #C4845A;
}

/* 15. Legal Pages
   ========================================================================== */
.legal-content {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 40px;
  padding-block: 64px;
}
.legal-content h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  font-size: var(--text-base);
  color: var(--c-text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 16px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content ul li {
  font-size: var(--text-base);
  color: var(--c-text-2);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-tertiary);
}
.legal-content strong { color: var(--c-text); font-weight: 600; }
.legal-info-box {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 28px;
  margin: 32px 0;
}
.legal-info-box p { margin-bottom: 8px; }
.legal-info-box p:last-child { margin-bottom: 0; }

/* Misc utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin-block: 0;
}
