/* ==========================================
   tourmarocco7giorni.com – Modern Travel Design
   ========================================== */

:root {
  --terracotta: #C8674B;
  --terracotta-dark: #A84F36;
  --saffron: #E8A84C;
  --saffron-light: #F5C46A;
  --mint: #4CB8A8;
  --mint-dark: #3A9A8C;
  --deep-blue: #1B2A4A;
  --deep-blue-light: #2A3F6A;
  --cream: #FDF8F3;
  --cream-dark: #F5EDE3;
  --sand: #EDE0D4;
  --slate: #4A5568;
  --text-dark: #1B2A4A;
  --text-light: #FDF8F3;
  --shadow: 0 8px 30px rgba(27,42,74,0.12);
  --shadow-lg: 0 20px 60px rgba(27,42,74,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
::selection { background: var(--saffron); color: var(--deep-blue); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--deep-blue);
  color: var(--text-light);
  padding: 0.5rem 0;
  font-size: 0.8rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--saffron); }
.top-bar-contact span { margin-right: 1.5rem; opacity: 0.8; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sand);
  padding: 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-blue);
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo span { color: var(--terracotta); }
.nav-logo-icon { width: 36px; height: 36px; background: var(--terracotta); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 0.3rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--terracotta); }
.nav-cta {
  padding: 0.6rem 1.5rem;
  background: var(--terracotta);
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--deep-blue); transition: var(--transition); display: block; border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--deep-blue);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(27,42,74,0.85) 0%, rgba(27,42,74,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 4rem 0;
}
.hero-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero-title span { color: var(--saffron); }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-search {
  display: flex;
  background: #fff;
  border-radius: 60px;
  padding: 0.4rem;
  max-width: 550px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.hero-search select, .hero-search input {
  flex: 1;
  border: none;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: transparent;
  outline: none;
  color: var(--text-dark);
}
.hero-search select { border-right: 1px solid var(--sand); cursor: pointer; }
.hero-search button {
  padding: 0.8rem 2rem;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.hero-search button:hover { background: var(--terracotta-dark); }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(200,103,75,0.1);
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.8rem;
}
.section-title span { color: var(--terracotta); }
.section-desc {
  font-size: 1rem;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== STATS BANNER ===== */
.stats-banner {
  background: var(--deep-blue);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--saffron);
}
.stat-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 0.3rem; }

/* ===== TOUR CARDS ===== */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tour-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid var(--sand);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tour-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.tour-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tour-card:hover .tour-card-image img { transform: scale(1.08); }
.tour-card-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50px;
}
.tour-card-duration {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.9);
  color: var(--deep-blue);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50px;
  display: flex; align-items: center; gap: 0.3rem;
}
.tour-card-body { padding: 1.5rem; }
.tour-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.tour-card-desc { font-size: 0.85rem; color: var(--slate); margin-bottom: 1rem; line-height: 1.6; }
.tour-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--sand);
}
.tour-card-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terracotta);
}
.tour-card-price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--slate);
}
.tour-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--deep-blue);
}
.tour-card-link i { margin-left: 0.3rem; transition: var(--transition); }
.tour-card-link:hover i { margin-left: 0.6rem; color: var(--terracotta); }
.tour-card-link:hover { color: var(--terracotta); }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  cursor: pointer;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.category-card:hover img { transform: scale(1.08); }
.category-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(0deg, rgba(27,42,74,0.7) 0%, transparent 60%);
}
.category-label {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 2;
  padding: 1.5rem;
  color: #fff;
}
.category-label h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.category-label p { font-size: 0.8rem; opacity: 0.8; margin-top: 0.2rem; }
.category-count {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  background: var(--saffron);
  color: var(--deep-blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--sand);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  background: rgba(200,103,75,0.1);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--terracotta); transform: rotateY(180deg); }
.why-card:hover .why-icon span { filter: brightness(0) invert(1); }
.why-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0.4rem;
}
.why-card p { font-size: 0.85rem; color: var(--slate); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--deep-blue);
  color: #fff;
}
.testimonials .section-title { color: #fff; }
.testimonials .section-desc { color: rgba(255,255,255,0.7); }
.testimonials .section-tag { background: rgba(255,255,255,0.15); color: var(--saffron); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.testimonial-stars { color: var(--saffron); font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--saffron);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--deep-blue); font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.85rem; }
.testimonial-role { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--terracotta), var(--saffron));
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--deep-blue);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(27,42,74,0.3); }

/* ===== FOOTER ===== */
.footer {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 350px; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--saffron); color: var(--deep-blue); }
.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--saffron);
  margin-bottom: 1.2rem;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--saffron); padding-left: 3px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; color: rgba(255,255,255,0.3);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--deep-blue);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,103,75,0.15), transparent);
  border-radius: 50%;
}
.page-header-content { position: relative; z-index: 1; }
.page-header-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.page-header-breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.page-header-breadcrumb span { color: var(--saffron); }

/* ===== TOUR DETAIL ===== */
.tour-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.tour-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.tour-detail-image img { width: 100%; height: 400px; object-fit: cover; }
.tour-detail-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--deep-blue);
  margin-bottom: 1rem;
}
.tour-detail-content p { color: var(--slate); margin-bottom: 1rem; line-height: 1.8; }
.tour-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1.5rem 0; }
.tour-highlight {
  display: flex; align-items: center; gap: 0.8rem;
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 0.8rem 1rem;
}
.tour-highlight span:first-child { font-size: 1.2rem; }
.tour-highlight span:last-child { font-size: 0.85rem; color: var(--slate); }

.tour-detail-sidebar {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 90px;
}
.tour-detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta);
}
.tour-detail-price small { font-size: 0.8rem; color: var(--slate); font-weight: 400; }
.tour-detail-meta { display: flex; flex-direction: column; gap: 0.8rem; margin: 1.5rem 0; padding: 1.5rem 0; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.tour-meta-item { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; }
.tour-meta-item span:first-child { font-weight: 600; color: var(--deep-blue); min-width: 80px; }
.tour-meta-item span:last-child { color: var(--slate); }

.itinerary-item { padding: 1rem 0; border-bottom: 1px solid var(--sand); cursor: pointer; }
.itinerary-item:last-child { border-bottom: none; }
.itinerary-header { display: flex; align-items: center; justify-content: space-between; }
.itinerary-day { font-size: 0.75rem; font-weight: 600; color: var(--terracotta); text-transform: uppercase; letter-spacing: 1px; }
.itinerary-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--deep-blue); }
.itinerary-toggle { font-size: 1.2rem; color: var(--terracotta); transition: var(--transition); }
.itinerary-item.active .itinerary-toggle { transform: rotate(45deg); }
.itinerary-body { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.itinerary-item.active .itinerary-body { max-height: 200px; }
.itinerary-body p { color: var(--slate); padding-top: 0.8rem; font-size: 0.9rem; line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tours-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  .top-bar-contact span { display: block; margin-right: 0; }
  .nav-links {
    position: fixed; top: 70px; right: -100%;
    width: 80%; max-width: 300px;
    height: calc(100vh - 70px);
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s;
  }
  .nav-links.active { right: 0; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2.2rem; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search select { border-right: none; border-bottom: 1px solid var(--sand); }
  .hero-search button { border-radius: var(--radius); }
  .tours-grid, .categories-grid, .why-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .tour-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}