/* ============================================================
   GUNDU TRAVEL LIFE — Main Stylesheet
   Design: Tour Operator Professionale & Moderno
   Colors: #000 | #0e96c9 (blu) | #a4e85f (verde)
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #0e96c9;
  --blue-dark:  #0b7aa8;
  --blue-light: #e8f6fc;
  --green:      #a4e85f;
  --green-dark: #88cc44;
  --black:      #000000;
  --dark:       #111111;
  --dark-2:     #1a1a1a;
  --dark-3:     #222222;
  --gray:       #555555;
  --gray-light: #888888;
  --border:     #e0e0e0;
  --bg:         #f3f4f5;
  --white:      #ffffff;

  --font-body:    'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.25);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: .4s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--dark);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: 1em; color: var(--gray); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide  { max-width: 1400px; }
.container--narrow{ max-width: 860px;  }

.section { padding: 80px 0; }
.section--sm { padding: 50px 0; }
.section--lg { padding: 120px 0; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,150,201,.35);
}
.btn-accent {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
}
.btn-accent:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(164,232,95,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-blue   { background: var(--blue);   color: var(--white); }
.badge-green  { background: var(--green);  color: var(--dark);  }

/* Badge su trip-card: sfondo bianco, testo scuro (stile screenshot) */
.trip-card .badge-blue  { background: #fff; color: #111; }
.trip-card .badge-green { background: #a8e063; color: #111; }
.badge-dark   { background: var(--dark);   color: var(--white); }
.badge-outline{ background: transparent; border: 1px solid var(--border); color: var(--gray); }
.badge-sold   { background: #e74c3c; color: var(--white); }

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.section-header h2 { margin-bottom: 16px; color: var(--blue); }
.section-header p  { max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

.section-header--left { text-align: left; }
.section-header--left p { margin: 0; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__image {
  position: relative;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card__image img { transform: scale(1.06); }
.card__body  { padding: 24px; }
.card__footer{ padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); }

/* ── TRIP CARD ────────────────────────────────────────────── */
.trip-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.trip-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--blue);
}
.trip-card__image {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.trip-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.trip-card:hover .trip-card__image img { transform: scale(1.08); }

.trip-card__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.trip-card__sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trip-card__sold-overlay span {
  background: #e74c3c;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 10px 24px;
  border-radius: 6px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}
.trip-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.trip-card__type {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.trip-card__title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  color: var(--dark);
}
.trip-card__destination {
  color: var(--gray-light);
  font-size: .9rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.trip-card__excerpt {
  color: var(--gray);
  font-size: .9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.trip-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.trip-card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .85rem;
  color: var(--gray);
}
.trip-card__meta-item svg { color: var(--blue); flex-shrink: 0; }
.trip-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.trip-card__price { }
.trip-card__price .from { font-size: .78rem; color: var(--gray-light); display: block; }
.trip-card__price .amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  font-family: var(--font-body);
  line-height: 1;
}
.trip-card__price .currency { font-size: 1rem; vertical-align: top; margin-top: 4px; display: inline-block; }
.trip-card__spots {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--gray);
}
.trip-card__spots .dots {
  display: flex;
  gap: 3px;
}
.trip-card__spots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.trip-card__spots .dot.filled { background: var(--green); }

/* ── BLOG CARD ────────────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.blog-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.07); }
.blog-card__category {
  position: absolute;
  bottom: 12px;
  left: 12px;
}
.blog-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card__date {
  font-size: .8rem;
  color: var(--gray-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-card__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  color: var(--dark);
  transition: color var(--transition);
  flex: 1;
}
.blog-card:hover .blog-card__title { color: var(--blue); }
.blog-card__excerpt {
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-card__link:hover { gap: 8px; }

/* ── BLOG HERO (featured full-width orizzontale) ─────────── */
.blog-card-hero__new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(14,150,201,.1);
  padding: 5px 12px;
  border-radius: 50px;
  width: fit-content;
}
.blog-card--hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  min-height: 420px;
}
.blog-card-hero__image {
  display: block;
  position: relative;
  overflow: hidden;
}
.blog-card-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card--hero:hover .blog-card-hero__image img { transform: scale(1.04); }
.blog-card-hero__body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.blog-card-hero__title {
  font-size: 1.7rem;
  line-height: 1.25;
  font-family: var(--font-heading);
  color: var(--dark);
  margin: 0;
}
.blog-card-hero__title a { color: inherit; text-decoration: none; transition: color var(--transition); }
.blog-card--hero:hover .blog-card-hero__title a { color: var(--blue); }
.blog-card-hero__excerpt {
  font-size: .97rem;
  color: var(--gray);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}
.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  border: 1.5px solid var(--dark);
  border-radius: 50px;
  padding: 8px 18px;
  text-decoration: none;
  transition: all var(--transition);
  align-self: flex-start;
}
.blog-read-link:hover {
  background: var(--dark);
  color: var(--white);
  gap: 10px;
}

/* ── GRID LAYOUTS ─────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-card--hero { grid-template-columns: 1fr; min-height: auto; }
  .blog-card-hero__image { height: 280px; }
  .blog-card-hero__body { padding: 32px 28px; }
  .blog-card-hero__title { font-size: 1.4rem; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .blog-card-hero__image { height: 220px; }
  .blog-card-hero__body { padding: 24px 20px; gap: 12px; }
  .blog-card-hero__title { font-size: 1.2rem; }
}

/* ── FORMS ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-label span { color: #e74c3c; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,150,201,.15);
}
.form-control::placeholder { color: #bbb; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .8rem; color: var(--gray-light); margin-top: 4px; }
.form-error { font-size: .82rem; color: #e74c3c; margin-top: 4px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── ALERT / FLASH ────────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.alert-error   { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.alert-info    { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #bee3f8; }
.alert-warning { background: #fffbeb; color: #975a16; border: 1px solid #fef3c7; }

/* ── STATS ────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item {}
.stat-item .number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1;
  display: block;
}
.stat-item .label {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-top: 6px;
  display: block;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--gray-light);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-light); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--gray); font-weight: 500; }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 100px 0 70px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-pattern.svg') repeat;
  opacity: .05;
  pointer-events: none;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, rgba(0,0,0,.45) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,.85); font-size: 1.15rem; margin: 0 auto; max-width: 600px; }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--gray);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── UTILITY ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right;  }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green-dark); }
.text-gray   { color: var(--gray); }
.text-white  { color: var(--white); }
.text-dark   { color: var(--dark); }
.bg-dark     { background: var(--dark); }
.bg-blue     { background: var(--blue); }
.bg-light    { background: var(--bg); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }
.mt-5 { margin-top: 60px; }
.mb-5 { margin-bottom: 60px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── DIVIDER ──────────────────────────────────────────────── */
.divider {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
  margin: 40px auto;
}
.divider--center { max-width: 80px; }
.divider--full   { width: 100%; }

/* ── SCROLL TO TOP ────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#scroll-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up { animation: fadeInUp .6s ease both; }
.animate-fade    { animation: fadeIn .4s ease both; }

[data-aos] { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
[data-aos="fade-up"]   { transform: translateY(30px); }
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-right"]{ transform: translateX(30px); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ── RESPONSIVE HELPERS ───────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section--lg { padding: 80px 0; }
  .container { padding: 0 16px; }
  .hide-mobile { display: none; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none; }
}
