* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #0A0E2A;
}

.main-header {
  background-color: #ffffff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  transition: all 0.3s ease-in-out;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 42px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #012F74;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav a:hover {
  transform: scale(0.95);
  filter: brightness(0.85);
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  background-color: #012F74;
  color: white;
  padding: 10px 36px; /* más alargado */
  border-radius: 32px;
  text-decoration: none;
  font-size: 15px; /* un poco más pequeño */
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: scale(0.95);
  filter: brightness(1.2);
}


.flag {
  height: 18px;
}
.hero {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  max-width: 480px;
}

.hero-content h1 {
  font-size: 38px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.store-buttons {
  display: flex;
  gap: 16px;
}

.store-buttons img {
  height: 48px;
  transition: transform 0.2s ease;
}

.store-buttons img:hover {
  transform: scale(1.05);
}

/* Imagen lado derecho */
.hero-image {
  position: relative;
  width: 380px;
  height: auto;
}

.hero-image::before {
  content: '';
  background-color: #CDE5CF;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  z-index: 0;
}


.hero-image img {
  position: relative;
  z-index: 1;
  max-height: 360px;
}
.hero .container {
  justify-content: center;
  gap: 200px; /* separación exacta entre los dos */
  align-items: center;
}

/* ===== COME FUNZIONA ===== */
.how-it-works {
  padding: 80px 24px;
  text-align: center;
  background-color: #ffffff;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #012F74;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: #012F74;
  margin: 8px auto 0;
  border-radius: 2px;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 48px;
}

.step {
  width: 260px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #012F74;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 16px;
}

.step img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 500;
  color: #012F74;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* === SECCIÓN: Perché scegliere Friend Delivery === */
.why-friend {
  padding: 60px 40px;
  background: linear-gradient(to right, #f6f8ff, #fdfdff);
}

.why-title {
  text-align: center;
  color: #012F74;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 30px;
}

.why-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.why-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background-color: white;
  flex: 1;
  transition: background 0.2s ease;
}

.why-box:hover {
  background-color: #eef3ff;
}

.why-box img {
  width: 36px;
  margin-bottom: 16px;
}

.why-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: #012F74;
  margin: 0;
  text-align: center;
}

.why-box p {
  font-size: 13px;
  color: #333;
  margin-top: 6px;
  text-align: center;
  line-height: 1.4;
}

.why-box.first {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.why-box.last {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}


/* === SECCIÓN: SCARICA L'APP === */

.download-app {
  padding: 100px 0;
  background-color: #ffffff;
  overflow: hidden;
}

.download-app .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.app-text {
  max-width: 480px;
}

.app-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  line-height: 1.4;
  color: #000;
  margin-bottom: 16px;
}

.app-text p {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
}

.store-buttons a {
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.store-buttons a:hover {
  transform: translateY(-5px);
}

.app-image {
  position: relative;
  width: 320px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-bg {
  position: absolute;
  width: 250px;
  height: 290px;
  background-color: #D6EBD9;
  border-radius: 15%;
  z-index: 0;
  animation: fadeIn 1.5s ease forwards;
}

.iphone {
  position: relative;
  width: 280px;
  z-index: 1;
  animation: floatUp 1s ease forwards;
}

.iphone-logo {
  position: absolute;
  width: 105px;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: fadeIn 1.2s ease forwards;
}

@keyframes floatUp {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* FOOTER */

.footer {
  background-color: #0B0820;
  color: white;
  font-family: 'Poppins', sans-serif;
  padding: 60px 40px 30px;
}

.footer-container {
  max-width: 1280px;
  margin: auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo img {
  width: 120px;
  margin-top: 6px;
}

.footer-column h4 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 6px;
}

.footer-column a {
  text-decoration: none;
  color: white;
  font-weight: 400;
  font-size: 14px;
  transition: opacity 0.2s;
}

.footer-column a:hover {
  opacity: 0.7;
}

.app-section .store-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.app-section img {
  max-width: 130px;
  height: auto;
  display: block;
}


.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #ccc;
}

.firma {
  color: #00FFBD;
  font-weight: 600;
}
