/* =========================================================
   Spacchettando con Miky — Stylesheet
   ========================================================= */

:root {
  --bg: #0a0f1f;
  --bg-elev: #121a30;
  --bg-card: #161f37;
  --border: #243049;
  --text: #f1f5ff;
  --text-muted: #a4afc7;
  --primary: #e63946;
  --primary-hover: #ff4d5c;
  --gold: #ffc83a;
  --gold-soft: #ffd770;
  --blue: #3a86ff;
  --success: #2ec4b6;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-glow: 0 10px 40px rgba(230,57,70,0.25);

  --container: 1200px;
  --header-h: 76px;

  --font-display: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(230,57,70,0.18), transparent 60%),
    radial-gradient(1000px 600px at -10% 30%, rgba(58,134,255,0.12), transparent 60%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* modern: doesn't create scrolling container, doesn't break position:fixed */
  padding-top: var(--header-h); /* compensate for fixed header */
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

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

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 15, 31, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  min-width: 0;
  flex-shrink: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 200, 58, 0.15);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.05rem;
  line-height: 1.15;
  min-width: 0;
}
.brand-name .accent { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--bg-elev); }
.nav-toggle svg { width: 26px; height: 26px; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color .2s ease, background .2s ease;
}
.nav-list a:hover { color: var(--text); background: var(--bg-elev); }
.nav-list a.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(230,57,70,0.18), rgba(255,200,58,0.12));
  border: 1px solid rgba(230,57,70,0.35);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), #c1121f);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: transform .15s ease, box-shadow .2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary-hover), var(--primary)) !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #c1121f);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(230,57,70,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--gold); color: var(--gold); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ffae00);
  color: #1a1207;
  box-shadow: 0 10px 30px rgba(255, 200, 58, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 200, 58, 0.1);
  border: 1px solid rgba(255, 200, 58, 0.3);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

.hero h1 {
  margin: 20px 0 18px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
}
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform .4s ease;
}
.hero-visual:hover img { transform: perspective(1000px) rotateY(-3deg) rotateX(1deg); }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(255,200,58,0.18), transparent 60%);
  filter: blur(20px);
  z-index: -1;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }

/* =========================================================
   FEATURES (Punti di forza)
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.45);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(230,57,70,0.18), rgba(255,200,58,0.1));
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--gold);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 10px; }

/* =========================================================
   ABOUT SPLIT
   ========================================================= */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-split .eyebrow {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about-split h2 { margin: 12px 0 22px; }
.about-split p { margin-bottom: 16px; font-size: 1.02rem; }

.bullet-list {
  list-style: none;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
}
.bullet-list li::before {
  content: '';
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #c1121f);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/></svg>") center/contain no-repeat;
}

/* =========================================================
   PRODUCTS / SERVICES GRID
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.product-card .ph {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elev);
}
.product-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .ph img { transform: scale(1.05); }
.product-card .body { padding: 22px; }
.product-card h3 { margin-bottom: 8px; }
.product-card .tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(255,200,58,0.1);
  border-radius: 999px;
  margin-bottom: 12px;
}

/* =========================================================
   SERVICES (icon + text grid)
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-row {
  display: flex;
  gap: 22px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
}
.service-row:hover { border-color: var(--primary); transform: translateY(-2px); }
.service-row .feature-icon { flex-shrink: 0; margin-bottom: 0; }
.service-row h3 { margin-bottom: 8px; }

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, rgba(230,57,70,0.15), rgba(255,200,58,0.08));
  border: 1px solid rgba(230,57,70,0.35);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,200,58,0.18), transparent 70%);
  top: -50%; right: -10%;
  filter: blur(40px);
}
.cta-band h2 { margin-bottom: 14px; position: relative; }
.cta-band p { margin-bottom: 28px; font-size: 1.05rem; position: relative; }
.cta-band .btn { position: relative; }

/* =========================================================
   PAGE HEADER (sotto-pagine)
   ========================================================= */
.page-header {
  padding: 100px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.page-header h1 { margin: 14px 0 16px; }
.page-header p { max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

/* =========================================================
   CONTENT BLOCKS (rich text)
   ========================================================= */
.prose {
  max-width: 820px;
  margin: 0 auto;
}
.prose h2 { margin: 36px 0 14px; color: var(--text); }
.prose h3 { margin: 28px 0 10px; color: var(--gold); }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 12px 0 24px 22px; color: var(--text-muted); }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

/* =========================================================
   BLOG
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.blog-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-weight: 600;
}
.blog-card h3 { margin-bottom: 10px; }
.blog-card p { flex: 1; margin-bottom: 16px; }
.blog-card .read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}
.blog-card .read-more:hover { gap: 12px; color: var(--gold); }

/* Article single */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}
.article-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 30px 0 40px;
  box-shadow: var(--shadow);
}
.article-hero img { width: 100%; height: auto; }
.article .meta {
  text-align: center;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

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

.contact-info {
  display: grid;
  gap: 18px;
}
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.info-card:hover { border-color: var(--gold); }
.info-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(230,57,70,0.18), rgba(255,200,58,0.1));
  border-radius: 12px;
  color: var(--gold);
  flex-shrink: 0;
}
.info-card .icon svg { width: 22px; height: 22px; }
.info-card h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; }
.info-card a, .info-card span { color: var(--text-muted); font-size: 0.95rem; word-break: break-word; }
.info-card a:hover { color: var(--gold); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.field label .req { color: var(--primary); }
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.18);
}
.field textarea { resize: vertical; min-height: 140px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 12px 0 22px;
}
.consent input { margin-top: 4px; accent-color: var(--primary); }
.consent a { color: var(--gold); text-decoration: underline; }

.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  margin-top: 18px;
  font-weight: 500;
}
.form-msg.success {
  display: block;
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}
.form-msg.error {
  display: block;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary-hover);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: 80px;
  padding: 60px 0 24px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 340px; }
.footer-brand p { margin-top: 14px; font-size: 0.95rem; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--text); }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .2s ease;
}
.socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.socials svg { width: 18px; height: 18px; }

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.copyright a { color: var(--gold); }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: none;
  padding: 22px 26px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  color: var(--text);
  max-width: 1100px;
  margin: 0 auto;
  animation: slideUp .35s ease both;
}
.cookie-banner.show { display: grid; }
.cookie-banner-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cookie-banner h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-banner h4::before {
  content: '🍪';
  font-size: 1.2rem;
}
.cookie-banner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.cookie-banner p a { color: var(--gold); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  white-space: nowrap;
}
.cookie-btn.accept {
  background: linear-gradient(135deg, var(--primary), #c1121f);
  color: #fff;
}
.cookie-btn.accept:hover { transform: translateY(-1px); }
.cookie-btn.reject {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.cookie-btn.reject:hover { border-color: var(--gold); color: var(--gold); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px 20px;
  }
  .cookie-banner-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-btn { width: 100%; }
}

/* =========================================================
   PROCESS / STEPS
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  position: relative;
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--gold); }
.process-step .step-num {
  position: absolute;
  top: -18px;
  left: 26px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #c1121f);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.process-step h3 {
  margin: 16px 0 8px;
  font-size: 1.1rem;
}

/* =========================================================
   BRAND PILLS
   ========================================================= */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.brand-pill {
  padding: 26px 18px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.brand-pill:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(255,200,58,0.18);
}
.brand-pill .brand-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(230,57,70,0.15), rgba(255,200,58,0.1));
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.brand-pill h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}
.brand-pill span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(58,134,255,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-item { text-align: center; }
.stat-item .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--gold), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-item .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  position: relative;
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--primary); }
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.35;
}
.testimonial .stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.testimonial .quote {
  color: var(--text);
  font-size: 0.98rem;
  margin-bottom: 20px;
  line-height: 1.65;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial .author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}
.testimonial .author .name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.testimonial .author .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--gold);
  transition: transform .25s ease;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 24px 22px;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--gold));
  opacity: 0.6;
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item .year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 12px;
  background: rgba(255,200,58,0.1);
  border: 1px solid rgba(255,200,58,0.3);
  border-radius: 999px;
  margin-bottom: 10px;
}
.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.timeline-item p { font-size: 0.97rem; }

/* =========================================================
   VALUES GRID
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.value-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.value-card .feature-icon { width: 48px; height: 48px; margin-bottom: 16px; }
.value-card .feature-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { font-size: 0.95rem; }

/* =========================================================
   COMPARISON (con/senza pre order)
   ========================================================= */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-col {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.compare-col.good { border-color: rgba(46,196,182,0.4); }
.compare-col.bad  { opacity: 0.85; }
.compare-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.15rem;
}
.compare-col h3 .pip {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
}
.compare-col.good h3 .pip { background: rgba(46,196,182,0.2); color: var(--success); }
.compare-col.bad  h3 .pip { background: rgba(230,57,70,0.2); color: var(--primary-hover); }
.compare-list { list-style: none; display: grid; gap: 10px; }
.compare-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.95rem;
}
.compare-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 800;
  font-size: 1rem;
}
.compare-col.good .compare-list li::before { content: '✓'; color: var(--success); }
.compare-col.bad  .compare-list li::before { content: '✕'; color: var(--primary-hover); }

/* =========================================================
   CATEGORY PILLS (blog)
   ========================================================= */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.category-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.category-pill:hover, .category-pill.active {
  background: linear-gradient(135deg, rgba(230,57,70,0.2), rgba(255,200,58,0.12));
  border-color: var(--primary);
  color: var(--text);
}

/* =========================================================
   FEATURED ARTICLE (blog hero)
   ========================================================= */
.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.featured-article::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(230,57,70,0.18), transparent 70%);
  top: -50%;
  right: -10%;
  filter: blur(40px);
}
.featured-article .featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.featured-article .featured-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.featured-article .featured-body { position: relative; z-index: 1; }
.featured-article .tag {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--primary), #c1121f);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.featured-article h2 { margin-bottom: 14px; }
.featured-article p { margin-bottom: 20px; }
.featured-article .read-more { color: var(--gold); font-weight: 600; }

/* =========================================================
   AUTHOR BOX (blog article)
   ========================================================= */
.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 40px 0;
}
.author-box .avatar-big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.author-box h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}
.author-box p { font-size: 0.92rem; margin: 0; }

/* =========================================================
   SHARE BUTTONS
   ========================================================= */
.share-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 30px 0;
}
.share-row span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.share-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .2s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold);
}
.share-btn svg { width: 16px; height: 16px; }

/* =========================================================
   HOURS TABLE
   ========================================================= */
.hours-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hours-card h3 {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hours-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  font-size: 0.95rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li .day { font-weight: 500; }
.hours-list li .h { color: var(--text-muted); }
.hours-list li.closed .h { color: var(--primary-hover); font-weight: 600; }

/* =========================================================
   "WHAT YOU CAN ASK" GRID (contatti)
   ========================================================= */
.ask-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.ask-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.ask-card:hover { border-color: var(--gold); }
.ask-card .feature-icon { width: 44px; height: 44px; margin-bottom: 0; flex-shrink: 0; }
.ask-card .feature-icon svg { width: 22px; height: 22px; }
.ask-card h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.ask-card p { font-size: 0.9rem; margin: 0; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #c1121f);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--gold), #ffae00);
  color: #1a1207;
}
.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 720px) {
  .back-to-top { right: 14px; bottom: 80px; width: 44px; height: 44px; }
}

/* =========================================================
   404 PAGE
   ========================================================= */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.error-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,0.18), transparent 60%);
  top: 20%; left: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
  z-index: 0;
}
.error-page .container { position: relative; z-index: 1; }
.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 13rem);
  line-height: 0.95;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.error-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 18px;
}
.error-page p {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 30px;
}
.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.error-suggestions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
}
.error-suggestions a {
  padding: 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: all .2s ease;
}
.error-suggestions a:hover {
  border-color: var(--gold);
  background: var(--bg-elev);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .error-suggestions { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   HERO FLOATING CARDS
   ========================================================= */
.hero-visual { position: relative; }
.hero-float {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.hero-float img { width: 100%; height: auto; display: block; }
.hero-float.f1 {
  width: 28%;
  top: -8%;
  left: -10%;
  animation-delay: 0s;
  transform: rotate(-8deg);
}
.hero-float.f2 {
  width: 22%;
  bottom: -6%;
  right: -8%;
  animation-delay: -3s;
  transform: rotate(6deg);
}
.hero-float.f3 {
  width: 18%;
  top: 50%;
  left: -14%;
  animation-delay: -1.5s;
  transform: rotate(4deg);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
.hero-float.f1 { --rot: -8deg; }
.hero-float.f2 { --rot: 6deg; }
.hero-float.f3 { --rot: 4deg; }

@media (max-width: 980px) {
  .hero-float.f3 { display: none; }
  .hero-float.f1 { width: 24%; left: -6%; }
  .hero-float.f2 { width: 20%; right: -4%; }
}

@media (max-width: 480px) {
  .hero-float { display: none; }
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bg-elev);
  z-index: 110;
  pointer-events: none;
}
.scroll-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--primary), var(--gold));
  box-shadow: 0 0 12px rgba(255, 200, 58, 0.5);
  transition: width 0.05s linear;
}

/* =========================================================
   ANIMATED STARS BACKGROUND
   ========================================================= */
.stars-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.stars-bg::before,
.stars-bg::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(255, 200, 58, 0.8), transparent 60%),
    radial-gradient(1px 1px at 35% 60%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(2px 2px at 58% 18%, rgba(255, 200, 58, 0.7), transparent 60%),
    radial-gradient(1px 1px at 78% 45%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 75%, rgba(230, 57, 70, 0.6), transparent 60%),
    radial-gradient(1px 1px at 22% 82%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.8px 1.8px at 48% 92%, rgba(255, 200, 58, 0.55), transparent 60%),
    radial-gradient(1px 1px at 68% 8%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 8% 50%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 96% 30%, rgba(255, 200, 58, 0.5), transparent 60%);
  background-size: 100% 100%;
  animation: drift 60s linear infinite;
  opacity: 0.6;
}
.stars-bg::after {
  background-image:
    radial-gradient(1px 1px at 18% 40%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 42% 12%, rgba(230, 57, 70, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 55%, rgba(255, 200, 58, 0.6), transparent 60%),
    radial-gradient(1px 1px at 84% 20%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 72%, rgba(255, 200, 58, 0.5), transparent 60%),
    radial-gradient(1px 1px at 52% 30%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 72% 88%, rgba(230, 57, 70, 0.4), transparent 60%),
    radial-gradient(1px 1px at 6% 8%, rgba(255, 200, 58, 0.5), transparent 60%);
  animation-duration: 90s;
  animation-direction: reverse;
  opacity: 0.4;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-30px, -20px); }
}

@media (prefers-reduced-motion: reduce) {
  .stars-bg::before,
  .stars-bg::after { animation: none; }
}

/* =========================================================
   BUTTON SHINE EFFECT
   ========================================================= */
.btn,
.nav-cta {
  position: relative;
  overflow: hidden;
}
.btn::before,
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::before,
.nav-cta:hover::before {
  left: 125%;
}

/* Subtle press feedback */
.btn:active { transform: translateY(0) scale(0.98); }
.nav-cta:active { transform: scale(0.97); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fade-up { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero { padding: 50px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 44px 26px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 36px; }
  .testimonials { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-article { grid-template-columns: 1fr; padding: 28px; }
  .ask-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 28px; gap: 18px; }
  .values-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
  .hours-card { padding: 22px; }

  /* Header: solid background on mobile (no backdrop-filter dependency) */
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Mobile menu: full-screen overlay below header */
  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    gap: 6px;
    background: var(--bg);
    padding: 28px 24px 40px;
    transform: translateY(-105%);
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: stretch;
    overflow-y: auto;
    z-index: 1;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list a { padding: 16px 18px; font-size: 1.05rem; border-radius: 12px; }
  .nav-cta { text-align: center; justify-content: center; margin-top: 6px; }

  /* When menu is open: lock body scroll and hide other floating UI */
  body.menu-open { overflow: hidden; }
  body.menu-open .back-to-top,
  body.menu-open .cookie-banner,
  body.menu-open .scroll-progress { visibility: hidden; }

  /* Hero: reduce 3D tilt on small screens for cleaner look */
  .hero-visual img { transform: none; }
  .hero-visual:hover img { transform: none; }

  /* Scroll progress bar: keep visible at top of viewport */
  .scroll-progress { top: 0; height: 3px; }

  .features { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 1.5rem; }
  .contact-form { padding: 24px; }
  .section-head { margin-bottom: 40px; }
  .page-header { padding: 70px 0 50px; }
}

@media (max-width: 520px) {
  /* Stack brand name on two lines so it always fits */
  .brand img { width: 38px; height: 38px; }
  .brand-name {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .brand-name .accent {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
  }
  .container { padding: 0 18px; }
}

@media (max-width: 420px) {
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 0.72rem; }
  .brand-name .accent { font-size: 1rem; }
  .btn { padding: 12px 20px; font-size: 0.95rem; }
  .cta-band { padding: 36px 20px; }
}

/* iOS notch / Dynamic Island safe area */
@supports (padding-top: env(safe-area-inset-top)) {
  body { padding-top: calc(var(--header-h) + env(safe-area-inset-top)); }
  .site-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-h) + env(safe-area-inset-top));
  }
  @media (max-width: 720px) {
    .nav-list { top: calc(var(--header-h) + env(safe-area-inset-top)); }
    .scroll-progress { top: env(safe-area-inset-top); }
  }
}
