/* ═══════════════════════════════════════════════════════════════
   NAPOLETA PIZZAS — Estilos principales
   assets/css/main.css
═══════════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #DDD5C0;
  --linen:    #F2EDE4;
  --blue:     #1B3A6B;
  --blue-mid: #5A8BAD;
  --rule:     rgba(59,110,150,0.25);
  --ink:      #1E1C19;
  --stone:    #7B7265;
}

body {
  background: var(--bg);
  font-family: "Plus Jakarta Sans", sans-serif;
  min-height: 100vh;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 36px 24px 24px;
}

.hero-logo {
  font-family: "Outfit", sans-serif;
  font-size: clamp(31px, 7.7vw, 53px);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 1px;
  margin-bottom: 6px;
  opacity: 0;
  animation: rise 0.8s 0.1s ease forwards;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 10px;
  width: 260px;
  opacity: 0;
  animation: rise 0.8s 0.25s ease forwards;
}
.orn-line {
  flex: 1;
  height: 1px;
  background: var(--blue);
  opacity: 0.5;
}
.orn-mid {
  font-size: 9px;
  color: var(--blue);
  line-height: 1;
}

.hero-city {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--blue);
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.8s 0.3s ease forwards;
}

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

/* ── CARDS ── */
.grid {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 24px auto 20px;
  padding: 0 20px;
}

.brand-card {
  position: relative;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--rule);
  border-bottom: none;
  background: var(--linen);
  text-decoration: none;
  transition: background 0.25s;
  overflow: hidden;
  opacity: 0;
  animation: rise 0.6s ease forwards;
}
.brand-card:last-child { border-bottom: 1px solid var(--rule); }
.brand-card:nth-child(1) { animation-delay: 0.3s; }
.brand-card:nth-child(2) { animation-delay: 0.4s; }
.brand-card:nth-child(3) { animation-delay: 0.5s; }
.brand-card:nth-child(4) { animation-delay: 0.6s; }

.brand-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}
.brand-card:hover::before { transform: scaleY(1); }
.brand-card:hover { background: #EBE5D8; }

.card-logo {
  width: 88px;
  height: 44px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.brand-card:hover .card-logo { transform: scale(1.04); }

.card-body { flex: 1; }

.card-name {
  font-family: "Outfit", sans-serif;
  font-size: clamp(18px, 3.9vw, 22px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
  transition: color 0.25s;
}
.brand-card:hover .card-name { color: var(--blue); }

.card-sub {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--stone);
  line-height: 1.45;
}

.card-arrow {
  font-size: 18px;
  color: var(--blue-mid);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
  flex-shrink: 0;
}
.brand-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ── WHATSAPP BUTTONS ── */
.wa-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.25s, transform 0.2s;
}
.wa-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.wa-btn--pizzas     { background: #1B3A6B; font-size: 17px; font-weight: 700; letter-spacing: 0.3px; }
.wa-btn--tradizione { background: #5A8BAD; }

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 0 20px 36px;
}
.footer-line {
  display: flex; align-items: center; gap: 14px;
  max-width: 360px; margin: 0 auto 14px;
}
.footer-line::before, .footer-line::after {
  content: ""; flex: 1; height: 1px; background: var(--blue); opacity: 0.35;
}
.footer-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue-mid); opacity: 0.5; }
.footer-text { font-size: 10px; letter-spacing: 3px; color: var(--blue); font-weight: 700; text-transform: uppercase; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .brand-card { padding: 12px 14px; gap: 12px; }
  .card-logo  { width: 72px; height: 38px; }
}
