/* Capotolone — ITCSS layers with cpt- prefix */
:root {
  --color-primary: #d35400;
  --color-secondary: #e67e22;
  --color-accent: #c0392b;
  --color-bg: #fef5e7;
  --color-text: #2c1810;
  --color-text-light: #6b4a3a;
  --color-border: #f0d9c4;
  --color-surface: #ffffff;
  --cpt-header-h: 72px;
  --cpt-page-w: 1120px;
  --cpt-narrow: 680px;
  --font-head: "Rajdhani", sans-serif;
  --font-body: "Nunito", sans-serif;
  --radius-card: 24px 4px 24px 4px;
}
@media (max-width: 768px) {
  :root { --cpt-header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
}
html { scroll-padding-top: var(--cpt-header-h); }
body { padding-top: var(--cpt-header-h); }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 0.6em; }
h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin: 0 0 0.75em;
  position: relative;
}
h2::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 0.35em;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.55s ease;
}
.cpt-is-inview h2::after,
.cpt-c-faq h2::after,
.cpt-c-section--inview h2::after { width: 4.5rem; }
@media (prefers-reduced-motion: reduce) {
  h2::after { width: 4.5rem; transition: none; }
}

.cpt-o-wrap {
  max-width: var(--cpt-page-w);
  margin: 0 auto;
  padding: 0 20px;
}
.cpt-o-narrow {
  max-width: var(--cpt-narrow);
  margin: 0 auto;
  padding: 0 20px;
}
.cpt-o-wide {
  max-width: var(--cpt-page-w);
  margin: 0 auto;
  padding: 0 20px;
}
.cpt-u-center { text-align: center; }
.cpt-u-muted { color: var(--color-text-light); }
.cpt-u-mt { margin-top: 1.5rem; }

.cpt-c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 220;
  min-height: var(--cpt-header-h);
  background: #fff8f0;
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
}
.cpt-c-header a,
.cpt-c-header a:visited { color: var(--color-text); text-decoration: none; }
.cpt-c-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--cpt-header-h);
  position: relative;
}
.cpt-c-header__logo { flex: 0 0 auto; order: 2; }
.cpt-c-header__logo img {
  width: 180px;
  height: auto;
  display: block;
}
.cpt-c-nav--key {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  order: 1;
  flex: 1 1 auto;
}
.cpt-c-header__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 3;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.cpt-c-nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cpt-c-nav__link.cpt-is-active { color: var(--color-primary); }
.cpt-c-burger {
  display: block;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  z-index: 1;
}
.cpt-c-burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-open .cpt-c-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .cpt-c-burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .cpt-c-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay never covers the fixed header — keeps burger clickable and bar undimmed */
.cpt-c-overlay {
  display: block;
  position: fixed;
  top: var(--cpt-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(44, 24, 16, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  pointer-events: none;
}
.cpt-c-drawer {
  display: block;
  position: fixed;
  z-index: 210;
  background: #fff8f0;
  overflow-y: auto;
  visibility: hidden;
  transition: transform .28s ease, opacity .28s ease, visibility .28s;
}
.cpt-c-drawer--top {
  top: var(--cpt-header-h);
  padding: 1.25rem 1.35rem 1.35rem;
  opacity: 0;
}
.cpt-c-drawer a {
  display: block;
  padding: 14px 8px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.cpt-c-drawer a:last-of-type {
  border-bottom: 0;
  color: var(--color-primary);
}
.cpt-c-drawer__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text);
}
body.nav-open .cpt-c-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Desktop: compact panel under the burger, not a full-bleed sheet */
@media (min-width: 901px) {
  .cpt-c-drawer--top {
    left: auto;
    right: max(12px, calc((100vw - min(100vw, var(--cpt-page-w))) / 2));
    width: min(340px, calc(100vw - 24px));
    max-height: min(72vh, calc(100dvh - var(--cpt-header-h) - 16px));
    border: 1px solid var(--color-border);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 40px rgba(44, 24, 16, 0.18);
    transform: translateY(-10px);
    transform-origin: top right;
  }
  .cpt-c-drawer--top .cpt-c-drawer__close {
    display: none;
  }
  .cpt-c-drawer a {
    padding: 0.85rem 0.35rem;
    font-size: 1.05rem;
  }
  .cpt-c-drawer a[href="/tips"],
  .cpt-c-drawer a[href="/dispatches"] {
    display: none;
  }
  body.nav-open {
    overflow: auto;
  }
  body.nav-open .cpt-c-drawer--top {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile / narrow: full-width top sheet */
@media (max-width: 900px) {
  .cpt-c-nav--key { display: none; }
  .cpt-c-header__logo { order: 1; }
  .cpt-c-header__end { order: 2; }
  .cpt-c-header__end .cpt-c-btn { display: none; }
  .cpt-c-drawer--top {
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--cpt-header-h));
    padding: 3.25rem 20px 16px;
    transform: translateY(-16px);
    box-shadow: 0 12px 28px rgba(44, 24, 16, 0.14);
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .cpt-c-drawer--top {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 768px) {
  .cpt-c-header__logo img { width: 120px; }
}

.cpt-c-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(211, 84, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cpt-c-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(211, 84, 0, 0.28);
  color: #fff !important;
}
.cpt-c-btn--icon .cpt-c-btn__mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 4px 0 0 rgba(255,255,255,0.45);
}
.cpt-c-btn--ghost {
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.cpt-c-btn--cookie {
  box-shadow: none;
  border-radius: 8px;
}

.cpt-c-hero {
  background: linear-gradient(145deg, #fff8f0 0%, #fde8d4 48%, #fef5e7 100%);
  padding: 2.75rem 0 3rem;
}
.cpt-c-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 22rem);
  gap: 2.5rem;
  align-items: center;
}
.cpt-c-hero__lede {
  font-size: 1.12rem;
  color: var(--color-text-light);
  max-width: 36rem;
}
.cpt-c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.cpt-c-device {
  justify-self: center;
  width: min(100%, 280px);
  background: #1a120e;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(44, 24, 16, 0.28);
}
.cpt-c-device__notch {
  width: 38%;
  height: 10px;
  margin: 0 auto 10px;
  background: #2c1810;
  border-radius: 0 0 8px 8px;
}
.cpt-c-device__screen {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}
.cpt-c-device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .cpt-c-hero__grid { grid-template-columns: 1fr; }
  .cpt-c-device { width: min(100%, 240px); }
  .cpt-c-hero__actions .cpt-c-btn { width: 100%; justify-content: center; }
}

.cpt-c-section {
  padding: 3.25rem 0;
}
.cpt-c-section--tint {
  background: #fff9f2;
}
.cpt-c-section--edge {
  background: linear-gradient(180deg, #fef5e7, #ffe8d2);
  padding-left: 0;
  padding-right: 0;
}
.cpt-c-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 28px rgba(44, 24, 16, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cpt-c-card:hover {
  box-shadow: 0 16px 36px rgba(44, 24, 16, 0.14);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .cpt-c-card:hover { transform: none; }
}

.cpt-c-passport {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  align-items: start;
}
.cpt-c-passport__icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(44,24,16,0.12);
}
.cpt-c-passport__icon img { width: 100%; height: 100%; object-fit: cover; }
.cpt-c-passport__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.cpt-c-passport__meta li {
  font-size: 0.92rem;
}
.cpt-c-passport__meta strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  font-weight: 700;
}
.cpt-c-checked {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.cpt-c-dev {
  padding: 1.5rem;
}
.cpt-c-dev p { margin: 0.4rem 0; }

.cpt-c-safety {
  padding: 1.5rem;
}
.cpt-c-safety ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}
.cpt-c-safety li { margin: 0.35rem 0; }

.cpt-c-faq {
  display: grid;
  gap: 0.65rem;
}
.cpt-c-faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(44,24,16,0.06);
}
.cpt-c-faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1rem 1.15rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text);
}
.cpt-c-faq__a {
  padding: 0 1.15rem 1.1rem;
  color: var(--color-text-light);
}
.cpt-c-faq__a[hidden] { display: none !important; }

.cpt-c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cpt-c-chip {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 0.65rem 0.9rem;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(44,24,16,0.05);
}
.cpt-c-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--color-primary);
}
.cpt-c-chip span {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.cpt-c-cta {
  text-align: center;
  padding: 3.5rem 0;
  background: linear-gradient(120deg, #d35400, #e67e22 55%, #c0392b);
  color: #fff;
}
.cpt-c-cta h2 { color: #fff; }
.cpt-c-cta h2::after { background: #fff; margin-left: auto; margin-right: auto; }
.cpt-c-cta p { color: rgba(255,255,255,0.92); max-width: 34rem; margin: 0 auto 1.25rem; }
.cpt-c-cta .cpt-c-btn {
  background: #fff;
  color: var(--color-primary) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.cpt-c-footer {
  background: #2c1810;
  color: #f7e6d8;
  padding: 2.75rem 0 2rem;
  text-align: center;
}
.cpt-c-footer a { color: #ffd2ad; }
.cpt-c-footer__brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.cpt-c-footer__note { margin: 0 auto 1.25rem; max-width: 32rem; opacity: 0.9; }
.cpt-c-footer__links {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.1rem;
}
.cpt-c-footer__cookie {
  background: none;
  border: 0;
  color: #ffd2ad;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}
.cpt-c-footer__legal,
.cpt-c-footer__copy {
  font-size: 0.88rem;
  opacity: 0.85;
  max-width: 42rem;
  margin: 0.6rem auto;
}

.cpt-c-cookie { display: none; }
.cpt-c-cookie:not([hidden]) {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 110;
  gap: 12px;
  bottom: 16px;
  right: 16px;
  max-width: 360px;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 28px rgba(44,24,16,0.16);
}
.cpt-c-cookie p { margin: 0; font-size: 0.92rem; }
@media (max-width: 480px) {
  .cpt-c-cookie:not([hidden]) {
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .cpt-c-cookie__actions .cpt-c-btn { min-height: 44px; width: 100%; justify-content: center; }
}

.cpt-c-page { padding: 2.5rem 0 3.5rem; }
.cpt-c-crumbs {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin: 0 0 1rem;
}
.cpt-c-crumbs a { color: var(--color-text-light); }
.cpt-c-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.cpt-c-list__item {
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 20px rgba(44,24,16,0.06);
}
.cpt-c-list__item a {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}
.cpt-c-list__meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0.35rem 0 0.5rem;
}
.cpt-c-prose {
  max-width: var(--cpt-narrow);
  margin: 0 auto;
}
.cpt-c-prose h2 { margin-top: 2rem; }
.cpt-c-form {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}
.cpt-c-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.cpt-c-form input,
.cpt-c-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.cpt-c-form textarea { min-height: 140px; resize: vertical; }
.cpt-c-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.cpt-c-steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 16px rgba(44,24,16,0.06);
}
.cpt-c-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}
.cpt-c-table-wrap { overflow-x: auto; }
.cpt-c-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.cpt-c-table th,
.cpt-c-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.cpt-c-table th {
  font-family: var(--font-head);
  background: #fff1e4;
}
