/* ============================================================
   OSTERIA DEL FUOCO — Ordina Ora Page Styles
   ============================================================ */

/* ============================================================
   DELIVERY HERO
   ============================================================ */
.delivery-hero {
  min-height: 50vh;
  overflow: hidden;
}

.scooter-animation {
  position: absolute;
  bottom: 3rem;
  left: -200px;
  animation: scooterDrive 8s linear infinite;
  z-index: 2;
}

@keyframes scooterDrive {
  0%   { left: -200px; }
  100% { left: 110%; }
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
  animation: promoBannerIn 0.6s ease 0.3s both;
}

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

.promo-banner::before,
.promo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='30' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E");
}

.promo-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.promo-banner__text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.promo-banner__code {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.25em 0.8em;
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
}

/* ============================================================
   DELIVERY CARDS SECTION
   ============================================================ */
.delivery-section {
  padding: 5rem 0 6rem;
  background: var(--bg-cream);
}

.delivery-section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .delivery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   DELIVERY CARD
   ============================================================ */
.delivery-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(212,160,23,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.delivery-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  transition: opacity var(--transition);
  opacity: 0;
}

.delivery-card.glovo::before    { background: #FFC244; }
.delivery-card.deliveroo::before { background: #00CCBC; }
.delivery-card.justeat::before   { background: #FF8000; }

.delivery-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.delivery-card.glovo:hover    { border-color: rgba(255,194,68,0.4); }
.delivery-card.deliveroo:hover { border-color: rgba(0,204,188,0.4); }
.delivery-card.justeat:hover   { border-color: rgba(255,128,0,0.4); }

.delivery-card.glovo:hover::before,
.delivery-card.deliveroo:hover::before,
.delivery-card.justeat:hover::before { opacity: 1; }

.delivery-card__logo-wrap {
  width: 90px; height: 90px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.delivery-card.glovo    .delivery-card__logo-wrap { background: #FFC244; }
.delivery-card.deliveroo .delivery-card__logo-wrap { background: #00CCBC; }
.delivery-card.justeat   .delivery-card__logo-wrap { background: #FF8000; }

.delivery-card__platform {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.delivery-card__time {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.delivery-card__time strong {
  color: var(--text-main);
  font-weight: 700;
}

.delivery-card__min {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.delivery-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 2rem;
}

.delivery-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
}

.delivery-feature svg { flex-shrink: 0; }

.delivery-card__cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.delivery-card.glovo    .delivery-card__cta { background: #FFC244; color: #1a1a1a; }
.delivery-card.deliveroo .delivery-card__cta { background: #00CCBC; }
.delivery-card.justeat   .delivery-card__cta { background: #FF8000; }

.delivery-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.delivery-card__cta .cta-arrow {
  transition: transform var(--transition);
}

.delivery-card__cta:hover .cta-arrow {
  transform: translateX(6px);
}

.delivery-card__cta:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

/* ============================================================
   DELIVERY ZONE MAP
   ============================================================ */
.zone-section {
  padding: 5rem 0;
  background: var(--accent);
}

.zone-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.zone-section__header .section-title {
  color: var(--text-light);
}

.zone-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .zone-layout { grid-template-columns: 1fr 1fr; }
}

.zone-map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone-map svg {
  max-width: 380px;
  width: 100%;
}

.zone-list__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zone-neighborhoods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.zone-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(250,243,224,0.75);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(212,160,23,0.1);
}

.zone-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-section {
  padding: 5rem 0;
  background: var(--bg-cream);
}

.compare-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212,160,23,0.15);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
}

.compare-table th {
  padding: 1rem 1.25rem;
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border: none;
}

.compare-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

.compare-table td {
  padding: 1rem 1.25rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(212,160,23,0.08);
  vertical-align: middle;
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--text-main);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table tr:nth-child(odd) td {
  background: rgba(250,243,224,0.5);
}

.compare-table tr:hover td {
  background: rgba(212,160,23,0.06);
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2em 0.65em;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.compare-badge.glovo    { background: rgba(255,194,68,0.15); color: #b38a00; }
.compare-badge.deliveroo { background: rgba(0,204,188,0.15); color: #008a7e; }
.compare-badge.justeat   { background: rgba(255,128,0,0.15);  color: #b35900; }

/* ============================================================
   TAKEAWAY SECTION
   ============================================================ */
.takeaway-section {
  padding: 5rem 0;
  background: var(--primary);
}

.takeaway-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.takeaway-section__header .section-badge {
  background: rgba(212,160,23,0.2);
  border-color: rgba(212,160,23,0.4);
  color: var(--secondary);
}

.takeaway-section__header .section-title {
  color: var(--text-light);
}

.takeaway-section__header .section-subtitle {
  color: rgba(250,243,224,0.7);
}

.takeaway-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 840px;
  margin: 0 auto 3rem;
}

@media (min-width: 640px) {
  .takeaway-steps { grid-template-columns: repeat(3, 1fr); }
}

.takeaway-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.takeaway-step:not(:last-child)::after {
  display: none;
}

@media (min-width: 640px) {
  .takeaway-step:not(:last-child)::after {
    display: block;
    content: '';
    position: absolute;
    right: -1rem;
    top: 2.5rem;
    width: 2rem;
    height: 2px;
    background: rgba(212,160,23,0.3);
  }
}

.takeaway-step__number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(212,160,23,0.2);
  border: 2px solid rgba(212,160,23,0.5);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--secondary);
  transition: background var(--transition), transform var(--transition);
}

.takeaway-step:hover .takeaway-step__number {
  background: rgba(212,160,23,0.35);
  transform: scale(1.1);
}

.takeaway-step__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.takeaway-step__text {
  font-size: 0.85rem;
  color: rgba(250,243,224,0.65);
  margin: 0;
  line-height: 1.5;
}

.takeaway-cta {
  text-align: center;
}

.takeaway-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--secondary);
  padding: 1rem 2rem;
  background: rgba(212,160,23,0.12);
  border: 2px solid rgba(212,160,23,0.35);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.takeaway-phone:hover {
  background: rgba(212,160,23,0.2);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(212,160,23,0.25);
}

.takeaway-phone:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}
