/* ===================================================
   Dream&Go — Main Stylesheet
   Stack: Bootstrap 5 + Custom CSS
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --navy:      #1a2e6e;
  --navy-dark: #0f1e4a;
  --amber:     #f59e0b;
  --amber-dark:#d97706;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-500:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --white:     #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 14px; color: var(--gray-900); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===================================================
   NAVBAR
   =================================================== */
.dg-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
}
.dg-navbar .container-fluid { height: 100%; }
.dg-navbar .navbar-brand { display: flex; flex-direction: column; line-height: 1; padding: 0; }
.dg-navbar .brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.dg-navbar .brand-name span { color: var(--amber); }
.dg-navbar .brand-tagline {
  font-size: 9px;
  color: var(--gray-500);
  letter-spacing: 0.3px;
  margin-top: 1px;
}
.dg-nav-links { gap: 4px; }
.dg-nav-links .nav-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700) !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 6px 8px !important;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.dg-nav-links .nav-link:hover {
  background: var(--gray-100);
  color: var(--navy) !important;
}
.dg-nav-right { gap: 14px; align-items: center; }
.dg-nav-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 5px;
}
.dg-nav-icon-link {
  font-size: 12px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.dg-nav-icon-link:hover { color: var(--navy); }

/* ===================================================
   HERO
   =================================================== */
.dg-hero {
  position: relative;
  min-height: 500px;
  background: linear-gradient(rgba(10,20,60,0.55), rgba(10,20,60,0.55)), url('../img/6.jpg') center center / cover no-repeat; 45%, #1e5494 75%, #2d7db3 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dg-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(96,165,250,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(52,211,153,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 65% 85%, rgba(251,191,36,0.10) 0%, transparent 40%);
  pointer-events: none;
}
.dg-hero-content { position: relative; z-index: 2; padding: 32px 32px 0; }
.dg-hero-headline {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.dg-hero-headline em { color: var(--amber); font-style: italic; display: block; }
.dg-hero-sub {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}
.dg-hero-sub strong { color: var(--white); }

/* ===================================================
   SEARCH TABS
   =================================================== */
.dg-tabs-row {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 18px 32px 0;
}
.dg-tab-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}
.dg-tab-btn:hover { background: rgba(255,255,255,0.25); }
.dg-tab-btn.active { background: var(--white); color: var(--navy); }
.dg-tab-btn i { font-size: 15px; }

/* ===================================================
   SEARCH BOX
   =================================================== */
.dg-search-box {
  position: relative;
  z-index: 3;
  margin: 0 32px 0;
  background: var(--white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 80px;
}
.dg-search-panel { display: none; align-items: flex-end; gap: 10px; flex: 1; flex-wrap: wrap; }
.dg-search-panel.active { display: flex; }

.dg-field { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 120px; }
.dg-field label {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dg-field input,
.dg-field select {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--gray-50);
  outline: none;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.dg-field input:focus,
.dg-field select:focus {
  border-color: var(--navy);
  background: var(--white);
}
.dg-field input::placeholder { color: var(--gray-500); }

.dg-search-btn {
  background: var(--amber);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  height: 38px;
}
.dg-search-btn:hover { background: var(--amber-dark); }

.dg-hero-bottom { flex: 1; min-height: 30px; }

/* ===================================================
   SECTION: BOOK OPTIONS
   =================================================== */
.dg-section { padding: 40px 0 32px; }
.dg-section-pretitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.dg-section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 28px;
}

/* ===================================================
   SERVICE CARDS
   =================================================== */
.dg-cards-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.dg-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}
.dg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.dg-card-thumb {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dg-card-thumb.voli      { background: linear-gradient(135deg, #bfdbfe, #3b82f6); }
.dg-card-thumb.hotel     { background: linear-gradient(135deg, #bbf7d0, #16a34a); }
.dg-card-thumb.vacanze   { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.dg-card-thumb.auto      { background: linear-gradient(135deg, #e9d5ff, #7c3aed); }
.dg-card-thumb.moto      { background: linear-gradient(135deg, #fee2e2, #dc2626); }
.dg-card-thumb.traghetti { background: linear-gradient(135deg, #cffafe, #0891b2); }
.dg-card-thumb i { font-size: 42px; opacity: 0.9; color: rgba(255,255,255,0.95); }

.dg-card-body { padding: 12px 14px 14px; }
.dg-card-name { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.dg-card-desc { font-size: 11px; color: var(--gray-500); line-height: 1.45; margin-bottom: 10px; }
.dg-card-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap 0.15s;
}
.dg-card:hover .dg-card-link { gap: 6px; }
.dg-card-link i { font-size: 12px; }

/* ===================================================
   TRUST BAR
   =================================================== */
.dg-trust {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 18px 0;
}
.dg-trust-grid { display: flex; justify-content: space-around; align-items: center; gap: 12px; }
.dg-trust-item { display: flex; align-items: center; gap: 12px; }
.dg-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.dg-trust-text strong { font-size: 12px; font-weight: 700; color: var(--gray-900); display: block; }
.dg-trust-text span   { font-size: 11px; color: var(--gray-500); }

/* ===================================================
   FOOTER
   =================================================== */
.dg-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 16px 0;
  font-size: 12px;
  text-align: center;
}
.dg-footer span { color: var(--amber); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1199px) {
  .dg-cards-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .dg-hero-headline { font-size: 28px; }
  .dg-nav-links { display: none; }
  .dg-search-box { flex-wrap: wrap; }
  .dg-field { min-width: 140px; }
}
@media (max-width: 767px) {
  .dg-hero-content { padding: 24px 16px 0; }
  .dg-tabs-row { padding: 14px 16px 0; overflow-x: auto; flex-wrap: nowrap; }
  .dg-search-box { margin: 0 16px; }
  .dg-cards-row { grid-template-columns: repeat(2, 1fr); }
  .dg-trust-grid { flex-wrap: wrap; justify-content: flex-start; padding: 0 16px; }
  .dg-section { padding: 24px 0 20px; }
}
@media (max-width: 480px) {
  .dg-cards-row { grid-template-columns: 1fr 1fr; }
  .dg-tab-btn { padding: 7px 10px; font-size: 11px; }
}