/* ==========================================================================
   Tre Zero Uno — public storefront
   ========================================================================== */

/* ------------------------------------------------------------------ chrome */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--nero) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: var(--border-hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}

/* The header wordmark, set in the logo's own typeface and weight. Each word
   carries its own underline in a flag colour — together, left to right, they
   read as the tricolore from the ring under the logo's lettering. */
.wordmark {
  display: inline-flex;
  gap: 0.5em;
}

.wordmark__word {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--crema);
  padding-bottom: 3px;
  border-bottom: 2px solid;
  transition: color var(--duration-fast) var(--ease-out);
}

.wordmark__word--verde { border-bottom-color: var(--verde); }
.wordmark__word--bianco { border-bottom-color: var(--bianco); }
.wordmark__word--rosso { border-bottom-color: var(--rosso); }

.site-header__logo:hover .wordmark__word { color: var(--oro); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* `:not(.btn)` keeps this plain-link styling from clobbering button-styled
   links in the same nav — a bare `.site-nav a` beats `.btn--primary` on
   specificity (class + element > single class) and had been overriding the
   "Pedir" button's text color with the muted nav tone, killing its contrast
   against the gold background. */
.site-nav a:not(.btn) {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--crema-muted);
  white-space: nowrap;
}
.site-nav a:not(.btn):hover { color: var(--oro); }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(88vh, 780px);
  text-align: center;
  overflow: hidden;
}

/* The gold arc from the logo, blown up as an ambient field behind the type. */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(120vw, 900px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--oro) 12%, transparent) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-9);
}

/* The full brand mark, centerpiece of the hero — it already carries its own
   gold arc and tricolore ring, so nothing else needs to repeat those here.
   Sized against --text-5xl (the "Napolitana" headline below it can hit
   6.5rem on wide screens), so the mark reads as the actual centerpiece
   instead of a footnote under its own headline. */
.hero__logo {
  width: min(85vw, 460px);
  margin-bottom: var(--space-2);
}

.hero__title { margin-bottom: var(--space-2); }

.hero__subtitle {
  max-width: 46ch;
  font-size: var(--text-lg);
  color: var(--crema-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-3);
}

.hero__scarcity {
  width: min(420px, 100%);
  margin-top: var(--space-5);
}

/* ----------------------------------------------------------------- story */
.story {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.story__pillar h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.story__pillar p {
  font-size: var(--text-sm);
  color: var(--crema-muted);
  line-height: var(--leading-normal);
}

.story__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--oro-deep);
  margin-bottom: var(--space-2);
}

/* ------------------------------------------------------------ section head */
.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ------------------------------------------------------------------- menu */
.menu-columns {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.menu-column__title {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--oro);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-oro);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------- expansion */
.expansion {
  background: var(--nero-raised);
  border-block: var(--border-hairline);
}

.expansion__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

/* ---------------------------------------------------------------- checkout */
.checkout-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-summary {
  position: sticky;
  top: calc(var(--space-8) + var(--space-4));
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: var(--border-hairline);
  font-size: var(--text-sm);
}

.summary-line:last-of-type { border-bottom: 0; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-4);
  margin-top: var(--space-3);
  border-top: var(--border-oro);
}

.summary-total__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--oro);
  font-variant-numeric: tabular-nums;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: var(--border-hairline);
}

.cart-item__info { flex: 1; min-width: 0; }

.cart-item__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-display);
}

.cart-item__description {
  font-size: var(--text-xs);
  color: var(--crema-faint);
  line-height: var(--leading-snug);
}

.cart-item__price {
  font-size: var(--text-sm);
  color: var(--oro);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------- pix */
.pix-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.pix-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pix-steps li {
  position: relative;
  counter-increment: step;
  padding-left: var(--space-6);
  padding-block: var(--space-3);
  font-size: var(--text-sm);
  color: var(--crema-muted);
}

.pix-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  color: var(--oro);
}

/* ------------------------------------------------------- order confirmation */
.dough-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-8);
  border: var(--border-oro);
  border-radius: var(--radius-md);
}

.dough-badge__label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--crema-faint);
}

.dough-badge__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--oro);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-6);
}

.timeline__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.timeline__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  border: 1px solid var(--crema-faint);
}

.timeline__step--done .timeline__dot {
  background: var(--oro);
  border-color: var(--oro);
}

.timeline__step--current .timeline__dot {
  background: var(--oro);
  border-color: var(--oro);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--oro) 22%, transparent);
}

.timeline__label {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--crema-faint);
}

.timeline__step--done .timeline__label,
.timeline__step--current .timeline__label { color: var(--crema); }

/* ----------------------------------------------------------------- footer */
.site-footer {
  border-top: var(--border-hairline);
  padding-block: var(--space-7);
  font-size: var(--text-sm);
  color: var(--crema-faint);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

/* ------------------------------------------------------------ login screen */
/* Shared by /admin and /cozinha — both hit the same Django LOGIN_URL. */
.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  overflow: hidden;
}

.login-screen::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(120vw, 700px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--oro) 10%, transparent) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: var(--space-7) var(--space-6);
  background: var(--nero-raised);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}

.login-card__logo {
  width: min(60%, 200px);
  margin: 0 auto var(--space-5);
}

.login-card form {
  margin-top: var(--space-6);
}

.login-card__reset {
  margin: var(--space-4) 0 0;
  text-align: center;
  font-size: var(--text-xs);
}
