/* ===========================
   MILO ADVENTURE — style.css v2
   =========================== */

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

:root {
  --green:   #1e3d2f;
  --green2:  #2a5240;
  --orange:  #e8971a;
  --orange2: #d4860e;
  --white:   #ffffff;
  --light:   #f7f5f0;
  --text:    #222222;
  --gray:    #666666;
  --radius:  10px;
  --shadow:  0 4px 20px rgba(0,0,0,.12);
  --trans:   .25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ---- Layout ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section-light { background: var(--light); }
.section-dark  { background: var(--green); color: var(--white); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
  border: none;
}
.btn-orange  { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,151,26,.4); }
.btn-white   { background: var(--white); color: var(--green); }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green); }

/* ---- HEADER ---- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo img { height: 48px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.88); font-size: .95rem; font-weight: 600;
  letter-spacing: .03em; transition: color var(--trans); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--orange); transform: scaleX(0); transition: transform var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.lang-switcher {
  display: flex; align-items: center; gap: .5rem; list-style: none;
  border-left: 1px solid rgba(255,255,255,.2); padding-left: 1.5rem; margin-left: .5rem;
}
.lang-switcher a { color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600; letter-spacing: .05em; transition: color var(--trans); }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--orange); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; }
.burger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white); position: relative; padding-top: 72px;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,45,30,.65) 0%, rgba(10,25,15,.78) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 2rem 1rem; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero p  { font-size: clamp(1rem, 2.5vw, 1.2rem); opacity: .9; margin-bottom: 1.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* Rating in hero */
.hero-rating {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px; padding: .5rem 1.2rem;
  color: var(--white); font-size: .9rem;
}
.hero-rating .stars { color: #f5c518; font-size: 1rem; letter-spacing: .05em; }

/* Page hero */
.page-hero {
  min-height: 52vh; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding-top: 72px;
  color: var(--white); position: relative;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,35,20,.88) 0%, rgba(15,35,20,.3) 100%); }
.page-hero-content { position: relative; z-index: 1; padding: 3rem 1.25rem; max-width: 1180px; margin: 0 auto; width: 100%; }
.page-hero h1 { color: var(--white); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.page-hero p  { opacity: .85; margin-top: .5rem; font-size: 1.1rem; }

/* ---- URGENCY BANNER ---- */
.urgency-bar {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  color: var(--white);
  text-align: center;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  position: relative;
  z-index: 999;
  margin-top: 72px;
}
.urgency-bar span { opacity: .85; }
.urgency-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: .5rem;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

/* ---- TOUR CARDS ---- */
.tours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 2rem; margin-top: 3rem; }

.tour-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform var(--trans), box-shadow var(--trans); display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.18); }

.tour-card-badge {
  display: inline-block; padding: .25rem .75rem; border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .75rem;
}
.badge-easy   { background: #d4edda; color: #155724; }
.badge-medium { background: #fff3cd; color: #856404; }
.badge-hard   { background: #f8d7da; color: #721c24; }

.tour-card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.tour-card-body h3 { color: var(--green); margin-bottom: .5rem; }
.tour-card-body p  { color: var(--gray); font-size: .95rem; }

.tour-meta { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: .4rem; }
.tour-meta span { font-size: .9rem; color: var(--gray); }
.tour-meta strong { color: var(--text); }

.tour-price { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.price-block { background: var(--light); border-radius: 8px; padding: .75rem; text-align: center; }
.price-block .season { font-size: .75rem; color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
.price-block .price  { font-size: 1.3rem; font-weight: 800; color: var(--green); }
.price-block .per    { font-size: .72rem; color: var(--gray); }

.tour-card-footer { padding: 1.5rem 2rem; border-top: 1px solid #f0f0f0; }
.tour-card-footer .btn { width: 100%; text-align: center; }

/* ---- INCLUSO / WHAT'S INCLUDED ---- */
.incluso-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.incluso-list li { font-size: .88rem; color: var(--gray); }
.incluso-list li::before { content: '✓ '; color: #27ae60; font-weight: 700; }
.incluso-list li.escluso::before { content: '✗ '; color: #e74c3c; }

/* ---- FAQ ---- */
.faq-list { margin-top: 2.5rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item {
  border: 1px solid #e8e4de;
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; background: var(--white);
  border: none; padding: 1.2rem 1.5rem; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--trans);
}
.faq-question:hover { background: var(--light); }
.faq-question .arrow { color: var(--orange); font-size: 1.2rem; transition: transform var(--trans); }
.faq-question.open .arrow { transform: rotate(45deg); }
.faq-question::after { content: '+'; color: var(--orange); font-size: 1.3rem; line-height: 1; transition: transform var(--trans); display: inline-block; }
.faq-question.open::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  color: var(--gray);
  font-size: .95rem;
}
.faq-answer.open { max-height: 400px; padding: 1rem 1.5rem 1.5rem; }

/* ---- SECTION TITLES ---- */
.section-title { margin-bottom: .75rem; color: var(--green); }
.section-dark .section-title { color: var(--white); }
.section-subtitle { color: var(--gray); font-size: 1.05rem; max-width: 640px; }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); transition: transform var(--trans), opacity var(--trans); }
.gallery-grid img:hover { transform: scale(1.03); opacity: .9; }

/* ---- 2-COL INFO ---- */
.info-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.info-2col.reverse { direction: rtl; }
.info-2col.reverse > * { direction: ltr; }
.info-2col img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h2 { color: var(--green); margin-bottom: 1rem; }
.contact-info p  { color: var(--gray); margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1rem; color: var(--text); font-size: .98rem; }
.contact-detail .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail a { color: var(--green); font-weight: 600; }
.contact-detail a:hover { color: var(--orange); }

/* Form */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: .95rem; font-family: inherit; transition: border-color var(--trans), box-shadow var(--trans);
  background: var(--white); color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,61,47,.1); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Map */
.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---- REVIEWS ---- */
.reviews-note { text-align: center; margin-bottom: 2.5rem; }
.stars { color: #f5a623; font-size: 1.5rem; letter-spacing: .1em; }
.rating-num { font-size: 2.5rem; font-weight: 800; color: var(--green); line-height: 1; }

/* ---- CTA BANNER ---- */
.cta-banner { background: var(--green); color: var(--white); text-align: center; padding: 5rem 1.25rem; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { opacity: .85; max-width: 560px; margin: 0 auto 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FEATURES GRID ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; text-align: center; box-shadow: var(--shadow); }
.feature-card .icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h4 { color: var(--green); margin-bottom: .4rem; font-size: 1rem; }
.feature-card p  { font-size: .88rem; color: var(--gray); }

/* ---- TAG ---- */
.tag { display: inline-block; padding: .3rem .9rem; border-radius: 50px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--orange); color: var(--white); margin-bottom: 1rem; }

/* ---- FOOTER ---- */
footer { background: #111c16; color: rgba(255,255,255,.7); padding: 3.5rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo { height: 44px; margin-bottom: 1rem; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul a { color: rgba(255,255,255,.65); transition: color var(--trans); }
.footer-col ul a:hover { color: var(--orange); }
.footer-col p { color: rgba(255,255,255,.65); line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.footer-bottom a { color: rgba(255,255,255,.6); transition: color var(--trans); }
.footer-bottom a:hover { color: var(--orange); }

/* ---- WHATSAPP FAB ---- */
.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 998;
  width: 58px; height: 58px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform var(--trans), box-shadow var(--trans);
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.55); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: var(--white); }

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1a1a1a; color: rgba(255,255,255,.85);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .4s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: .88rem; line-height: 1.5; max-width: 700px; }
#cookie-banner a { color: var(--orange); }
#cookie-banner a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-btns button {
  padding: .55rem 1.25rem; border-radius: 50px; font-size: .85rem; font-weight: 700;
  cursor: pointer; border: none; transition: background var(--trans);
}
.cookie-accept { background: var(--orange); color: var(--white); }
.cookie-accept:hover { background: var(--orange2); }
.cookie-decline { background: rgba(255,255,255,.15); color: rgba(255,255,255,.8); }
.cookie-decline:hover { background: rgba(255,255,255,.25); }

/* ---- STICKY CTA (mobile) ---- */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 997;
  background: var(--green);
  padding: 1rem 1.5rem;
  gap: .75rem;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--green2);
  color: rgba(255,255,255,.9);
  padding: .7rem 0;
  font-size: .88rem;
  font-weight: 600;
}
.trust-items { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-items span { display: flex; align-items: center; gap: .4rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .info-2col { grid-template-columns: 1fr; gap: 2rem; }
  .info-2col.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

body.menu-open { overflow: hidden; }

@media (max-width: 700px) {
  /* General spacing */
  .section    { padding: 2.5rem 0; }
  .cta-banner { padding: 3rem 1.25rem; }
  .urgency-bar { font-size: .8rem; padding: .5rem .75rem; }

  /* Nav */
  .nav-links, .lang-switcher { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--green); padding: 1.5rem; gap: 1.2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.3); z-index: 999;
    overflow-y: auto;
  }
  .nav-links a::after { display: none; }

  /* Lang-switcher iniettato via JS nel menu mobile */
  .mobile-lang-item {
    display: flex; gap: .75rem; list-style: none;
    border-top: 1px solid rgba(255,255,255,.2);
    padding-top: 1rem; margin-top: .25rem;
  }
  .mobile-lang-item a {
    color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 700;
    letter-spacing: .06em; padding: .3rem .9rem;
    border-radius: 50px; border: 1px solid rgba(255,255,255,.3);
    transition: color var(--trans), border-color var(--trans);
  }
  .mobile-lang-item a.active,
  .mobile-lang-item a:hover { color: var(--orange); border-color: var(--orange); }

  /* Bottoni: impila su mobile */
  .hero-btns, .cta-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn, .cta-btns .btn { width: 100%; max-width: 300px; text-align: center; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Griglie */
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tour-price   { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-items  { gap: 1.2rem; }
}
