/* HorizonViaggi - Tour Operator CSS */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #0b132b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 19, 43, 0.08);
  --shadow-hover: 0 18px 40px rgba(2, 132, 199, 0.18);
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: var(--font-heading);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Top bar */
.top-bar {
  background: var(--secondary);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
}
.top-bar a:hover {
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.brand-logo img {
  height: 72px;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.brand-logo:hover img {
  transform: scale(1.03);
}
.brand-title {
  display: flex;
  flex-direction: column;
}
.brand-title .brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.brand-title .brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  text-decoration: none;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--primary);
}

.btn-custom-trip {
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 700 !important;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-custom-trip:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--secondary);
}

.container {
  width: 94%;
  max-width: 1560px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0b132b;
  padding: 95px 0 90px;
  color: #fff;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.55) 0%, rgba(11, 19, 43, 0.35) 45%, rgba(11, 19, 43, 0.75) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(2, 132, 199, 0.6);
  color: #38bdf8;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-green {
  background: #2e7d32;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(46, 125, 50, 0.4);
}

.btn-green:hover {
  background: #256628;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(46, 125, 50, 0.55);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}
.stat-col h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
}
.stat-col p {
  font-size: 0.78rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Destination Category Showcase (1:1 with cover.jpg) */
.category-showcase-section {
  padding: 65px 0 55px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

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

.section-title-cover {
  font-family: var(--font-sans);
  font-size: 2.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

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

@media (max-width: 600px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

.category-card-item {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.category-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card-item:hover img {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.38) 50%, rgba(0, 0, 0, 0.72) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.category-card-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

/* Category Quick Strip */
.category-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.cat-pills-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cat-pill {
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--secondary);
  transition: all 0.2s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Tours Section */
.section {
  padding: 90px 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Tour Cards Grid */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}
.tour-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.tour-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}
.tour-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.tour-card:hover .tour-img-wrap img {
  transform: scale(1.06);
}
.tour-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tour-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.tour-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.tour-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 10px;
}
.tour-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}
.tour-highlights {
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 18px;
}
.tour-highlights li {
  margin-bottom: 4px;
  list-style-type: none;
  position: relative;
  padding-left: 18px;
}
.tour-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}
.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.tour-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--secondary);
}
.tour-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Resorts Showcase */
.resorts-section {
  background: #f1f5f9;
}
.resorts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.resort-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.resort-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.resort-info {
  padding: 16px;
  text-align: center;
}
.resort-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}
.resort-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.resort-stars {
  color: #f59e0b;
  font-size: 0.85rem;
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 30px;
}
.testi-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.6;
}
.testi-author {
  font-weight: 800;
  color: var(--secondary);
}
.testi-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: #cbd5e1;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 34px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--secondary);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .resorts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .resorts-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 1440px) {
  .container {
    max-width: 1440px !important;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Multi-Page Top Navigation Bar */
.demo-bar-top {
  background: #0b132b;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.demo-bar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.demo-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-bar-left a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.demo-bar-left a:hover {
  color: var(--accent);
}
.demo-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}
.demo-pill {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Page Hero Banner */
.page-hero-banner {
  background: linear-gradient(rgba(11,19,43,0.7), rgba(11,19,43,0.85)), url('images/19122.jpg') center/cover no-repeat;
  padding: 80px 0 60px;
  color: #fff;
  text-align: center;
}
.page-hero-banner h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  margin-bottom: 14px;
  color: #fff;
}
.page-hero-banner p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.6;
}

/* Tour Detail Container */
.tour-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 40px 0 60px;
}
.tour-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.tour-detail-img-box {
  position: relative;
  min-height: 420px;
}
.tour-detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tour-detail-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .tour-detail-grid {
    grid-template-columns: 1fr;
  }
  .tour-detail-img-box {
    min-height: 280px;
  }
  .tour-detail-body {
    padding: 24px;
  }
}



/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Safeguard Rules */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
