/* ═══════════════════════════════════════════════════════════════
   ApuliaOne — index.css
   Stili specifici della Homepage (index.html)
   Dipende da: style.css (caricato prima)
═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────
   HERO SECTION
   Fullscreen con gradiente blu/verde pugliese
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Sfondo: doppio gradiente che simula mare + terra pugliese */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,46,107,0.52) 0%, rgba(11,46,107,0.08) 38%, rgba(11,46,107,0.72) 100%),
    linear-gradient(155deg, #1a5f8a 0%, #2e9fd4 28%, #63d3e9 52%, #1a8c6b 68%, #3a7d3a 100%);
}

/* Contenuto testuale sovrapposto all'hero */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 24px 36px;
  max-width: 680px;
}

/* Badge "Guida autentica" in oro */
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Titolo principale hero */
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 7vw, 54px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 6px;
}

/* "ti aspetta" in corsivo Allura con animazione shimmer */
.hero-cursive {
  font-family: 'Allura', cursive;
  font-size: clamp(34px, 9vw, 66px);
  color: var(--gold);
  display: block;
  line-height: 1.1;
  animation: shimmer 3s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { text-shadow: 0 0 0px var(--gold); }
  to   { text-shadow: 0 0 22px rgba(214,165,58,0.65); }
}


/* ─────────────────────────────────────────────
   SEARCH BAR nell'hero
   ───────────────────────────────────────────── */
.hero-search {
  margin-top: 22px;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  padding: 10px 14px;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  padding: 0 10px;
}

.hero-search input::placeholder { color: #bbb; }

/* Bottone cerca circolare teal */
.search-btn {
  background: var(--teal);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--aqua); transform: scale(1.06); }


/* ─────────────────────────────────────────────
   METEO CARD — card principale spiaggia consigliata
   ───────────────────────────────────────────── */
.meteo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}

/* Area immagine/gradiente superiore della card */
.meteo-img {
  position: relative;
  height: 200px;
  background: linear-gradient(155deg, #0e7490 0%, #17b7c8 40%, #63d3e9 70%, #bae6fd 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

/* Emoji onda animata al centro della card */
.meteo-wave {
  font-size: 68px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0.3;
  animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
  0%,100% { transform: translate(-50%,-50%) rotate(-4deg); }
  50%      { transform: translate(-50%,-50%) rotate(4deg); }
}

/* Badge "Consigliata oggi" in alto a destra */
.meteo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--teal);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Nome spiaggia + distanza in basso a sinistra */
.meteo-location {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  z-index: 1;
}
.meteo-location span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

/* Body della meteo card con statistiche */
.meteo-body { padding: 16px; }

.meteo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 14px;
}

/* Singola statistica meteo (icona + label + valore) */
.meteo-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text);
}
.meteo-stat strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
}
.meteo-stat .icon  { font-size: 17px; }
.meteo-stat .label { font-size: 10px; color: #aaa; }


/* ─────────────────────────────────────────────
   QUICK ACCESS GRID — griglia 2x2 sotto la home
   ───────────────────────────────────────────── */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

/* Label sezione spiagge vicine */
.nearby-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* Lista spiagge vicine */
.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Distanza spiaggia vicina */
.nearby-dist {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (min-width: 900px) {
  .meteo-img { height: 260px; }
}
