/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background: #ffffff;
  color: #222;
}

/* 🇮🇹 FLAG BAR */
.flag-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    to right,
    #009246 33%,
    white 33% 66%,
    #ce2b37 66%
  );
}

/* HEADER */
header {
  background: #2b0f0f;
  color: white;
  padding: 15px 20px;

  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* NAV */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* =========================
   SPLIT HOME
========================= */

.split {
  display: flex;
  height: 100vh;
}

.split-box {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* IMAGENES */
.split-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  z-index: 0;
}

.restaurante::before {
  background-image: url("imagenes/restaurante.png");
}

.takeaway::before {
  background-image: url("imagenes/para-llevar.png");
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 20px;
  z-index: 1;

  transition: background 0.3s ease;
}

.overlay h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 1rem;
  color: #ddd;
}

.overlay a {
  margin-top: 15px;
  padding: 12px 20px;
  background: #ce2b37;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s ease;
}

.overlay a:hover {
  background: #a61f2a;
}

/* HOVER DESKTOP */
@media (hover: hover) {
  .split-box:hover {
    flex: 1.2;
  }

  .split-box:hover::before {
    transform: scale(1.1);
  }

  .split-box:hover .overlay {
    background: rgba(0, 0, 0, 0.65);
  }
}

/* =========================
   SLIDER
========================= */

.slider {
  position: relative;
  width: 100%;
  height: 250px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: scale-down;

  opacity: 0;
  transition: opacity 1s ease;

  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.slide.active {
  opacity: 1;
}

/* =========================
   MENU
========================= */

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.menu li {
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #eee;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu li strong:first-child {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.menu li strong:last-child {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #b22222;
}

/* =========================
   FOOTER
========================= */

footer {
  text-align: center;
  padding: 20px;
  background: #f2f2f2;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* =========================
   MOBILE FIX (IMPORTANTE)
========================= */

@media (max-width: 700px) {

  .split {
    flex-direction: column;
    height: auto;
  }

  .split-box {
    height: 50vh;
    min-height: 300px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  .slider {
    height: 220px;
  }
}

.glovo-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: #ffd100;
  color: #000;
  font-weight: bold;

  padding: 12px 16px;
  border-radius: 50px;

  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);

  z-index: 9999;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glovo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}