/* =====================
   RESET & BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  background: #f8f9fb;
  color: #222;
  line-height: 1.6;
}

footer {
  margin-top: auto;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================
   NAVBAR
===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 125px;
}

.logo {
  max-height: 250px; /* logo grande su desktop */
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  position: relative;
  white-space: nowrap;
}

nav a.active,
nav a:hover {
  color: #0d6efd;
}

.cta-nav {
  background: #0d6efd;
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
}

.cta-nav:hover {
  background: #084fc7;
}


/* =====================
   LANGUAGE SELECTOR
===================== */
.lang-selector {
  position: relative;
}

.lang-selector button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: 35px;
  list-style: none;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-radius: 10px;
  display: none;
  overflow: hidden;
}

.lang-menu li {
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
}

.lang-menu li:hover {
  background: #f1f1f1;
}

/* =====================
   HERO
===================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 0 6%;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("/static/foto/kaaba.jpg") center/cover no-repeat;
  filter: brightness(0.85);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: #ffc107;
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p {
  margin-bottom: 25px;
  font-size: 1.05rem;
}

/* =====================
   BUTTONS
===================== */
.cta {
  display: inline-block;
  background: #0d6efd;
  color: white;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
}

.cta:hover {
  background: #084fc7;
}

.cta.small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.cta.big {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* =====================
   SECTIONS
===================== */
.section {
  padding: 80px 6%;
}

.section.center {
  text-align: center;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
}

/* =====================
   FEATURES
===================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.features div {
  background: white;
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* =====================
   TRIP CARD
===================== */
.trip-cards {
  display: flex;
  flex-wrap: wrap;          /* va a capo solo se serve */
  gap: 30px;                /* spazio tra le card */
  justify-content: center;  /* centrate orizzontalmente */
}

.trip-card {
  flex: 1 1 420pxpx; /* cresce, si rimpicciolisce, larghezza base 420px */
  max-width: 500px;
  margin: 0;
  background: white;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.trip-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.price {
  font-size: 1.2rem;
  color: #0d6efd;
  margin-bottom: 20px;
}

.trip-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.trip-card li {
  margin-bottom: 10px;
}

.gifts-box {
  background: #f1f7ff;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 10px 5%;
    height: auto; /* altezza automatica per contenere menu verticale */
  }

  .logo {
    max-height: 175px; /* ridotto su mobile ma visibile */
    flex-shrink: 0; /* non si rimpicciolisce */
  }

  /* Contenitore centrale per i link */
  nav {
    display: flex;
    flex-direction: column; /* link uno sopra l'altro */
    align-items: center; /* centrati orizzontalmente */
    justify-content: center;
    gap: 8px; /* spazio tra link */
    flex-grow: 1; /* occupa tutto lo spazio centrale */
  }

  nav a {
    font-size: 0.9rem;
    text-align: center;
    white-space: normal; /* permette testo multilinea se necessario */
  }

  /* Pulsante lingua a destra */
  .lang-selector {
    flex-shrink: 0; /* non si rimpicciolisce */
    display: flex;
    align-items: center;
  }

  .trip-cards {
    flex-direction: column;
    gap: 20px;
  }

  .trip-card {
    max-width: 100%;
  }
}

/* =====================
   ARABIC (RTL)
===================== */
html[dir="rtl"] body {
  font-family: 'Poppins', sans-serif;
}

html[dir="rtl"] {
  direction: rtl;
}

/* =====================
   GOOGLE TRANSLATE FIX
===================== */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

.goog-te-gadget {
  font-size: 0 !important;
}

.lang-menu {
  display: none;
}

.lang-menu.open {
  display: block;
}

.link {
  color: #ffffff;
  text-decoration: underline;
}

.link:hover {
  color: #ffc107 ;
  text-decoration: underline;
}