/* ============================================================
   WISE IN BLUE — Guide locali CSS
   Derivato da main.css + vrm.css del sito WiB principale
   ============================================================ */

:root {
  /* Palette VRM (coerente con wiseinblue.com) */
  --guide-accent:   #8E94E5;
  --guide-light:    #B8BCEF;
  --guide-dark:     #0e0f2a;
  --guide-mid:      #1a1b4b;
  --guide-deep:     #3d43a8;
  --guide-gradient: linear-gradient(135deg, #dde0f8 0%, #3d43a8 100%);

  /* Neutri */
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1e293b;

  /* Tipografia */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spaziatura */
  --section-py:    80px;
  --container-max: 1200px;

  /* Transizioni */
  --transition: all 0.3s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-800); line-height: 1.6; overflow-x: hidden; background: var(--gray-50); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--guide-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.navbar-logo img {
  height: 44px; width: auto;
  background: rgba(255,255,255,0.95);
  border-radius: 9px; padding: 4px 7px;
}
.navbar-logo span {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.9rem; color: var(--white);
}
.navbar-logo .guide-badge {
  font-size: 0.6rem; font-weight: 700;
  padding: 2px 8px; border-radius: 50px;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(142,148,229,0.25);
  color: var(--guide-light);
}
.navbar-nav {
  display: flex; align-items: center; gap: 4px;
}
.navbar-nav a {
  color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: var(--transition);
}
.navbar-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.navbar-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 70vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: var(--section-py) 0;
  background: var(--guide-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
  transition: opacity 0.6s ease;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 72% 45%, rgba(142,148,229,0.22) 0%, transparent 55%),
    radial-gradient(circle at 18% 80%, rgba(100,105,200,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(255,255,255,0.15); color: var(--guide-light);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
  color: var(--white); margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  margin-bottom: 36px; line-height: 1.85;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.4px;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--guide-accent); color: var(--white);
  border-color: var(--guide-accent);
  box-shadow: 0 4px 20px rgba(142,148,229,0.35);
}
.btn-primary:hover {
  background: transparent; color: var(--guide-accent);
  box-shadow: 0 6px 28px rgba(142,148,229,0.55);
}
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover { background: var(--white); color: var(--gray-800); }
.btn-maps {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 50px;
  font-size: 0.83rem; font-weight: 600;
  background: rgba(142,148,229,0.12);
  color: var(--guide-deep); border: 1.5px solid rgba(142,148,229,0.35);
  transition: var(--transition); text-decoration: none;
  font-family: var(--font-heading);
}
.btn-maps:hover {
  background: var(--guide-accent); color: var(--white);
  border-color: var(--guide-accent);
}

/* ── SEZIONE ── */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--guide-dark); }

/* ── TITOLI SEZIONE ── */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700;
  margin-bottom: 12px; position: relative; padding-bottom: 18px;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 44px; height: 3px;
  background: var(--guide-accent); border-radius: 2px;
}
.section-title.white { color: var(--white); }
.section-title.white::after { background: var(--guide-light); }
.section-subtitle { font-size: 1.02rem; color: var(--gray-600); max-width: 600px; }
.section-subtitle.white { color: rgba(255,255,255,0.7); }
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }
.section-header.centered .section-title::after { left: 50%; transform: translateX(-50%); }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white); border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(142,148,229,0.22);
  box-shadow: 0 3px 18px rgba(142,148,229,0.10), 0 1px 4px rgba(0,0,0,0.04);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 4px 0 0 var(--guide-accent),
    0 10px 36px rgba(142,148,229,0.18),
    0 2px 8px rgba(0,0,0,0.06);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
  background: rgba(142,148,229,0.12); color: var(--guide-deep);
}
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--gray-800); }
.card p  { color: var(--gray-600); font-size: 0.9rem; line-height: 1.75; flex: 1; }
.card-footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.card-meta { font-size: 0.8rem; color: var(--gray-400); display: flex; align-items: center; gap: 6px; }

/* Card ristorante */
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tag {
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3px;
  background: rgba(142,148,229,0.1); color: var(--guide-deep);
}
.tag.prezzo { background: rgba(34,197,94,0.1); color: #16a34a; }
.card-phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--gray-700); font-weight: 500;
  transition: color 0.2s ease;
}
.card-phone:hover { color: var(--guide-deep); }

/* ── INFO PRATICHE ── */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,0.05); border-radius: 14px;
  padding: 20px; border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.info-item:hover { background: rgba(255,255,255,0.09); }
.info-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: rgba(142,148,229,0.2); color: var(--guide-light);
}
.info-item h4 {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--guide-light); margin-bottom: 5px;
}
.info-item p, .info-item a {
  color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.6;
}
.info-item a:hover { color: var(--white); text-decoration: underline; }

/* ── FOOTER ── */
.site-footer {
  padding: 52px 0 28px;
  background: var(--guide-dark);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand p { margin-top: 14px; font-size: 0.87rem; line-height: 1.85; opacity: 0.75; }
.footer-logo { height: 52px; width: auto; border-radius: 10px; background: rgba(255,255,255,0.95); padding: 5px 8px; }
.footer-col h4 {
  font-family: var(--font-heading); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.87rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; opacity: 0.5;
}
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; transition: var(--transition);
  color: rgba(255,255,255,0.6);
}
.social-links a:hover { border-color: transparent; color: var(--white); }
.social-links a[aria-label="Instagram"]:hover { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.social-links a[aria-label="Facebook"]:hover  { background: #1877F2; }
.social-links a[aria-label="YouTube"]:hover   { background: #FF0000; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--guide-accent); color: var(--white);
  font-size: 1rem; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 9990;
  box-shadow: 0 4px 16px rgba(142,148,229,0.45);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--guide-deep); }

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed; bottom: 76px; right: 24px;
  width: 50px; height: 50px; border-radius: 50%;
  background: #25D366; color: var(--white) !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9990; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero { min-height: 60vh; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .whatsapp-fab { bottom: 72px; right: 14px; }
  .back-to-top  { bottom: 14px; right: 14px; }
}
@media (max-width: 900px) {
  .navbar-hamburger { display: flex; }
  .navbar-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; padding: 12px;
    background: var(--guide-dark);
    border-bottom: 1px solid rgba(255,255,255,0.07); gap: 2px;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { width: 100%; padding: 12px 16px; }
}
