/*
Theme Name: Flavor
Theme URI: https://flavor15.dev
Author: Flavor
Author URI: https://flavor15.dev
Description: Flavor 15 — WordPress theme with AI-powered setup. 15 questions, unique SEO-optimized content, local GEO positioning. Built by Claudia.
Version: 16.0.0
License: Proprietary
Text Domain: flavor
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ═══════════════════════════════════════
   RESET & BASE
   Smart reset: list-style removed only on
   nav/footer/UI — content lists stay intact
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blu: #0A2463;
  --blu-light: #1E88E5;
  --blu-dark: #061539;
  --white: #FFFFFF;
  --cream: #F5F6F8;
  --gray-100: #E8EAF0;
  --gray-200: #C9CDD6;
  --gray-500: #6B7280;
  --gray-800: #1F2937;
  --text: #0F1629;
  --accent: #1E88E5;
  --gold: #D4A843;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-ui: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --max-w: 1200px;
  --section-pad: clamp(60px, 8vw, 120px);
  --header-h: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Smart list reset — only UI components */
nav ul, nav ol,
.site-footer ul, .site-footer ol,
.main-nav ul, .main-nav ol,
.footer-col ul, .footer-col ol,
.services-grid ul, .services-grid ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ═══════════════════════════════════════
   TYPOGRAPHY — Context-specific
   No global h1 size — each context owns it
   ═══════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Accent text — Playfair italic (like aidentity.it hero) */
.text-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}

/* Section labels — sans-serif for contrast */
.label, .hero-label, .blog-card-cat, .post-cat {
  font-family: var(--font-ui);
}

/* Homepage hero */
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
}

/* Generic pages */
.page-content > .container > h1,
.blog-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* Blog single post */
.single-post .post-header h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  color: var(--blu-dark);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

/* Section headings */
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

.text-accent { color: var(--blu-light); }
.text-blu { color: var(--blu); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blu-light);
  padding: 6px 16px;
  background: rgba(30, 136, 229, 0.08);
  border-radius: 100px;
}

.label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blu-light);
  border-radius: 50%;
  flex-shrink: 0;
}

p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 540px;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--blu);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blu-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 36, 99, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blu);
  border: 2px solid var(--blu);
}
.btn-outline:hover {
  background: var(--blu);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--blu);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s;
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.logo {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blu);
  letter-spacing: -0.04em;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blu-light);
  transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 12px;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
  padding-top: calc(var(--header-h) + var(--section-pad));
  padding-bottom: var(--section-pad);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30,136,229,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

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

.hero h1 {
  margin: 20px 0 24px;
}

.hero .lead {
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Performance Card */
.perf-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 40px rgba(10, 36, 99, 0.06);
  position: relative;
  z-index: 1;
}

.perf-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.perf-card-header::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blu-light);
  border-radius: 2px;
}

.perf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}

.perf-row:last-child { border-bottom: none; }

.perf-label {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.perf-value {
  font-family: var(--font-ui);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.perf-bar {
  width: 100%;
  height: 4px;
  background: var(--gray-100);
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.perf-bar-fill {
  height: 100%;
  background: var(--blu-light);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════
   SECTION: ABOUT STRIP
   ═══════════════════════════════════════ */
.about-strip {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-text h2 { margin: 16px 0 20px; }
.about-text p { color: var(--gray-500); line-height: 1.8; margin-bottom: 16px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-block {
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.stat-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 36, 99, 0.08);
}

.stat-number {
  font-family: var(--font-ui);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blu);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   SECTION: SERVICES
   ═══════════════════════════════════════ */
.services {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.section-header h2 { margin: 16px 0 16px; }
.section-header p { color: var(--gray-500); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
  background: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blu-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10, 36, 99, 0.1);
  border-color: transparent;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 136, 229, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: var(--gray-500); line-height: 1.7; }

/* ═══════════════════════════════════════
   SECTION: RESULTS
   ═══════════════════════════════════════ */
.results {
  padding: var(--section-pad) 0;
  background: var(--blu);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.results .section-header h2 { color: var(--white); }
.results .section-header p { color: rgba(255,255,255,0.6); }
.results .label { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.results .label::before { background: rgba(255,255,255,0.6); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.result-item {
  padding: 32px 20px;
}

.result-number {
  font-family: var(--font-ui);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--white);
}

.result-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   SECTION: CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.cta-inner {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blu), var(--blu-light));
}

.cta-inner h2 { margin: 16px 0 16px; }
.cta-inner p { color: var(--gray-500); max-width: 500px; margin: 0 auto 32px; }

/* ═══════════════════════════════════════
   SECTION: CONTACT
   ═══════════════════════════════════════ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}

.contact-info h2 { margin: 16px 0 20px; }
.contact-info p { color: var(--gray-500); margin-bottom: 32px; line-height: 1.8; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(30, 136, 229, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-detail-text a,
.contact-detail-text p {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--cream);
  padding: 40px;
  border-radius: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blu-light);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--blu-dark);
  color: rgba(255,255,255,0.5);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════
   ANIMATIONS (reveal on scroll)
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.count-up { display: inline-block; }

/* ═══════════════════════════════════════
   PAGE TEMPLATE (generic pages)
   ═══════════════════════════════════════ */
.page-content {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: var(--section-pad);
  min-height: 60vh;
}

/* ═══════════════════════════════════════
   404
   ═══════════════════════════════════════ */
.page-404 {
  text-align: center;
  padding: calc(var(--header-h) + 80px) 20px var(--section-pad);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-404 h1 { font-size: clamp(6rem, 15vw, 12rem); color: var(--gray-100); line-height: 1; }
.page-404 h2 { margin: 16px 0; }
.page-404 p { color: var(--gray-500); margin-bottom: 32px; }

/* ═══════════════════════════════════════
   BLOG — Single Post
   Consistent class: .single-post
   Content class: .post-body
   ═══════════════════════════════════════ */

/* Breadcrumb */
.post-breadcrumb {
  max-width: 750px;
  margin: 0 auto;
  padding: 20px 20px 0;
  font-size: 13px;
  color: var(--gray-500);
}
.post-breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}
.post-breadcrumb a:hover {
  color: var(--blu);
}
.post-breadcrumb .sep {
  margin: 0 8px;
  color: var(--gray-200);
}
.post-breadcrumb .current {
  color: var(--gray-800);
  max-width: 300px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

/* Post Header */
.post-header {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 20px 0;
}
.post-categories {
  margin-bottom: 16px;
}
.post-cat {
  display: inline-block;
  background: var(--blu);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 8px;
  transition: background 0.2s;
}
.post-cat:hover {
  background: var(--blu-dark);
}

.post-meta {
  font-size: 14px;
  color: var(--gray-500);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray-100);
}
.meta-sep {
  margin: 0 8px;
}
.post-author {
  font-weight: 500;
  color: var(--gray-800);
}

/* Featured Image */
.post-featured-image {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}
.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Placeholder for missing featured image */
.post-featured-placeholder {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}
.post-featured-placeholder .placeholder-inner {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, var(--blu-dark) 0%, var(--blu) 50%, var(--blu-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.post-featured-placeholder .placeholder-logo {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.04em;
}
.post-featured-placeholder .placeholder-logo span {
  color: rgba(255,255,255,0.35);
}

/* ═══════════════════════════════════════
   Post Body — Content styling
   Single source of truth: .post-body
   ═══════════════════════════════════════ */
.post-body {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  font-family: var(--font-body);
}

.post-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--blu-dark);
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blu);
  font-family: var(--font-display);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--blu);
  margin: 40px 0 16px;
  font-family: var(--font-display);
  line-height: 1.3;
}

.post-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 32px 0 12px;
}

.post-body p {
  margin: 0 0 24px;
}

.post-body strong {
  color: var(--blu-dark);
  font-weight: 700;
}

.post-body a {
  color: var(--blu);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-body a:hover {
  color: var(--blu-dark);
}

.post-body ul,
.post-body ol {
  margin: 0 0 28px;
  padding-left: 24px;
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body ul li,
.post-body ol li {
  margin-bottom: 12px;
  line-height: 1.75;
  padding-left: 8px;
}

.post-body ul li::marker {
  color: var(--blu);
}

.post-body ol li::marker {
  color: var(--blu);
  font-weight: 700;
}

.post-body blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--blu);
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gray-800);
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 48px 0;
}

.post-body code {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 15px;
  color: var(--blu-dark);
}

.post-body pre {
  background: var(--blu-dark);
  color: #e0e0e0;
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Tables in post body */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.post-body table th,
.post-body table td {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.post-body table th {
  background: var(--cream);
  font-weight: 700;
  color: var(--blu-dark);
}

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

/* Post Footer */
.post-footer {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-100);
}
.post-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}
.post-tag:hover {
  background: var(--blu);
  color: white;
}

/* CTA Box */
.post-cta {
  margin-top: 40px;
  padding: 40px;
  background: linear-gradient(135deg, var(--blu-dark) 0%, var(--blu) 100%);
  border-radius: 16px;
  text-align: center;
  color: white;
}
.post-cta h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
  font-family: var(--font-display);
  border-bottom: none;
}
.post-cta p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 24px;
  line-height: 1.6;
}
.btn-cta {
  display: inline-block;
  background: white;
  color: var(--blu-dark);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-cta:hover {
  background: var(--gold);
  color: var(--blu-dark);
  transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  border-top: 1px solid var(--gray-100);
}
.related-posts h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--blu-dark);
  margin: 0 0 32px;
  font-family: var(--font-display);
  border-bottom: none;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.related-card {
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.related-card:hover {
  border-color: var(--blu);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.related-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
/* Related card placeholder */
.related-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--blu-dark) 0%, var(--blu) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-thumb-placeholder .placeholder-logo {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
}
.related-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blu-dark);
  margin: 0;
  padding: 20px 20px 8px;
  line-height: 1.4;
  font-family: var(--font-display);
}
.related-date {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  padding: 0 20px 20px;
}

/* ═══════════════════════════════════════
   BLOG — Archive / Blog Page
   ═══════════════════════════════════════ */
.blog-header {
  text-align: center;
  padding: 60px 20px 40px;
}
.blog-header h1 {
  font-weight: 800;
  color: var(--blu-dark);
  margin: 0 0 12px;
  font-family: var(--font-display);
}
.blog-header p {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.blog-card {
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}
.blog-card:hover {
  border-color: var(--blu);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
.blog-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
/* Blog card placeholder */
.blog-card-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--blu-dark) 0%, var(--blu) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-placeholder .placeholder-logo {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
}
.blog-card-body {
  padding: 24px;
}
.blog-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blu);
  margin-bottom: 8px;
}
.blog-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--blu-dark);
  margin: 0 0 12px;
  line-height: 1.3;
  font-family: var(--font-display);
}
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
  margin: 0 0 16px;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--gray-500);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 20px 60px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--blu);
  color: var(--white);
  border-color: var(--blu);
}

/* ═══════════════════════════════════════
   404 — Error Page
   ═══════════════════════════════════════ */
.error-404 {
  text-align: center;
  padding: 80px 0 60px;
  max-width: 900px;
  margin: 0 auto;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 800;
  line-height: 1;
  color: var(--gray-100);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.error-404 h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}
.error-404 > p {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.error-search {
  max-width: 480px;
  margin: 0 auto 60px;
}
.error-search .search-form {
  display: flex;
  gap: 8px;
}
.error-search .search-field {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.error-search .search-field:focus {
  outline: none;
  border-color: var(--blu);
}
.error-search .search-submit {
  padding: 14px 24px;
  background: var(--blu);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}
.error-search .search-submit:hover {
  background: var(--blu-dark);
}
.error-links {
  margin-bottom: 60px;
}
.error-links h2,
.error-recent h2 {
  font-size: 22px;
  margin-bottom: 24px;
}
.error-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  text-align: left;
}
.error-link-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.error-link-card:hover {
  border-color: var(--blu);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.error-link-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.error-link-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--blu-dark);
  margin-bottom: 4px;
}
.error-link-desc {
  font-size: 14px;
  color: var(--gray-500);
}
.error-recent {
  text-align: left;
}
.error-recent .blog-grid {
  padding: 0;
}

/* ═══════════════════════════════════════
   IUBENDA — Footer legal links
   ═══════════════════════════════════════ */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 13px;
}
.footer-legal a {
  color: var(--gray-500);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s;
}
.footer-legal a:hover {
  color: var(--white);
  text-decoration-color: currentColor;
}

/* ═══════════════════════════════════════
   SCHEMA MARKUP — hidden
   ═══════════════════════════════════════ */
.schema-markup { display: none; }

/* ═══════════════════════════════════════
   FORM MESSAGES (success/error)
   ═══════════════════════════════════════ */
.form-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}
.form-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.form-message strong {
  display: block;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════
   RESPONSIVE — General
   ═══════════════════════════════════════ */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 1px solid var(--gray-100);
  }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .nav-cta { margin-left: 0; }
}

@media (max-width: 640px) {
  .about-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .perf-value { font-size: 1.5rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Blog
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .single-post .post-header h1 {
    font-size: 26px;
  }
  .post-body {
    font-size: 16px;
    padding: 30px 16px;
  }
  .post-body h2 {
    font-size: 22px;
    margin-top: 40px;
  }
  .post-body h3 {
    font-size: 19px;
  }
  .post-cta {
    padding: 30px 24px;
  }
  .post-cta h3 {
    font-size: 20px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-featured-placeholder .placeholder-inner {
    height: 200px;
  }
}
