/* =====================================================
   SHARED — Nav · Footer · WhatsApp widget
   Agriturismo Poppiena
   ===================================================== */

/* ─── NAV BASE ─── */
#pp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 62px; display: flex; align-items: center;
  transition: box-shadow .4s;
}
/* backdrop-filter sull'::before per non rompere position:fixed dei figli */
#pp-nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: transparent; backdrop-filter: none;
  transition: background .4s, backdrop-filter .4s;
}
#pp-nav.is-scrolled::before {
  background: rgba(7,7,5,.96);
  backdrop-filter: blur(16px) saturate(1.4);
}
#pp-nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(192,154,80,.14);
}
.pn-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; display: flex; align-items: center; justify-content: space-between;
}
.pn-brand { display: flex; align-items: center; text-decoration: none; }
.pn-brand img { display: block; height: 42px; width: auto; }

/* ─── NAV LINKS ─── */
.pn-links {
  display: flex; align-items: center; gap: 1.7rem; list-style: none;
}
.pn-links > li > a {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s;
}
.pn-links > li > a:hover,
.pn-links > li > a.pn-active { color: #C8A96E; }
.pn-cta {
  border: 1px solid rgba(192,154,80,.4) !important;
  padding: 7px 18px !important; border-radius: 1px;
  color: #C8A96E !important;
}
.pn-cta:hover { background: rgba(192,154,80,.1) !important; border-color: rgba(192,154,80,.8) !important; }

/* ─── DROPDOWN ─── */
.pn-has-drop { position: relative; }
.pn-drop-toggle { cursor: default; display: inline-flex; align-items: center; gap: 4px; line-height: inherit; }
.pn-caret { font-size: 7px; opacity: .65; margin-left: 1px; }

/* ponte invisibile che copre il gap tra trigger e menù */
.pn-has-drop::before {
  content: '';
  position: absolute;
  top: 100%; left: -12px; right: -12px;
  height: 18px;
}

.pn-drop {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(5,5,3,.97); backdrop-filter: blur(16px);
  border: 1px solid rgba(192,154,80,.16); border-radius: 2px;
  padding: 6px 0; min-width: 185px; list-style: none;
  opacity: 0; pointer-events: none; z-index: 20;
  transition: opacity .2s ease, transform .22s ease;
}
.pn-has-drop:hover .pn-drop {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.pn-drop::before {
  content: ''; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top: none;
  border-bottom-color: rgba(192,154,80,.22);
}
.pn-drop li { border-bottom: 1px solid rgba(255,255,255,.04); }
.pn-drop li:last-child { border-bottom: none; }
.pn-drop li a {
  display: block; padding: 10px 18px;
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.6); text-decoration: none; white-space: nowrap;
  transition: color .18s, padding-left .18s, background .18s;
}
.pn-drop li a:hover { color: #C8A96E; padding-left: 24px; background: rgba(255,255,255,.03); }
.pn-drop li a.pn-active { color: #C8A96E; }

/* ─── INSTAGRAM ICON ─── */
.pn-social-link {
  display: flex; align-items: center;
  color: rgba(255,255,255,.52); transition: color .2s;
}
.pn-social-link:hover { color: #C8A96E; }
.pn-social-link svg { display: block; }

/* ─── LANGUAGE SWITCHER ─── */
.pn-lang {
  display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: 2px; overflow: hidden;
}
.pn-lang a {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.36); text-decoration: none;
  padding: 5px 8px; line-height: 1; transition: color .2s, background .2s;
}
.pn-lang a:hover { color: rgba(255,255,255,.7); }
.pn-lang a.pn-lang-active { background: rgba(200,169,110,.14); color: #C8A96E; }
.pn-lang-div { display: block; width: 1px; height: 14px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.pn-lang-mob { display: flex; align-items: center; gap: 10px; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.pn-lang-mob a { font-family: 'Jost','DM Sans',Arial,sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.pn-lang-mob a.pn-lang-active { color: #C8A96E; font-weight: 500; }
.pn-lang-mob span { color: rgba(255,255,255,.18); font-size: 11px; }

/* ─── BURGER ─── */
.pn-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-right: -6px;
}
.pn-burger span { display: block; width: 21px; height: 1px; background: rgba(255,255,255,.72); transition: all .28s; }
.pn-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pn-burger.is-open span:nth-child(2) { opacity: 0; }
.pn-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE OVERLAY ─── */
.pn-mobile {
  display: none;
  position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
  background: rgba(6,6,4,.98); backdrop-filter: blur(20px);
  padding: 0 0 env(safe-area-inset-bottom,16px);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.pn-mobile.is-open { display: flex; flex-direction: column; }
.pn-mobile > ul {
  list-style: none; display: flex; flex-direction: column;
  padding: 1.2rem 1.6rem 2rem; flex: 1;
}
.pn-mobile > ul > li > a,
.pn-mob-toggle {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.75); text-decoration: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .2s;
  width: 100%; background: none; border-top: none; border-left: none; border-right: none;
  cursor: pointer; min-height: 48px;
}
.pn-mobile > ul > li:last-child > a { border-bottom: none; }
.pn-mobile > ul > li > a:active,
.pn-mob-toggle:active { color: #C8A96E; }
.pn-mob-toggle .mc { font-size: 11px; transition: transform .25s; opacity: .6; }
.pn-mob-toggle.open .mc { transform: rotate(180deg); }
.pn-mob-sub { display: none; list-style: none; padding: 4px 0 6px 14px; }
.pn-mob-sub.open { display: block; }
.pn-mob-sub li a {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  display: block; padding: .75rem 0;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .2s; min-height: 44px; display: flex; align-items: center;
}
.pn-mob-sub li a:active { color: #C8A96E; }
/* CTA nel menu mobile */
.pn-mobile .pn-cta {
  border: 1px solid rgba(192,154,80,.4) !important;
  padding: .75rem 0 !important; border-radius: 1px;
  color: #C8A96E !important; justify-content: center;
  margin-top: .5rem;
}

@media (max-width: 768px) {
  .pn-links { display: none; }
  .pn-burger { display: flex; }
  .pn-inner { padding: 0 1.2rem; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.pp-footer { background: #060604; border-top: 1px solid rgba(192,154,80,.1); }
.pp-footer-top {
  max-width: 1100px; margin: 0 auto; padding: 56px 24px 48px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.9fr; gap: 40px;
}
.pp-fc-title {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(192,154,80,.65); margin-bottom: 18px; display: block;
}
.pp-fc-brand img { display: block; }
.pp-fc-tagline {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.75; margin-top: 14px;
}
.pp-fc-nav { display: flex; flex-direction: column; gap: 9px; }
.pp-fc-nav a {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 13px; color: rgba(255,255,255,.42); text-decoration: none; transition: color .2s;
}
.pp-fc-nav a:hover { color: rgba(255,255,255,.78); }
.pp-fc-contact { display: flex; flex-direction: column; gap: 11px; }
.pp-fc-contact address {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.65; font-style: normal;
}
.pp-fc-contact a {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 13px; color: rgba(255,255,255,.52); text-decoration: none;
  transition: color .2s; display: block;
}
.pp-fc-contact a:hover { color: rgba(192,154,80,.9); }
.pp-fc-socials { display: flex; flex-direction: column; gap: 14px; }
.pp-fc-socials a {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.48); text-decoration: none; transition: color .2s;
}
.pp-fc-socials a:hover { color: rgba(192,154,80,.9); }
.pp-fc-socials svg { width: 17px; height: 17px; flex-shrink: 0; }
.pp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  max-width: 1100px; margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.pp-footer-bottom span {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 11px; color: rgba(255,255,255,.2);
}
.pp-footer-bottom a {
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 11px; color: rgba(192,154,80,.45); text-decoration: none; transition: color .2s;
}
.pp-footer-bottom a:hover { color: rgba(192,154,80,.8); }
@media (max-width: 900px) { .pp-footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pp-footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* =====================================================
   COOKIE BANNER
   ===================================================== */
.pp-cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: rgba(22,14,6,.97); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(192,154,80,.18);
  padding: 18px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .45s cubic-bezier(0.16,1,0.3,1);
}
.pp-cookie.pp-cookie-in { transform: translateY(0); }
.pp-cookie p {
  flex: 1; min-width: 220px;
  font-family: 'Jost','DM Sans',Arial,sans-serif;
  font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.65; margin: 0;
}
.pp-cookie p a { color: #C8A96E; text-decoration: underline; text-underline-offset: 3px; }
.pp-cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.pp-cookie-accept {
  font-family: 'Jost',sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  background: #C8A96E; color: #2E1F0F; border: none; border-radius: 2px;
  padding: 10px 22px; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap;
}
.pp-cookie-accept:hover { background: #d4b87a; transform: translateY(-2px); }
.pp-cookie-reject {
  font-family: 'Jost',sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.18); border-radius: 2px;
  padding: 10px 18px; cursor: pointer; transition: border-color .2s, color .2s; white-space: nowrap;
}
.pp-cookie-reject:hover { border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.75); }
@media (max-width: 560px) {
  .pp-cookie { padding: 16px 18px; gap: 14px; }
  .pp-cookie-btns { width: 100%; }
  .pp-cookie-accept, .pp-cookie-reject { flex: 1; text-align: center; }
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.pp-totop {
  position: fixed; bottom: 92px; right: 24px; z-index: 9997;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(46,31,15,.9); border: 1px solid rgba(192,154,80,.35);
  color: #C8A96E; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, border-color .2s;
}
.pp-totop.visible { opacity: 1; pointer-events: auto; }
.pp-totop:hover { transform: translateY(-4px); border-color: rgba(192,154,80,.8); }
@media (max-width: 768px) {
  .pp-totop { bottom: 76px; right: 16px; width: 38px; height: 38px; }
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.42);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,.62); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 768px) {
  .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* =====================================================
   GLOBAL MOBILE RESPONSIVE OVERRIDES
   ===================================================== */

/* ── Utility: no horizontal overflow ── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* ── Typography scale ── */
  h1, .hero-h1, .hero-title { font-size: clamp(2.2rem,10vw,3.2rem) !important; }
  h2, .pp-h2, .nt-h2, .ci-title { font-size: clamp(1.6rem,7vw,2.2rem) !important; }

  /* ── Generic section padding ── */
  .pp-section { padding: 3rem 1.2rem !important; }
  .pp-inner { padding: 0 1.2rem !important; }

  /* ── Two-column grids → single column ── */
  .pp-two-col,
  .contact-inner,
  .narrative-wrap,
  .wine-cards,
  .scrolly-panel,
  .scrolly-panel.flip { grid-template-columns: 1fr !important; gap: 2rem !important; direction: ltr !important; }

  /* ── Hero sections ── */
  .pp-hero { padding: 5rem 1.2rem 3.5rem !important; }
  .pp-hero h1 { font-size: clamp(2.2rem,10vw,3rem) !important; }
  .hero-split { flex-direction: column; min-height: 70vh !important; }
  .hs-panel { flex: none; height: 50vh; }
  .hs-divider { display: none; }
  .hs-content { padding: 80px 1.2rem 60px !important; }
  .hs-content h1 { font-size: clamp(2.2rem,11vw,3.5rem) !important; }

  /* ── Accommodation cards ── */
  .pp-cases { grid-template-columns: 1fr !important; }
  .pp-case.bb-pace { flex-direction: column !important; }
  .pp-case.bb-pace .pp-case-photo { width: 100% !important; min-height: 180px !important; }

  /* ── Wine cards ── */
  .wine-cards { grid-template-columns: 1fr !important; }
  .wine-card-content { padding: 28px 20px !important; min-height: auto !important; }

  /* ── Gallery strip ── */
  .gallery-track { padding: 0 16px !important; }
  .gallery-item { width: clamp(160px,65vw,240px) !important; height: 120px !important; }

  /* ── Stats ── */
  .pp-stats { grid-template-columns: repeat(3,1fr) !important; gap: 1rem !important; }
  .stats-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .hero-stats { flex-wrap: wrap !important; gap: 1rem !important; }

  /* ── Services grid ── */
  .pp-services { grid-template-columns: 1fr !important; }
  .pp-svc:nth-child(2n) { padding-left: 0 !important; border-left: none !important; }

  /* ── Values grid ── */
  .values-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* ── Arrive / How-to-get-here ── */
  .arrive-grid { grid-template-columns: 1fr !important; gap: 2px !important; }

  /* ── Hosts grid ── */
  .hosts-grid { grid-template-columns: 1fr !important; max-width: 340px !important; margin: 0 auto !important; }

  /* ── Contact form ── */
  .cf-row { grid-template-columns: 1fr !important; }
  .contact-form-wrap { padding: 28px 18px !important; }

  /* ── Scrolly panels ── */
  .scrolly-text { padding: 36px 20px 28px !important; }
  .scrolly-photo-wrap { min-height: 260px !important; }

  /* ── Quote / Heritage / CTA ── */
  .pp-quote { padding: 3rem 1.2rem !important; }
  .pp-quote blockquote { font-size: 1.2rem !important; }
  .heritage-inner { padding: 0 1.2rem !important; }
  .cta-section { padding: 4rem 1.2rem !important; }

  /* ── Altra cards strip ── */
  .altre-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .altra-card { padding: 1rem !important; }

  /* ── Narrative section ── */
  .narrative-wrap { flex-direction: column !important; }
  .narrative-left, .narrative-right { width: 100% !important; }
  .narrative-photo { height: 240px !important; }

  /* ── Gallery photo grid ── */
  .gl-grid { grid-template-columns: repeat(2,1fr) !important; }
  .gl-item { height: 150px !important; }

  /* ── Hero stats row ── */
  .hero-stats { justify-content: flex-start; }
  .hero-stat { min-width: 70px; }

  /* ── CTA strip ── */
  .cta-strip { flex-direction: column !important; align-items: flex-start !important; gap: 1.2rem !important; padding: 2rem 1.2rem !important; }
  .cta-btns { flex-direction: column !important; width: 100% !important; }
  .btn-gold, .btn-outline { width: 100% !important; text-align: center !important; }

  /* ── Vino layout ── */
  .pp-vino-layout { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .pp-bottle-wrap { justify-content: center; }
  .pp-bottle-wrap svg { width: 100px !important; height: 260px !important; }

  /* ── Footer ── */
  .pp-footer-top { grid-template-columns: 1fr !important; gap: 24px !important; padding: 36px 1.2rem 28px !important; }
}
